#how to delay the reformation of terrain
13 messages · Page 1 of 1 (latest)
basically just trying to delay reforming the terrain voxel if it has moved/been pushed recently
so it does not reform to terrain right away so player can move it
if that makes any sense lol its hard to explain
task.wait(0) -- how many seconds
you could put a wait thing
if that's what you need
cd = 2
function countdown()
local pos = part.Position
local tolerance = 3
wait(1)
if (pos - part.Position).magnitude <= tolerance then
cd = cd - 1
else
cd = 2
end
if cd > 0 then
print(cd)
countdown()
else
workspace.Terrain:FillBall(pos, 1, Enum.Material.Grass)
part:Destroy()
end
end
countdown()```
i got it
this is what i was tryna do
but i couldnt figure it out lol
Nice to know you got it . I recommend using task.wait() instead of wait()