Search results
To create a while loop that repeats forever, use the syntax below, being sure to include instructions between the do and end keywords. while true do -- Instructions
- Should I limit the amount of while true loops I put in my game ... - Roblox
You can try using a loop to do multiple things at once. What...
- Avoid using while true do & while wait() do! - Roblox
Many of you probably already know what while true do is but...
- Should I limit the amount of while true loops I put in my game ... - Roblox
26 paź 2022 · You can try using a loop to do multiple things at once. What not to do (unless you are breaking the loop): while true do --this will never stop, unless you add an if statement. wait() print("lol")
13 lis 2021 · Using while loops (especially while true do) is pretty chaotic coding and has a ton of potential to cause bugs in your game. Also do task.wait() instead of just wait(). It’s the new version of it
8 godz. temu · The game’s main loop goes something like this: a while true do going through checking to see if there are enough players to start the game, waiting a certain amount of time as intermission, getting all players in a for loop and constantly checking if the player is still in-game or if the description of a player applies to them.
4 maj 2024 · Instead of using a while loop with wait () inside, can’t you just get the time (using os.clock () I think), and since it’s in seconds, you can do something like so : while Status.Value do. local frames = -- put the number of frames for the TV you have here. local frame = (((os.clock()%8) * frames) // 8) +1.
10 lis 2022 · Many of you probably already know what while true do is but I am going to explain it to the beginner developers. while true do is a loop that will repetitively run code inside of it instantaneously unless the condition is set to false. This is also known as a while loop: while true do. print("Hello world!")
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.