marfit
|
  |
| Joined: 10 Jan 2013 |
| Total Posts: 2539 |
|
|
| 20 Jul 2017 10:46 PM |
ebounce = false
script.Parent.Touched:connect(function(plr) if plr.Parent.Humanoid == true then if debounce == false then debounce = true for i = 1,120 do if script.Parent.TouchEnded then else game.Workspace.MidCount.Value.Value = game.Workspace.MidCount.Value.Value - 1 wait(1) end end end end end)
It doesn't report any error messages, nothing. It just doesn't lower the time (which works) |
|
|
| Report Abuse |
|
|
marfit
|
  |
| Joined: 10 Jan 2013 |
| Total Posts: 2539 |
|
|
| 20 Jul 2017 10:48 PM |
I added some print to find out where it stopped working, and it seems its the if plr.Parent.Humanoid == true. Not sure why though. |
|
|
| Report Abuse |
|
|
deu
|
  |
| Joined: 07 Jan 2007 |
| Total Posts: 150 |
|
|
| 20 Jul 2017 10:48 PM |
you put ebounce, and you're checking for debounce in the script
|
|
|
| Report Abuse |
|
|
800s
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 12507 |
|
|
| 20 Jul 2017 10:49 PM |
you put ebounce, and you're checking for debounce in the script[2]
--Studying lua |
|
|
| Report Abuse |
|
|
marfit
|
  |
| Joined: 10 Jan 2013 |
| Total Posts: 2539 |
|
|
| 20 Jul 2017 10:50 PM |
| No, its debounce, I just accidentally didn't put it in this forum. Its there. |
|
|
| Report Abuse |
|
|
marfit
|
  |
| Joined: 10 Jan 2013 |
| Total Posts: 2539 |
|
|
| 21 Jul 2017 11:38 AM |
| It was debounce in the first place. I just made an error when copying it. |
|
|
| Report Abuse |
|
|
marfit
|
  |
| Joined: 10 Jan 2013 |
| Total Posts: 2539 |
|
| |
|