#Is there any ways to immediately stop wait(intermission)? i want to make something like skipp interm

36 messages · Page 1 of 1 (latest)

bright geode
#

no

#
while not skipped
  play(intermission)
end

button.clicked -> skipped = true
#

i frogot syntax crying

unreal iron
#

but can i make it instant skip

#

while time is goes

#

i can make it but howw

bright geode
#

what

unreal iron
#

like

bright geode
#

what are u trying to skip

unreal iron
#

well i want to stop wait function

#

like for example

#

wait(100)

#

and i want to make skip button

#

that will stop wait function

bright geode
#

you cant

#

wait halts the tread so no code can be "run"

#

so there really isnt a way to stop it

#

in the middle

#

but you can work around that

unreal iron
#

aaw

bright geode
#

is it a cutscene?

unreal iron
#

its intermisson between floors

#

im making elevator game

#

i want to make skip floor time

bright geode
#

you would need a loop

#

same way you would display the time remaining

bright geode
#
while true do
  wait(1)
  display()
  if skipped then nextFloor() end
end

if skip.clicked -> skipped = true end

something like that

#

it would be better with a runservice loop but it shouldnt change much for this

unreal iron
#

U mean i can make for example intermission check every 5 seconds if it skipped

high muskBOT
#

studio** You are now Level 7! **studio

unreal iron
#

Good idea but

unreal iron
#

Each floor has its time

#

So honesty idk how to do it then

#

Time gets from the value in each floor