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

Struggling with returning the CameraType property back to Custom, any help?

Asked by
LuaXYZ 5
7 years ago

Basically, I am manipulating the camera; using the Interpolate() method. However, I noticed that when setting the CameraType back to Custom the camera slightly jerks back. I was wondering if anyone could provide me to a solution to this. Here is an similar example to the code I am currently using in my LocalScript

local Player = game.Players.LocalPlayer

wait()

local cam = workspace.CurrentCamera
cam:Interpolate(
    CFrame.new(0, 20, 20),
    CFrame.new(0, 0, 0),
    1
)

wait(2)

cam:Interpolate(
    Player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 5, 5),
    Player.Character.HumanoidRootPart.CFrame,
    1
)

Thanks, I appreciate all help :)

Answer this question