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

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

Asked by 5 years ago

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!

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
valchip 789 Moderation Voter
5 years ago

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.

Ad
Log in to vote
0
Answered by 5 years ago
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