Alright so basically, i’m making this “cloning” thing. And the second NPC is stiff for some reason and the script wont work on him?
Heres an example!
for i,v in pairs(NPCs:GetChildren()) do
local CLONED = v:Clone()
v.Head.BrickColor = BrickColor.new("Baby Blue")
wait(1)
CLONED.Parent = game.Workspace.NPC
end
And this script doesnt apply for the clone. Any ideas why?
Basically I want this to loop without lagging like crazy
for i,v in pairs(NPCs:GetChildren()) do
v.Head.BrickColor = BrickColor.new("Baby Blue")
local CLONED = v:Clone()
wait(1)
CLONED.Parent = game.Workspace.NPC
end
for i,v in pairs(workspace.NPCs:GetChildren()) do
local CLONED = v:Clone()
v.Head.BrickColor = BrickColor.new("Baby blue")
wait(1)
CLONED.Parent = game.Workspace.NPC
CLONED.Head.BrickColor = BrickColor.new("Baby blue")
end