In my game I have a top-down camera and in a cave there is a character who talks to you. When I set the OcclusionMode to Zoom, it doesn’t zoom and when I set the OcclusionMode to Invisicam, the dialog just doesn’t appear through the roof of the cave.
Here is my LocalScript under StarterPlayerScripts for the camera:
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
local CAMERA_DEPTH = 24
local HEIGHT_OFFSET = -10
local function updateCamera()
local character = player.Character
if character then
local root = character:FindFirstChild("HumanoidRootPart")
if root then
local rootPosition = root.Position + Vector3.new(-5, -30, 10)
local cameraPosition = rootPosition + Vector3.new(0, 80, 0)
camera.CFrame = CFrame.lookAt(cameraPosition, rootPosition)
end
end
end
RunService:BindToRenderStep("IsometricCamera", Enum.RenderPriority.Camera.Value + 1, updateCamera)
I made a post about making manually a bubble show. It probably helps, but it’s more complicated. I’d suggest wait for other replies, maybe they will help more.
Ok, I tried it and all it did was confuse me. I copy and pasted the code but my dialog doesn’t have any choices so idk if that’s what went wrong but the dialog now just stays on the screen the whole time.