script.Parent.Touched:connect(function(m)if m and game.Players:GetPlayerFromCharacter(m.Parent)then local C=game.Players:GetPlayerFromCharacter(m.Parent)local W=C.PlayerGui if not W:FindFirstChild("\095\080\108\097\121\079\110\084\111\117\099\104\101\100\083\111\117\110\100")then CreateSound(SoundID,Volume,C.PlayerGui)elseif W:FindFirstChild("\095\080\108\097\121\079\110\084\111\117\099\104\101\100\083\111\117\110\100")and(W:FindFirstChild("\095\080\108\097\121\079\110\084\111\117\099\104\101\100\083\111\117\110\100")).SoundId~="\114\098\120\097\115\115\101\116\105\100\058\047\047"..SoundID then(W:FindFirstChild("\095\080\108\097\121\079\110\084\111\117\099\104\101\100\083\111\117\110\100")):Remove()CreateSound(SoundID,Volume,C.PlayerGui)end end end)


script.Parent.Touched:connect(function(other)
	if other and game.Players:GetPlayerFromCharacter(other.Parent) then
		local player = game.Players:GetPlayerFromCharacter(other.Parent);
		local PlayerGui = player.PlayerGui
		
		if not PlayerGui:FindFirstChild("_PlayOnTouchedSound") then
			CreateSound(SoundID, Volume, player.PlayerGui);
		elseif PlayerGui:FindFirstChild("_PlayOnTouchedSound") and
			PlayerGui:FindFirstChild("_PlayOnTouchedSound").SoundId ~= "rbxassetid://"..SoundID then
			PlayerGui:FindFirstChild("_PlayOnTouchedSound"):Remove()
			
			CreateSound(SoundID, Volume, player.PlayerGui);
		end;
	end;
end);
