main.userInputService.InputChanged:Connect(function(Y,p)if(Y.UserInputType==dragInput or Y.UserInputType==touchInput)and(not p or frameDragging)then if main.mouseDown then local p=(main.lastHitPosition-Y.Position).magnitude if p<150 or main.device~="\077\111\098\105\108\101"then if frameDragging then dragFrame(Y,frameDragging)end checkPressFunctions(Y.Position)end end end end)

main.userInputService.InputChanged:Connect(function(input, pressedUI)
	if (input.UserInputType == dragInput or input.UserInputType == touchInput) and (not pressedUI or frameDragging) then
		if main.mouseDown then
			local distanceBetweenLastPos = (main.lastHitPosition - input.Position).magnitude
			if distanceBetweenLastPos < 150 or main.device ~= "Mobile" then --Prevent weird behavior with multiple touch inputs
				if frameDragging then
					dragFrame(input, frameDragging)
				end
				checkPressFunctions(input.Position)
			end
		end
	end
end)
