#How would i go about referencing the player inside a server script?

8 messages · Page 1 of 1 (latest)

tender ravine
#

I'm having problems with a server script of mine and i basically need to have the player referenced so from there i can get the character, humanoid, HumanoidRootPart etc.

rotund roost
#

Probably with events like
game.Players.PlayerAdded:Connect(function(player)
end)

fiery stag
#

Prolly just

#

Local players = game.Players

#

Or something

eternal ledge
#

Locally detect the event in a local script and fire a server event using a remote event. The listener in the server script will receive the player firing the event as the first argument automatically.

#

Look at #3 on that website as an example of what the server script event listener will look like.