I want this code to probably be Toolbox/Hats Thumbnail Camera. But I inserted it and then Thumbnail Camera gone in the viewport frame.
There’s my script.
local inserter = game:GetService("InsertService"):LoadAsset(2646473721)
inserter.Name = "Obj"
inserter.Parent = workspace
local hat = inserter:FindFirstChildOfClass("Accessory")
hat:FindFirstChild("Handle").Anchored = true
hat:FindFirstChild("Handle").Position = Vector3.new(0,0,0)
inserter.Parent = template.ViewportFrame
local cameranew = hat:FindFirstChild("ThumbnailCamera"):Clone()
cameranew.Parent = template.ViewportFrame
template.ViewportFrame.CurrentCamera = cameranew