Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How fix my timer?

Asked by 8 years ago

Hello everyone, I have problem with timer, becouse i want if time = 10, then it should add to team + 10 every second. I don't know how to load exist leaderboard...

Here is script:

Time = 10

for i = 1, Time do 
for b, v in pairs(script.Parent.Timer:GetChildren()) do
v.Name = "Time: " ..i.. "/" ..Time.. "."
wait(1)
if Time == 10 then
    local cash = Instance.new("IntValue")
    cash.Name = "Cash"
    cash.Value = 0 + 10
end
end end

Clone = script.RaiderWin:clone()

Clone.Parent = game.Workspace

Clone.Disabled = false 

Answer this question