RemoteEvent giving wrong Values

An event get fired from a client script and it gives 3 value, but the server script receives them wrong

The client script

Button.MouseButton1Click:Connect(function()
	local ID = string.gsub(NewLobby2.ID.Text, "%D", "")  --%D replaces all letters with ""
	local Public =  NewLobby2.Public.Text
	print(Player,ID,Public)
	LobbyCreator:FireServer(Player, ID, Public)  --Firing the server and giving values
	
end)

The Server script

LobbyCreator.OnServerEvent:Connect(function(Player,ID,Public)
print(Player,ID,Public)
end)

What I get:
immagine_2024-02-20_172631504

First 2 arguments are the same because you provide it on client. Roblox automatically sets first argument as player to prevent security risks.

1 Like

oh it was that simple… thanks
resolved :slight_smile:

Mark dauser as the solution to close this post.

1 Like

Shouldn’t this be under scripting support instead of creations feedback? well at least you fixed your issue tho please do what AutoCompleted said

1 Like

yeah I noticed that too late… and I can’t mark the solution

1 Like