Can't make drag multiselect for F3X

Hello, I am having trouble with implementing F3X Dragging Multiselect from PC to Mobile. I want it so that when the drag button is clicked, the screen should be able to move but you have to hold at any place and drag to enable the dragging. But it’s not working, is there anyway to fix this? My code:


Player.PlayerGui.F3XUI.BTGroupToolGUI.scope.Activated:Connect(function()
	connection = game:GetService("UserInputService").InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.Touch then
			Targeting.StartRectangleSelecting()
		end
	end)
	
	game:GetService("UserInputService").InputEnded:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.Touch then
			Targeting.CancelRectangleSelecting()
		end
	end)
	
end)

The script is in the core module script.

1 Like