#How would i go about referencing the player inside a server script?
8 messages · Page 1 of 1 (latest)
Probably with events like
game.Players.PlayerAdded:Connect(function(player)
end)
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.
Definition of remote functions/events and how to use them in scripts
Look at #3 on that website as an example of what the server script event listener will look like.