Hello,
I’m trying to get the camera to rotate around the player 180° around the player. I got the player to rotate using some fancy CFrame manipulation, but I can’t seem to get the camera to follow suit. Here’s the code that I have so far:
-- When triggered from the server, causes the camera to
-- rotate 180° about the player.
event.OnClientEvent:Connect(function()
local camera = game.Workspace.CurrentCamera
local ctype = camera.CameraType
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = camera.CFrame * CFrame.Angles(0, math.pi, 0)
camera.CameraType = ctype
end)
I’m going to continue to play with this code.