Need help with camera animations

Hello,
I am trying to make camera animations, but not using lerping, tweening or anything like that.
One example of what i am talking about, are the camera animations on Games Unite Testing Place(Games Unite Testing Place - Roblox)

https://gyazo.com/0260c290312cd7eb15a0b86d76b0696b

This camera animation does not use tweening or lerping, this screen animation is actually made in blender and imported to roblox.

Can anyone help me on making something like that?

2 Likes

@z5of Not sure. The only camera animation I can make is a CameraBobble, and that only works when the player is moving. I’m sure I can duplicate it to also move while the player is idle, as a breathing motion. I’ll bring it up now.

Use this script:

local runService = game:GetService("RunService")

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

function updatedBobbleEffct()
	local currentTime = tick()
	if humanoid.MoveDirection.Magnitude > 0 then
		local bobbleX = math.cos(currentTime * 0) * 1
		local bobbleY = math.abs(math.sin(currentTime * 10)) * 1
		
		local bobble = Vector3.new(bobbleX, bobbleY, 0)
		
		humanoid.CameraOffset = humanoid.CameraOffset:lerp(bobble, .25) --25
	else
		humanoid.CameraOffset = humanoid.CameraOffset * .100 --75
	end
end

runService.RenderStepped:Connect(updatedBobbleEffct)

Make sure it is in a LocalScript.

1 Like

In fact, here it’s not the camera that’s being animated. The camera always follows the head, meaning in first person, if the head moves, the camera moves, thus it’s the head moving here. Somehow he’s making the head shake, probably using a simple animation, or changing the CFrame of the head’s joint back and forward over and over again (also doing that for the hands and the weapon)

Another option to make the camera shake is using this module.

3 Likes