Can somebody explain sending data through remote events?
So i'm trying to learn how remote events work and i'm seeing that you can send data, I'm having trouble with this,
This is my local script, in StarterPack
01 | local usi = game:GetService( "UserInputService" ) |
02 | usi.InputBegan:Connect( function (imput, typing) |
06 | if imput.KeyCode = = Enum.KeyCode.F then |
07 | local x = game.ReplicatedStorage.RemoteEvent |
08 | x:FireServer(workspace.Baseplate.Color, game.Players.LocalPlayer.Name) |
When you press F the local script executes a remoteevent serversided.
This is my server script
1 | local event = game.ReplicatedStorage.RemoteEvent |
2 | event.OnServerEvent:Connect( function (basecolor, plrname) |
When i press F, it prints 2 sets of information, But not what i want, first it prints my characters name(Entity_246) then coordinates (0.388235, 0.372549, 0.384314), What am i missing? are these values preset by Roblox and they have to be preset, or can i customize them?
Thanks for any help :)