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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Ragdoll death?

Previous Thread :: Next Thread 
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
26 Jul 2012 06:25 PM
Have you ever played one of those games where when you die, you don't fall apart, but you fall like if you have joints like a rag doll? How do I do this?
Report Abuse
UberGiantBuilder is not online. UberGiantBuilder
Joined: 08 Jul 2012
Total Posts: 1233
26 Jul 2012 06:27 PM
Heheh, looks like my game has something yours doesn't >:3

Just look one up, nobodys going to give you a script, but heres the gyst (did I spell that right) of it.

Check if player died
if player did die then
insert weld on body parts
ends

thats how you would do it basically, I think you know how to script well enough to make that
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
26 Jul 2012 06:35 PM
I never asked for a script :P



What I need to know if there is a function for if the player died.
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
26 Jul 2012 06:36 PM
Yes there is.

I believe it's Humanoid.Died:connect()

Also, just search free models, you'll find a few.

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
26 Jul 2012 06:37 PM
Game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
Character.Humanoid.Died:connect(function()
--Code
end)
end)
end)

† KMXD †
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
26 Jul 2012 06:38 PM
Yes, you can check player.Character.Humanoid:Died(). Look on the wikipedia for a list of humanoid events.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
26 Jul 2012 06:44 PM
I keep looking in free models to see if theres one good enough to learn from, but I looked at the first one, it consisted of 2 scripts, and it looked highly inefficient. I looked at the rest and they were copied versions of the first. Is there any way I can do this in 1 script, and efficiently without separately jointing each body part?
Report Abuse
UberGiantBuilder is not online. UberGiantBuilder
Joined: 08 Jul 2012
Total Posts: 1233
26 Jul 2012 06:49 PM
Not really, thats the only way I know of, so I am no longer help to you.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
26 Jul 2012 07:27 PM
So I have to do each body part individually -_-

Bump.
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