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

Why don't it create the stars?

Asked by
22To 70
9 years ago

I made this script thats suppose to create stars in workspace all around the map but it wont work.

x = #script.Parent:GetChildren() - 1

while x < 20000 do
    wait()
    p = Instance.new('Part', Workspace.Stars)
    p.Size = Vector3.new(1, 1, 1)
    p.Material = "Neon"
    p.Anchored = true
    p.Locked = true
    p.CanCollide = false
    p.Position = Vector3.new(math.random(-300,300) - 4.5,math.random(-200,200) - 6.69, math.random(-300,300)+2.3)
end
0
Explain what you mean by "won't work". Is there an error in the output? Does it not create the part?, etc. PreciseLogic 271 — 9y
0
nothing is showing in output 22To 70 — 9y

Answer this question