local replicatedstorage = game:GetService("ReplicatedStorage")
local remotefunction = replicatedstorage:WaitForChild("RemoteEvent")
local player = game.Players.LocalPlayer
script.Parent.Activated:Connect(function()
remotefunction:FireServer(player)
end)
I have a tool with a localscript containing the above. It is meant to fire the local player name to the server.
This is all I have for the server script:
local replicatedstorage = game:GetService("ReplicatedStorage")
local remotefunction = replicatedstorage:WaitForChild("RemoteEvent")
I need the server to receive the local player name from the remoteEvent. No tutorials were good at explaining so I came here. Help please!

4 comments
What is the p in (p, player) for?
@6zk8 p stands for the LocalPlayer, the other arguments after the first one are tuple arguments. @gskw why is your second argument player since the first argument already passes the LocalPlayer tho?
Nvm, thanks!
@guest_2018 I added in the second player argument to illustrate how RemoteEvents would work with OP's initial setup, where FireServer() sends an additional player agument.