|
| 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 |
|
|
|
| 08 Apr 2016 08:28 PM |
| ClickDetector.MaxActivationDistance = 0 |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Apr 2016 08:34 PM |
| Nevermind. Turns out I forgot to add the if statement :P. Thanks! :D |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
| |
|