Hello, today while fixing some bugs in my scripts: I’ve encountered an error, no matter how much I search about it I didn’t find the answer. Argument 1 missing or Nil
Here is the code:
for i,v in ipairs(game.Teams:GetChildren()) do
if v.TeamColor == gang.TeamColor then
game.ReplicatedStorage.GangSystem.ClientFire:FireClient() -- Error here
else
plr.Team = game.Teams:WaitForChild(gang.Name) -- gang is a team created by a script
end
end
(I also searched dev forum posts but still can’t understand my problem)
Thank you for your time