|
| 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 |
|
|
|
| 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 |
|
|
|
| 04 Apr 2016 11:23 AM |
| because they're specific to the leaderboard in his game and not yours |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2016 12:04 PM |
He doesn't have a leaderboard in his game.
|
|
|
| Report Abuse |
|
|
|
| 04 Apr 2016 10:29 PM |
| by leaderboard i mean his KOs/WOs script or whatever |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2016 09:25 AM |
He doesn't have a KOs/WOs script.
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 08 Apr 2016 11:52 PM |
I can't find any.
Or maybe I'm just not reading it right.
|
|
|
| Report Abuse |
|
|
Casualism
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1851 |
|
| |
|
|
| 09 Apr 2016 12:06 AM |
This is the bullet script: http://pastebin.com/r1LkSwqw
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1851 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|