What do you want to achieve?
I am trying to make the camera look from upside down
What is the issue?
After i die, the camera doesn’t follow me anymore
The code is
local Offset = Vector3.new(-7,30,-7)
local FieldOfView = 90
local Player = script.Parent.Parent
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = game.Workspace.CurrentCamera
local RunService = game:GetService("RunService")
local Humanoid = Character:WaitForChild("Humanoid")
Camera.FieldOfView = FieldOfView
local function onRenderStep()
local PlayerPosition = Character:WaitForChild("HumanoidRootPart").Position
local CameraPosition = PlayerPosition + Offset
Camera.CoordinateFrame = CFrame.new(CameraPosition, PlayerPosition)
end
RunService:BindToRenderStep('Camera', Enum.RenderPriority.Camera.Value, onRenderStep)
robloxapp-20210914-1100457.wmv (1005.4 KB)
Please Help!!