23134
|
  |
| Joined: 20 Dec 2011 |
| Total Posts: 35 |
|
|
| 15 Apr 2014 11:35 PM |
I have this laser turret script and instead of using findNearestTorso it makes a brick called radios and when a zombie touches it, it shoots it
the problem is that if 2 zombies hit it at the same time it makes 2 lasers at the same time and attacks both
if I used while true do would it work?
and if it would how would I do that |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 15 Apr 2014 11:37 PM |
ok 1st of all findNearestTorso isnt a ROBLOX method, its a free model function 2nd of all while true do wouldnt solve anything 3rd of all use debounce. |
|
|
| Report Abuse |
|
|
23134
|
  |
| Joined: 20 Dec 2011 |
| Total Posts: 35 |
|
|
| 15 Apr 2014 11:40 PM |
| I have used debounce before it didn't work |
|
|
| Report Abuse |
|
|
23134
|
  |
| Joined: 20 Dec 2011 |
| Total Posts: 35 |
|
|
| 15 Apr 2014 11:41 PM |
| how is findNearestTorso not a roblox method if they use it? |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 15 Apr 2014 11:41 PM |
| Because its not. Its a player-defined function that is somewhere in the script. |
|
|
| Report Abuse |
|
|
23134
|
  |
| Joined: 20 Dec 2011 |
| Total Posts: 35 |
|
|
| 15 Apr 2014 11:43 PM |
| ok off the torso think I want to know how to make it shoot only one zombie at a time |
|
|
| Report Abuse |
|
|