local sound = game.Workspace.Sound
local part = script.Parent
local function music()
if not sound.IsPlaying then
sound:Play()
end
end
part.Touched:Connect(music)
local sound = game.Workspace.Sound
local part = script.Parent
local function music(otherPart)
local humanoid = otherPart.Parent:FindFirstChild('Humanoid')
if humanoid then
if not sound.IsPlaying then
sound:Play()
end
end
end
part.Touched:Connect(music)