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 » Game Design
Home Search
 

Re: CoderQwerty's Weapon Pack from B&I

Previous Thread :: Next Thread 
SirDarkday560 is not online. SirDarkday560
Joined: 08 Oct 2011
Total Posts: 6794
04 Apr 2016 08:47 AM
http://www.roblox.com/CoderQwertys-Weapon-Pack-item?id=391855781

CoderQwerty's weapons don't seem to give KOs when you kill somebody.

I've been trying for a couple days to get the muskets and pistols to give KOs, but it won't work. Does anybody have any suggestions?


Also, I'd appreciate it if somebody could tell me how to remove the requirement where you have to be in first person to Present/Take aim the musket.


Report Abuse
SirDarkday560 is not online. SirDarkday560
Joined: 08 Oct 2011
Total Posts: 6794
04 Apr 2016 08:57 AM
Also, I'm not the best scripter. My skills are pretty much limited to changing numbers and other kinds of values, and copy and pasting lines.


Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
04 Apr 2016 11:23 AM
because they're specific to the leaderboard in his game and not yours
Report Abuse
SirDarkday560 is not online. SirDarkday560
Joined: 08 Oct 2011
Total Posts: 6794
04 Apr 2016 12:04 PM
He doesn't have a leaderboard in his game.


Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
04 Apr 2016 10:29 PM
by leaderboard i mean his KOs/WOs script or whatever
Report Abuse
SirDarkday560 is not online. SirDarkday560
Joined: 08 Oct 2011
Total Posts: 6794
07 Apr 2016 09:25 AM
He doesn't have a KOs/WOs script.


Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
07 Apr 2016 09:40 AM
"CoderQwerty's weapons don't seem to give KOs when you kill somebody."

then how do you expect them to "give KOs" in your game
Report Abuse
SirDarkday560 is not online. SirDarkday560
Joined: 08 Oct 2011
Total Posts: 6794
07 Apr 2016 11:32 PM
I was hoping somebody would help me fix the muskets to make them give KOs.

Now, please, let somebody else answer. You really aren't helping.


Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
08 Apr 2016 12:15 PM
Anyone else is free to answer. You can't really take suggestions, you're going to have to edit the code
Report Abuse
Eyerny is not online. Eyerny
Joined: 15 Jun 2013
Total Posts: 1554
08 Apr 2016 12:22 PM
Recurr is right,normally someone else's code won't work in your game as it is made to work with the scripts in their game.One way or another you'd have to make the script recognize the musket killing someone to update the leaderboard.

There are quite a few tutorials on the roblox wiki for this.You'd either have to get someone to change it either for free or for cash or edit it yourself.
Report Abuse
SirDarkday560 is not online. SirDarkday560
Joined: 08 Oct 2011
Total Posts: 6794
08 Apr 2016 12:30 PM
Hmm. If you look in the bullet script, it shows the damage for the different places you hit a person. Would it work to add a couple lines where if the humanoid dies, it adds a KO?


Report Abuse
Casualism is not online. Casualism
Joined: 29 Oct 2011
Total Posts: 1851
08 Apr 2016 12:58 PM
Every time you hit a person, check the health. If the health is <= 0 then give out the KO
Report Abuse
SirDarkday560 is not online. SirDarkday560
Joined: 08 Oct 2011
Total Posts: 6794
08 Apr 2016 11:22 PM
I know I'm going to sound really stupid, but as I said I'm not a very good scripter. How would I go about doing this?


Report Abuse
Casualism is not online. Casualism
Joined: 29 Oct 2011
Total Posts: 1851
08 Apr 2016 11:49 PM
Post code where it deals damage when it hits a humanoid
Report Abuse
SirDarkday560 is not online. SirDarkday560
Joined: 08 Oct 2011
Total Posts: 6794
08 Apr 2016 11:52 PM
I can't find any.

Or maybe I'm just not reading it right.


Report Abuse
Casualism is not online. Casualism
Joined: 29 Oct 2011
Total Posts: 1851
08 Apr 2016 11:58 PM
Pastebin all the code?
Report Abuse
SirDarkday560 is not online. SirDarkday560
Joined: 08 Oct 2011
Total Posts: 6794
09 Apr 2016 12:06 AM
This is the bullet script:
http://pastebin.com/r1LkSwqw


Report Abuse
Casualism is not online. Casualism
Joined: 29 Oct 2011
Total Posts: 1851
09 Apr 2016 12:13 AM
Change this:
elseif Hit.Parent:FindFirstChild("HumanoidLink") then
coroutine.resume(Fade)
DamagePlayer(Hit.Parent.HumanoidLink.Value, Hit.Name, Distance, Hit)
ImpactSound.SoundId = "http://www.roblox.com/asset/?id=133758570"
Part.BrickColor = BrickColor.new("Bright red")
Part.Anchored = false


to this:


elseif Hit.Parent:FindFirstChild("HumanoidLink") then
coroutine.resume(Fade)
DamagePlayer(Hit.Parent.HumanoidLink.Value, Hit.Name, Distance, Hit)
ImpactSound.SoundId = "http://www.roblox.com/asset/?id=133758570"
Part.BrickColor = BrickColor.new("Bright red")
Part.Anchored = false
Player:WaitForChild("leaderstats"):FindFirstChild("KO").Value = Player:WaitForChild("leaderstats"):FindFirstChild("KO").Value + 1





-------
Add you KO script to create an int value called leaderstats in player, and then have a int value in that called KO
Report Abuse
SirDarkday560 is not online. SirDarkday560
Joined: 08 Oct 2011
Total Posts: 6794
09 Apr 2016 09:29 AM
There are a few areas where that piece of code repeats, should I change them all?


Report Abuse
Casualism is not online. Casualism
Joined: 29 Oct 2011
Total Posts: 1851
09 Apr 2016 12:23 PM
Experiment around w/ it
Report Abuse
SirDarkday560 is not online. SirDarkday560
Joined: 08 Oct 2011
Total Posts: 6794
10 Apr 2016 02:05 PM
Okay, so, I got the musket to give KOs with a specific leaderboard, but it only works sometimes. Sometimes it will count the KO, sometimes it wont. If you can bring a friend to this place, you'll see what I'm talking about:

https://www.roblox.com/games/393034149/SirDarkday560s-Place-Number-217


Report Abuse
Casualism is not online. Casualism
Joined: 29 Oct 2011
Total Posts: 1851
10 Apr 2016 03:05 PM
Paste in what you have? Or is the same as what I posted?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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