Mobile screen rotation

I’m having a lot of trouble figuring out how to use the screen rotate function to move the player left and right

I already read this API on the subject but I couldn’t use it

example

I would detect if a certain axis on the Gyro CFrame is changing positively then move the player to the right and if the CFrame is changing negatively then move the player to the left. If this doesn’t work or you cant figure it out then just let me know and i’ll try scripting this myself and sending it to you.

PS: I’ve never seen any other games use this meaning that this either doesn’t work well or it’s just unknown.

2 Likes

I tried to do it the way you said but I couldn’t, I just realized that I don’t know any game with this mechanic either, I believe it must be very difficult to reproduce

use this resource,

You can use gyroscope to detect if the user is tilting the device.

2 Likes