Orthographic style camera
Key RequiredUniversal

Orthographic style camera

Universal Scriptd0ntt0uchm7p1zz4d0ntt0uchm7p1zz4 821 views 13 executesUpdated Nov 10, 2025
Unrated
00
Lua Script•30 lines (1178 chars)
--// Fixed Orthographic Camera Script
--// Run in a LocalScript or in the Client console

local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.FieldOfView = 70  -- ignored in Orthographic mode, but kept for fallback

-- Convert degrees to radians
local yAngle = math.rad(45)   -- yaw
local xAngle = math.rad(-30)  -- pitch (negative looks downward)

-- Set orthographic mode
camera.ProjectionMode = Enum.ProjectionMode.Orthographic
camera.Orthographic = true -- (some clients require explicit call in older versions)

-- Optional: camera distance from focus point
local distance = 30

-- Focus target (character if exists, otherwise workspace origin)
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local root = character:WaitForChild("HumanoidRootPart")

-- Update camera position every frame
game:GetService("RunService").RenderStepped:Connect(function()
	local focus = root.Position
	local rotation = CFrame.Angles(0, yAngle, 0) * CFrame.Angles(xAngle, 0, 0)
	local offset = rotation.LookVector * -distance
	camera.CFrame = CFrame.new(focus + offset, focus)
end)

Features & Information

Project zomboid style camera, just makes the camera really far away and from a top down view. (Yet again this is me stress testing my coding LLM before releasing it)
#camera

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts