I am new to scripting and editing GUIs and I am trying to learn more about sounds, I would really appreciate it if you answered
Make a part in the entrance to the room with a script in it, that clones the music into the Player's PlayerGui. You need to use :GetPlayerFromCharacter(), eg.
script.Parent.Touched:connect(function(p) local music = --whatever:Clone() if p.Parent:FindFirstChild("Humanoid") then local player = game.Players:GetPlayerFromCharacter(p.Parent) if player then if player.PlayerGui.Music then print("Music all ready") elseif player.PlayerGui.Music == nil then music.Parent = player.PlayerGui music.Name = "Music" music:Play() end end end end)
If this helps, accept the answer. It gives us both rep!
You would probably have to put the music in the LocalPlayer is my guess