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

How do I fix this camera's rotation?

Asked by 8 years ago

This is the script I am using to make my camera follow the cube that I want as my player, however the camera stays on the wrong side of the cube, I want the camera to be pointing on the side to the left of the side it is currently facing, any ideas on what I should edit to fix it? I've tried playing around with the camera's co-ordinate frame and focus, but it's still not working.

game.Players.PlayerAdded:connect(function(player) script.LocalScript:clone().Parent = player.CharacterAdded:wait() end)

local cam = workspace.CurrentCamera

cam.CameraSubject=game.StarterPlayer.StarterCharacter.Player cam.CameraType = "Attach" cam.CoordinateFrame=CFrame.new(60,5,-50) cam.Focus=CFrame.new(-10,0,0)

Answer this question