Hello!, I am Currently trying to achieve sending information from a local script to a server script, Both of those script are inside a tool including the remote event
Now for the issue, the issue is that the server recognize that both of the information from client is a player, now this made me very confused, here are the scripts
Client (The part that is important)
tool.Activated:Connect(function()
local target = mouse.Target
sender:FireServer(player, target)
end)
Firing a RemoteEvent or RemoteFunction automatically passes in the player object that fired it.
You do not need to pass in the player name when firing the event. In this case, it should be the following:
sender:FireServer(target)
The server side of things is fine. If the server cannot see the object that you’re sending it and instead shows as “nil”, make sure the part is created on the server and not the client.
Edit: The player firing the event is always the FIRST argument to a RemoteEvent or RemoteFunction listener.