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: Drop when health is 0

Previous Thread :: Next Thread 
PapaEunit is not online. PapaEunit
Joined: 16 Mar 2012
Total Posts: 32
03 Jun 2012 01:55 PM
Alright so I have a script from free models that allows me to create quests. For such a quest, the player must kill an enemy NPC and it will drop an Item. That item is what the quest requires. I'm almost completely new to scripting, so I looked at examples and made this patchwork abomination of a script. Please help me fix it.

if parent.Humanoid.Health = 0
game.Lighting:FindFirstChild("RaiderHead"):Clone()
Report Abuse
TrapperOnline is not online. TrapperOnline
Joined: 14 Mar 2012
Total Posts: 294
03 Jun 2012 01:56 PM
Where did you learn to script?
Report Abuse
PapaEunit is not online. PapaEunit
Joined: 16 Mar 2012
Total Posts: 32
03 Jun 2012 01:57 PM
I didn't learn. I'm learning. I was told to look at scripts, and see what I can do. Now i'm trying. Can you help me out?
Report Abuse
bananacupcake is not online. bananacupcake
Joined: 15 Jun 2010
Total Posts: 571
03 Jun 2012 02:00 PM
Clearly you're REALLY new to scripting. That script will do nothing. Go to wiki.roblox.com and start learning the basics before you move on.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
03 Jun 2012 02:00 PM
Try LuaLearners also, if you find the wiki hard.
Report Abuse
TrapperOnline is not online. TrapperOnline
Joined: 14 Mar 2012
Total Posts: 294
03 Jun 2012 02:01 PM
Hum=[Path to hum]

function Died()
local Obj = game.Lighting:FindFirstChild("RaiderHead"):Clone()
Obj.Parent=Workspace
Obj.CFrame=Hum.Parent.Torso.CFrame
end

Hum.Died:connect(Died)
Report Abuse
PapaEunit is not online. PapaEunit
Joined: 16 Mar 2012
Total Posts: 32
03 Jun 2012 02:02 PM
Alright, I'll check it out. But will I get any help?
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
03 Jun 2012 02:03 PM
LuaLearners has a website where there is a forum and tutorials. They also have a Roblox group.

Search "LuaLearners" on Google.
Report Abuse
TrapperOnline is not online. TrapperOnline
Joined: 14 Mar 2012
Total Posts: 294
03 Jun 2012 02:04 PM
How advanced does LuaLearners site go?

I know how to script, but I can't find any good tutorials on advanced scripting :|
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
03 Jun 2012 02:05 PM
It has tutorials from Beginner to Expert

And they have separate, stand alone tutorials for certain things to.
Report Abuse
PapaEunit is not online. PapaEunit
Joined: 16 Mar 2012
Total Posts: 32
03 Jun 2012 02:08 PM
Thanks grenday, I'm on their website now. And Trapper, thanks, you've helped immensley. When I finish the game, expect to be credited in the description.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
03 Jun 2012 02:10 PM
Wow...
Thanks.

Oh and a suggestion, when your reading the tutorials, mark down everything you learn somewhere. So you have it for future reference.
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