About 311,000 results
Open links in new tab
  1. Repeat code with while loops | Documentation - Roblox

    In this article, the while loop is used to repeat instructions forever. To create a while loop that repeats forever, use the syntax below, being sure to include instructions between the do and end keywords.

  2. While or repeat until? - Scripting Support - Developer Forum - Roblox

    Dec 8, 2022 · repeat until is a post-test loop. A while statement is not guaranteed to execute the code, if the condition is not initially met, as it tests before running the code. You should use whichever one is relevant to what you want it to do.

  3. Making a while loop without stopping the rest of my script

    Mar 19, 2022 · You can approach this in a few ways but you need to create another thread, you should read up on threading code. You want to either use a coroutine or task.spawn, both of which generally serve the same purpose: https://developer.roblox.com/en-us/api-reference/lua-docs/coroutine https://developer.…

  4. repeat-code-with-while-loops.md - GitHub

    Before creating the while loop for the color changing part, it's worthwhile to explain its syntax. 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 ...

  5. Loops | Documentation - Roblox Creator Hub

    Understand situations where loops are useful as opposed to alternative forms of writing a script. Be able to write out for and while loops, while identifying the syntax for both. Prerequisites: Have a general understanding of variables in Luau.

  6. Should I Use While True Do Or While Wait () Do? - Roblox

    May 22, 2020 · While wait loops are conditions in which a condition has to be met before it executes. Also I don’t recommend using heartbeat as it runs every frame. Technically both are similar but while true do will never end if it’s true or (something). end -- While loops while true do local part = Instance.new("Part") part.Parent = workspace. wait() end.

  7. Roblox Scripting Tutorial | Episode #8 - "While & Repeat Loops"

    This series will be fast-paced and will attempt to run through everything that you will need to begin making games on Roblox in a very speedy manner. I will try to teach as many useful things as...

  8. ROBLOX How To Script: While Loops (Zero to Hero #10)

    Mar 22, 2021 · This video covers how you can start using while loops (also called infinite loops) when you script on Roblox! This is part of a series of scripting tutorials...

  9. Lua Scripting Tutorial - 3 - Lua Learning

    In this episode, you've learned about while and for loops, as well as basic conditional statements in Roblox Lua scripting. These concepts are crucial for creating more dynamic and interactive games in Roblox.

  10. Loops - ROBLOX Lua Tutorials

    In Lua, there are 3 basic types of loops. They are while, for, and repeat. While Loops While loops repeat as long as a variable is the boolean "true." If you create a variable with a value other than false or nil, it is true. Astonishingly, "true" is always true, so it is often used in while loops. while true do -- while the variable is true ...

  11. Some results have been removed
Refresh