Is it possible to have it where a player can type a ID and it would spawn the ID of the model but also resize the model? (GUI and Building is done, and Base is what the model would spawn on. localinsertService =game:GetService("InsertService")
Cool idea, but there are quite a few caveats. For example, most models on roblox are not open to the public, hence not able to load in other games and places than the creators.
You CAN achieve this to an extent. If the asset has been uploaded by either Roblox, you, or your group (assuming that it’s a group game), you can insert it.
You can also resize a model, though that will require a good amount of math to accomplish that (which unfortunately, isn’t something I’m knowledgeable on). And yes, it’s possible to determine what base the model can spawn in.
I wrote psuedo-like code, which should hopefully give you an idea:
local InsertService = game:GetService("InsertService")
TextButton.MouseButton1Down:Connect(function()
local good, returned = pcall(function()
return InsertService:LoadAsset(TextBox.Text)
end)
if good then
returned.Parent = workspace
returned:MoveTo(base.Position)
else
-- Error handling here
end
end)