2DWorlds Forums
I keep getting errors like "Players is not a member of Root" - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Bug Reports (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=23)
+--- Thread: I keep getting errors like "Players is not a member of Root" (/showthread.php?tid=6675)



I keep getting errors like "Players is not a member of Root" - Qwertygiy - 07-08-2011

[lua]
while true do
sleep(0.01)
local players = game.Players:getChildren()
[/lua]

Some random point after I start the script:

Error: Players is not a valid member of Root


[lua]
while true do
sleep(0.01)
if game:getService("Players") then
[/lua]

Some random point after I start the script:

Error: getService is not a property of Root


RE: I keep getting errors like "Players is not a member of Root" - Duck - 07-08-2011

That's a very odd bug :/