Im making a meteor spawner so every ten seconds a meteor will spawn fifty times in the designated places. But why isnt it woking?
local server = game:GetService("ServerStorage")
local meteor = server.Meteor
while true do
wait(10)
for i = 50,1 do
wait(0.5)
local new = meteor:Clone()
x = math.random(-128.799,140.371)
z = math.random( -141.78,171.21)
new.CFrame = CFrame.new(x, 155.92,z)
new.Parent = workspace
end
end

3 comments
still isnt running
^ Did you wait 10 seconds? You added a 10 second wait so the meteors won't spawn until the wait is done.
now it works, thanks