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

Camera Manipulation help?

Asked by
FiredDusk 1466 Moderation Voter
9 years ago

How do I make this camera manipulation not spin around character?

player = game.Players.LocalPlayer
cam =  game.Workspace.CurrentCamera

loops = 0
angle = 0
position = 0
Time = 0

while loops <170 and wait(0) and Time < 100 do
    cam.CoordinateFrame = CFrame.Angles(0,angle,angle) * CFrame.new(position, position, position)
    loops = loops + 1
    angle = angle + math.rad(3)
    position = position + 1
    Time = Time+0.5
end

script:Destroy()

Answer this question