of     1   

DestinyUnbound
#33106953Friday, September 03, 2010 8:17 PM GMT

(ITS A RAGDOLL DEATH SCRIPT) the part where it selects the Parts and CharacterMeshes in the player then moves them to a specified model needs fixing. everything else works though. (dont want the body to be removed like it would if it was still in the player) 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 = 1 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 = 1 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 = 1 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 = 1 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 = 1 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 local Mods = script.Parent:GetChildren() for X = 11, # Mods do if Mods[X].className == "Part" or Mods[X].className == "CharacterMesh" then Mods.Parent = game.Workspace.Corpses end end --]] end end Humanoid.Died:connect(OnDeath)
DestinyUnbound
#33320144Monday, September 06, 2010 2:53 PM GMT

this is the problem part: local Mods = script.Parent:GetChildren() for X = 11, # Mods do if Mods[X].className == "Part" or Mods[X].className == "CharacterMesh" then Mods.Parent = game.Workspace.Corpses end end
PyroCity
#33320306Monday, September 06, 2010 2:55 PM GMT

--[ <------ should have another '[' local Bar = Instance.new("Part") Bar.TopSurface = 0 Bar.BottomSurface = 0 Bar.formFactor = "Symmetric" Bar.Size = Vector3.new(1, 1, 1) Bar.Transparency = 1 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 local Mods = script.Parent:GetChildren() for X = 11, # Mods do if Mods[X].className == "Part" or Mods[X].className == "CharacterMesh" then Mods.Parent = game.Workspace.Corpses end end --]]
DestinyUnbound
#33320574Monday, September 06, 2010 3:00 PM GMT

lol, im just tweaking a ragdoll (i didnt put that there)
awsomdk
#33320605Monday, September 06, 2010 3:00 PM GMT

out put?
xSIXxStorage
#33321620Monday, September 06, 2010 3:14 PM GMT

Its a free model script, make your own ragdoll death script how about that?
DestinyUnbound
#33409386Tuesday, September 07, 2010 10:18 PM GMT

I said it wasnt originally mine, but who cares, i just want the corpses to stay in the workspace
DestinyUnbound
#33544041Friday, September 10, 2010 9:36 PM GMT

bump

    of     1