#Changing number script

1 messages · Page 1 of 1 (latest)

vernal stone
#

Hello! I need a script for a train number. And when it load it randomly selects a number. For like a numberplate.

#

SOS

dusky meteor
#

check your dms!

vernal stone
#

It should be always random:

ripe stream
#

only 4 digits?

vernal stone
#

3 would be better, but i need a 4 too

ripe stream
#
local function getRandomFourDigit()
    return math.random(1000, 9999)
end
vernal stone
#

How does it interact with the textlabel?

ripe stream
#

it'll just return a 4 digit number

#
local function getRandomFourDigit()
    return math.random(1000, 9999)
end


yourtextlabel.Text = getRandomFourDigit()

vernal stone
#

Does not work....

kindred umbraBOT
#

studio** You are now Level 1! **studio

ripe stream
vernal stone
vernal stone
ripe stream
#

whats the error you get

ripe stream