local sc = workspace.Part local debounce = false local hitm = sc.music sc.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Torso") and debounce == false then debounce = true hitm:Play() wait(.5) hitm.Ended:Wait() debounce = false end end)
Make sure you are using r6 avatar and not r15. r15 has UpperTorso and LowerTorso. r6 has Torso. Hope this solves your problem
local sc = game.Workspace.Part local debounce = false local hitm = sc.music sc.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("UpperTorso") and debounce == false then debounce = true hitm:Play() wait(.5) hitm.Ended:Wait() debounce = false end end)