I’m using @boatbomber’s Viewport open source model for viewport.
Problem: I’m not sure how to change to offset, so that only the upper body parts show.
I want the camera to only show the upper body, not the whole character. What line of code do I need to change?
Currently, it looks like this:
And this is the line of code:
-- CF means CFrame.new
local Offset = cf(0, 1, -6) --6)
CameraUpdater = RunService.Heartbeat:Connect(function()
if Character.HumanoidRootPart then
Camera.CFrame = cf(Character.HumanoidRootPart.CFrame:toWorldSpace(Offset).p, Character.HumanoidRootPart.CFrame.p)
end
end)