CMD-X

Untitled

Mar 21st, 2020
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. local cmdlp = game:GetService("Players").LocalPlayer
  2. for i,v in pairs(cmdlp.Character:GetDescendants()) do
  3. if v:IsA("SpecialMesh") then
  4. if v.TextureId == "http://www.roblox.com/asset/?id=4753340322" then
  5. v.Parent.Parent.Name = "Box1"
  6. elseif v.TextureId == "http://www.roblox.com/asset/?id=4683708967" then
  7. v.Parent.Parent.Name = "Keyboard"
  8. end
  9. end
  10. end
  11.  
  12. for _, hat in pairs(cmdlp.Character.Humanoid:GetAccessories()) do
  13. if hat.Handle ~= nil then
  14. if hat.Name == "Box1" then
  15. local tool = Instance.new("Tool", cmdlp.Backpack)
  16. tool.Name = hat.Name
  17. tool.Parent = cmdlp.Character
  18. tool.GripPos = Vector3.new(0.86, 2.24, -1.5)
  19. tool.GripRight = Vector3.new(0, 0, -1)
  20. tool.GripUp = Vector3.new(0, 1, 0)
  21. tool.GripForward = Vector3.new(-1, 0, -0)
  22. local hathandle = hat.Handle
  23. hathandle:FindFirstChildOfClass("Weld"):Destroy()
  24. hathandle.Parent = tool
  25. hathandle.Massless = true
  26. elseif hat.Name == "Keyboard" then
  27. local tool = Instance.new("Tool", cmdlp.Backpack)
  28. tool.Name = hat.Name
  29. tool.Parent = cmdlp.Character
  30. tool.GripPos = Vector3.new(-1.16, -1.096, -0.559)
  31. tool.GripRight = Vector3.new(-0.851, -0.525, -0.003)
  32. tool.GripUp = Vector3.new(0.011, -0.013, -1)
  33. tool.GripForward = Vector3.new(-0.525, 0.851, -0.016)
  34. local hathandle = hat.Handle
  35. hathandle:FindFirstChildOfClass("Weld"):Destroy()
  36. hathandle.Parent = tool
  37. hathandle.Massless = true
  38. elseif hat.Name == "Meshes/AstronyautNAccessory" then
  39. local tool = Instance.new("Tool", cmdlp.Backpack)
  40. tool.Name = hat.Name
  41. tool.Parent = cmdlp.Character
  42. tool.GripPos = Vector3.new(-1.51, -0.33, -1.93)
  43. tool.GripRight = Vector3.new(-1, 0, -0.017)
  44. tool.GripUp = Vector3.new(0, 1, 0)
  45. tool.GripForward = Vector3.new(-0.017, 0, 1)
  46. local hathandle = hat.Handle
  47. hathandle:FindFirstChildOfClass("Weld"):Destroy()
  48. hathandle.Parent = tool
  49. hathandle.Massless = true
  50. elseif hat.Name == "Box" then
  51. local tool = Instance.new("Tool", cmdlp.Backpack)
  52. tool.Name = hat.Name
  53. tool.Parent = cmdlp.Character
  54. tool.GripPos = Vector3.new(-2.05, 2.42, -1.66)
  55. tool.GripRight = Vector3.new(-2.05, 2.42, -1.66)
  56. tool.GripUp = Vector3.new(0, 1, 0)
  57. tool.GripForward = Vector3.new(-0.999, 0, 0.035)
  58. local hathandle = hat.Handle
  59. hathandle:FindFirstChildOfClass("Weld"):Destroy()
  60. hathandle.Parent = tool
  61. hathandle.Massless = true
  62. elseif hat.Name == "DragonShoulderBuddy" then
  63. local tool = Instance.new("Tool", cmdlp.Backpack)
  64. tool.Name = hat.Name
  65. tool.Parent = cmdlp.Character
  66. tool.GripPos = Vector3.new(-0.71, 0.05, -1.32)
  67. tool.GripRight = Vector3.new(-0.875, 0, 0.485)
  68. tool.GripUp = Vector3.new(0, 1, 0)
  69. tool.GripForward = Vector3.new(0.485, 0, 0.875)
  70. local hathandle = hat.Handle
  71. hathandle:FindFirstChildOfClass("Weld"):Destroy()
  72. hathandle.Parent = tool
  73. hathandle.Massless = true
  74. end
  75. end
  76. end
  77.  
  78. cmdlp.Character.Humanoid.HipHeight = -.2
  79. local anims = cmdlp.Character.Animate
  80. local sit = anims.sit:FindFirstChildOfClass("Animation").AnimationId
  81. anims.idle:FindFirstChildOfClass("Animation").AnimationId = sit
  82. anims.walk:FindFirstChildOfClass("Animation").AnimationId = sit
  83. anims.run:FindFirstChildOfClass("Animation").AnimationId = sit
  84. anims.jump:FindFirstChildOfClass("Animation").AnimationId = sit
  85. local Anim = Instance.new("Animation")
  86. Anim.AnimationId = sit
  87. local k = cmdlp.Character.Humanoid:LoadAnimation(Anim)
  88. k:Play()
  89. k:AdjustSpeed(1)
  90. k:Destroy()
  91. Anim:Destroy()
  92. cmdlp.Character.Animate.Disabled = true
Advertisement
Add Comment
Please, Sign In to add comment