Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't this work?

Asked by 11 years ago

Hello... I am making a GUI that uses InsertService:LoadAsset() to load Gear. This is what the GUI looks like.

1StarterGUI
2      [ScreenGui] AssetGui
3             [Frame] ASSETFRAME
4            [TextButton] GetAsset
5            [TextBox] IDAsset ( text box to put asset Id in )
6            [TextLabel] Desc
7            [TextLabel] Credit
8            [Script] Loader:

---- HERE IS THE SOURCE FOR LOADER SCRIPT ----

01-- InternalSequence
02gui = {
03    assetId = script.Parent.IDAsset.Text;
04    GetAsset = script.Parent.GetAsset.MouseButton1Click;
05    stat = script.Parent.Desc;
06 }
07 function insert(id) -- OK.
08    ser = game:GetService('InsertService')
09    ser:LoadAsset(tonumber(id))
10 end
11 function show(parent,texttoshow,delay)
12    m = Instance.new('Message', parent)
13    m.Text = texttoshow
14    wait(delay)
15    m:Remove()
View all 56 lines...
0
Can you put it into codeblock instead? ultrabug 306 — 11y
0
Just did that InternalSequence 5 — 11y
0
Anyone >,,< InternalSequence 5 — 11y
0
I noticed this has nothing to do with Animations. Please don't mistag your question. Maxomega3 106 — 11y

Answer this question