As you can see in the video below when the unit/character pops up on the camera the camera goes in a bit inwards.
I tried making the DevCameraOcclusionMode to Zoom and still didn’t work
Currently I’am showing the unit this way:
for _,v in pairs(Item:GetDescendants()) do
if v:IsA("BasePart") then
v.CastShadow = false
v.CanCollide = false
v.CollisionGroup = "Units"
end
end
local Connection
Connection = RunService.RenderStepped:Connect(function()
if Item and Item.Parent then
Item:PivotTo((Camera.CFrame * CF) * CFrame.Angles(rx,ry,rz))
end
end)
The humanoid is automatically setting CanCollide for some of the parts back to true, can the CollisionGroup Units collide with Default? I managed to fix the issue in a test place by setting all parts in the cloned model to a collision group that cant collide with Default before parenting it to workspace.