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

Does loading localscripts into a GUI with LoadAsset work?

Asked by 9 years ago

I'm trying to load LocalScripts using LoadAsset into a GUI to control it, but it's not working. I know the scripts itself work because when it's just in there, everything does what it's supposed to.

1 answer

Log in to vote
1
Answered by 9 years ago

Yes.

-- In a local script.

game:GetService("InsertService"):LoadAsset(IDHERE)[1].Parent = game.Players.LocalPlayer.PlayerGui
Ad

Answer this question