Jump to content

Help - Filling Labels


manve1

Recommended Posts

I am trying to make a script which set one label to a random number between 1 and 90, but when i set it using math.random it sets it only to 1 number, and i want like to expand it, and have it like filled fully, till the end of the label, not just one number

local rp = guiCreateWindow( 0.1, 0.15, 0.8, 0.75, '', true ) 
local troll = guiCreateLabel( 0.05, 0.05, 0.9, 0.05, '', true, rp) 
  
setTimer( 
function() 
guiSetText( troll, math.random( 1, 90 ) ) 
end, 5000, 1 
) 

Edit: would it be possible to make all numbers different?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...