Universal Script 📌
845 Views
31 Executions

Orthographic style camera

Universal Script 📌
d0ntt0uchm7p1zz4
d0ntt0uchm7p1zz4First script
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

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)

View Raw
--// 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)



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
2.9M
1.1M
Bumped 3 hours ago
Key System

Script hub

#9 today

CanHub V2 200 GAMES KEYLESS

Script hub
5.5M
1.0M
Bumped 4 hours ago
Key System
Script hub
1.7M
2.2M
Bumped 5 hours ago
Key System

Script hub

#16 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
14.7k
83.0k
Bumped 5 hours ago
Key System

Script hub

Kronos New

Script hub
3.2M
753.8k
Bumped 8 hours ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script 📌
523
1.2k
Bumped 10 hours ago
Key System
Universal Script 📌
7.3k
142.9k
Bumped 10 hours ago