CarlosMX
|
  |
| Joined: 30 Apr 2011 |
| Total Posts: 791 |
|
|
| 02 Jan 2013 01:24 AM |
debounce = true function onTouched(hit) if not debounce then return end if(hit.Parent:findFirstChild("Humanoid") == nil) then return end debounce = false game.Lighting.Laps:clone().Parent = hit end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 01:43 AM |
| Do you want to put "laps" in the body part that touched the part because that's what's its doing. And you never srt the debounce to true again. |
|
|
| Report Abuse |
|
|
CarlosMX
|
  |
| Joined: 30 Apr 2011 |
| Total Posts: 791 |
|
|
| 02 Jan 2013 02:27 AM |
| yes, thats what I want it to do |
|
|
| Report Abuse |
|
|
| |
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 02 Jan 2013 02:45 AM |
debounce = true function onTouched(hit) if hit.Parent:findFirstChild("Humanoid") and debounce == true then debounce = false game.Lighting.Laps:clone().Parent = hit.Parent end debounce = true end script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|