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
 

Re: make a script that if a humanoid takes Dmg it chases you

Previous Thread :: Next Thread 
KodieCorn is not online. KodieCorn
Joined: 23 Jul 2012
Total Posts: 6500
28 Dec 2015 12:41 AM
Is it possible to make a script that if a humanoid takes damage it chases you ?

Like if you have a humanoid in an rpg game and someone shoots it with a bow from far away it will start chasing you.

Or if you shoot a zombie from far away with a gun it wont stand still and will start following you.
Report Abuse
Decorpsesonator is not online. Decorpsesonator
Joined: 24 May 2013
Total Posts: 130
28 Dec 2015 12:43 AM
Humanoid.HealthChanged
Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
28 Dec 2015 12:49 AM
Kitteh6660's rpg kit does that
Report Abuse
indeimaus is not online. indeimaus
Joined: 01 Sep 2014
Total Posts: 4285
28 Dec 2015 01:22 AM
I don't know how to code AI
Report Abuse
KodieCorn is not online. KodieCorn
Joined: 23 Jul 2012
Total Posts: 6500
28 Dec 2015 01:28 AM
Hmmmm I'll try to figure something out, if not I can just stick with swords
Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
28 Dec 2015 01:10 PM
maybe try making a follow script and making it enabled once healthchanged
Report Abuse
KodieCorn is not online. KodieCorn
Joined: 23 Jul 2012
Total Posts: 6500
29 Dec 2015 01:24 AM
The orcs in RangeMelude's place TLON start chasing you if you attack them with a ranged staff

Hmmmmm..
Report Abuse
Link5659 is not online. Link5659
Joined: 04 Jun 2012
Total Posts: 4525
29 Dec 2015 01:27 AM
The wiki literally tells you
Report Abuse
highfly101 is not online. highfly101
Joined: 02 Aug 2013
Total Posts: 309
29 Dec 2015 01:30 AM
function(DeezNuts)

script.Parent.DeezNuts.Reflection = 11111111111111.1341341248028HAXEHFIBEAIUF)999999999999999999r fergjfio vawejrniotfwvrnipjg iuore
Report Abuse
KodieCorn is not online. KodieCorn
Joined: 23 Jul 2012
Total Posts: 6500
29 Dec 2015 01:36 AM
Where exactly in the wiki ? can I have a link

And im talking about ranged attacks not melee
Report Abuse
KodieCorn is not online. KodieCorn
Joined: 23 Jul 2012
Total Posts: 6500
29 Dec 2015 02:29 AM
I've even went through a bunch of models switched there follow distance to 10 and shot them from far away and none of them even budged or tried to chase me.
Report Abuse
KodieCorn is not online. KodieCorn
Joined: 23 Jul 2012
Total Posts: 6500
29 Dec 2015 10:49 PM
I've been told I need a weapon that adds a tag value to that monster which includes a username. Then the monster checks for this tag and whenever it finds one, it will follow the username in that tag. Then the tag automatically vanishes after 10 seconds of not hitting the monster so it won't continue to follow when you run away for too long.

Do I need one script in the weapon to add the tag and the other script in the monster to check for the tag ?

Can anybody help with this ?
Report Abuse
izzatnasruna is not online. izzatnasruna
Joined: 09 Jun 2009
Total Posts: 1927
29 Dec 2015 10:55 PM
"Do I need one script in the weapon to add the tag and the other script in the monster to check for the tag ?"

Yes, to both question.
Report Abuse
KodieCorn is not online. KodieCorn
Joined: 23 Jul 2012
Total Posts: 6500
01 Jan 2016 02:36 AM
Bump.

still unsuccessful with making these scripts.

Halp.
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