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

How to set camera coordinate frame back on player?

Asked by 8 years ago

I am messing around with camera manipulation and I've come across a problem. I set the coordinate frame of a camera to the focus. Here,

local Focus = game.Workspace.CurrentCamera.Focus*CFrame.new(0,0,0.05)
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(Focus.p)

That's the local script that sets the focus and coordinate frame. Now here what I'm trying to do.

    game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
    game.Workspace.CurrentCamera.CameraType = "Custom"
    game.Workspace.CurrentCamera.CoordinateFrame = Cframe.New (game.Players.LocalPlayer.Character.Humanoid)

I can't seem to get the coordinate frame to reset. Any help? Thanks!

0
Try deleting the camera, it'll automatically re-insert itself on default settings. TheDeadlyPanther 2460 — 8y

Answer this question