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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Humanoid Anti-Spawnkill Weapons

Previous Thread :: Next Thread 
ThePixeled is not online. ThePixeled
Joined: 07 Oct 2012
Total Posts: 73
05 Jan 2015 02:30 PM
I have tried this before, and am not entirely sure how to fix this correctly. I want to edit a weapons script. (Example: Lugar Pistol) and change it so that it does damage to a Humanoid with the name "Zombie".
Report Abuse
ThePixeled is not online. ThePixeled
Joined: 07 Oct 2012
Total Posts: 73
05 Jan 2015 02:33 PM
EDIT: I am aware that you need to change the Humanoid name inside the script, I do not know in which places, however.
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
05 Jan 2015 03:13 PM
script.Parent.Touched:connect(function(t)
if t.Name == "NameOfBullet" then
script.Parent.Humanoid:TakeDamage(20)
end
end)



put that in every zombie, if you want a headshot, put another script in the head


R$994
Report Abuse
ThePixeled is not online. ThePixeled
Joined: 07 Oct 2012
Total Posts: 73
06 Jan 2015 06:12 AM
Thanks. I will try it.
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
06 Jan 2015 09:03 AM
You go in the main gunscript and change all the humanoids that get damaged to "Zombie"
Report Abuse
ThePixeled is not online. ThePixeled
Joined: 07 Oct 2012
Total Posts: 73
06 Jan 2015 01:51 PM
@Blade I am aware of this. As stated above I do not know where. As of this post I am still testing a script.
Report Abuse
ThePixeled is not online. ThePixeled
Joined: 07 Oct 2012
Total Posts: 73
06 Jan 2015 01:57 PM
@025 The script you gave me could be useful, however most guns that I have seen so far randomly spawn a Part, in which it would take a long time for me to re-name every brick inside my game.
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
06 Jan 2015 02:58 PM
@pix I read that right after I posted :P
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
06 Jan 2015 03:08 PM
Randomly spawn a bullet right?

find where it says "Instance.new" and add a local bullet = before it

then, do bullet.Name = "NameOfBullet"


R$944
Report Abuse
ThePixeled is not online. ThePixeled
Joined: 07 Oct 2012
Total Posts: 73
08 Jan 2015 06:59 PM
Okay, thanks guys. I've figured this out finally. xD
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