About 380,000 results
Open links in new tab
  1. How to wait a random amount of time? - Scripting Support - Roblox

    Sep 22, 2021 · wait(randomwaittime) -- HERE local randomsize = randomnumber1:NextNumber(0.01, 0.2) bar:TweenSize(bar.Size + UDim2.new(randomsize, 0, 0, 0), 'InOut', 'Quart') end.

  2. How do I use math.random - Community Tutorials - Roblox

    Mar 22, 2023 · In short: math.random() returns a random number. return math. random (1, 6) end print (rollDice()) This script prints a random integer between two numbers (1 and 6). Why is this helpful? please never user while wait () loops. What would you …

  3. Greetings. How can I make math.random refresh? - Roblox

    Oct 27, 2022 · math.random is always random unless you make it a local in which case you will have to re-set it as math.random every time. It would be something like this. Wait(5) -- Change the wait time to how long you want it. Local Number = Math.Random(1, 10) -- Change the numbers to what number you want it to generate between. Print(Number)

  4. math.random | Documentation - Roblox Creator Hub

    When called with two integer numbers m and n, returns a uniform pseudo-random integer in the range of m to n, inclusive. Internally, this uses a 32-bit PCG (Permuted Congruential Generator) which achieves excellent statistical performance and makes its output hard to predict.

  5. math.random and how to do random : r/roblox - Reddit

    Apr 12, 2015 · math.randomseed is only effective until the script yields (waits), for even one game tick (wait () without an argument, or wait (0), 1/30th of a second).

  6. Random Wait Timing - Roblox Forum

    Jul 6, 2021 · It will wait your 120 seconds or whatever number you set before turning the boolValue to false again. Then it will pick a random number between 5 & 2700 again and begin counting down again. If no player changes the number, it will keep it's original counting down.

  7. A quick question about the wait() command. : r/roblox - Reddit

    Dec 7, 2020 · local number = math.random(min, max) wait(number) Min is the smallest number and max is the largest. It'll pull a random number between the two. I'm on my phone, sorry for formatting.

  8. how to make math.random() have DIFFERENT results? I'm trying …

    Jan 17, 2023 · Easy fix: Basically, move that line and put it into the function so that it draws a new number when you click. Better fix: Make a table, assign the sound IDs to the table. Use math.random to grab a sound ID so you don't have to write the same lines over and over when you add more sounds.

  9. Wait (math.random ()) isn't working - Scripting Support - Roblox

    Jan 15, 2025 · math.random() only returns whole numbers, so you can multiply by a decimal like 0.1, I also recommend doing task.wait(…).

  10. Roblox math.random | How to use math.random() efficiently in Roblox

    Sep 21, 2022 · Roblox math.random is a function used in Roblox Studios to generate a random value within some range. This function is handy to spawn different items. The function returns a pseudo-random value between 0 and 1 if it is called without any parameter.

  11. Some results have been removed
Refresh