Are there any way to solve this deleting image problem? like using the cframe? i did it but the model is just standing, tposing

local Players = game:GetService("Players")
local Heartbeat = game:GetService("RunService").Heartbeat
local Camera =  workspace:WaitForChild("Camera")

local VPFrame = script.Parent
VPFrame.CurrentCamera = Camera


local Char = Players.LocalPlayer.Character
Char.Archivable = true

local PrevImage = nil
local PrevCat = nil

local Cat = workspace.Pets.Maxwell

local ALittleOffset = 0.5

Heartbeat:Connect(function(dt)
	pcall(function()
		PrevImage:Destroy()
		PrevCat:Destroy()
	end)
	
	local NewCat = Cat:Clone()
	PrevCat = NewCat
	NewCat.Parent = VPFrame
	local cameraPos = Camera.CFrame.Position
	local cameraFocus = Camera.Focus.Position
	if math.abs(cameraPos.X - cameraFocus.X) < ALittleOffset and -- takes the absolute value of number both negative and postiive
		math.abs(cameraPos.Y - cameraFocus.Y) < ALittleOffset and
		math.abs(cameraPos.Z - cameraFocus.Z) < ALittleOffset then
		return
	end
	
	
	local NewImage = Char:Clone()
	PrevImage = NewImage
	NewImage.Parent = VPFrame
end)
local Players = game:GetService("Players")
local Heartbeat = game:GetService("RunService").Heartbeat
local Camera = workspace:WaitForChild("Camera")

local VPFrame = script.Parent
VPFrame.CurrentCamera = Camera

local Player = Players.LocalPlayer
local Char = Player.Character or Player.CharacterAdded:Wait()
Char.Archivable = true

local PrevImage = nil
local PrevCat = nil

local Cat = workspace.Pets.Maxwell
local ALittleOffset = 0.5

Heartbeat:Connect(function(dt)
    pcall(function()
        if PrevImage then
            PrevImage:Destroy()
        end
        if PrevCat then
            PrevCat:Destroy()
        end
    end)

    local NewCat = Cat:Clone()
    PrevCat = NewCat
    NewCat.Parent = VPFrame

    local cameraPos = Camera.CFrame.Position
    local cameraFocus = Camera.Focus.Position
    if math.abs(cameraPos.X - cameraFocus.X) < ALittleOffset and
       math.abs(cameraPos.Y - cameraFocus.Y) < ALittleOffset and
       math.abs(cameraPos.Z - cameraFocus.Z) < ALittleOffset then
        return
    end

    local NewImage = Char:Clone()
    PrevImage = NewImage
    NewImage.Parent = VPFrame

    -- set the CFrame of the cloned character to match the camera's CFrame
    NewImage:SetPrimaryPartCFrame(Camera.CFrame)
    local animator = NewImage:FindFirstChildOfClass("Animator")
    if animator then
        -- i assume you want to use anims or smh
        local animation = Instance.new("Animation")
        animation.AnimationId = "rbxassetid://aaaaaa" -- Replace with your anim
        animator:LoadAnimation(animation):Play()
    end
end)

sorry If got ya wrong