New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

how do I check who sent on the remote event thing?

Asked by 3 months ago

so I have made this script which basically when someone presses a certain key, everyone excluding the presser will die, basically a kill others, but I'm having difficulty in making it. Can anyone tell me how do I check who sent the signal, so I can exclude the presser from being killed?

1 answer

Log in to vote
0
Answered by
Elixcore 1020 Moderation Voter
3 months ago
Edited 3 months ago

When you fire a remote, the server will automatically receive your player as the first parameter.

--localscript

Remote:FireServer()

--serverscript

Remote.OnServerEvent:Connect(function(player)
    print(player)
end)

That will print the player who sent the remote.

Ad

Answer this question