Part Spawner
Part Spawner
Part Spawner
Where to put this script
Where to put this script
In the part you want to be the spawner
In the part you want to be the spawner
Script Program
Script Program
local part = script.Parent
local canSpawn = true
local function newPart()
if canSpawn then
canSpawn = false
local new = Instance.new('Part')
new.Parent = game.Workspace
new.Position = Vector3.new(math.random(-50,50), 1, math.random(-50,50))
wait(3)
canSpawn = true
end
end
part.Touched:Connect(newPart)