So, I know I can just use debris to add a value for a certain amount of time but,
game.Debris:AddItem(m1STUNT,.7)
Is there a way of doing this but instead of adding a item set a value to true for .7 seconds?
So, I know I can just use debris to add a value for a certain amount of time but,
game.Debris:AddItem(m1STUNT,.7)
Is there a way of doing this but instead of adding a item set a value to true for .7 seconds?
yes spawn it in a new thread:
local val = false
print(val)
spawn(function()
wait(.7)
end)
print(val)
you’ll see both printed false which means it ran even with the wait
You could use a delay.
local bool = true
delay(0.7, function()
bool = false
end)
You should be using task.spawn instead of spawn.
Use task.delay to create a new thread in a set timer.
local bool = false
task.delay(.7,function()
bool = true
end)