#how to delay the reformation of terrain

13 messages · Page 1 of 1 (latest)

solemn bay
#

By delay do you mean just make it disappear after a while of being touched?

#

@timid zinc

timid zinc
#

so it does not reform to terrain right away so player can move it

#

if that makes any sense lol its hard to explain

solemn bay
#
task.wait(0) -- how many seconds
#

you could put a wait thing

#

if that's what you need

timid zinc
# solemn bay 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

solemn bay
#

Nice to know you got it . I recommend using task.wait() instead of wait()