Cinematic Camera

I’ve been trying to make a the camera move slightly from side to side to give a cinematic setting like the one used in The last guest (Only the Menu Camera) like this:

robloxapp-20210825-0500474.wmv (1.2 MB)

Any help will be apprrciated!

3 Likes

Hello! I don’t entirly know what you mean but I think this is what you’re look for

local RunService = game:GetService("RunService")

local playerModel = script.Parent
local humanoid = playerModel:WaitForChild("Humanoid")

local function updateEffect()
	local now = tick()
	if humanoid.MoveDirection.Magnitude > 0 then
		local velocity = humanoid.RootPart.Velocity
		local bobble_X = math.cos(now * 9) / 5
		local bobble_Y = math.abs(math.sin(now * 12)) / 5
		
		local bobble = Vector3.new(bobble_X,bobble_Y,0) * math.min(1, velocity.Magnitude / humanoid.WalkSpeed)
		humanoid.CameraOffset = humanoid.CameraOffset:lerp(bobble,.20)
	else
		humanoid.CameraOffset = humanoid.CameraOffset * .75
	end
end

RunService.RenderStepped:Connect(updateEffect)

Sort of like that but I want the camera to be allocated to a part, I kind of want minimal movement. Like when the mouse makes the camera move a bit.

I only see it in games but I don’t know how to replicate what they do.

1 Like