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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Disable clickdetector

Previous Thread :: Next Thread 
tornado4adam is not online. tornado4adam
Joined: 09 Sep 2012
Total Posts: 245
08 Apr 2016 08:24 PM
I'm horrible at ROBLOX.

Is there any way that I can make it so I can disable a click detector for one thing and then enable it using an if statement.

For example, im making a thunderstorm spawner. If the person clicks the t-storm spawner, i want to make it so that it disapears and they can only use it again if they press another button. Is this possible? Thanks...
Report Abuse
KeiRoMultiverse is not online. KeiRoMultiverse
Joined: 16 Aug 2013
Total Posts: 1896
08 Apr 2016 08:28 PM
ClickDetector.MaxActivationDistance = 0
Report Abuse
tornado4adam is not online. tornado4adam
Joined: 09 Sep 2012
Total Posts: 245
08 Apr 2016 08:31 PM
Doesnt work.... ^
Report Abuse
tornado4adam is not online. tornado4adam
Joined: 09 Sep 2012
Total Posts: 245
08 Apr 2016 08:34 PM
Nevermind. Turns out I forgot to add the if statement :P. Thanks! :D
Report Abuse
ProjectSlayer is not online. ProjectSlayer
Joined: 04 Oct 2012
Total Posts: 10148
08 Apr 2016 08:34 PM
If you just put what he said into a script, it won't work. You'd have to write -

game.Workspace.Part.ClickDetector.MaxActivationDistance = 0

- assuming the ClickDetector is named ClickDetector and inside a Part named Part. If that doesn't work, make sure the script is enabled and check Output.
Report Abuse
ProjectSlayer is not online. ProjectSlayer
Joined: 04 Oct 2012
Total Posts: 10148
08 Apr 2016 08:35 PM
ninja'd
Report Abuse
tornado4adam is not online. tornado4adam
Joined: 09 Sep 2012
Total Posts: 245
08 Apr 2016 08:37 PM
Oh, thanks :D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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