How can I fix this? Tried with all the parts in the workspace and it just does that. Setting it to a different material removes it. Obviously, creating a new part normally through the explorer with Plastic property doesn’t do that, as you can see from the smooth part.
local part = Instance.new("Part")
part.Anchored = true
part.Material = Enum.Material.Plastic
part.Parent = workspace
If you make a part in the studio by pressing part, it will not have studs like that.
If you make a part via script like you are doing, it will have studs like that.
You’ll need to add Smooth to the top and bottom surface via the script.
local part = Instance.new("Part")
part.Material = Enum.Material.Plastic
part.TopSurface = Enum.SurfaceType.Smooth
part.BottomSurface = Enum.SurfaceType.Smooth
--