Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Loading Asset won't work?

I want to make it so when you click on a button, it loads an Asset (in this case a GUI) into the game, but it won't work:

function explorerClick()
loadstring(Game:GetObjects("rbxassetid://157685213")[1].Source)()
end

script.Parent.MouseButton1Down:connect(explorerClick)

1 answer

You cannot use the Source variable of any Script. It is RobloxLocked.

This discussion is preserved as it was. New answers, comments, and votes are closed.