So i have made a script where it gives a 10 second intermission before everyone is given a sword. Script goes like this:
t = 10
repeat
s.Value = "You will be given a sword in "..t.." seconds, stay alive"
wait(1)
t = t -1
until t == 0
player = 1
local plrs = game.Players:GetChildren()
repeat
local clone = game.ServerStorage.ClassicSword:Clone()
clone.Parent = plrs[player].Backpack
clone.Script.Disabled = false
player = player +1
until player == #ingame
end
The line it errors on is line 11.
Anyone got a fix for this?

3 comments
Thanks, but is there a way to just keep the code i currently have and just change some stuff in it to make it work?
Yes, but the code you're using is highly inefficient.
Nevermind, i got it to work.