When the game is started, the starting music is placed into the PlayerGui and played, and in the Roblox player, this music is heard! However, whenever a different music or sound effect is played or I attempt to stop playing the current music, nothing happens! All sounds work perfectly in Roblox Studio, but when I test it on Roblox, it doesn't work! Does anyone know what could be causing this? Thanks a bunch!

3 comments

0

no script or further information is given, how should we know? ._.

0

All music is first inserted into the PlayerGUI through this local script: local player = game.Players.LocalPlayer meMusicLevelOne = game.SoundService.meLevelOne meMusicLevelOne.Playing = true meMusicLevelOne.Parent = player.PlayerGui lobbyMusic = game.SoundService.City lobbyMusic.Playing = false lobbyMusic.Parent = player.PlayerGui

0

And then when the player touches a brick that teleports them to a different course and plays different music runs this: (target being the part which touched the brick, City being the music I want to play, and meLevelOne being the one to stop) game.Players:FindFirstChild(target.Parent.Name).PlayerGui.City:Play() game.Players:FindFirstChild(target.Parent.Name).PlayerGui.meLevelOne.Playing = false