Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help with Firing a remote event and getting Argument 1 missing?

local BrickEvent = game.ReplicatedStorage.Events.Gui local click = script.Parent

click.MouseClick:Connect(function(click) BrickEvent:FireClient() end) that's the code I use to fire the even and it says the BrickEvent:FireClient() line has a missing argument 1 or nil

1 answer

✓ Accepted answer

When using remote events to fire the client via the server, a player object must be passed in the first argument so the server knows which client to fire, otherwise the server has no idea what client you want to execute code on.

BrickEvent:FireClient(PlayerObject -- Argument 1)

More information can be found on the developer wiki, here

This discussion is preserved as it was. New answers, comments, and votes are closed.