-- goro7


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)
