Roblox has updated the location of the script but it should be relatively in the exact place. Press Play in studio. Then in the Explorer locate StarterPlayer. Then click the drop-down menu on StarterPlayersScripts. You will see a script called RbxCharacterSounds. This is the new sound script. Once you have the script you can follow the rest of the video from 0:55
Here's an updated version that works for me. Note: Just make sure your sounds have "PlayOnRemove" checked, and change the statements so they find your sounds where you placed them. Put this script in the same Parent GUI that the button is inside of also. wait(0.5) local Button = script.Parent.TextButton local MouseHover = script.Parent.TextButton.MouseHover local MouseClick = script.Parent.TextButton.MouseClick Button.MouseEnter:Connect(function() local MouseHover = script.Parent.TextButton.MouseHover local clone = MouseHover:Clone() clone.Parent = MouseHover.Parent clone:Remove() end) Button.MouseButton1Down:Connect(function() local MouseClick = script.Parent.TextButton.MouseClick local clone = MouseClick:Clone() clone.Parent = MouseClick.Parent clone:Remove() end)
Dog12goats Dev, it’s working but it won’t let my players purchase any of the swords in the shop, can you tell me why? Also some of the lines that is required were a comment - -
Tick the "PlayOnRemove" on both your sounds, then add this script to the Parent of your TextButton: wait(0.5) local Button = script.Parent.TextButton local MouseHover = script.Parent.TextButton.MouseHover local MouseClick = script.Parent.TextButton.MouseClick Button.MouseEnter:Connect(function() local MouseHover = script.Parent.TextButton.MouseHover local clone = MouseHover:Clone() clone.Parent = MouseHover.Parent clone:Remove() end) Button.MouseButton1Down:Connect(function() local MouseClick = script.Parent.TextButton.MouseClick local clone = MouseClick:Clone() clone.Parent = MouseClick.Parent clone:Remove() end) --Note, you will have to change the locations for your MouseHover and MouseClick sounds accordingly to where you have them placed.