Hi
I have made loading screen but I have try to do like when skip button got clicked
the whole script will get stop except the line that handles button click request
I have to try to use
while not skip do
-- do stuff
end
but the script still continue until it ended
so I wanna have done there are the solution for this
Actually, since the condition is evaluated before anything within the do --- end block runs, the code will only run if skip ~= false, therefore an else block within that won’t ever run (because the former will only run if the condition returns true after evaluated, there won’t be any need for an invert statement within the block), you could still move the else outside.