Hello,
I am trying to add mobile support to my game which is going well so far and I like the layout I have for it. On PC and Xbox the player looks at the cursor which is good. On mobile it is supposed to do that also, which it does but I don’t want it to do that when I jump or use the thumbstick.
It used to do it with the other UI but I used this bit of code:
local function CamMovement(position, processedByUI)
if UserInputService.TouchEnabled and not UserInputService.KeyboardEnabled and not UserInputService.MouseEnabled
and not UserInputService.GamepadEnabled and not GuiService:IsTenFootInterface() then
if equipped == true and rolling == false then
if processedByUI == false then
script.Parent.GyroPlayer:FireServer(mouse.Hit.p)
end
end
end
end
UserInputService.TouchTapInWorld:Connect(CamMovement)
(processedByUI seems to work for UI except the Thumbstick and Jump button)
Here is the footage of it happening (My character reloading and diving are results of me pressing the buttons on the right):