I am writing a script to create a circle with the volume filled in.
This is what I want:
But instead, this is what I’m getting:
I have tried multiplying the size of the with the b
for b = 1, 3 do
local c = b - 1
for i = 1, 4 * (b - 1) do
local Plane = game.ReplicatedStorage.Levels.Plane:Clone()
Plane.Position = Vector3.new(math.sin(i * math.pi / 2), 0, math.cos(i * math.pi / 2)) * (2046*c)
Plane.Parent = workspace
end
end
but it does not seem to fully work.
Here’s the full script:
function Draw_Circle()
local Plane = game.ReplicatedStorage.Levels.Plane:Clone()
Plane.Position = Vector3.zero
Plane.Parent = workspace
for b = 1, 3 do
local c = b - 1
for i = 1, 4 * (b - 1) do
local Plane = game.ReplicatedStorage.Levels.Plane:Clone()
Plane.Position = Vector3.new(math.sin(i * math.pi / 2), 0, math.cos(i * math.pi / 2)) * (2046*c)
Plane.Parent = workspace
end
end
end