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

How do I make a part a sphere from a part I already made?

Asked by 6 years ago

I tried doing:

1local part = Instance.new("Part")
2part.Shape = "Sphere"

It did not work how I make a part transform to a sphere??

2 answers

Log in to vote
1
Answered by
Divistern 127
6 years ago
Edited 6 years ago

The shape property isn’t Sphere it is Ball yeah it is that blank it’s just Ball
And you can make one with code like in the following;

Code:

1local part = Instance.new("Part")
2part.Parent = workspace
3part.Shape = Enum.PartType.Ball
4part.Size = Vector3.new(4, 4, 4)

Hope this helped.

0
Parent last, and use enums. It is better practice.Use `Enum.PartType.Ball`. Read this https://scriptinghelpers.org/questions/61752/why-should-scripters-use-enumeration-rather-than-strings#60171 User#24403 69 — 6y
0
You are right i noticed that when i saw the most recent answer. Divistern 127 — 6y
Ad
Log in to vote
0
Answered by 6 years ago
1local part = Instance.new("Part")
2part.Parent = game.Workspace
3part.Shape = Enum.Ball

Answer this question