So i'm making a game with music, and I want to show what song is playing in the corner of the screen. Can someone help me?
local Sound1 = game.Workspace.Sound.Sound1
local Sound2 = game.Workspace.Sound.Sound2
local Sound3 = game.Workspace.Sound.Sound3
local Sound4 = game.Workspace.Sound.Sound4
local Sound5 = game.Workspace.Sound.Sound5
local texty = game.StarterGui.ScreenGui.pp
------------------------------------------
while true do
Sound1:Play()
texty.Text = "Current Song: Driftveil City - Pokemon Black and White"
Sound1.Ended:Wait()
texty.Text = "Current Song: Stardust Speedway Past - Sonic CD"
wait(2.5)
Sound2:Play()
Sound2.Ended:Wait()
texty.Text = "Current Song: Dinklie - BFB OST"
wait(2.5)
Sound3:Play()
Sound3.Ended:Wait()
texty.Text = "Current Song: Dire, Dire, Docks - Super Mario 64"
wait(2.5)
Sound4:Play()
Sound4.Ended:Wait()
texty.Text = "Current Song: Dire, Dire, Docks - Super Mario 64"
wait(2.5)
Sound5:Play()
Sound5.Ended:Wait()
wait(2.5)
end

2 comments
I think there is a
Playingproperty of a song, maybe use the:GetPropertyChangedSignalto fire when it starts playing https://developer.roblox.com/en-us/api-reference/function/Instance/GetPropertyChangedSignal https://developer.roblox.com/en-us/api-reference/property/Sound/PlayingThat would work, but sounds also have an ended event. Just wait for that. Song.Ended:Wait()