generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Put a non-transparent border to a semi-transparent Frame

Previous Thread :: Next Thread 
InnovatedFighting is not online. InnovatedFighting
Joined: 30 Oct 2014
Total Posts: 1040
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
Andyliu5000 is not online. Andyliu5000
Joined: 02 Nov 2013
Total Posts: 969
13 Jul 2016 08:02 AM
I think there isn't any.
Report Abuse
InnovatedFighting is not online. InnovatedFighting
Joined: 30 Oct 2014
Total Posts: 1040
16 Jul 2016 06:02 PM
Anyone able to think of a way?


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image