I have a screen that has the game logo and theres a "Play" button. How do I add music then make the music stop when the player clicks Play? Thanks!
You can just put a sound into a ScreenGui(or anywhere else in the PlayerGui but preferably in a ScreenGui for easier access).
Put this in a ScreenGui in a LocalScript. Make sure there's a sound in the ScreenGui as well as a TextButton.
local gui = script.Parent local sound = gui:WaitForChild("Sound") local button = gui:WaitForChild("TextButton") sound:Play() button.MouseButton1Click:Connect(function() sound:Stop() end)
Closed as Not Constructive by AntiWorldliness, JesseSong, youtubemasterWOW, Nguyenlegiahung, TaxesArentAwesome, and Fifkee
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?