Variables sent with remote event are wrong

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!
    I would like to be able to send the three variables right.

  2. What is the issue? Include screenshots / videos if possible!
    The issue is that my local script that send the variables send doubles.
    They should be Player, Color, Name but the script send Player, Player, Color.
    I’ve checked the contenute of the variables before sending them, but they are all right. They arrive wrong to the event linked script tho.

Local Script

Event:FireServer(player, Color, Nome)

Script linked to the event

local function Send(Player, Color, Name)
--Variables swapped here. 
--Player has the player Value
--Name has the Color value (when it should have the name)
--Color has the player value (when it should have the color)
end

Event.OnServerEvent:Connect(Send)
  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    tried searching around why, found nothing.

Could you show me the full script?

1 Like

the player automatically is a variable, you dont have to send it within the local script

1 Like

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