2DWorlds Forums
Anyway way to detect if a player spawns? - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Help (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=21)
+--- Thread: Anyway way to detect if a player spawns? (/showthread.php?tid=5845)



Anyway way to detect if a player spawns? - Blandflakes - 06-15-2011

I've been looking all over the wiki and I can't find anything about it.


RE: Anyway way to detect if a player spawns? - Jacob__mybb_import1 - 06-15-2011

[lua]
link(game.Players.ChildAdded, function( c )

end)
[/lua]

or

[lua]
link(game.World.ChildAdded, function( c )
if c:isA("Character") then

end
end)
[/lua]

if you need to use their character.


RE: Anyway way to detect if a player spawns? - Blandflakes - 06-15-2011

(06-15-2011, 08:00 PM)Jacob_ Wrote: [lua]
link(game.Players.ChildAdded, function( c )

end)
[/lua]

or

[lua]
link(game.World.ChildAdded, function( c )
if c:isA("Character") then

end
end)
[/lua]

if you need to use their character.

Thanks jacob!