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

A decal not putting background invisible? [closed]

Asked by 6 years ago
Edited 6 years ago

i have a decal and it is not putting the background invisible when i set background visibility to 1?

decal: https://www.roblox.com/library/1796336340/Images-Ahum

there is no coding just properties / BackgroundTransparency

0
dude, give us the code sweetkid01 176 — 6y
0
you mean the decal SuperBeeperman 30 — 6y
0
Maybe the “background” isn’t going invisible because the black background is part of the image itself. User#20279 0 — 6y
View all comments (3 more)
0
no, it is actually erased and put in transparent with paint.net SuperBeeperman 30 — 6y
0
^ Are you sure? Usually your background on the image is supposed to be white instead of grey-ish. User#20279 0 — 6y
0
`Decal.Transparency = 1`? TheeDeathCaster 2368 — 6y

Closed as Non-Descriptive by TheeDeathCaster and User#20388

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 6 years ago

You cannot do image manipulation within roblox so you'll never be able to remove the black 'background'. BackgroundTransparency is not a property of decals, which leads me to believe you're actually using an ImageLabel or ImageButton. The BackgroundTransparency property of those GUI instances sets the transparency of the native element's background, which would not be visible as your decal is a solid color.

You need to use an image manipulation program ie Paint.Net, remove the black border then export the image in PNG format with alpha channel enabled if that's an option during export. With the proper format supporting alpha channel (transparency), you then set the ImageLabel/ImageButton's BackgroundTransparency property to 1.

Ad