So I am making a racing game, and the make it more advanced, I want to make it so the camera always faces the back of the player, and the player can't zoom in or out. How do I achieve this?
The methods of CFrames sound pretty handy in this case..
assuming you have access to the player's character, here's a method that might hopefully work
local RunService = game:GetService("RunService"); local camera = x.y.Camera--the camera object local character = x.y.Character --the player's character RunService.Stepped:Connect(function() camera.CameraType = Enum.CameraType.Scriptable local head = character.Head; local behind = head.CFrame:ToWorldSpace(CFrame.new(0, 0, 10)); camera.CFrame = CFrame.new(head.Position, behind.Position) end)