Advertisement
Guest User

Ragdoll Script LUA Roblox

a guest
Dec 14th, 2019
19,040
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.78 KB | None | 0 0
  1. script.Ragdoll.OnServerEvent:Connect(function(plr)
  2.    
  3.     wait(1)
  4.        
  5.     plr.Character["Right Leg"].RightFootAttachment.Position = Vector3.new(0,1,0)
  6.     plr.Character["Left Leg"].LeftFootAttachment.Position = Vector3.new(0,1,0)
  7.    
  8.     local WLA = plr.Character.Torso.WaistCenterAttachment:Clone()
  9.     WLA.Name = "WaistLeftAttachment"
  10.     WLA.Position = Vector3.new(0.5,-1,0)
  11.     WLA.Parent = plr.Character.Torso
  12.    
  13.    
  14.     local WRA = plr.Character.Torso.WaistCenterAttachment:Clone()
  15.     WRA.Name = "WaistRightAttachment"
  16.     WRA.Position = Vector3.new(-0.5,-1,0)
  17.     WRA.Parent = plr.Character.Torso
  18.    
  19.    
  20.     local NRA = plr.Character.Head.FaceCenterAttachment:Clone()
  21.     NRA.Name = "NeckRigAttachment"
  22.     NRA.Position = Vector3.new(0, -0.5, 0)
  23.     NRA.Parent = plr.Character.Head
  24.    
  25.     plr.Character["Left Arm"].CanCollide = false
  26.     plr.Character["Right Arm"].CanCollide = false
  27.        
  28.     --// Head
  29.  
  30.     plr.Character.RagdollJoint.Head.Attachment0 = NRA
  31.     plr.Character.RagdollJoint.Head.Attachment1 = plr.Character.Torso.NeckAttachment
  32.  
  33.     --// Left Arm
  34.  
  35.     plr.Character.RagdollJoint["Left Arm"].Attachment0 = plr.Character["Left Arm"].LeftShoulderAttachment
  36.     plr.Character.RagdollJoint["Left Arm"].Attachment1 = plr.Character.Torso.LeftCollarAttachment
  37.  
  38.     --// Right Arm
  39.  
  40.     plr.Character.RagdollJoint["Right Arm"].Attachment0 = plr.Character["Right Arm"].RightShoulderAttachment
  41.     plr.Character.RagdollJoint["Right Arm"].Attachment1 = plr.Character.Torso.RightCollarAttachment
  42.    
  43.     --// Left Leg
  44.  
  45.     plr.Character.RagdollJoint["Left Leg"].Attachment0 = plr.Character["Left Leg"].LeftFootAttachment
  46.     plr.Character.RagdollJoint["Left Leg"].Attachment1 = WLA
  47.  
  48.     --// Right Leg
  49.  
  50.     plr.Character.RagdollJoint["Right Leg"].Attachment0 = plr.Character["Right Leg"].RightFootAttachment
  51.     plr.Character.RagdollJoint["Right Leg"].Attachment1 = WRA
  52. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement