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?
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.