why remotes's values are not being correctly grabbed?
So i have a local script that fires a remote, the remote is being fired, but the value with it is not correct, instead of printing the desired value on the local, it's printing the player's name, there are the scripts related to that function:
Server
1 | remote = script.Parent.ValueStorage:WaitForChild( "SwitchModes" ) |
3 | remote.OnServerEvent:Connect( function (currentmode) |
Local (not full script)
2 | script.Parent.ValueStorage.SwitchModes:FireServer(currentmode) |
I suppose that the remote is printing the value that already comes with the remote, when its fired, the player, but its printing the name and not the player model, so i really don't know what exactly is going on.
help would be appreciated...