Advertisement
TheYoutuber_Pro

Untitled

Apr 18th, 2022
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. for i,v in pairs(owner.Character:GetDescendants()) do
  2. if v:IsA("Motor6D") then
  3. local weld = Instance.new("Weld", v.Parent)
  4. weld.Part1 = v.Part1
  5. weld.Part0 = v.Part0
  6. weld.C0 = v.C0
  7. weld.C1 = v.C1
  8. weld.Name = v.Name
  9. v:Destroy()
  10. end
  11. end
  12.  
  13. --Anim Defaults
  14. AnimDefaults = {
  15. Head = owner.Character.Torso.Neck.C0,
  16. Torso = owner.Character.HumanoidRootPart.RootJoint.C0,
  17. Larm = owner.Character.Torso["Left Shoulder"].C0,
  18. Rarm = owner.Character.Torso["Right Shoulder"].C0,
  19. Lleg = owner.Character.Torso["Left Hip"].C0,
  20. Rleg = owner.Character.Torso["Right Hip"].C0
  21. }
  22. --Setting Joints
  23. Head = owner.Character.Torso.Neck
  24. Torso = owner.Character.HumanoidRootPart.RootJoint
  25. Larm = owner.Character.Torso["Left Shoulder"]
  26. Rarm = owner.Character.Torso["Right Shoulder"]
  27. Lleg = owner.Character.Torso["Left Hip"]
  28. Rleg = owner.Character.Torso["Right Hip"]
  29.  
  30. Larm.C0 = AnimDefaults.Larm * CFrame.Angles(0,0,math.rad(-90))
  31. Rarm.C0 = AnimDefaults.Rarm * CFrame.Angles(0,0,math.rad(90))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement