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

Why doesn't this Camera Focus work?

Asked by 10 years ago

Everything works fine except the focus. What the script does is create a part above the player's head and the camera follows the part, like a top-down camera or a "eagle eye" camera.

Everything works properly except the Focus, the camera looks forward rather than looking down at the part.

game:GetService("RunService").RenderStepped:connect(function() local HeadPos = Player.Character.Head.Position Part.CFrame = CFrame.new(HeadPos.X,HeadPos.Y+3,HeadPos.Z) Part.Rotation = Player.Character.Head.Rotation Camera.CoordinateFrame = CFrame.new(HeadPos + Vector3.new(0,60,0)) Camera.Focus = CFrame.new(Part.Position) Camera.CameraSubject = Part end)

This is only a portion of it, everything here is defined and it is in a LocalScript in StarterGui.

1
Did you set the cameraType to Scriptable so that it could not be manipulated by the player? Sublimus 992 — 10y
0
Do just like huner2 said Camera.CameraType = "Scriptable" fireboltofdeath 635 — 10y

Answer this question