Hello! I made a simple script to turn the players camera upside down. However when I run the game the camera no longer follows the player. It’s fixed in place and I don’t know how to fix it.
local Camera = workspace:WaitForChild("Camera")
wait(1)
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame *= CFrame.Angles(0, 0, math.rad(180))
I tried changing the camera subject, but it’s already set to humanoid
I don’t know what I can do to fix it. Anything helps!
You made it scriptable, meaning the script has full control and it won’t control the character. Try this instead
local RunService = game:GetService("RunService")
local Camera = workspace.CurrentCamera --// Use CurrentCamera instead
RunService.RenderStepped:Connect(function()
Camera.CFrame *= CFrame.Angles(0, 0, math.rad(180))
end)