|
Hi all,
How do I script it that every 5 minutes a new tips is on the bottom of the screen? I'd have lets say 20 tips stored and it'd randomize every minute and change |
|
|
|
hints = {"HI","HELLO"}
while true do
wait(300)
rand = math.random(1,2)
script.Parent.TextLabel.Visible = true
script.Parent.Text = hints[rand]
wait(3)
script.Parent.TextLabel.Visible = false
end |
|
|
Have a screen gui and a textlabel for the hint layout then that script in the screen gui
also name the textlabel "TextLabel" |
|
|
Also leave the textlabel invisible |
|
|
How to make text label invisible? |
|
1pie23Join Date: 2010-07-11 Post Count: 1865 |
select it>properties>Visible>false |
|
|
It doesnt work. It just shows label. I made the background transparency to 1 to make invisible. I added "local" before hints so it becomes a variable..... Also is this correct? ######################## |
|
|
It doesnt work. It just shows label. I made the background transparency to 1 to make invisible. I added "local" before hints so it becomes a variable..... Also is this correct? -->
Starter Gui
Tips (GUI)
Script
TextLabel |
|
|
Tried that too, now nothing shows up. |
|
|
I can read scripts (I can understand every code) and I must say it is correct,the issue might be in the fact that you've used wrong 'script' format and/or not put the script into the TextLabel. |
|