3rd Person Custom Camera Help

  1. What do you want to achieve? Keep it simple and clear!

I want to achieve a 3rd Person Over The Shoulder Camera where it’s in shiftlock while walking around but free cam when your standing still.

  1. What is the issue? Include screenshots / videos if possible!

Despite my best efforts I can’t get out of shiftlock smoothly and achieve the freecam I want when stationary.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I’ve tried offsetting the camera and forcing shiftlock but it doesn’t look right. And I don’t know how the free cam part would work. And I have looked for solutions on the dev hub but either none of them work or I’m doing something wrong.

Any help is welcome, thanks!

i am on mobile so bear with me now


local Players = game:GetService("Players")
local player = Players.LocalPlayer

local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local inMotion = false

humanoid:GetPropertyChangedSignal("MoveDirection"):Connect(function()
     if humanoid.MoveDirection > 0 and not inMotion then 
          inMotion = true
          -- player is in motion, toggle shift lock 
          -- you can either create your own shift lock system (ie loop cframing the players character to follow the cameras x orientation (or z? i forgot) 
          -- or just use an already existing shift lock module 
          -- (you may also be able to require the   player module mouse lock controller but that sounds like more effort
     elseif humanoid.MoveDirection == 0 then
          inMotion = false
          -- again, create your own system or use an existing one, i say don't reinvent the wheel for this one though
      end
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.