|
| 13 Jul 2016 07:20 AM |
I have a GUI text button that is .8 transparency and I need want to have a 0 transparency border around it that I can toggle visibility to(Since I want to show that the GUI is selected when you click on it and want it to stay selected unless they press another Text button)
So because it is .8 transparency, border does not work, since the border will also be .8 transparency.
I do not want to make a border myself(Make 4 different Frames that go around it), since would be a hindrance to script and would rather not have to create that many frames.
I tried to use a SelectionBox but it gave me "bad cast" when I tried this -
local frame = Instance.new("Frame",Instance.new("ScreenGui",game.StarterGui)); local box = Instance.new("SelectionBox",frame); frame.Position,frame.Size = UDim2.new(0,100,0,100),UDim2.new(0,100,0,100); box.Adornee = frame
I'm guessing you can't add a SelectionBox to a GUI since it is a 2D element. But if they is some way to do it would like to do that.
If the only way is to create 4 frames to make it look like a border I will do that, just want to know if there is a better way.
Thanks scripters, you guys the real MVP
|
|
|
| Report Abuse |
|
| |
|
| 16 Jul 2016 06:02 PM |
Anyone able to think of a way?
|
|
|
| Report Abuse |
|