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: i need help with RPG enemy

Previous Thread :: Next Thread 
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
16 Jul 2012 05:08 PM
im making an RPG game and i want a certain emamy to attack you when you hit the enamy. what a part of a script would do that?
Report Abuse
moryo7 is not online. moryo7
Joined: 19 Jul 2010
Total Posts: 5028
16 Jul 2012 05:10 PM
"Enamy"

Lol'd.


-> This Siggy is My Little Pony based. <-
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
16 Jul 2012 05:13 PM
idc, also can some one fix this?:

------------------------------------------------------------------------------------------

local Humanoid = script.Parent.Enemy
function PwntX_X()
local tag = Humanoid:findFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
local Leaderstats = tag.Value:findFirstChild("leaderstats")
if Leaderstats ~= nil then
Leaderstats.Gold.Value = Leaderstats.Gold.Value +
wait(0.1)
script:remove()
end
end
end
end
Humanoid.Died:connect(PwntX_X)

local Humanoid = script.Parent.Enemy
function PwntX_X()
local tag = Humanoid:findFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
local Leaderstats = tag.Value:findFirstChild("leaderstats")
if Leaderstats ~= nil then
Leaderstats.EXP.Value = Leaderstats.EXP.Value random + (10- 15)
wait(0.1) --*
script:remove()
end
end
end
end
Humanoid.Died:connect(PwntX_X)
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
16 Jul 2012 05:16 PM
FIXED* I forgot something.

------------------------------------------------------------------------------------------

local Humanoid = script.Parent.Enemy
function PwntX_X()
local tag = Humanoid:findFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
local Leaderstats = tag.Value:findFirstChild("leaderstats")
if Leaderstats ~= nil then
Leaderstats.Gold.Value = Leaderstats.Gold.Value random + (10 - 15)
wait(0.1)
script:remove()
end
end
end
end
Humanoid.Died:connect(PwntX_X)

local Humanoid = script.Parent.Enemy
function PwntX_X()
local tag = Humanoid:findFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
local Leaderstats = tag.Value:findFirstChild("leaderstats")
if Leaderstats ~= nil then
Leaderstats.EXP.Value = Leaderstats.EXP.Value random + (20 - 25)
wait(0.1) --*
script:remove()
end
end
end
end
Humanoid.Died:connect(PwntX_X)
Report Abuse
moryo7 is not online. moryo7
Joined: 19 Jul 2010
Total Posts: 5028
16 Jul 2012 05:17 PM
...Enamy.
Lolololol


-> This Siggy is My Little Pony based. <-
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
16 Jul 2012 06:02 PM
rlly dude?
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
16 Jul 2012 06:18 PM
...Enamy.
Lolololol
Report Abuse
BobbyisLOLZ is not online. BobbyisLOLZ
Joined: 17 Aug 2010
Total Posts: 8045
16 Jul 2012 06:24 PM
...Enamy.
Lolololol
Report Abuse
cbass25 is not online. cbass25
Joined: 03 Jul 2009
Total Posts: 2957
16 Jul 2012 06:56 PM
...Enamy...
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
16 Jul 2012 06:57 PM
...Enamy.
Lolololol
Report Abuse
yyyfa is not online. yyyfa
Joined: 06 Aug 2011
Total Posts: 380
16 Jul 2012 07:12 PM
Enamy! Lololololo. (plus a little extra Lolololo, with a side of Lolololo dipped in deep-fried Lololololo to go.)
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
16 Jul 2012 07:13 PM
Man, you combo-breakers are such buzzkillers. Time to start a new chain! :D

Cheese

(include this entire post)
Report Abuse
yyyfa is not online. yyyfa
Joined: 06 Aug 2011
Total Posts: 380
16 Jul 2012 07:14 PM
Man, you combo-breakers are such buzzkillers. Time to start a new chain! :D

Cheese

(include this entire post)
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
16 Jul 2012 07:33 PM
s no one is going to help?
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
16 Jul 2012 07:34 PM
Darnit. :c
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
16 Jul 2012 07:34 PM
HERE! JEEZ!

im making an RPG game and i want a certain emamy to attack you when you hit the enemy. what a part of a script would do that?
Report Abuse
cbass25 is not online. cbass25
Joined: 03 Jul 2009
Total Posts: 2957
17 Jul 2012 09:47 AM
...enamy
Report Abuse
Techwiz19 is not online. Techwiz19
Joined: 30 Jan 2011
Total Posts: 462
17 Jul 2012 10:05 AM
Come on guys lay off with the enamy.
The first time he uses the word it says "emamy"..
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
17 Jul 2012 04:25 PM
for my post before this one. i just copied and pasted it the sentence. so can anyone help me?
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
17 Jul 2012 04:35 PM
wait, nvm
Report Abuse
piepienoob is not online. piepienoob
Joined: 21 Aug 2011
Total Posts: 289
17 Jul 2012 04:35 PM
but i do need a script for the thing 2 posts above
Report Abuse
CurrentDemand is not online. CurrentDemand
Joined: 16 Jul 2012
Total Posts: 23
17 Jul 2012 04:37 PM
You were closer to spelling "enemy" then the second time.
Report Abuse
cbass25 is not online. cbass25
Joined: 03 Jul 2009
Total Posts: 2957
18 Jul 2012 06:36 PM
...enaaaaaamy.
Report Abuse
cbass25 is not online. cbass25
Joined: 03 Jul 2009
Total Posts: 2957
18 Jul 2012 06:37 PM
ok im done. so what is your question?
Report Abuse
moryo7 is not online. moryo7
Joined: 19 Jul 2010
Total Posts: 5028
18 Jul 2012 06:40 PM
Listen,
We're not just going to give you hard scripted "Emamies"
for free.
Plus, requests aren't accepted here. Read the rules.


-> This Siggy is My Little Pony based. <-
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