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

"Argument 1 missing or nil" don't understand?

The message in ourput:

  14:31:46.699 Argument 1 missing or nil  -  Server  -  Script:3

The code:

local EVENT = game.ReplicatedStorage.CarSpawn

EVENT:FireClient()

2 comments

2

When you use FireClient() you need at least one argument. Where the first must be which player should recieve the Event

2

If you don't know what arguments are you really must read up about it. But if you're trying to send it to all players, use FireAllClients() instead

1 answer

✓ Accepted answer

Since you are firing to the client here is why you are getting this error

You are not telling what player to fire to, FireClient needs a argument to know witch player will be affected

Heres a example

EVENT:FireClient(player)

FireClient fires to one client, means only you, Nobody else

FireClient can only be used in server scripts

EVENT.OnClientEvent will be what you use to see when the event is fired

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