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

Way to display a textbutton as a decal?

^ Is there a way to do this, any scripts?

3 comments

1

Use an ImageButton.

0

Either create the decal, and have a TextButton over it, or just use an ImageButton. ImageButtons will make you have the decal image, but be able to click on it too. If you want text over the item, just add a TextLabel over it and add the text.

0

Yes there is a way.

3 answers

You can't display an image on a TextButton. TextButtons are only for text. What you want is an ImageButton, ImageButtons are for Images.

local part = Instance.new('Part', workspace)
local gui = Instance.new('SurfaceGui', part)
local button = Instance.new('TextButton', gui)

Profit??

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