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

How can i create sphere from Instance.new()?

I want to spawn sphere by using Instance.new(), but there is no option to put "sphere" or something like this inside brackets.

local Sphere = Instance.new(" ", workspace)

while true do wait(2) Sphere SpherePosition = Vector3.new(-593.83, 80.892, 194.45) Sphere.BrickColor = BrickColor.new("Bright green") Sphere.CanCollide = false Sphere.Anchored = false

end

1 answer

You cannot insert a sphere directly from Instance.new() . What else you should do is change the type of a part from block to sphere. Write the code I have given below and it would work:

local Sphere = Instance.new("Part", workspace)
Sphere.PartType = Enum.PartType.Ball

And after you are done writing you will see that it is a sphere that is inserted in workspace.

2 comments

0

If my answer helps, then click please click "Accept Answer" beside my answer to mark your question as answered.

0

Wow, I've been scripting for 8 months and this is the first time I'm hearing about PartType. I feel dumb

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