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

multiple questions reguarding Gui?

Asked by 10 years ago

Where can i find object browser in roblox studio? how can i make a GUi remove itelf after i press it

start= script.Parent
function deleteGui()

    end

end
start.MouseButton1Click:connect(deleteGui) --this is my script so far, dont tell me exactly whats inside cause i want to figure out it myslef but can you give me a hint on what i might

how do i add an image of a robloxian on an image label? thank you

0
There is a wiki for a reason, and the thread for them is here: http://www.roblox.com/Forum/ShowPost.aspx?PostID=111095643 Lacryma 548 — 10y
0
i know but i still need some help because wiki is not a person namelessassasin 30 — 10y

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

To access the Object Browser, you have to enabled the SystemMenu UI. If you have the RibbonBar UI active, click File->Settings, and look for the 'UI Style' property. Change it to SystemMenu, and restart Studio. From there, click Help->Object Browser.

For making the GUI disappear, you have two options: the Destroy method, and the Visible property.

The Destroy method will permanently remove the GUI, requiring a new one to be created if you want to reopen it. The Visible property will simply toggle the GUI (and its descendants) visible, making it impossible to interact with but allowing it to very easily be reopened.

Duelingwarlord provided you a link to four of the ROBLOX image APIs you can use. Two of them are used to get the profile image of a ROBLOXian.

Using that link, you'll have to understand how URL parameters work. In the first three there, you have the ability to choose the image's resolution. The first uses Width and Height for this, and the other two use 'x' and 'y', which function identically. Using the resolutions provided below those four links

The first one is used to get the image displayed in the Catalog (or Games page for Place assets) of any asset, be it a hat or a model. The next two are used to get the ROBLOXian image, based either on username or userId. Either of those is what you're looking for.

The fourth one will get you the image asset of the type of Builder's Club the user has, based on username. You cannot set the resolution of this one.

To see the image, use your script to set the Image property of the GUI to one of the URLs provided there, with your specified parameters put in.

0
thank you namelessassasin 30 — 10y
0
You're welcome. Don't forget to mark my answer as accepted. :) adark 5487 — 10y
Ad

Answer this question