-- Orionライブラリ読み込み local OrionLib = loadstring(game:HttpGet("https://raw.githubusercontent.com/jadpy/suki/refs/heads/main/orion"))() -- ウィンドウ作成 local Window = OrionLib:MakeWindow({ Name = "アセットメーカー", HidePremium = false, SaveConfig = true, ConfigFolder = "AssetSpawnerConfig", IntroEnabled = true, IntroText = "アセットメーカー", IntroIcon = "rbxassetid://188125709", Icon = "rbxassetid://188125709" }) -- 固定モード local anchorMode = false -- スポーン関数 local function SpawnAsset(assetId, anchor) local assetUrl = "rbxassetid://" .. assetId local success, result = pcall(function() return game:GetObjects(assetUrl) end) if success and #result > 0 then local model = result[1] -- プレイヤーの前に配置 local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local root = character:WaitForChild("HumanoidRootPart") if model:IsA("Model") and model.PrimaryPart then model:SetPrimaryPartCFrame(root.CFrame * CFrame.new(0, 2, 5)) elseif model:IsA("BasePart") then model.CFrame = root.CFrame * CFrame.new(0, 2, 5) else -- その他の場合 local parts = model:GetDescendants() for _, part in ipairs(parts) do if part:IsA("BasePart") then part.CFrame = root.CFrame * CFrame.new(0, 2, 5) break end end end model.Parent = workspace -- 固定処理 for _, part in ipairs(model:GetDescendants()) do if part:IsA("BasePart") then part.Anchored = anchor end end if model:IsA("BasePart") then model.Anchored = anchor end OrionLib:MakeNotification({ Name = "スポーン完了", Content = "ID: " .. assetId, Time = 2 }) else OrionLib:MakeNotification({ Name = "エラー", Content = "読み込み失敗: " .. assetId, Time = 3 }) end end -- ============ メインタブ ============ local MainTab = Window:MakeTab({ Name = "スポーン", Icon = "box" -- "box" は有効なアイコン名 }) MainTab:AddToggle({ Name = "スポーン時に固定する", Default = false, Callback = function(value) anchorMode = value end }) -- プリセットボタン local assets = { {"マクド", "4572305378"}, {"タンク", "1379706428"}, {"土星平和解放隊基地", "73620052573620"}, {"家1", "13207038636"}, {"家2", "80944153328890"}, {"マンション1", "9972515317"}, {"マンション2", "127595063116838"}, {"ロボット", "9245530435"}, {"pc", "8994996723"}, {"ソファー", "9355674828"}, {"家具イエロー", "18433392329"} } for _, item in ipairs(assets) do MainTab:AddButton({ Name = item[1], Callback = function() SpawnAsset(item[2], anchorMode) end }) end -- カスタムID local customId = "" MainTab:AddTextbox({ Name = "アセットIDを入力", Default = "", TextDisappear = true, Callback = function(text) customId = text end }) MainTab:AddButton({ Name = "入力したIDをスポーン", Callback = function() if customId ~= "" then SpawnAsset(customId, anchorMode) end end }) -- ============ 詳細タブ(確実に表示されるよう修正) ============ local InfoTab = Window:MakeTab({ Name = "詳細", Icon = "info" -- アイコン名は任意、なければデフォルト }) -- 方法1: AddLabel でテキストを表示(確実) InfoTab:AddLabel("■ 開発元情報") InfoTab:AddLabel("TikTok: @saturngroup_jp") InfoTab:AddLabel("") InfoTab:AddLabel("■ 使い方") InfoTab:AddLabel("1. 固定トグルで動かないようにできる") InfoTab:AddLabel("2. ボタンを押すと目の前にスポーン") InfoTab:AddLabel("3. 自分でID入力も可能") InfoTab:AddLabel("") InfoTab:AddLabel("■ 対応アセットID") InfoTab:AddLabel("188125709 など") -- 方法2: AddParagraph も試す(バージョンによって動作) pcall(function() InfoTab:AddParagraph({ Name = "開発元TikTok", Content = "@saturngroup_jp" }) InfoTab:AddParagraph({ Name = "URL", Content = "https://www.tiktok.com/@saturngroup_jp" }) end) -- 閉じるボタンも追加(任意) InfoTab:AddButton({ Name = "閉じる", Callback = function() OrionLib:MakeNotification({ Name = "通知", Content = "GUIはEscキーやKキーで操作できます", Time = 3 }) end })