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: .Died:connect(function()

Previous Thread :: Next Thread 
Alimegacorn is not online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
01 Jun 2016 03:37 PM
somehow this is cloning the jewel even if it hasn't died
like, the jewel just appears in front of the NPC even when it hasn't died
Report Abuse
Alimegacorn is not online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
01 Jun 2016 03:38 PM
script:

script.Parent.Enemy.Died:connect(function()
local drop = game.Lighting.Jewel:Clone()
drop.Parent = workspace
drop.Position = script.Parent.Torso.Position + Vector3.new(0, 0, 3)
end)
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
01 Jun 2016 03:57 PM
humanoid.Changed:connect(function(prop)
print(prop)
end)

use that to see if the humanoid is being killed somehow


Report Abuse
2eggnog is not online. 2eggnog
Joined: 08 Nov 2008
Total Posts: 1351
01 Jun 2016 04:24 PM
That's a pretty strange problem. Two suggestions:
1. Make sure 'script.Parent.Enemy' is actually a humanoid object and not the enemy model.
2. Try checking if the Health is actually 0 first.


Report Abuse
Alimegacorn is not online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
02 Jun 2016 01:07 PM
solved it, there was a script named "qPerfectionWeld" that is a weld tool that a tree used
that thing breaks legit everything in your game
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