This script keeps crashing my RBXStudio.
players = {}
while true do
for i,v in pairs(game.Players:GetPlayers()) do
table.Insert(players, v)
end
end
Why?
This script keeps crashing my RBXStudio.
players = {}
while true do
for i,v in pairs(game.Players:GetPlayers()) do
table.Insert(players, v)
end
end
Why?
should be table.insert, not table.Insert
This should work.... :P:P TROLOLOL
You need to add a wait() to the while loop, eg
players = {}
while true do
for i,v in pairs(game.Players:GetPlayers()) do
table.Insert(players, v)
end
wait()--add a number with any value in seconds.
end
No problem.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Oh yeah, I forgot that while loops need a wait, dumb me :P