How do I change a Player's GUI depending on a property?
I'm currently working on a GUI that shows the player what song is currently playing. I have gotten a Sound object with a script that keeps changing the song, and it works just fine. And I've also done a GUI in StarterGui that shows everything.
I have a Gui, Frame and TextLabel, inside the TextLabel is a script, that should change the player's GUI based on that property, this is how it looks like:
03 | local sound = game.Workspace.Misc.PlaySongs |
04 | local playerGui = game.Players.LocalPlayer:WaitForChild( "PlayerGui" ) |
05 | local text = playerGui.CurrentSong.Frame.SongName |
11 | if sound.SoundId = = 3734646965 then |
12 | text.Text = "Buttercup" |
13 | elseif sound.SoundId = = 1560173003 then |
14 | text.Text = "Oh Klahoma" |
15 | elseif sound.SoundId = = 3524204087 then |
16 | text.Text = "Dead Weight" |
17 | elseif sound.SoundId = = 4664971308 then |
18 | text.Text = "Life Could Be A Dream!" |
19 | elseif sound.SoundId = = 3687583783 then |
21 | elseif sound.SoundId = = 4509807932 then |
22 | text.Text = "Chill Mix idrk lol" |
But it doesn't change anything, I've tested it with a print("") as well, for some reason it does not see when the property is changed. Any help would be greatly appreciated! Thanks!