So I made a gui that should insert a model (That I own which is also in my game) and i was trying to make the textbox replicated as the model id that will be inserted (the model would be one that I own or a free model) here's the script:
local id = script.Parent.TextBox.Text script.Parent.TextButton.MouseButton1Click:Connect(function() local model = game:GetService("InsertService"):LoadAsset(id) model.Parent = workspace end)
hopefully somebody could help!
You were giving it a string when it needed an integer, the tonumber
turns it into a string if the string is a valid number else its nil,
local model = game:GetService("InsertService"):LoadAsset(tonumber(id))