function onTouched(part)
local sound = script:FindFirstChild("Sound")
if sound then
if part.Parent:FindFirstChild("Humanoid") then
local player = game.Players:FindFirstChild(part.Parent.Name)
if player:FindFirstChild("PlayerGui") then
local sound2 = sound:Clone()
sound2.Parent = player:FindFirstChild("PlayerGui")
sound2:Play()
end
end
end
end
script.Parent.Touched:connect(onTouched)
--Sounds are not removed from the player when played, so the player is able to collect an abundance of sounds |