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 5 years ago

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

Log in to vote
1
Answered by
Divistern 127
5 years ago
Edited 5 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: local part = Instance.new("Part") part.Parent = workspace part.Shape = Enum.PartType.Ball part.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 — 5y
0
You are right i noticed that when i saw the most recent answer. Divistern 127 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
local part = Instance.new("Part")
part.Parent = game.Workspace
part.Shape = Enum.Ball

Answer this question