How would I go about making a similar camera & cursor system?

I’ve been looking to make a game inspired by Rooms & Doors (by CJ4), and other “Rooms” fangames.

My aim here is to make a similar first-person smooth camera mechanic with a dynamic cursor that can smoothly follow the rotation of the camera, which can also move to and grow on prominent objects such as doors, items, etc. depending on how close the player is.


This is a clip of how the camera and cursor mechanics work in Rooms & Doors. As you can see, my camera moves smoothly and the cursor has a smooth offset depending on the camera’s rotation speed. The cursor moves towards prominent objects, as said before, such as doors, items, etc.

My hypothesis:
The cursor is moved by raycasting, and is a BillboardGui object that resizes by hovering over objects, clicking, and fades out then fades in again using when the game decides or when a door is opened. The fading and resizing is managed by TweenService. The movement of the cursor is also controlled by RunService.

im a bit late, but have you figured this out?

the cursor is an alwaysontop billboardgui, from thereon you should be able to figure it out

in its normal state (unlocked) it just stays a far distance from the camera

You’re on the right track: custom CameraType + a screen-space cursor Gui, not a 3D Billboard for the default reticle (Billboards work for world-locked markers; Rooms-style HUDs are usually ScreenGui).

Split the problem

  1. Smooth camera — CameraType = Scriptable, spring/lerped CFrame toward yaw/pitch from mouse delta each RenderStepped.
  2. Reticle offset from camera angular velocity — take yaw/pitch delta this frame, spring the Gui’s AnchorPoint/Position opposite the motion (small pixels), decay back to center.
  3. Attract to interactables — raycast from camera each frame; if you hit a tagged door/item within range, spring the reticle toward the WorldToViewportPoint of that instance and scale up with distance.

Sketch (LocalScript)

local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local cam = workspace.CurrentCamera
local reticle = script.Parent:WaitForChild("Reticle") -- Frame/ImageLabel in ScreenGui

cam.CameraType = Enum.CameraType.Scriptable
UIS.MouseIconEnabled = false

local yaw, pitch = 0, 0
local ox, oy = 0, 0 -- reticle offset
local attract = Vector2.zero

local SENS, SMOOTH = 0.0025, 12
local TAG = "Interactable"

RunService.RenderStepped:Connect(function(dt)
	local d = UIS:GetMouseDelta()
	yaw -= d.X * SENS
	pitch = math.clamp(pitch - d.Y * SENS, -1.2, 1.2)
	local target = CFrame.new(cam.CFrame.Position) * CFrame.Angles(0, yaw, 0) * CFrame.Angles(pitch, 0, 0)
	cam.CFrame = cam.CFrame:Lerp(target, 1 - math.exp(-SMOOTH * dt))

	-- velocity-based reticle sway
	ox = ox + d.X * 0.15
	oy = oy + d.Y * 0.15
	ox *= math.exp(-10 * dt)
	oy *= math.exp(-10 * dt)

	attract = Vector2.zero
	local ray = workspace:Raycast(cam.CFrame.Position, cam.CFrame.LookVector * 12)
	if ray and ray.Instance and ray.Instance:HasTag(TAG) then
		local v, onScreen = cam:WorldToViewportPoint(ray.Instance.Position)
		if onScreen then
			local center = cam.ViewportSize / 2
			attract = Vector2.new(v.X, v.Y) - center
			reticle.Size = UDim2.fromOffset(28, 28)
		end
	else
		reticle.Size = UDim2.fromOffset(18, 18)
	end

	local p = attract + Vector2.new(ox, oy)
	reticle.Position = UDim2.fromScale(0.5, 0.5) + UDim2.fromOffset(p.X, p.Y)
end)

Notes

  • Prefer ScreenGui reticle for the Rooms feel; use BillboardGui only for world-locked icons.
  • Tag doors/items with CollectionService (Interactable) instead of hardcoding names.
  • Fade on door open = TweenService on UIGradient / ImageTransparency, not a second camera.
  • Keep all of this on the client; server only validates the actual interact.

That matches your raycast + tween hypothesis — the missing piece is usually scriptable camera + viewport projection for attract, not a Billboard stuck to LookVector.

Camera | Documentation - Roblox Creator Hub and Camera | Documentation - Roblox Creator Hub
the first one is if your screengui has inset enabled and the second one is if it does not have inset enabled

and I assume you would lerp the screen element to the part
you can also use a billboardgui to make it move in the physical world instead of on screen
one key detail is that you probably wouldnt use raycasting but would instead get all the parts within a radius of the camera and select one based on dot product and distance

also I cannot see the smooth motion of the camera but to create the drag effect you could just invert the mouse delta

… why
not only is this significantly more computationally expensive, but… I don’t know where you got this idea from? I doubt OP’s game (if they’re still even working on it) necessitates hyper-precise cursor prompt locking.

No you can just use CFrame::Lerp()

for the first thing assuming you use the built in parts in radius feature it could possibly be more efficient depending on implementation
also for the second thing I said that assuming it is a screen element not a world element

This is just wrong? Going through an entire GetPartBoundsInRadius call, looping through it, and doing stupid annoying dot product math will never be faster than just one Raycast

The Camera is a world element. You were referring to the Camera in the portion of your post I quoted

with a raycast you have to constantly check if you are touching anything and then backtrack if you do
with radius its just some simple one-off equations for the parts
also with radius you dont have to be looking directly at the object which is useful in some cases
also btw the drag effect I meant was the mouse drag effect and that is in fact a screen element

You’re intentionally making spatial queries, with extra checks (that probably cross the LuaBridge too, mind you), seem more performant than workspace:Raycast(...) and a conditional, with maybe a nested one. They aren’t

I just thought it might be faster since circles are some of the easiest shapes to calculate physics for