I have the position set on a CFrame since it needs to be for the camera to work, the code for the output on the picture above is:
local plr = game.Players.LocalPlayer
local plrs = game:GetService("Players")
local char = plr.Character or plr.CharacterAdded:wait()
local hum = char:WaitForChild("Humanoid")
local vf = script.Parent
local vfc = Instance.new("Camera", vf)
vf.CurrentCamera = vfc
local m = Instance.new("Model", vf)
m.Name = plr.Name
for k,v in pairs(char:GetChildren()) do
v:Clone().Parent = m
end
vfc.CFrame = m.HumanoidRootPart.CFrame*CFrame.new(0,0,10)
But if I try to add a CFrame.Angles to it, it breaks which is reasonable. Can anyone guide me towards the answer?
local plr = game.Players.LocalPlayer
local plrs = game:GetService("Players")
local char = plr.Character or plr.CharacterAdded:wait()
local hum = char:WaitForChild("Humanoid")
local vf = script.Parent
local vfc = Instance.new("Camera", vf)
vf.CurrentCamera = vfc
local m = Instance.new("Model", vf)
m.Name = plr.Name
for k,v in pairs(char:GetChildren()) do
v:Clone().Parent = m
end
vfc.CFrame = m.HumanoidRootPart.CFrame*CFrame.new(0,0,-10,0,1,0,0)
This made it look at the character from the front.