Hello ! I am wondering how could i insert a sphere by Instance.new
I have tried
1 | local part = Instance.new( "Sphere" ) -- ;-; wouldn't work obviously |
2 | part.Parent = game.Workspace |
Second bad script :
1 | local part = Instance.new( "Part" ) |
2 | part.Type = "Sphere" -- ;-; wouldn't work obviously |
3 | part.Parent = game.Workspace |
Thx for reading my bad english
This is how you change its shape.
1 | local part = Instance.new( "Part" , game.Workspace) |
2 | part.Shape = "Ball" |
You have to set the .Shape
property to a PartType Enum like so:
1 | local part = Instance.new( "Part" ) |
2 | part.Shape = Enum.PartType.Sphere |
3 | part.Parent = game.Workspace |