so i want to make camera bobble effect similar to pressure and doors and i still dont know how would i make it beacuse most of the topics ive read so far are very outdated
1 Like
use the math.noise function with trig functions to get a random but smooth and predictable motion
and change humanoid.CameraOffset to a vector3
local t = 0
local function stepped(dt) -- dt is the change in time, passed by default in runservice.renderstepped i think
t += dt -- keep track of time somehow, doesnt have to be with dt
local yOffset = math.noise(t/10) -- divide argument for less frequent movement
humanoid.CameraOffset = Vector3.new(0,yOffset,0) -- can also change other axis for more realism
end
how can i make this using camera cframe? beacuse ive tried using cameraOffset and it looks really weird with visible arms in first person
you can set the localtransparencymodifier of the arms so they stay invisible
im making them visible beacuse im making a first person horror game