|
| 17 May 2014 01:45 PM |
This debounce isn't working. Any help please? -- function onTouched(part,v) if debounce==true then debounce=false if part.Parent==script.Parent then v.Points.Value=v.Points.Value*2 end debounce=true end end
while true do wait() debounce=true for _,v in pairs (game.Workspace:GetChildren()) do if v.Name=="Coin" then v.Touched:connect(function(part) onTouched(part,v) end) end end end
--It multiplies the v.Points.Value by 2 multiple times, instead on only once. |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 17 May 2014 02:00 PM |
Its for that double points script you helped me on earlier. I need the *2, but I don't want it to repeat. |
|
|
| Report Abuse |
|
|
| |
|