Start building

Roblox Over-the-Shoulder Camera Toggle Script

Press V to smoothly slide the camera over your character's right shoulder — ideal for shooters and combat games.

Type: LocalScriptExplorer: StarterPlayer > StarterCharacterScriptsLevel: Beginner
LocalScriptStarterPlayer > StarterCharacterScripts
-- LocalScript in StarterCharacterScripts
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")

local humanoid = script.Parent:WaitForChild("Humanoid") :: Humanoid
local enabled = false
local SHOULDER_OFFSET = Vector3.new(2.2, 0.6, 0)

UserInputService.InputBegan:Connect(function(input, gp)
	if gp or input.KeyCode ~= Enum.KeyCode.V then return end
	enabled = not enabled
	TweenService:Create(humanoid, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {
		CameraOffset = if enabled then SHOULDER_OFFSET else Vector3.zero,
	}):Play()
end)

How to install in Studio

  1. Place this LocalScript inside StarterPlayer > StarterCharacterScripts.
  2. Press Play and tap V to toggle the over-the-shoulder camera view.

Tips & customization

  • Pair with UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter for a full custom shift-lock mode.

Common questions.

Does CameraOffset work with Roblox's default camera controller?

Yes — Humanoid.CameraOffset automatically shifts the default camera without breaking wall collision.

More free Luau scripts.

All 16 scripts

Skip manual wiring.
Let Revix code & playtest it.

Start building free

Free to start. No card needed.