So im making a character viewport that I want to look like this:
but mine looks like this:
how would I change the angle to make it look like it’s looking to the right?
Script:
local char = game.Players.LocalPlayer.Character
local cam = Instance.new("Camera", script.Parent)
local rs = game:GetService("RunService")
rs.RenderStepped:Connect(function()
for i, v in pairs(script.Parent.ViewportFrame.char1:GetDescendants()) do
v:Destroy()
end
for i, v in pairs(char:GetChildren()) do
local v2 = v:Clone()
if v2:IsA("Script") or v2:IsA("LocalScript") or v2:IsA("ModuleScript") then
v2:Destroy()
else
v2.Parent = script.Parent.ViewportFrame.char1
if v2:IsA("Humanoid") then
v2.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
end
end
end
script.Parent.ViewportFrame.CurrentCamera = cam
cam.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,3,-5) * CFrame.Angles(math.rad(30),math.rad(180),0)
end)