--<Action Code>--


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);
