OkCam - A freecam with mobile support

This script requires the latest version of the PlayerModule otherwise :GetMoveVector() always returns (0, 0, 0) for mobile

Setup: Just put this script in ServerScriptService
Get it on Roblox

Advantages:

  • Support both ClassicThumbstick and DynamicThumbstick.
  • Ignore Thumbzone when rotating the camera.

Disadvantages:

  • PlayerModule and ControlModule is required
  • Used TouchMoved instead of TouchPan (doesn’t work on studio btw)

Preview:
ezgif.com-gif-maker

22 Likes

Update V0.0.1:

  • Better thumbstick detection
  • Fixed some bugs

New version need to be placed in ServerScriptService for now :upside_down_face:

1 Like

Update V0.0.2:

  • Used ContextActionService instead of TopbarPlus
  • Updated Demonstration video

Update V0.0.3:

  • Gamepad supported press ButtonL1 & DPadRight at the same time to toggle

You are no intermediate programmer. If you’ve got the strict luau thing figured out here, and you coded functions like adjustTouchPitchSensitivity yourself, which is a math function I can’t figure out the contents of, you’re really good.

This is a huge help. I’ve been wanting to use the default freecam with mobile support forever because I want my game to be in freecam mode by default. Thanks a ton!

3 Likes

Update V0.0.4:

  • Rewrote the entire script
  • Fixed GetMoveVector() returns X & Z values above 1 or below -1
2 Likes