local Part = Instance.new("Part") while true do wait(1) Instance.new("Part") Part.Size = Vector3.new(10, 10, 1) Part.CFrame = CFrame.new(50, 50, 50) Part.Parent = workspace Part.Name = "brick probaluy" print("part created") wait(1) end
does anyone know what i have done wrong?
on the top of your script, you create the "Part" variable containing a Part Instance then in your while loop you are changing the "Part" properties, not the new part properties (the one created in your while loop)
you have to do :
local Part = Instance.new("Part") while true do wait(1) local newPart = Instance.new("Part") newPart.Size = Vector3.new(10,10,1) newPart.CFrame = CFrame.new(50,50,50) newPart.Name = "the name you want" newPart.Parent = workspace print("part created") end