I tried like this but I'm not getting the parameter in the server script.
remote:FireServer(plrname)
Hi, this is an example of passing arguments using events:
--||LocalScript||-- local remote = game.ReplicatedStorage:WaitForChild("RemoteEvent") --Change this to where your remote is remote:FireServer(2) --||ServerScript||-- local remote = game.ReplicatedStorage:WaitForChild("RemoteEvent") --Change this to where your remote is remote:OnServerEvent:Connect(function(playerWhoFiredEvent, number) print(number) --This will print 2 end)
From this example, I believe you now know how to pass arguments from LocalScript to ServerScript.
Hope this helps!