How the bobble camera would be made?

I’m currently making a horror game and I want to have the same bobble camera from that video The Mimic - 30 Seconds of Gameplay Book II - YouTube . How could it be made ?

1 Like

Have you tried searching the forums for this topic?
I found a few posts about this including this one from recently: How to make camera bobbling on player movement

1 Like

No like basically the same script of the video.

So you want someone to just give you a script out of another person’s game?
That isn’t going to happen.

If you read the instructions when posting to this topic you will see that it says you shouldn’t be asking for complete scripts, just for help with your scripting attempt.

The other posts already have scripts in them that work. I’d suggest at least trying the other scripts to see if that helps you out. If it doesn’t then you can ask for help to modify the script to suit your needs.

You can use sine or cosine waves to simulate this effect:

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)

Note: This is from an old post I’ve answered, I suggest reading the comments in the code to get a grasp on how it works.

As I was asking a script who’s basically a bit the same of it? Y-know other people might have a script who’s the same of it. I was currently looking for a script who looks like the SAME. Direction etc compared to the one you sent me. Thanks you for sending that but this wasn’t what I need.