Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

I tried doing:

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

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

2 answers

✓ Accepted answer

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:

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

Hope this helped.

2 comments

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

0

You are right i noticed that when i saw the most recent answer.

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

This discussion is preserved as it was. New answers, comments, and votes are closed.