This code is for a song gui to toggle the song on and off. Please help my problem.
Player = game.Players.LocalPlayer
Button = script.Parent
Song = script.Parent.Parent.Parent.ElevatorMusic
Playing = false
function PlaySong()
if (Playing == false) then
Song:Play()
Playing = true
elseif (Playing == true) then
Song:Stop()
Playing = false
end
end
Button.MouseButton1Down:connect(PlaySong)

1 comment
Is this a server script, or a local script?