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

How do I fix this " Argument 1 missing or nil"?

20:28:02.264 - Argument 1 missing or nil Says the problems at line 12?

local rs = game:GetService("ReplicatedStorage")
local SAF = rs.SAF
local CPSU = rs.CPSU
local Immigrant = rs.Immigrant
local Citizen = rs.Citizen

local playerAdded = rs.PlayerAdded


game.Players.playerAdded:Connect(function(player)
	wait()
	playerAdded:FireClient()
end)

Citizen.OnServerEvent:connect(function(splayer)
	splayer.TeamColor = BrickColor.new("Navy blue")
	
end)

Immigrant.OnServerEvent:connect(function(splayer)
	splayer.TeamColor = BrickColor.new("Dark stone grey")
	
end)

1 answer

✓ Accepted answer

You need to supply the client that you wish to Fire the Remote's OnClientEvent for :)

On line 12:

playerAdded:FireClient(player)

2 comments

0

good job

0

Yeah Realised that after posting

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