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

GUI Textboxes and Buttons don't work when it's inserted into StarterGui through LoadAsset?

Asked by 9 years ago

In Workspace, I put

game:GetService("InsertService"):LoadAsset(the asset id).Parent = game.StarterGui

The model it inserted was a GUI. The scripts in the GUI works, but when I try clicking a button or inputing words in a textbox, it's like it's not even there. By that, I mean it doesn't respond. All that it does is sit on the screen. Any way to fix this?

0
Try putting the GUI in the ServerStorage, then do game.ServerStore.GUINAME:clone().Parent = game.StarterGui... the ROBLOX Insert Service sometimes messes up and doesn't load scripts, especially if FilteringEnabled is on. TheStudentPilot 75 — 9y
0
I tried inserting it into game.ServerStorage and then cloning the GUI from there to game.StarterGui but now I can't see the GUI anymore. Devotional 210 — 9y
0
Well, what you should do is, in Studio, insert the GUI into the ServerStorage. Then from a script, define player, either from a PlayerAdded function or something different, then clone it to the player.PlayerGui if it is in-game cloning. You can also clone it to the StarterGui if you want it to be there when the play respawns. TheStudentPilot 75 — 9y

Answer this question