script.Parent.Event:connect(function(z)local T=tick()if T-z.Stats.LastDailyHunterCoins.Value>=86400 then z.Stats.Coins.Value=z.Stats.Coins.Value+9000 z.Stats.LastDailyHunterCoins.Value=T game.ReplicatedStorage.Interactions.Client.DailyHunterCoinsResult:FireClient(z,true,tick())else game.ReplicatedStorage.Interactions.Client.DailyHunterCoinsResult:FireClient(z,false,tick())end end)


script.Parent.Event:connect(function(plr)
	
	-- Check if sufficient time has passed
	local currentTime = tick()
	if currentTime - plr.Stats.LastDailyHunterCoins.Value >= 86400 then
		
		-- Change stats
		plr.Stats.Coins.Value = plr.Stats.Coins.Value + 9000
		plr.Stats.LastDailyHunterCoins.Value = currentTime
		
		-- Send result
		game.ReplicatedStorage.Interactions.Client.DailyHunterCoinsResult:FireClient(plr, true, tick())
		
	else
		
		-- Send result
		game.ReplicatedStorage.Interactions.Client.DailyHunterCoinsResult:FireClient(plr, false, tick())
		
	end
	
end)
