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

The Parent property of zombies is locked, current parent: NULL (how do i fix this error?)

Hello, I've been trying to work on this game and i keep on getting this error (and yes i did call the function in another line of code)

local zombieclones = game.ReplicatedStorage.zombies:Clone()
local roundLength = 10

local function Survive()
	print("Survive the Zombies")
	zombieclones.Parent = game.Workspace
	wait(roundLength)
	zombieclones:Destroy()
end

Basically, what I want the code to do is make a clone of a bunch of drooling zombies, make the clone's parent workspace, wait 10 seconds, and then destroy the clones. I don't understand what's happening. For 1 round, it does what it's supposed to, but then the next round, nothing happens. Can you guys help me out here?

1 answer

I figured it out, I just needed to reparent it instead of destroying it

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