About 2,600,000 results
Open links in new tab
  1. How to wait untill a variable is true - Scripting Support - Roblox

    Mar 9, 2021 · But I need to know how to make a “wait until a variable is true” script for my Intermission. You could do something like this: wait() --insert script here until variable == true. …

  2. How to set Var to true once find true inside table ... - Roblox

    Aug 10, 2022 · how do I set 1 Variable to true Once Find 1 value True inside table (used for Loops)? dictionary table: ['element1']=false, ['element2']='abcdefg', ['element3']=true, ['element4']=false. if key==true then. print(index,key,' is true') end. default table: false,'abcdef',false,true,false. if k==true then. print(k,' is true') end.

  3. Repeat code with while loops | Documentation - Roblox

    Set the variable to the looping part by typing = workspace.LoopingPart on the same line. Remember that the = operator sets the value of a variable to whatever is on the right of it.

  4. (SOLVED) How To Make A Loop Only Happen When A Value Is True ... - Roblox

    Apr 18, 2022 · You would just remove the line that sets it to true. local value = ... -- if the value is set to false exit the function early and do nothing. if value == false then return end.

  5. Changing true to false - Scripting Support - Developer Forum - Roblox

    Dec 31, 2020 · When it is clicked the first time, it runs what is in the toggle == false, and then changes it to true, and but when it runs the else on the second click, it does not change it back to false. robloxapp-20201231-1617057.wmv (442.9 KB)

  6. Variable Declarations inside a loop - Scripting Support - Roblox

    Mar 13, 2022 · player.playerinfo.IsGhost.Value = true. if HumanoidRootPart ~= nil then. HumanoidRootPart.Position = GhostSpawns[Index].Position. end. variable inside of a loop. --- Teleports all the ghosts. for i,player in pairs(ghosts) do. local GhostTag = Instance.new("StringValue") GhostTag.Name = "ghost" GhostTag.Value = player.Name.

  7. How FindFirstChild(), WaitForChild, etc. work and how to use ... - Roblox

    6 days ago · local Humanoid = hit.Parent:FindFirstChild("Humanoid") if Humanoid then -- Humanoid.Health = 0 --Making a Humanoid variable end The FindFirstChild() function has a second parameter. If you set it to true, it will be recursive, means if there’s no child with that name, then it will also search the descendants.

  8. Intro to for loops | Documentation - Roblox Creator Hub

    For loops use three values to control how many times they run: a control variable, an end value, and an increment value. Starting from the value of the control variable, the for loops will either count up or down each time it runs code inside the loop until it passes the end value.

  9. Loops and arrays | Documentation - Roblox Creator Hub

    Use a for loop to go through the array and control how fast the parts should disappear in the order the parts are indexed within the array. To control how often a part disappears in seconds, create a variable named VANISH_RATE .

  10. Loops | Documentation - Roblox Creator Hub

    Use a common loop that repeats instructions for a set amount of times. Practice using for loops by making lights glow. A more advanced implementation of a for loop that makes a bridge disappear and reappear. Add a loop within a loop for more complex behavior and code.

Refresh