Hi, I mainly just have a Question on this Camera Bobbing Method:
So with this , The CurrentTime
is tick()
, but what happens when tick()
increases?
overtime it will Change every second and when it does, Will it Affect the Camera Bobbing?
Script as an Example:
local CurrentTime = tick() -- This Thing that began at 1970/1/1
if Humanoid.MoveDirection.Magnitude > 0 then
local X = math.cos(CurrentTime * 10) * .25
local Y = math.abs(math.sin(CurrentTime * 10) * .25
local B = Vector3.new(X,Y,0)
Humanoid.CameraOffset = Humanoid.CameraOffset:Lerp(B, .25)
else
Humanoid.CameraOffset = Humanoid.CameraOffset * .75
end