Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Screen rotates with mobile when player tries to drag ArcHandle or Handle?!

I have a big issue where i am trying to script handles and archandles for mobile and if you have used handles or arc handles

you know that the player needs to drag the handles to move it

The problem is that for a mobile player when they drag a handle because it dosen't return true for gameprocessedevent it drags the entire sceren with it.

Now I already have had a solution with this problem which was to use MouseButton1Down to detect if a player has it dragged down which is then to turn the CameraType to Scriptable

But then the problem is when other fingers try to drag the screen at the same time while moving the handle it won't move the screen since the player has their HandleIsDown bool to true here's what I mean

ScreenGui.Handles.MouseButton1Down:Connect(function()
	PreviousDistance = 0 
	HandleIsDown = true
end)

ScreenGui.ArcHandles.MouseButton1Up:Connect(function()
	HandleIsDown = false
end)

So I am asking for a clearer solution to this in which I don't need to rely on MouseButton1Down which isn't even reccomended for use on Mobile.

Is there any other method I can go about doing this?

1 answer

set camera's Camera Mode to Enum.CameraType.Fixed whenever the player is holding the screen and for another input detection type thing you can try ContextActionService it allows you to create function and bind them and also create buttons for mobile As well

This discussion is preserved as it was. New answers, comments, and votes are closed.