Any help solving this error? THANKS (ERROR IS ON LINE 2)
local Assets = game.ReplicatedStorage
local infected = Assets:FindFirstChild('Infected')
getinf = infected:GetChildren()
i = getinf:Clone()
i.Parent = firstInfected
Any help solving this error? THANKS (ERROR IS ON LINE 2)
local Assets = game.ReplicatedStorage
local infected = Assets:FindFirstChild('Infected')
getinf = infected:GetChildren()
i = getinf:Clone()
i.Parent = firstInfected
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Infected hasn't loaded yet. Use Assets:WaitForChild('Infected'). If it still doesn't work, then Infected isn't loading and you need to fix the script where it is being created. Also, it's better practice to use game:GetService("ReplicatedStorage").