📅  最后修改于: 2022-03-11 14:59:26.692000             🧑  作者: Mango
local viewportFrame = Instance.new("ViewportFrame")viewportFrame.Size = UDim2.new(0.3, 0, 0.4, 0)viewportFrame.Position = UDim2.new(0, 15, 0, 15)viewportFrame.BackgroundColor3 = Color3.new(0, 0, 0)viewportFrame.BorderColor3 = Color3.new(0.6, 0.5, 0.4)viewportFrame.BorderSizePixel = 2viewportFrame.BackgroundTransparency = 0.25viewportFrame.Parent = script.Parent local part = Instance.new("Part")part.Material = Enum.Material.Concretepart.Color = Color3.new(0.25, 0.75, 1)part.Position = Vector3.new(0, 0, 0)part.Parent = viewportFrame local viewportCamera = Instance.new("Camera")viewportFrame.CurrentCamera = viewportCameraviewportCamera.Parent = viewportFrame viewportCamera.CFrame = CFrame.new(Vector3.new(0, 2, 12), part.Position)