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 » Game Design
Home Search
 

Re: I need help with a script. Whoever helps will get credit.

Previous Thread :: Next Thread 
antimatter78 is online. antimatter78
Joined: 05 Jan 2014
Total Posts: 1551
18 Jan 2016 10:00 AM
Can you help me make a script so that when a humanoid's HP=0 it drops a tool.

Thx if you can help.
Report Abuse
alphaboy299 is not online. alphaboy299
Joined: 15 Jun 2013
Total Posts: 1496
18 Jan 2016 10:20 AM
You want a script to drop a tool when the player dies?
Report Abuse
DerpyMerpKing is not online. DerpyMerpKing
Joined: 05 Feb 2011
Total Posts: 2553
18 Jan 2016 10:37 AM
make this clone it into the character every time it joins/respawns

while wait() do
if script.Parent.Humanoid.Health < 1 then
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("Tool") or v:IsA("HopperBin") then
v.Parent = game.Workspace
end
end
end
end


probably wont work lmao
test it in studio by pasting that into a script inside your character and resetting
if it breaks im probably not gonna fix it
Report Abuse
antimatter78 is online. antimatter78
Joined: 05 Jan 2014
Total Posts: 1551
18 Jan 2016 12:53 PM
Derpy it doesn't work. Also I mean for an NPC to drop a tool when it dies.
Report Abuse
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
18 Jan 2016 06:30 PM
tool = game.{Where tool is stored/ lighting serverstorage}.TOOLNAME
if {npc path} .Health < 1 then
tool:Clone().Parent = game.Workspace
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