Like I mentioned, if the player does goes like 6-7 Studs higher than the baseplate they die and I get this error message:
RunService:fireRenderStepEarlyFunctions unexpected error while invoking callback: HumanoidRootPart is not a valid member of Model "Workspace.Complicated_Copper"
local RS = game:GetService("RunService")
local cam = workspace.CurrentCamera
local plr = game.Players.LocalPlayer
local offset = Vector3.new(0,50,0)
local fov = 70
cam.CameraType = Enum.CameraType.Scriptable
local function onRenderStep()
if plr.Character then
local plrPos = plr.Character.HumanoidRootPart.Position
local camPos = plrPos + offset
cam.FieldOfView = fov
cam.CoordinateFrame = CFrame.new(camPos, plrPos)
end
end
RS:BindToRenderStep("Camera", Enum.RenderPriority.Camera.Value, onRenderStep)