Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make this work?

function Begin()
local num = random.math(2)
print(num)
end

1 answer

✓ Accepted answer

First, it's math.random(2). Second, you need to call the function Begin().

Code:

function Begin()
local num = math.random(2)
print(num)
end

Begin()

2 comments

1

OK thanks.

1

He also forgot to tab his code. :)

This discussion is preserved as it was. New answers, comments, and votes are closed.