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 » Scripting Helpers
Home Search
 

Re: Scripting the enemy

Previous Thread :: Next Thread 
grooseybuns is not online. grooseybuns
Joined: 16 Nov 2012
Total Posts: 113
24 Aug 2014 12:51 PM
I am making an rpg, and I need to know how to script my enemy. Now read this next part VERY carfuly or you might give me the wrong script (idk how to script lol, don't tell me to learn, I get that a lot),I have created my enemy base, I have inserted a humanoid into the torso, I need a script to make him follow and attack you for 5 dmg. I need to know where to insert it. step by step preferably.
do not do one of those things where I insert things like dmg and speed and health. he will have 50 health 15 walkspeed and 5 dmg.
Report Abuse
grooseybuns is not online. grooseybuns
Joined: 16 Nov 2012
Total Posts: 113
09 Oct 2014 06:47 PM
y u no help, fine ima take some scripts I find somewhere
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
09 Oct 2014 07:11 PM
"you might give me the wrong script"

lol were not giving you any script
Report Abuse
bubba0nate is not online. bubba0nate
Joined: 18 Aug 2012
Total Posts: 38
09 Oct 2014 07:12 PM
You realize that nobody saw this thread the first time, or they couldn't help, right? Bump before giving up, at least once.
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
09 Oct 2014 07:12 PM
no


i like making people feel bad when they log on to check their thread
Report Abuse
bubba0nate is not online. bubba0nate
Joined: 18 Aug 2012
Total Posts: 38
13 Oct 2014 08:05 PM
do you even know what I just said?
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
13 Oct 2014 08:07 PM
ok here

1) learn lua
2) do something
3) ???
4) profit
Report Abuse
charcle is not online. charcle
Joined: 23 Oct 2008
Total Posts: 94
13 Oct 2014 08:11 PM
Have a script inside the enemy that says this[[

while true do

local dist = (plrs[i].Character.Torso.Position - script.Parent.Torso.Position).magnitude

local plrs = game.Players:GetChildren()
script.Parent.Humanoid:MoveTo(plrs[i].Character.Torso.Position)
if dist < 5 then
plrs[1].Character.Humanoid.Health = plrs[1].Character.Humanoid.Health - 5
end
wait(7)
end

]]

this is extremely basic and only targets 1 guy on the server
srry this is all I'm giving you

(learn to script plz, you'll like it)
Report Abuse
lowvillan is not online. lowvillan
Joined: 14 Sep 2010
Total Posts: 725
13 Oct 2014 08:14 PM
"I have inserted a humanoid into the torso"
oh my god i am dying of laughter

Anyway..
Either learn to script, or just take free models like most people.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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