roblox-camera
БесплатноБез исполняемых скриптовНе проверенUse when scripting, fixing or reviewing Roblox cameras: occlusion, screen raycasts, shift lock, zoom, first person, shake, cutscenes, spectate.
от TabooHarmony★ 230 звёзд на GitHubОб этом скилле
Roblox Camera
When to Load
Changing the default camera's behaviour or replacing it: occlusion, screen-to-world rays, zoom and mouse-lock settings, first person, shake and recoil, cutscenes, spectate. Input binds: roblox-input; screen insets and safe areas: roblox-ui §1.
"Field case" = seen in one of the owner's projects; verify on your content.
Traps and review checklist (symptom -> cause -> fix)
- Camera clips through walls after a map rebuild (meshes + invisible collision boxes) -> the default camera only pulls in for parts that are
CanCollide = trueand mostly opaque. Visual meshes withCanCollide = falseare ignored, and so are invisible proxies:Camera:GetLargestCutoffDistance(which PopperCam uses) skipsCanCollide = false,Transparency > 0.95and water; the PlayerModule's Popper source was seen skipping total transparency >= 0.25, countingLocalTransparencyModifier(check the current source). Make collidable, visible geometry stand where the walls are (§1). - "Fixed" occlusion still clips in Play -> property checks aren't proof. Verify against the real geometry: cast the camera's rays against the old and new map at the same sample points and compare hit distances, then back the camera into walls at known spots (§1).
- Hiding spot, locker or vehicle shell shoves the camera in -> ghost it locally with
LocalTransparencyModifierpast the threshold above instead of turning off collision.DevCameraOcclusionMode(Zoomdefault,Invisicam) is set onStarterPlayerand can't be changed per player. - Aim ray off by the top bar -> mixed coordinate spaces.
UserInputService:GetMouseLocation()ignores the inset ->ViewportPointToRay;InputObject.Position(mouse/touch) andScreenPointToRay/WorldToScreenPointinclude the inset. Both rays are unit length: scaleDirectionbeforeRaycast. - Shift lock, camera mode or movement mode won't change from a LocalScript ->
DevEnableMouseLock,DevComputerCameraMode,DevComputerMovementModeare server-set only (defaults fromStarterPlayer); the player can still turn the mouse-lock switch off in settings, so never make shift lock the only way to aim.CameraMaxZoomDistancebelowCameraMinZoomDistanceis raised to the minimum; equal values lock zoom. - Orthographic view works in Studio, not live ->
Camera.ProjectionType = Orthographic(OrthographicSize,OrthographicMode) is a Studio beta; published games can't use it yet . Screen rays are parallel there; recheck world-to-screen maths. - View drifts after recoil, head bob or rotational shake -> the default camera reads its own CFrame back as input: ±4° kicks re-based on it drifted 1.7°-17.8° pitch and 2.7°-17.7° yaw over a few runs; translation-only shake drifted 0° (field-measured). Remove the kick before the camera step and re-apply after (§2).
- Cutscene or test camera snaps back after setting
Scriptable-> the game's own camera controller keeps writingCFrame. Bind the override atRenderPriority.Last, disable the project's first-person/viewmodel controllers for the shot, confirm the CFrame held next frame (field case). - Fast subject (launch, vehicle, ragdoll) trails or shakes -> an exponential follow lags by about
speed / rate(~6 studs at 80 studs/s, rate 14). Lead the follow point byAssemblyLinearVelocity * dt, then lerp (average error ~0.3 studs, worst 0.95, field-measured); follow an anchored proxy moved atCamera.Value - 1, not the tumbling Head. - Zoom lands short after a tweened pull-in -> hold the final
CameraMin/MaxZoomDistancethrough at least one native camera update before reopening free zoom (~0.2 studs lost per cycle otherwise); compare stored zoom with ~0.1-stud tolerance (field-measured). - Spare cameras vanish / ViewportFrame rays wrong -> setting
Workspace.CurrentCameradestroys otherCameras directly underWorkspace(keep them in a Folder or Model). OnlyCurrentCameraupdatesViewportSize;ScreenPointToRayworks only for it. UseViewportCameraforViewportFrame.CurrentCamera: it replicates and works in Team Create. - Collision-safe offset still clips at corners ->
Spherecast/Blockcastdon't detect parts the shape starts inside. Handle start overlaps separately, let clearance override the preferred minimum distance, and test corners, shelves and low ceilings. - Death cam or spectate leaves the wrong subject or locked controls after respawn -> restore to the current character and controller, not a snapshot taken before a respawn or newer camera mode; release on timeout, subject removal and round change.
CameraSubject = nilreverts to the previous subject.
What changed
| Change | Use now |
|---|---|
CFrame.new(pos, lookAt) replaced |
CFrame.lookAt(at, target, up?); near straight up/down pass your own up or use CFrame.fromMatrix (the default up flips to the X axis) |
Player:GetCameraState() (Server Authority) <!-- |
Установить roblox-camera в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл roblox-camera?
Use when scripting, fixing or reviewing Roblox cameras: occlusion, screen raycasts, shift lock, zoom, first person, shake, cutscenes, spectate.
Как установить скилл roblox-camera?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл roblox-camera запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic