Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a Camera Bob?

Asked by 11 years ago

Is there like a good way?

3 answers

Log in to vote
2
Answered by 11 years ago

Here, I just made one. It's a little bit wonky, but should do fine for you:

01wait(0.1)
02local cam = game.Workspace.CurrentCamera
03local player = game.Players.LocalPlayer
04local char = player.Character
05local rs = game:GetService("RunService")
06local lastTick = tick()
07local t = 0
08local headPos = char.Torso.Neck.C0
09local running = false
10 
11char.Humanoid.Running:connect(function(speed)
12        running = speed > 0
13end)
14 
15while true do
View all 26 lines...

Notes:

  • It must be a local script
  • It goes in StarterGui
Ad
Log in to vote
0
Answered by 11 years ago

Please help! I am wondering this too!

Log in to vote
0
Answered by
IdoWhy 0
4 years ago
Edited 4 years ago

Hey ya, I've made a script, sorry for 6 years late lol

01local Camera = game.Workspace.CurrentCamera
02local Player = game.Players.LocalPlayer
03local Humanoid = workspace:WaitForChild(Player.Name).Humanoid
04local Head = Humanoid.Parent.Head
05local HumanoidRootPart = game.Workspace[Player.Name].HumanoidRootPart
06local Mouse = Player:GetMouse()
07while true do
08    wait()
09    Humanoid.CameraOffset = Head.Position - HumanoidRootPart.Position + Vector3.new(0, -1.5, -1)
10end

Basically, it changes the humanoid offset to the head position minus humanoid root part position, and then the camera is close to the head, you can change the position how you'd like to with just simply changing the Vector3 value. No problem :)

Answer this question