while true do
local y = math.random(21,25)
local x = math.random(-227.7,-222.2)
local z = math.random(0,5.2)
s = Instance.new("Part")
s.Parent = Workspace
s.Size = 1,1,1
s.TopSurface = 1
s.BottomSurface = 1
s.BrickColor = BrickColor.new("Bright blue")
s.Anchored = true
s.CanCollide = false
s.Position = Vector3.new(x,y,z)
s.Name = Part
s:remove()
wait(1)
end
Whenever I run or play solo, it does not create any parts at all. Nothing happens.

5 comments
I always make errors like that. I'm bad at proof reading.
Also, it still only creates one block and then stops.
You need to make Part be in quotes on line 15. You are setting the name to a string value. So s.Name = "Part"
I did that, and now it doesn't do anything at all again.
("") Put part in there