Ok lest say I got a local function. And on the end of that local function I do something for exemple,
local Thing = false
local function Test()
Thing = true
wait(2)
Thing = false
end)
And If I use wait(2) and If I had something using that local functions this will delay all I need because is waiting for 2 secounds.
I am making a gun(Freezer Ray) and when I shoot and I hit a player it makes a IceCube effects, it makes the player not able to move. but after 2 secounds I make the player able to move again.
The issue is if I do wait(2) the moving bullet will come after wait(2).
Any idea to use any other way for like “skip wait(2) but make it happen”