|
| 17 Jun 2017 03:10 PM |
Alright, please listen.
So I have this attack which is a fired event if you press the key 'X'.
Lets say there are 2 people in the same server. They both press the X key after each other. When the first one presses it, the attack works all fine, HOWEVER, after the second person presses it, it doesn't do anything as it has already fired the attack and there is a cooldown in the attack. How can I make it so the second player can use it as well?
#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel |
|
|
| Report Abuse |
|
|
|
| 17 Jun 2017 03:12 PM |
| You would need to show the scripts. It's a mistake you made somewhere. |
|
|
| Report Abuse |
|
|
|
| 17 Jun 2017 03:14 PM |
| Otherwise to keep it simple, create a BoolValue or something in your player and check if its false, if yes fire and set it to true and after a few seconds set it to false again. |
|
|
| Report Abuse |
|
|
|
| 17 Jun 2017 03:14 PM |
the attack: /ffZ4h7z5 ^ pastebin link.
#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel |
|
|
| Report Abuse |
|
|
|
| 17 Jun 2017 03:16 PM |
| Yea as I thought, you created a variable for the whole script. Instead do it as I stated previously and check if the boolvalue is false. You could also make a table in the script and insert the people there that already fired, and check if they are in the table. |
|
|
| Report Abuse |
|
|
|
| 17 Jun 2017 03:18 PM |
please explain it more.
#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel |
|
|
| Report Abuse |
|
|
|
| 17 Jun 2017 03:18 PM |
could u do it for me? ill pay @200.
#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Jun 2017 04:31 PM |
| Make cooldowns local to each player basically |
|
|
| Report Abuse |
|
|