If i put a part against it it welds but the music doesnt play
local soundbase = script.Parent.Parent.RadioBase
local removedpos = script.Parent.ABC
local debounce = false
function weld(hit)
local weld = Instance.new("WeldConstraint")
weld.Name = "Weldd"
weld.Parent = script.Parent
weld.Part0 = script.Parent
weld.Part1 = hit
end
local sounds = {
"forever",
"shadow"
}
script.Parent.Touched:Connect(function(hit)
if not debounce then
debounce = true
for value,name in ipairs(sounds) do
if hit.Name == name then
ON = true
soundbase:FindFirstChild(name):Play()
hit.CFrame = script.Parent.CFrame
weld(hit)
-- soundbase:FindFirstChild(name):Play()
print("done")
wait(3)
debounce = false
end
end
end
end)
script.Parent.TouchEnded:Connect(function(hit)
for value,name in ipairs(sounds) do
if hit.Name == name then
soundbase:FindFirstChild(name):Pause(true)
hit.CFrame = removedpos.CFrame
--script.Parent.Weldd.Part1 = nil
end
end
end)

7 comments
I MEANT TOUCHENDE
r u saying that when you touch a certain part it has to make sound? but it isnt ?
r u saying that when you touch a certain part it has to make sound? but it isnt ?
r u saying that when you touch a certain part it has to make sound? but it isnt ?
yes
so its like when i put a part against it it plays a sound if i remove it put it back it doesnt play
i answered your question