Temporarily making a boolvalue true without the use of task.wait()

I’m basically just trying to make a boolvalue setting to true for a bit seconds without the use of task.wait since it’ll yield everything else. Any ideas on how i can do this?
I know i can use function Value() but is there any other ways?

__BOOLVALUE.Value = true
task.wait(1) -- i dont need this
__BOOLVALUE.Value = false
task.delay(1, function() --// the first value is time
      __BOOLVALUE.Value = false
1 Like