Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

zombie spawner!? why it doesnot works

Asked by
Filipalla 504 Moderation Voter
8 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.
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

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. Necrorave 560 — 8y
0
I can't read this... I would suggest using a loop maybe, or some events. Use a code block /: User#11440 120 — 8y
0
Necrorave i did not see the code block thing ween i was clicking edit 1 hour ago Filipalla 504 — 8y

1 answer

Log in to vote
-1
Answered by 8 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your 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

0
Identifier,got "(" It does not works Filipalla 504 — 8y
0
and what did u mean with 7? Filipalla 504 — 8y
Ad

Answer this question