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

Labels not updating, how do I fix it?

Asked by 4 years ago

I've created a script that will auto update the labels of a GUI. I've tried both Script and LocalScript, yet nothing is working for me. There are no errors whatsoever, which makes me think that the script isn't even running at all.

Here is my code if you need it:

001--[[
002 
003-- INFO --
004 
005Weather
006 
0070 = Normal
0081 = Rain
0092 = Thunderstorm
010 
011]]
012 
013-- Settings --
014 
015local songs = { -- All songs must be 60 seconds or longer (even 59.9999 is not recommended)
View all 108 lines...

Thanks!

0
"which makes me think that the script isn't even running at all" Have you tried adding a print at the top of your script to see if it runs or not? brokenVectors 525 — 4y

1 answer

Log in to vote
1
Answered by
tjtorin 172
4 years ago

The problem is that you are doing:

1timeOfDayLabel = timeOfDay..weatherString

when you need to do:

1timeOfDayLabel.Text = timeOfDay..weatherString

The reason for that is because the way you are doing it is changing the variable completely which is also why you are not getting any errors because technically it is correct.

0
Ohhh... CrastificeDude612 71 — 4y
0
If this answered your question, please mark this as the answer. @CrastificeDude612 ReadyHappiness 109 — 4y
0
Why is it not letting me? CrastificeDude612 71 — 4y
0
Finally... CrastificeDude612 71 — 4y
Ad

Answer this question