How can I find the Player Name in a SSS Script as the same way as Local Player in Local Script?

How can I find the Player Name in a SSS Script as the same way as Local Player in Local Script?

You can use

game.Players.PlayerAdded:Connect(function(Player)

end)

where Player is the player that joined. Other than that I can’t really find anything else which would be close to what you want to have.

for one you would have to have a connection to the player for example:

game.Players.PlayerAdded:Connect(function(Player) -- Getting the player

end

Or you can use remote events for example

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(Player) -- Getting the player

end

But if i don’t want to execute a certain script on Join?

But i don’t want to execute a certain script on Join?

There are multiple ways of getting player’s names, another way you can do it is by using RemoteEvents

1 Like

Okay Thanks! Remote Events should work :+1:

2 Likes