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

How do I spawn a zombie every 10 seconds in a place? Pls help me!

I want what I say in title please help me. I have tried figuring out in youtube and stuff this but I still can not do this. Please help!

2 answers

This is so easy, try this out.

local Zombie = game:GetService("ReplicatedStorage").Zombie

while wait(10) do
	Zombie:Clone().Parent = workspace
end

Read the roblox's wiki. It is very helpful.

while wait() do
    part = Instance.new'Part'
    part.Position = Vector3.new(
        math.random(-256, 256),
        math.random(-256, 256),
        math.random(-256, 256)
)

    part.Parent = game.Workspace
end

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