How can I make the camera in 3rd person but it supports mobile and console?

So I am currently trying to make a system like this, I can do it with pc cause I can just make the camera point towards the mouse so easy peasy. As for mobile and console there isnt exactly a mouse so like what should I do?

Pretty sure they have gyroscope? (read: attitude sensor) so you like, aim your phone for camera?

you could figure out wether the phone is tilted up or down using the accelerometer to detect the direction of gravity.
You could detect horizontal rotation change using gyroscope (but if you need to know absolute horizontal rotation, time for multivarible calculus)

Like if you turn your phone one way I could rotate it that way?

If you ask me that sounds horrible, I’ve played games like that and its a pain. Any other ways?

hmmm finger???

in my opinion, pointing your phone whatever direction the camera is at sound intuitive but I mean, not my game lol

I’d base this off of InputTypes rather than platform, but that’s also not a great idea. For gamepads, you can track the ThumbSticks. Not sure about mobile.

Instead of that, which would support all inputTypes, would be to base the camera movement off of where the player is moving. Roblox has an example of camera manipulation on the Humanoid.MoveDirection docs.