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 4 years ago
Edited 4 years ago

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

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

Second bad script :

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

Thx for reading my bad english

2 answers

Log in to vote
1
Answered by 4 years ago

This is how you change its shape.

local part = Instance.new("Part", game.Workspace)
part.Shape = "Ball"
0
Can you just make a "Ball" aka a sphere robthepoop123 9 — 3y
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 — 3y
Ad
Log in to vote
1
Answered by 4 years ago

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

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

Answer this question