Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How to insert a sphere instead of a part by Instance.new ?

Asked by 5 years ago
Edited 5 years ago

Hello ! I am wondering how could i insert a sphere by Instance.new I have tried

1local part = Instance.new("Sphere") -- ;-; wouldn't work obviously
2part.Parent = game.Workspace

Second bad script :

1local part = Instance.new("Part")
2part.Type = "Sphere" -- ;-; wouldn't work obviously
3part.Parent = game.Workspace

Thx for reading my bad english

2 answers

Log in to vote
1
Answered by 5 years ago

This is how you change its shape.

1local part = Instance.new("Part", game.Workspace)
2part.Shape = "Ball"
0
Can you just make a "Ball" aka a sphere robthepoop123 9 — 4y
0
This is how to make a "ball". If you want to just insert it then you can put one in server storage and clone it. This is the most efficient way though. kingblaze_1000 359 — 4y
Ad
Log in to vote
1
Answered by 5 years ago

You have to set the .Shape property to a PartType Enum like so:

1local part = Instance.new("Part")
2part.Shape =  Enum.PartType.Sphere
3part.Parent = game.Workspace

Answer this question