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
 

Making union part invisible on a click

Previous Thread :: Next Thread 
CrazyBANANA69420 is not online. CrazyBANANA69420
Joined: 26 Aug 2016
Total Posts: 77
02 Dec 2017 07:44 PM
So, I want to make it so that when a button is pressed, a union part will be changed to change the transparency to 1 and cancollide to ## ### ##### and button are inside the same model. Does anyone have any idea of what i should script?
Report Abuse
CrazyBANANA69420 is not online. CrazyBANANA69420
Joined: 26 Aug 2016
Total Posts: 77
02 Dec 2017 07:49 PM
So, I want to make it so that when a button is pressed, a union part will change the transparency to 1 and cancollide to O . the union and button are inside the same model. Does anyone have any idea of what i should script?
Report Abuse
retracee is not online. retracee
Joined: 27 Apr 2013
Total Posts: 854
02 Dec 2017 07:52 PM
add a click detector in the object

and a script:

function onClicked()
script.parent.Transparency=1
script.Parent.CanCollide=false
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
decla123 is online. decla123
Joined: 08 Jun 2011
Total Posts: 112
02 Dec 2017 09:07 PM
don't forget to anchor it :P
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