I am trying to delete a big chunk of terrain, that can’t be deleted at once(It’s a sphere). I was wondering, maybe I can somehow use For loop and Pi? Thanks for help!
I can’t delete it at once, it’s too big.
Maybe something like this?
Im on my phone so I cant test it
local Center = Vector3.new(0,0,0)
local Increments = 25
local Radius = 250
for i = 1, Increments do
task.wait()
local Alpha = i / Increments
local FinalRadius = Alpha * Radius
workspace.Terrain:FillBall(Center, FinalRadius, Enum.Material.Air)
end
It just starts at a point and slowly increases the radius of the fill.
If you want to find the radius and center of the chunk, you could use a part with its shape set to ball, and after placing it and scaling it proportionally to the chunk, the position is the Center and an axis of its size divided by 2 is the Radius
I probably made my description a bit confusing, sorry for that. I actually meant a sphere, which is bigger than max radius of the FillBall function.