Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.