I want the camera to 2D, above the player’s head and rotated at them on a 45 degree angle. I have made it 2D but not in the way I want it, any suggestions?
I tried using a camera part but that didn’t work since it shook a lot. I also tried using the camera part in a view-model, which also didn’t work. Now I’m here with https://i.gyazo.com/173437484dc045651d4ba575d8b4078b.mp4
Here is my code:
local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
player.CharacterAdded:Wait()
player.Character:WaitForChild("HumanoidRootPart")
camera.CameraSubject = player.Character.HumanoidRootPart
camera.CameraType = Enum.CameraType.Attach
camera.FieldOfView = 40
local RunService = game:GetService("RunService")
local function onUpdate()
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
camera.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position) * CFrame.new(0,0,30)
end
end
RunService:BindToRenderStep("Camera", Enum.RenderPriority.Input.Value, onUpdate)