#Camera

8 messages · Page 1 of 1 (latest)

lethal pike
#

Something like this should work fine, you can change the script values according to your own game. This is a local script inside of starter character scripts. ```local player = game.Players.LocalPlayer
local camera = game.Workspace.CurrentCamera

local offset = Vector3.new(0, 4, -10)

function moveCamera()
local character = player.Character
if not character then return end

local rootPart = character:FindFirstChild("HumanoidRootPart")
if not rootPart then return end

local newPosition = rootPart.Position + offset
local currentCFrame = camera.CFrame
local newCFrame = CFrame.new(newPosition, rootPart.Position)

camera.CFrame = newCFrame

camera.CFrame = CFrame.new(
    camera.CFrame.Position,
    rootPart.Position
)

end

game:GetService("RunService").RenderStepped:Connect(moveCamera)```

exotic finchBOT
#

studio** You are now Level 4! **studio

lethal pike
#

local offset = Vector3.new(-10, 4, 0)

#

this makes it face the x-axis instead

#

tf u mean make the camera move? Yes the camera will follow your player lmao

exotic finchBOT
#

studio** You are now Level 3! **studio

lethal pike
#

yes the camera will follow your character

#

well you asked for a camera script