Invisicam Not working with isometric view

I am looking to make an RPG in roblox, right now I´m trying to use an isometric view.

The problem is that the isometric view doesn’t collide with the objects making for the player hard to find themself in the map.

I have tried turning on Invisicam in the player setting, it works perfectly with the normal camera but it doesn’t really work with the isometric view.

Isometric view working fine with no objects
Captura de pantalla 2024-05-01 102537

Invisicam being activated

local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")

local FOV = 10
local HeightOffset = 100 
local XOffset = 50
local ZOffset = 50
local RotationSpeed = 45
local Distance = 150
-- // Code
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Camera = game.Workspace.CurrentCamera

Camera.FieldOfView = FOV
if Camera.CameraType ~= Enum.CameraType.Scriptable then Camera.CameraType = Enum.CameraType.Scriptable end

local angleY = 45

local tecla = Enum.KeyCode.T
local tecla2 = Enum.KeyCode.R
local function onKeyPress(input)
	if input.KeyCode == tecla then
		print("Funcion")
		angleY = angleY + (-1 * RotationSpeed)
	elseif input.KeyCode == tecla2 then
		angleY = angleY + (1 * RotationSpeed)
	end
end


game:GetService("UserInputService").InputBegan:Connect(onKeyPress)


RunService.RenderStepped:Connect(function()
	local X_Distance = (Distance + XOffset) * math.cos(math.rad(angleY))
	local Z_Distance = (Distance + ZOffset) * math.sin(math.rad(angleY))

	local Vector = Vector3.new(
		HumanoidRootPart.Position.X + X_Distance,
		HumanoidRootPart.Position.Y + HeightOffset,
		HumanoidRootPart.Position.Z + Z_Distance
	)

	if Character then
		TweenService:Create(Camera, TweenInfo.new(0.2, Enum.EasingStyle.Linear), {CFrame = CFrame.new(Vector, HumanoidRootPart.Position)}):Play()
	end
end)

This is the script I am using for the isometric view maybe here is the problem. I have tried changing it but it doesn’t work

I have this exact same issue right now. Have you fixed it?

Never mind I fixed the issue. I changed the camera type to “Enum.CameraType.Fixed” and it some how for some reason worked

2 Likes

If you’re still having this issue (which I doubt) I made my own invisicam script you could use instead of the default one. Sorry for not replying earlier

local Camera = workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Scriptable
local PartsTable = {}

while task.wait() do
	--Isometric Camera
	Camera.CFrame = CFrame.lookAt(Vector3.new(Head.Position.X - 15, Head.Position.Y + Zoom, Head.Position.Z + Zoom), Head.Position) 
	
	--Change Transparency Of Parts Obscuring Character
	for _, Part in ipairs(PartsTable) do
		Part.LocalTransparencyModifier = 0
	end

	PartsTable = Camera:GetPartsObscuringTarget({Camera.CFrame.Position, Character.PrimaryPart.Position}, {Character})

	for _, Part in ipairs(PartsTable) do
		Part.LocalTransparencyModifier = 0.75
	end
end
1 Like

No way this dude came back a year later :joy:

1 Like