Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to make choose number?

Asked by 6 years ago

Is it possible to make choose number 1 or 2

if the number that chosen is 1 then trigger the script 1 if the number that chosen is 2 then trigger the script 2

1
use math.random or other similar stuff GamingOverlord756 48 — 6y

3 answers

Log in to vote
0
Answered by 6 years ago

Have you even attempted it.

0
answer pls JohnnyTheGamer_YT -17 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

As said above, use Random Numbers to to select 1 or 2 and then use a simple If Statement to decide what happens afterwards! :)

0
thanks JohnnyTheGamer_YT -17 — 6y
Log in to vote
0
Answered by 6 years ago

By using "math.Random()" you can have it choose and random number.

For Example

Local Number = math.Random(1,10) --Choose what number with 1,10 etc--
    print(Number)
end

So if you want to change it to 1 or 2 then simply change 1,10 to 1,2 If this helped then your welcome just try next time. (You can get some help off the roblox wiki)

Answer this question