How to recreate this camera bobble effect?

I want to recreate this camera bobble from “Zo” but I couldn’t do it I tried using roblox’s open-source
camera bobble but it didn’t look good like this one I don’t know much about camera so waiting for your helps thank you.

Camera boble: https://gyazo.com/e5d664d859d95b0bd4f5860852dca601

2 Likes

You can use the EZ camera shake module.

1 Like

You can use trigonometric functions in order to do that.

local runService = (game:GetService("RunService"));
local players = (game:GetService("Players"));

local localPlayer = (players.LocalPlayer);
local localCharacter = (localPlayer.Character or localPlayer.CharacterAdded:Wait());
local localHumanoid = (localCharacter:WaitForChild("Humanoid"));

local camera = (workspace.CurrentCamera);

function RenderStep(dt)
	if not (localHumanoid.MoveDirection == Vector3.new()) then
		local speed = (25); -- // How strong will the shake be.
		local sine = math.sin(tick() * speed);
		sine = sine / 10 -- // By default, math.sin(x) ranges from -1 to 1. By diving it by 10 the range is now -0.1 to 0.1.
		camera.CFrame = camera.CFrame * CFrame.Angles(math.rad(sine), math.rad(sine), 0)
	end;
end;

runService.RenderStepped:Connect(RenderStep)

I tested it and it seemed to work pretty fine.

7 Likes

This is helpful, but also not. They should be able to learn how to actually make it instead of having to use a module, It will help them a lot in the future.

4 Likes