Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. Learn how to use while loops with Roblox's Luau language in this computer science lesson.

  2. 6 paź 2024 · you can make a while loop inside of function, then trigger the function with needed conditions. metatablecatmaid (metatablecat) October 6, 2024, 3:14pm #4. if you mean jump back to the start of a while loop, you can use the continue statement. 1 while true do. 2 while true do. 3 local command = getCommand()

  3. 11 cze 2021 · You can restart a while loop only if you can start it with a function. local function startLoop() while something do -- super random ninja horse code end end startLoop() -- just call this

  4. 2 sie 2020 · So, I’m making a game inspired to piggy, and I’m checking if all the players left in a while loop. Code: coroutine.wrap(function() while true do repeat wait() until #WaitingPlayers >= 1 wait() for i = IntermissionTime,0,-1 do if #WaitingPlayers < 1 then break end game.ReplicatedStorage.Values.IntermissionTime.Value = 'Intermission ('..i ...

  5. 13 paź 2021 · You’re looking for a function: local function doStuff() local Amount = 1. while task.wait() do. Amount += 1. if Amount == 5 then. print("Reached 5") Amount = 0. --Return to start somehow.

  6. 29 cze 2021 · Inside the statement where you want the loop to stop, add a break. Alternatively, you can put the reverse of your statement right after while, because a while loop is a statement checker after all. Or use a repeat until loop. create.roblox.com

  7. A while loop has three components: The while keyword. A condition, always after the keyword. Instructions, between the do and end keywords. In loops, conditions can be a variety of logical statements. Some examples might be if two numbers are the same. A loop will run if its condition is true.

  1. Ludzie szukają również