DEV Community

Kaede Games 🎮
Kaede Games 🎮

Posted on

Roblox 🎮 How to set multiple augments in RemoteEvent

Be careful when setting multiple augments in RemoteEvent of Roblox.

Firing Side

demoRemoteEvent:FireClient(player, value1, value2, ...)

Enter fullscreen mode Exit fullscreen mode

Event Side

demoRemoteEvent.OnClientEvent:Connect(function(value1, value2, ...)
    print("value1: "..value1)
    print("value2: "..value2)
end)

Enter fullscreen mode Exit fullscreen mode

It's important that you shouldn't contain player in the Event function side.

Top comments (1)

Collapse
 
dannymorson profile image
dannymorson

Hey there! 👋 When setting multiple arguments in RemoteEvent for Roblox, be cautious. On the firing side, use :FireClient(player, value1, value2, ...), and on the event side, connect with OnClientEvent:Connect(function(value1, value2, ...) without including the player. Happy coding! 🚀 #RobloxDev 🎮