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

2 comments

0

Explain what you mean by "won't work". Is there an error in the output? Does it not create the part?, etc.

0

nothing is showing in output