Inversed Remote Function Arguments?

I am doing client-Server communications, for some reason the arguments are reversed, any reason why?

Server -

Remotes.CreateSquad.OnServerInvoke = function(SquadName, SquadRestricted, SquadHost)
	print("Name: " .. tostring(SquadName))
	print("Private: " .. tostring(SquadRestricted))
	print("Host: " .. tostring(SquadHost))
end)

Client -

game.ReplicatedStorage.Remotes.CreateSquad:InvokeServer("lol", false, "Player Name")

Output:

"Name: Player Name"
"Private: false"
"Player: lol"

Is this a bug? Any idea why this is occurring?

Ok, this looks very weird, but in the code, you provided, you didn’t specify the Player argument in the OnServerInvoke callback function. Remote functions always do that as a first argument.

2 Likes

wait- dang. How did I forget that?