[CLOSED] I just did my own camera bobbing effect.
3 Likes
Perhaps this can help? Creating a Simple, Realistic Camera (With View Bobbing, Dynamic Blur, & Sprinting)
1 Like
Sorry but this is not effect that i search for.
Okay, could you explain exactly what effect you are looking for then?
2 Likes
i posted a video about that, look at up
To me, that just looks like head bobbing?
1 Like
okay, how can i do the same effect like in the video?
That effect is called view bobbing and makes it so that your camera shakes whenever you walk. Either search for it with a web browser, or read the guide I sent.
2 Likes
Try this! It’s a LocalScript
in StarterCharacterScripts
.
local RunService = game:GetService("RunService")
local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")
local function UpdateBobbleEffect()
local now = tick()
if Humanoid.MoveDirection.Magnitude > 0 then
local Velocity = Humanoid.RootPart.Velocity
local Bobble_X = math.cos(now * 9) / 5
local Bobble_Y = math.abs(math.sin(now * 12)) / 5
local bobble = Vector3.new(Bobble_X, Bobble_Y, 0) * math.min(1, Velocity.Magnitude / Humanoid.WalkSpeed)
Humanoid.CameraOffset = Humanoid.CameraOffset:Lerp(bobble, 0.25)
else
Humanoid.CameraOffset *= 0.75
end
end
RunService.RenderStepped:Connect(UpdateBobbleEffect)
Hope this helps!
2 Likes
I don’t think it matches the same as the video