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!

1 comment
It returns with an error "Unable to cast string to int64"