I’m trying to pass an instance from a local script to sever script and I’m doing so by remote events and I came across a problem. No matter what argument I put when firing the remote event, it doesn’t affect anything. The data being passed is always the name of the local player.
How do I fix this?
2 Likes
I think it might be because you aren’t adding player as the first parameter.
All remotes talking to the server must have the first parameter as the player.
For example:
Remote.OnServerEvent:Connect(function(player, the rest of your parameters must come after)
6 Likes
From the Client side you write something like this.
RE:FireServer( yourData );
However, on the Server side. It reads something like this.
RE.OnServerEvent:Connect( function( player, yourData ) ... end )
Are you checking the other parameter to see if your data is there?
4 Likes