hi,
so, im trying to send data through a remote event, but the data is being received weirdly.
heres what im sending:
remote:FireServer(player, prevws, jumpheight, special, combo)
heres how its being picked up
remote.OnServerEvent:Connect(function(player, prevws, jumpheight, special, combo)
heres what its supposed to come out as:
(cardboardthethirrd, 16, 50, true, 4)
but it comes out like this.
(cardboardthethird, cardboardthethird, 16, 50, true)
ive already made sure all the values were correct. none were set as player in the local script. how would i resolve this?
Spooce
(Spooce)
May 17, 2024, 5:20pm
2
OnServerEvent has an implicit player parameter that indicates the client that the call originates from. Hence, there’s no need to pass in the player manually.
This is also the case for the RemoteFunction.OnServerInvoke callback.
2 Likes
so how would i do this instead to keep my data accurate
Spooce
(Spooce)
May 17, 2024, 5:23pm
4
Your event listener doesn’t change. You just need to remove the first argument from your call:
remote:FireServer(prevws, jumpheight, special, combo)
2 Likes
system
(system)
Closed
May 31, 2024, 5:23pm
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.