local Game = game
local ReplicatedStorage = Game:GetService("ReplicatedStorage")
local Script = script
local ScreenGui = Script.Parent
for Index, Child in ipairs(ReplicatedStorage:GetChildren()) do
if Child:IsA("Tool") then
local Handle = Child:FindFirstChild("Handle")
if not Handle then continue end
local ViewportFrame = Instance.new("ViewportFrame")
ViewportFrame.Position = UDim2.new(0, (Index - 1) * 100, 0, 0)
ViewportFrame.Size = UDim2.new(0, 100, 0, 100)
local Clone = Child:Clone()
local X, Y, Z = Handle.Size.X, Handle.Size.Y, Handle.Size.Z
local Max = math.max(X, Y, Z)
Clone.Handle:PivotTo(CFrame.new(0, 0, -Max) * CFrame.fromOrientation(if Z == Max then -math.pi / 2 else 0, math.pi, 0))
Clone.Parent = ViewportFrame
ViewportFrame.Parent = ScreenGui
end
end