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

1 comment

3

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").