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

zombie spawner!? why it doesnot works

local ZombieRemove = script.Parent.Zombies:FindFirstChild("Drooling_Zombie")
if script.Parent:FindFirstChild("Zombies")and script.Parent.Zombies:FindFirstChild("Drooling_Zombie")  then
	wait(1)
else
        ZombieRemove:destroy()
	game.Lighting.Zombies:clone().parent = workspace
end

the location for the script is workspace

3 comments

2

Please use the code block format to help us read your code easier. Edit your question by clicking "Edit" under your avatar on the right side.

0

I can't read this... I would suggest using a loop maybe, or some events. Use a code block /:

0

Necrorave i did not see the code block thing ween i was clicking edit 1 hour ago

1 answer

This is the correct script

local ZombieRemove = script.Parent.Zombies:FindFirstChild("Drooling_Zombie")

if script.Parent:FindFirstChild("Zombies")and script.Parent.Zombies:FindFirstChild("Drooling_Zombie")  then

    wait(1)

else

       ZombieRemove:destroy()

    game.Lighting.Zombies:clone().parent = workspace
if touched: (on touch) then spawn game.Workspace.Zombies
7
end

2 comments

0

Identifier,got "(" It does not works

0

and what did u mean with 7?

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