Hd Admin Inserter Script Verified Guide

: The Rank = 4 line ensures only Head Admins and above can use it. You can change this to 1 (VIP), 2 (Admin), or 5 (Owner).

local InserterFeature = {} function InserterFeature.Init(HDAdmin) -- This defines the new command HDAdmin:RegisterCommand( Name = "insert", Aliases = "spawnmodel", Prefix = ";", Rank = 4, -- Set to "HeadAdmin" rank by default Category = "Utility", Description = "Inserts a model from the marketplace using its Asset ID.", Args = "number", -- The user must provide the ID (e.g., ;insert 123456) Function = function(speaker, args) local assetId = args[1] local InsertService = game:GetService("InsertService") local success, model = pcall(function() return InsertService:LoadAsset(assetId) end) if success and model then model.Parent = workspace model:MakeJoints() -- Ensures parts stay together if unanchored -- Move the model to the player who ran the command local character = speaker.Character if character and character:FindFirstChild("HumanoidRootPart") then model:MoveTo(character.HumanoidRootPart.Position + Vector3.new(0, 5, 0)) end return "Successfully inserted asset: " .. assetId else return "Failed to insert asset. Ensure the ID is correct and allowed." end end, ) end return InserterFeature Use code with caution. Copied to clipboard hd admin inserter script

Flag Counter