
How do I make this script loop? - Scripting Support - Roblox
May 20, 2022 · I am working on a horror game, and it has a day and night cycle. After 10 minutes of night, there is five minutes of day (to act as a safe time). My current script will not loop. This is the code to my script: wait(600) game.Lighting.ClockTime = 12 wait(300) game.Lighting.ClockTime = 1
How do I repeat this script? - Scripting Support - Roblox
Mar 13, 2024 · I am very weak at scripting and need some help with repeating this script. wait(0.5) game.Workspace.Part.Transparency = 1 wait(0.5) game.Workspace.Part.Transparency = 0
Looping a local script - Scripting Support - Developer Forum
Jun 21, 2023 · Hello! im trying to make script i’ve made a while back ago looped or something like that. i just want it to keep playing nonstop script.Parent.Text = “10” wait(1) script.Parent.Text = “9” wait(1) script.Parent.Text …
Lua Loops | What are they, and how do I use them? - Resources
Jan 14, 2024 · Lua Loops What are they, and how do I use them? Background Luau, Roblox’s version of the programming language Lua, has a ton to offer when it comes to development. It’s a core element in game design that is needed to create a functioning experience. A loop is something we can run to receive a certain result over a period of time. Luau offers three versions of loops that we can use. Each of ...
How do I run a loop a set number of times? - Scripting Support
Sep 8, 2020 · this is something Ive been having doubts about, How can stop a function from running after it runs x number of times? (if I already have the function written and want to call it) sorry for not being specific
How Do I Loop An Animation - Scripting Support - Roblox
Jan 24, 2021 · How do I make an animation loop forever using a script? I tried this but nothing happens in game ...
How do I make the command 'repeat' repeat something forever
May 11, 2020 · I was making a memes of the day wall and I wanted to make it switch between 3 images. So I put a script and in that script I wrote: local MemePart = script.Parent wait(3) MemePart.Meme1.Transparency = 0 MemePart.Meme2.Transparency = 1 MemePart.Meme3.Transparency = 1 wait(3) MemePart.Meme1.Transparency = 1 MemePart.Meme2.Transparency = 0 MemePart.Meme3.Transparency = 1 wait(3) …
Trying to run a loop through a module script - Roblox
May 21, 2021 · is there a way to run a while true do loop through a module script? when I insert a loop blue and red lines appear under everything. I am trying to update it every few seconds. here is my script.``` local module = { Administrators = { [game.Workspace.OpenVip.OpenSpot1.Value] = 1, [game.Workspace.OpenVip.OpenSpot2.Value] = 1, [game.Workspace.OpenVip.OpenSpot3.Value] = 1, [game.Workspace.OpenVip ...
Scripts skips for loop problem - Scripting Support - DevForum
Jan 10, 2025 · Roblox code is serial which means it’s run in the order it has been written. That for loop should finish before the tower gets destroyed. To debug this could you remove the wait and place a print there. Make the print say “Moved on from for loop” and then in the for loop add a print saying “Looping”.
Best way to loop from server - Scripting Support - Roblox
May 21, 2019 · I feel like the use of while wait() do loops are frowned, but how else can I loop from the server?? And how can I get other scripts to run while this loop continuously runs. It’s in a module script, and is being required from a separate script that contains more code below the require. So I want the module to require, and run, without causing other modules to yield forever. local MoodService ...
- Some results have been removed