Hello everyone, I have problem with timer, becouse i want to after when it says 10/10 should give money to only one team, but now it give money to everyone in game, when someone capture post.
Here is script:
Time = 10 owner = script.Parent.CurrentOwner for i = 1, Time do for b, v in pairs(script.Parent.Timer:GetChildren()) do v.Name = "Time: " ..i.. "/" ..Time.. "." wait(1) while wait(5) do for _, owner in ipairs (game.Players:GetPlayers()) do if owner:FindFirstChild("leaderstats") then owner.leaderstats.Cash.Value = owner.leaderstats.Cash.Value + 10 end end end end end Clone = script.RaiderWin:clone() Clone.Parent = game.Workspace Clone.Disabled = false