Advertisement
Walterin0

Untitled

Apr 22nd, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. power = 25 -- change this to make it more or less powerful
  2.  
  3. game:GetService('RunService').Stepped:connect(function()
  4. game.Players.LocalPlayer.Character.Head.CanCollide = true
  5. game.Players.LocalPlayer.Character.Torso.CanCollide = true
  6. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = true
  7. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = true
  8. end)
  9.  
  10. wait(.1)
  11. local bambam = Instance.new("BodyThrust")
  12. bambam.Parent = game.Players.LocalPlayer.Character["Right Leg"]
  13. bambam.Force = Vector3.new(power,0,power)
  14. bambam.Location = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  15.  
  16. LocalPlayer = game:GetService("Players").LocalPlayer
  17. LocalPlayer.Character.Humanoid:MoveTo(LocalPlayer.Character.HumanoidRootPart.Position + LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 10)
  18. LocalPlayer.Character.Humanoid.Jump = true
  19. wait(0.5)
  20. function Iterate(instance, func)
  21. for i, v in next, instance:GetChildren() do
  22. func(v)
  23. end
  24. end
  25. limbs = {
  26. ["Right Leg"] = true;
  27. ["Right Arm"] = true;
  28. ["Left Leg"] = true;
  29. ["Left Arm"] = true;
  30. }
  31. Iterate(LocalPlayer.Character, function(v)
  32. if v:IsA("BasePart") then
  33. local attachment = Instance.new("Attachment")
  34. attachment.Parent = v
  35. attachment.Name = (v.Name .. "[Attachment]")
  36. if limbs[v.Name] then
  37. attachment.Position = Vector3.new(0, v.Size.Y/2, 0)
  38. elseif v.Name == "Head" then
  39. attachment.Position = Vector3.new(0, -v.Size.Y/2, 0)
  40. attachment.Rotation = Vector3.new(0, 0, -90)
  41. end
  42. end
  43. end)
  44. local leftLegAttachment = Instance.new("Attachment")
  45. leftLegAttachment.Position = Vector3.new(-.5, -1, 0)
  46. leftLegAttachment.Rotation = Vector3.new(0, -90, 0)
  47. local rightLegAttachment = Instance.new("Attachment")
  48. rightLegAttachment.Position = Vector3.new(.5, -1, 0)
  49. rightLegAttachment.Rotation = Vector3.new(0, -90, 0)
  50. rightLegAttachment.Parent, leftLegAttachment.Parent = LocalPlayer.Character.Torso, LocalPlayer.Character.Torso
  51. jointAttachments = {
  52. ['Head'] = {
  53. ['Attachment0'] = LocalPlayer.Character.Torso['NeckAttachment'];
  54. ['Attachment1'] = LocalPlayer.Character.Head['Head[Attachment]'];
  55. };
  56. ['Left Arm'] = {
  57. ['Attachment0'] = LocalPlayer.Character.Torso['LeftCollarAttachment'];
  58. ['Attachment1'] = LocalPlayer.Character['Left Arm']['Left Arm[Attachment]'];
  59. };
  60. ['Right Arm'] = {
  61. ['Attachment0'] = LocalPlayer.Character.Torso['RightCollarAttachment'];
  62. ['Attachment1'] = LocalPlayer.Character['Right Arm']['Right Arm[Attachment]'];
  63. };
  64. ['Left Leg'] = {
  65. ['Attachment0'] = leftLegAttachment;
  66. ['Attachment1'] = LocalPlayer.Character['Left Leg']['Left Leg[Attachment]'];
  67. };
  68. ['Right Leg'] = {
  69. ['Attachment0'] = rightLegAttachment;
  70. ['Attachment1'] = LocalPlayer.Character['Right Leg']['Right Leg[Attachment]'];
  71. };
  72. }
  73. LocalPlayer.Character.Humanoid.PlatformStand = true
  74. Iterate(LocalPlayer.Character, function(v)
  75. if v:IsA("BasePart") then
  76. if jointAttachments[v.Name] then
  77. local ballSocketJoint = Instance.new("BallSocketConstraint")
  78. ballSocketJoint.Parent = v
  79. ballSocketJoint.Radius = 0.15
  80. ballSocketJoint.Attachment0, ballSocketJoint.Attachment1 = jointAttachments[v.Name]['Attachment0'], jointAttachments[v.Name]['Attachment1']
  81. end
  82. end
  83. end)
  84. Iterate(LocalPlayer.Character.Torso, function(v)
  85. if v:IsA("Motor") then
  86. v:Remove()
  87. end
  88. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement