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

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

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
3
Answered by 4 years ago
Edited 4 years ago

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.

0
If my answer helps, then click please click "Accept Answer" beside my answer to mark your question as answered. Shounak123 461 — 4y
0
Wow, I've been scripting for 8 months and this is the first time I'm hearing about PartType. I feel dumb LeedleLeeRocket 1257 — 4y
Ad

Answer this question