Any ideas? Thanks!
function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then
local p = game.Players:FindFirstChild(part.Parent.Name)
if p ~=nil and p.PlayerGui.RecordRoomMusic.IsPlaying.Value == true then
p.PlayerGui.RecordRoomMusic:Stop()
end
end
end
script.Parent.Touched:connect(onTouch)
Note - the music is definitely playing when I step on the brick and there are no errors in the output

2 comments
IsPlaying is a roperty of a sound, it is not an individual Bool value. Remove the '.Value'
OK - thanks, I changed that but it still doesn't work :/