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: RagDoll Script

Previous Thread :: Next Thread 
bossofyou30 is not online. bossofyou30
Joined: 24 Dec 2011
Total Posts: 186
30 Jan 2012 06:51 PM
I have a ragdoll script, but when the player dies while moving they blow into pieces and fly off somewhere. in logitech102s call of duty place this doesnt happen. How do I fix this so that when you die while moving you dont fly into peices?
Report Abuse
Shobobo99 is not online. Shobobo99
Joined: 30 Dec 2008
Total Posts: 5754
30 Jan 2012 06:52 PM
Eh, go to Scripters Helpers next time. Not exactly sure how your "ragdoll" script is set up, but try setting the velocity of each part to Vector3.new() when they die.
Report Abuse
bossofyou30 is not online. bossofyou30
Joined: 24 Dec 2011
Total Posts: 186
30 Jan 2012 06:55 PM
Here is the Script. I already did go to scripting helpers but i hadnt gotten a reply in a day so I posted another thread but no reply there either



Character = script.Parent
Humanoid = Character.Humanoid
Torso = Character.Torso

function OnDeath()
print("Death")
Humanoid.Parent = nil
if Torso then
local Head = Character:FindFirstChild("Head")
if Head then
local Neck = Instance.new("Weld")
Neck.Name = "Neck"
Neck.Part0 = Torso
Neck.Part1 = Head
Neck.C0 = CFrame.new(0, 1.5, 0)
Neck.C1 = CFrame.new()
Neck.Parent = Torso
end
local Limb = Character:FindFirstChild("Right Arm")
if Limb then

Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
local Joint = Instance.new("Glue")
Joint.Name = "RightShoulder"
Joint.Part0 = Torso
Joint.Part1 = Limb
Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
Joint.Parent = Torso

local B = Instance.new("Part")
B.TopSurface = 0
B.BottomSurface = 0
B.formFactor = "Symmetric"
B.Size = Vector3.new(1, 1, 1)
B.Transparency = 0
B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
B.Parent = Character
local W = Instance.new("Weld")
W.Part0 = Limb
W.Part1 = B
W.C0 = CFrame.new(0, -0.5, 0)
W.Parent = Limb

end
local Limb = Character:FindFirstChild("Left Arm")
if Limb then

Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
local Joint = Instance.new("Glue")
Joint.Name = "LeftShoulder"
Joint.Part0 = Torso
Joint.Part1 = Limb
Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
Joint.Parent = Torso

local B = Instance.new("Part")
B.TopSurface = 0
B.BottomSurface = 0
B.formFactor = "Symmetric"
B.Size = Vector3.new(1, 1, 1)
B.Transparency = 0
B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
B.Parent = Character
local W = Instance.new("Weld")
W.Part0 = Limb
W.Part1 = B
W.C0 = CFrame.new(0, -0.5, 0)
W.Parent = Limb

end
local Limb = Character:FindFirstChild("Right Leg")
if Limb then

Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
local Joint = Instance.new("Glue")
Joint.Name = "RightHip"
Joint.Part0 = Torso
Joint.Part1 = Limb
Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
Joint.Parent = Torso

local B = Instance.new("Part")
B.TopSurface = 0
B.BottomSurface = 0
B.formFactor = "Symmetric"
B.Size = Vector3.new(1, 1, 1)
B.Transparency = 0
B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
B.Parent = Character
local W = Instance.new("Weld")
W.Part0 = Limb
W.Part1 = B
W.C0 = CFrame.new(0, -0.5, 0)
W.Parent = Limb

end
local Limb = Character:FindFirstChild("Left Leg")
if Limb then

Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
local Joint = Instance.new("Glue")
Joint.Name = "LeftHip"
Joint.Part0 = Torso
Joint.Part1 = Limb
Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
Joint.Parent = Torso

local B = Instance.new("Part")
B.TopSurface = 0
B.BottomSurface = 0
B.formFactor = "Symmetric"
B.Size = Vector3.new(1, 1, 1)
B.Transparency = 0
B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
B.Parent = Character
local W = Instance.new("Weld")
W.Part0 = Limb
W.Part1 = B
W.C0 = CFrame.new(0, -0.5, 0)
W.Parent = Limb

end
--[
local Bar = Instance.new("Part")
Bar.TopSurface = 0
Bar.BottomSurface = 0
Bar.formFactor = "Symmetric"
Bar.Size = Vector3.new(1, 1, 1)
Bar.Transparency = 0
Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
Bar.Parent = Character
local Weld = Instance.new("Weld")
Weld.Part0 = Torso
Weld.Part1 = Bar
Weld.C0 = CFrame.new(0, 0.5, 0)
Weld.Parent = Torso
--]]
end
end

Humanoid.Died:connect(OnDeath)
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
30 Jan 2012 07:00 PM
"Eh, go to Scripters Helpers next time"

AM I THE ONLY USER ON ROBLOX THAT CAN WRITE "Scripting Helpers" CORRECTLY? O_o
Report Abuse
bossofyou30 is not online. bossofyou30
Joined: 24 Dec 2011
Total Posts: 186
30 Jan 2012 07:05 PM
Wow how did this go to scripting helpers? Great now I have two threads in scripting helpers about this. can anyone help me?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
30 Jan 2012 07:07 PM
@Julien

Scripting Helpers.

† KMXD †
Report Abuse
bossofyou30 is not online. bossofyou30
Joined: 24 Dec 2011
Total Posts: 186
30 Jan 2012 07:08 PM
CAN anyone please help me I really need help!
Report Abuse
bossofyou30 is not online. bossofyou30
Joined: 24 Dec 2011
Total Posts: 186
30 Jan 2012 07:16 PM
If you need to see an example of what Im talking about then go to my place, I set up a legion of ten robloxians for you to shoot. If you shoot them while moving you will see what Im talking about.
Report Abuse
bossofyou30 is not online. bossofyou30
Joined: 24 Dec 2011
Total Posts: 186
30 Jan 2012 07:45 PM
why am I not getting help?
Report Abuse
Shobobo99 is not online. Shobobo99
Joined: 30 Dec 2008
Total Posts: 5754
30 Jan 2012 07:54 PM
I already told you what you need to know. It is incredibly easy to do to.
Report Abuse
bossofyou30 is not online. bossofyou30
Joined: 24 Dec 2011
Total Posts: 186
30 Jan 2012 08:04 PM
but i dont know how.
Report Abuse
Shobobo99 is not online. Shobobo99
Joined: 30 Dec 2008
Total Posts: 5754
30 Jan 2012 08:08 PM
Then you shouldn't be using such advanced scripts without basic knowledge of scripting :)
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
30 Jan 2012 08:08 PM
> Eh, go to Scripters Helpers next time.

Wait, what? I'm pretty sure this is scripting helpers?

@OP
You could just try looping it to make it have a better chance of sticking?
Report Abuse
Shobobo99 is not online. Shobobo99
Joined: 30 Dec 2008
Total Posts: 5754
30 Jan 2012 08:09 PM
@SDuke524

It was moved by mods.
Report Abuse
bossofyou30 is not online. bossofyou30
Joined: 24 Dec 2011
Total Posts: 186
30 Jan 2012 08:17 PM
I think I fixed it. but theres still one problem. Sometimes body parts come off when they die. so they're not sticking to the body. how do i fix this? It's still the same script.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
30 Jan 2012 08:23 PM
Well sometimes body parts come off when you die. realism++
Report Abuse
bossofyou30 is not online. bossofyou30
Joined: 24 Dec 2011
Total Posts: 186
30 Jan 2012 08:23 PM
yeah but here its almost always.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
30 Jan 2012 10:14 PM
In real life too...
Report Abuse
superxboy11 is not online. superxboy11
Joined: 31 May 2011
Total Posts: 6541
31 Jan 2012 01:18 AM
[ Content Deleted ]
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
31 Jan 2012 03:32 PM
Spam much?
Report Abuse
bossofyou30 is not online. bossofyou30
Joined: 24 Dec 2011
Total Posts: 186
31 Jan 2012 09:43 PM
hey can we all help poor bossofyou30 here?
Report Abuse
bossofyou30 is not online. bossofyou30
Joined: 24 Dec 2011
Total Posts: 186
31 Jan 2012 10:13 PM
Please?
Report Abuse
heath1148 is not online. heath1148
Joined: 15 Jan 2011
Total Posts: 35
03 Nov 2013 01:29 PM
wondering the same question
Report Abuse
oscarlupet88 is not online. oscarlupet88
Joined: 04 Dec 2013
Total Posts: 15
05 Jan 2014 12:05 AM
I think you must have a REPEAT script UNTIL it is weld to be sure it will not go off. Another comment to your script " Your script is just going so long. Try putting your variables of the same type like the arms in a table and iterate through it :)"


Think might help :).
Report Abuse
milkygalaxy is not online. milkygalaxy
Joined: 13 Jan 2011
Total Posts: 5
03 Apr 2014 01:22 PM
a ROBLOX update broke the ragdoll script. Every old ragdoll game is broken. I can't find a single script that works fine...
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