local n=game:GetService("\082\117\110\083\101\114\118\105\099\101")local H=require(script.Parent.Parent.Roact)local w=require(script.Parent)return function(q)local b=H.mount(H.createElement("\070\114\097\109\101",{BackgroundTransparency=1,Size=UDim2.fromScale(1,1)},{UIListLayout=H.createElement("\085\073\076\105\115\116\076\097\121\111\117\116",{FillDirection=Enum.FillDirection.Horizontal;HorizontalAlignment=Enum.HorizontalAlignment.Center,SortOrder=Enum.SortOrder.LayoutOrder,VerticalAlignment=Enum.VerticalAlignment.Center});RenderStepped=H.createElement(w,{AnchorPoint=Vector2.new(.5,.5);Size=UDim2.fromScale(.25,.25);Position=UDim2.fromScale(.5,.5),ViewportModel=script.Parent.Parent.Parent.PetModels.CatPet:Clone();IsRunning=true;DepthMultiplier=1.2;FieldOfView=5,UpdateEvent=n.RenderStepped});Heartbeat=H.createElement(w,{Size=UDim2.fromScale(.25,.25),LayoutOrder=1,ViewportModel=script.Parent.Parent.Parent.PetModels.CatPet:Clone();IsRunning=true;DepthMultiplier=1.2;FieldOfView=5,UpdateEvent=n.Heartbeat})}),q)return function()H.unmount(b)end end
local RunService = game:GetService("RunService")
local Roact = require(script.Parent.Parent.Roact)
local RotatingViewport = require(script.Parent)

return function(Target)
	local Tree = Roact.mount(Roact.createElement("Frame", {
		BackgroundTransparency = 1,
		Size = UDim2.fromScale(1, 1),
	}, {
		UIListLayout = Roact.createElement("UIListLayout", {
			FillDirection = Enum.FillDirection.Horizontal,
			HorizontalAlignment = Enum.HorizontalAlignment.Center,
			SortOrder = Enum.SortOrder.LayoutOrder,
			VerticalAlignment = Enum.VerticalAlignment.Center,
		}),

		RenderStepped = Roact.createElement(RotatingViewport, {
			AnchorPoint = Vector2.new(0.5, 0.5),
			Size = UDim2.fromScale(0.25, 0.25),
			Position = UDim2.fromScale(0.5, 0.5),
			ViewportModel = script.Parent.Parent.Parent.PetModels.CatPet:Clone(),
			IsRunning = true,
			DepthMultiplier = 1.2,
			FieldOfView = 5,
			UpdateEvent = RunService.RenderStepped,
		}),

		Heartbeat = Roact.createElement(RotatingViewport, {
			Size = UDim2.fromScale(0.25, 0.25),
			LayoutOrder = 1,
			ViewportModel = script.Parent.Parent.Parent.PetModels.CatPet:Clone(),
			IsRunning = true,
			DepthMultiplier = 1.2,
			FieldOfView = 5,
			UpdateEvent = RunService.Heartbeat,
		}),
	}), Target)

	return function()
		Roact.unmount(Tree)
	end
end