|
| 12 May 2014 09:49 PM |
| When you spam the different style hair buttons it will spam hair hair all over the ground because it can't keep up. Can anyone help me? |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 12 May 2014 10:11 PM |
lol
add a wait''; --interval (3); |
|
|
| Report Abuse |
|
|
twerq
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 1057 |
|
| |
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 12 May 2014 10:22 PM |
Nah, debounce,
cooldown = --Put amount of seconds for cooldown to last.
db = false script.Parent.MouseButton1Down:connect(function() if db == false then db = true end --your code end end) wait(cooldown) db = false |
|
|
| Report Abuse |
|
|
|
| 12 May 2014 10:32 PM |
cooldown = --Put amount of seconds for cooldown to last.
db = false
script.Parent.MouseButton1Down:connect(function()
if db == false then db = true end --your code wait(cooldown) db = false end
end)
--you had the wait at rong spot |
|
|
| Report Abuse |
|
|
|
| 13 May 2014 02:03 PM |
| there an error with your debounce :l anyone else? |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 13 May 2014 06:05 PM |
local wait_time=3; local aa=script.Parent; give=function() db=false; if(db==false)then db=true;end wait(wait_time)end; aa.MouseButton1Down:connect(give); |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 14 May 2014 11:29 PM |
| ^Dat C++ usage showin incho work. |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
| |
|
|
| 22 May 2014 07:22 PM |
cooldown = --Put amount of seconds for cooldown to last.
db = false
script.Parent.MouseButton1Down:connect(function() if db == false then db = true --your code wait(cooldown) db = false end end)
--leedle, I had an end at the rong spot |
|
|
| Report Abuse |
|
|