how do you make music play in a screengui? for example, i'm making a game and i have a title screen with labels and buttons, right? and then, i want to add music that lasts until you select the button to play the game! which has it's script that works already
PLAYGAME.MouseButton1Click:Connect(function() Frame.Visible = false end)
then, i try to create the music part, but it doesn't work
--variables--
Sound = script.Parent.Sound
PLAYGAME = script.Parent.PLAYGAME
--scripts--
Sound:Play()
Sound.Playing = true
PLAYGAME.MouseButton1Click:connect(function()
Sound.Playing = false
end)
if im doing something wrong then please tell me that would really help! thanks!
edit: the PLAYGAME button is inside of a frame inside of a ScreenGui and inside of the StarterGui folder. the Sound, i moved to the workspace

1 comment
i'm an amateur at scripting sorry :|