Help with making BillboardGui

So I’m trying to make a Roblox DOORS inspired game, but I am having trouble recreating the proximity prompts. Here is a video of what I mean:


So when you look around, as seen in the video, the billboardGui seems to move as well. I am not sure how to do this and am wondering if it needs any scripting. Also sorry if this is in the wrong category. I have already got a BillboardGui but it doesn’t look like that when I turn my camera. Could somebody help?

Never mind, I fixed it, using this script:

	local runService = game:GetService("RunService")

	local function updateBillboardOffset()
		local screenPosition, isVisible = camera:WorldToScreenPoint(part.Position) -- Get the screen position of the part.

		if isVisible then
			-- Calculate the offset to keep the BillboardGui in the center of the screen.
			local viewportSize = camera.ViewportSize
			local offsetX = (screenPosition.X - viewportSize.X / 2) / 200 -- Adjust the divisor for sensitivity
			local offsetY = (screenPosition.Y - viewportSize.Y / 2) / 200
			CustomProximity.StudsOffset = Vector3.new(offsetX, -offsetY, 0) -- Invert Y for correct orientation.
		else
			-- If the part is off-screen, reset the offset.
			CustomProximity.StudsOffset = Vector3.new(0, 0, 0)
		end
	end

	runService.RenderStepped:Connect(updateBillboardOffset)

If anyone’s stuck on this as well, probably not, but this is the solution.