generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Will pay @200 robux if someone can help me out here.

Previous Thread :: Next Thread 
BookOfPowerz is not online. BookOfPowerz
Joined: 16 Dec 2013
Total Posts: 1082
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
maxi123456 is not online. maxi123456
Joined: 10 Apr 2009
Total Posts: 148
17 Jun 2017 03:12 PM
You would need to show the scripts. It's a mistake you made somewhere.
Report Abuse
maxi123456 is not online. maxi123456
Joined: 10 Apr 2009
Total Posts: 148
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
BookOfPowerz is not online. BookOfPowerz
Joined: 16 Dec 2013
Total Posts: 1082
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
maxi123456 is not online. maxi123456
Joined: 10 Apr 2009
Total Posts: 148
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
BookOfPowerz is not online. BookOfPowerz
Joined: 16 Dec 2013
Total Posts: 1082
17 Jun 2017 03:18 PM
please explain it more.


#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel
Report Abuse
BookOfPowerz is not online. BookOfPowerz
Joined: 16 Dec 2013
Total Posts: 1082
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
BlueWizard12345 is not online. BlueWizard12345
Joined: 31 Mar 2012
Total Posts: 906
17 Jun 2017 03:44 PM
yes
Report Abuse
ArkhamDeluxe is not online. ArkhamDeluxe
Joined: 21 May 2016
Total Posts: 561
17 Jun 2017 04:31 PM
Make cooldowns local to each player basically
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image