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()
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()
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.
2 comments
When you use FireClient() you need at least one argument. Where the first must be which player should recieve the Event
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