Hello! I am facing a problem. I already know how to make a sound only play for a specific player. And YES this is a local script, I was wondering why the sound won't play when the part is touched. Also i have collisions off and i spawn at the top of my lobby which is weird. And the LobbyMusicPart is in workspace, and no errors too.
Here is the script...
local LobbyMusicPart = game.Workspace.LobbyMusicPart local playergui = game.Players.LocalPlayer:WaitForChild("PlayerGui") local LobbyMusic = Instance.new("Sound")
LobbyMusic.Name = "LobbyMusic" LobbyMusic.Parent = playergui LobbyMusic.SoundId = "rbxassetid://2458556355"
if LobbyMusicPart.Touched == true then LobbyMusic.Playing = true else LobbyMusic.Playing = false LobbyMusic.TimePosition = 0 end

1 comment
Where does this script exist?