Issue with remotes

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    To find out why my remotes are generating a mystery parameter

  2. What is the issue? Include screenshots / videos if possible!
    There is a mystery number that appears in the print statement (692), which kicks out the Slot2 parameter and is messing up my code.
    Example:
    Spcxtaa 692 AdminCommand GiveTokens Password Username

The local script

Remote:FireServer(Player, "AdminCommand", "GiveTokens", Password, Username, Amount)

The server script

Remote.OnServerEvent:Connect(function(Player, Request, Information, Password, Slot1, Slot2)
	
	print(Player, Request, Information, Password, Slot1, Slot2)

Remote.OnServerEvent automatically returns the player that fired it as the first argument.

So you’re sending an extra player variable when you do:

Remote:FireServer(Player, ...)

Just remove the Player argument that you send when you fire the remote.

1 Like

Remote:FireServer("AdminCommand", "GiveTokens", Password, Username, Amount)
is what @Ze_tsu meant.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.