|
| 06 Sep 2017 06:25 PM |
| function onTouch() script.Parent.Transparency = ### ################# #### ########################## = ### ################# #### ########################## = ### ################# #### ########################## = ### ################# #### ########################## = ### ################# #### ########################## = ### ################# #### ########################## = ### ################# #### ########################## = ### ################# #### ########################## = 0.9 wait (.2) script.Parent:Destroy() end script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2017 06:26 PM |
| https://hastebin . com/iqukimupog . pas |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2017 06:29 PM |
local debounce = false
function ontouch() if debounce == false then debounce = true --code wait(time u want) debounce = false end
debounce can be applied in anything, just define a variable as a bool value outside of the function, and then check inside the function if debounce is the same bool as the one defined before. if so, set it to the opposite and continue with the script
wait however long u like and then set the debounce back to the original bool |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2017 06:39 PM |
https://hastebin .com / ofohewiyic . bash
Would that be right? |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2017 06:44 PM |
what u did was correct except for the wait()
replace the argument inside of wait() with whatever number u want
of course, u should know this by now
also a suggestion, try using a repeat loop so u won't have to manually adjust the transparency every time |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 06 Sep 2017 06:46 PM |
| Connect not connect and use a loop |
|
|
| Report Abuse |
|
|