RemoteEvent not passing values correctly

Hey there!

So i have a local script, a script, and a module script.

The local script fires a remote event (server) passing on two values : ‘Map,MapValue’

‘Map’ contains the name of the Map which was clicked, and ‘MapValue’ is a StringValue inside a folder in each player’s Gui.

The script detects if the remote event is fired, and collects the 2 values passed on. However, for some reason ‘Map’ now has my name as its value. ‘MapValue’ also decides to have ‘Map’'s value when passed on for some reason.

Here’s the scripts: (Preformatted text wasn’t working for some reason)

Local script:

Script:

Feel free to ask any questions!

Any help is appreciated!

The first parameter from client > server is always player. So this should fix it
game.ReplicatedStorage.RemoteEvents.MapValueChanger.OnServerEvent:Connect(function(player, Map, MapValue)

2 Likes

I’ve tried that, but for some reason ‘Map’ (which was the second value) Still contained my name.

I’ll try again incase i missed something.

You only want to put the player argument on the server script.

3 Likes