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

Help with camera?

Asked by
qwrn12 85
8 years ago

i made a camera but it is vary not smooth i was wondering how to make it smoother here is code

local player = game.Players.LocalPlayer
local target = player.Character.Head
local camera = workspace.CurrentCamera
camera.CameraSubject = target
local angle = 0

while wait() do
    camera.CoordinateFrame = CFrame.new(target.Position)  --Start at the position of the part
                           * CFrame.Angles(0, angle, 0) --Rotate by the angle
                           * CFrame.new(0, 0, 30)       --Move the camera backwards 5 units

end
0
I don't know much about this, but using some sort of Tween motion might help. Search "Tween animation" and it will tell you what that means. GShocked 150 — 8y

Answer this question