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

How do I update this camera so it isn't choppy?

Asked by 3 years ago

I'm trying to make a gun scope, and this camera just steers off into a new direction after I move, i've tried doing while loops to update it but even then it's choppy and looks awful when I move. I've also tried adjusting the Cframes to be it as well, but still choppy. is there a better way to constantly update this?

mouse.Button2Down:Connect(function() local CurrentCamera = game.Workspace.CurrentCamera CurrentCamera.CameraSubject = script.Parent.Sight CurrentCamera.CameraType = "Scriptable" end) end)

1 answer

Log in to vote
0
Answered by 3 years ago
mouse.Button2Down:Connect(function()
    local camera = game.Workspace.CurrentCamera
    camera.CFrame = CFrame.new(aimPart.Position, (aimPart.Position + Vector3.new(1,0,0)))
end) 

You don't need to change only the CFrame

Ad

Answer this question