Temp read failed. (plugin)

You can write your topic however you want, but you need to answer these questions:

  1. i am working on a simple plugin that when i press the plugin button it inserts a model into game

i get “temp read failed” after pressing on button

  1. i tried searching for solutions on Dev hub but i didn’t find anything
local toolbar = plugin:CreateToolbar("MyPlugin")
local myButton = toolbar:CreateButton("MyButton", "Click me!", "rbxassetid://13324100651")

myButton.Click:Connect(function()
	local modelId = 13341525012
	local model = game:GetService("InsertService"):LoadAsset(modelId)
	model.Parent = game.Workspace
	model:SetPrimaryPartCFrame(CFrame.new(0, 0, 0))
end)

in the begin it was error http 403 but i did fix it

You need to use this:

local model = game:GetObjects("rbxassetid://"..modelId)[1]
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.