How to make the camera wobble?

In Blender, there is a modifier (noise modifier) that allows objects (in this case, camera), to randomly wobble, which will look like this:

I want this wobble effect to be the menu screen camera, which right now it is in static:

I am not a professional scripter so any ideas how to add the wobble effect for the camera?

4 Likes

You could use a combination of sine and cosine waves to get that effect

Dont mind that its made in unity, you can easily port it over to roblox

3 Likes
local rad = math.rad
local clock = os.clock
local noise = math.noise
local random = math.random

local xseed = random(10000, 100000)
local yseed = random(10000, 100000)
local zseed = random(10000, 100000)

local Roughness = 5

game:GetService("RunService").Heartbeat:Connect(function()
	local x = noise(xseed, clock() % 1000 * 0.5) * Roughness 
	local y = noise(yseed, clock() % 1000 * 0.5) * Roughness 
	local z = noise(zseed, clock() % 1000 * 0.5) * Roughness 
	
	Cam.CFrame *= CFrame.Angles(rad(x),rad(y),rad(z))
end)
6 Likes

Holy cow this works! I just need to tweak it a little bit and the result will be much smoother (and not too aggressive). Thanks a lot, you are my life saver!

4 Likes