of     1   

pighead10
#42573536Tuesday, February 15, 2011 9:22 PM GMT

Which is would be quicker to get the player in a CharacterAdded function? --player has been defined function charRespawned(player,char) print(player.Name) end player.CharacterAdded:connect(function(char) charRespawned(player,char) end) ----------------------------------- or function charRespawned(char) local player = game.Players:GetPlayerFromCharacter(char) print(player.Name) end --player has been defined in a function I haven't bothered to write player.CharacterAdded:connect(charRespawned) --------------------------------- The difference is negilible - but which is faster?
Legend26
#42573669Tuesday, February 15, 2011 9:25 PM GMT

Possibly the second one, though I prefer writing the first one as opposed to the second one.
Brandonhare
#42573677Tuesday, February 15, 2011 9:25 PM GMT

The first one.
xSnowingSlayerx
#42573777Tuesday, February 15, 2011 9:27 PM GMT

Both is fine, imo.
Brandonhare
#42573827Tuesday, February 15, 2011 9:28 PM GMT

You're calling a method to find the player which you already have. That's silly.
Scribbleno1
#42574794Tuesday, February 15, 2011 9:48 PM GMT

Call getfenv on the PlayerAdded function in the CharacterAdded function and find the 'player' argument!
pighead10
#42600948Wednesday, February 16, 2011 7:45 AM GMT

...? (directed at scribble) first one it is

    of     1