I’m trying to align a character position “above” a frame but when i try this type of solution the camera goes below ground is there a way to achieve this type of alignment or do I have to use something else?
local __FAKECAM = workspace.CAMHERE2:Clone()
__FAKECAM.Name = "__AVATARCAM"
__FAKECAM.Position = __PLAYER.Character:FindFirstChild("HumanoidRootPart").CFrame.LookVector + Vector3.new(0,2,0)
__FAKECAM.Parent = workspace
What it looks like:
What it SHOULD look like:
Katrist
(Katrist)
January 14, 2023, 12:09am
#2
Try this:
local __FAKECAM = workspace.CAMHERE2:Clone()
__FAKECAM.Name = "__AVATARCAM"
__FAKECAM.CFrame = CFrame.new(__PLAYER.Character:FindFirstChild("HumanoidRootPart").CFrame.LookVector + Vector3.new(0, 2, 0))
__FAKECAM.CFrame = CFrame.lookAt(__FAKECAM.Position, __PLAYER.Character:FindFirstChild("HumanoidRootPart").Position)
__FAKECAM.Parent = workspace
TrotCobra
(TrotCobra)
January 14, 2023, 12:18am
#3
I recommend just changing the CFrame and not the position. Try using this:
local __FAKECAM = workspace.CAMHERE2:Clone()
__FAKECAM.Name = "__AVATARCAM"
__FAKECAM.CFrame = __PLAYER.Character:WaitForChild("HumanoidRootPart").CFrame * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) + Vector3.new(0, 1.5, 0)
__FAKECAM.Parent = workspace
Tried this solution yet it still put my camera below the ground.
Tried this also but it put the camera behind me rather in front of me
Katrist
(Katrist)
January 14, 2023, 3:44pm
#5
Try this:
local __FAKECAM = workspace.CAMHERE2:Clone()
__FAKECAM.Name = "__AVATARCAM"
__FAKECAM.CFrame = __PLAYER.Character:WaitForChild("HumanoidRootPart").CFrame + Vector3.new(0, 1.5, 0)
__FAKECAM.Parent = workspace