Hi,
I am working on my camera system and my camera system detects MouseMovement and uses mousemovement to help function the camera.
Problem is, it uses userinputservice.inputbegan therefore, it’s not mobile compatible.
So now I am stuck on trying to figure out how to detect when a player is touching their screen.
I want to simulate this but for mobile
if input.UserInputType == Enum.UserInputType.MouseMovement then
print("continuasly printing out when a mouse moves")
How would I be able to do this?
1 Like
is this script local, if it is, get the players mouse (idk if this will work, but it may)
(BUT IT WILL WORK FOR PC)
local m = game.Players.LocalPlayer:GetMouse()
local function MouseMoved()
–put what ever here
end)
m.Moved:Connect(MouseMoved()
1 Like
This works for mobile too?
30charrssss
i would think (i would also recommend testing this)
I think I found the best way to do this.
Using contextactionservice I can connect this
Enum.UserInputType.Touch
with
Enum.UserInputType.MouseMovement
I’ll still solution you since I took your time. Sorry about that.
oh dont worry
have a good day
(xcharad)
1 Like
system
(system)
Closed
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.