Advertisement
4zx16

Music Gui (Now Playing Track)

Nov 21st, 2021 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || CURRENT TRACK
  3. ]]
  4. local Display = script.Parent
  5. local currentTrack = game:GetService("ReplicatedStorage").CurrentTrack
  6.  
  7. if currentTrack.Value == "..." then
  8.     Display.Text = currentTrack.Value
  9. else
  10.     Display.Text = "Now Playing: ".. currentTrack.Value
  11. end
  12.  
  13. currentTrack:GetPropertyChangedSignal("Value"):Connect(function()
  14.    
  15.     if currentTrack.Value == "..." then
  16.         Display.Text = currentTrack.Value
  17.     else
  18.         Display.Text = "Now Playing: ".. currentTrack.Value
  19.     end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement