Advertisement
Guest User

Untitled

a guest
Jan 17th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. local SM = require(script.Parent.Parent:WaitForChild("SharedMechanics"))
  2. local UIService = game:GetService("UserInputService")
  3. local communication = game.ReplicatedStorage:WaitForChild("Communication")
  4.  
  5. -- player variables
  6. local player = game.Players.LocalPlayer
  7. local character = player.Character
  8. if not character or not character.Parent then
  9. character = player.CharacterAdded:wait()
  10. end
  11. local Torso = character:WaitForChild("Torso")
  12. local RL = character:WaitForChild("Right Leg")
  13. local LL = character:WaitForChild("Left Leg")
  14.  
  15. local debris = game:service("Debris")
  16. local maxF = Vector3.new(math.huge,math.huge,math.huge)
  17. plr = game.Players.LocalPlayer
  18. bin = script.Parent
  19. Go = 0
  20. Kick = false
  21. function onKeyDown(key)
  22. if Go == 1 then return end
  23. if key ~= nil then
  24. key = key:lower()
  25. if key == script.key.Value:lower() then
  26. maxF = Vector3.new(3e+005,2e+003,3e+005)
  27. Go = 1
  28. SM.editLimbs("Left Arm", CFrame.new(-1.5, 0.5, 0.5) * CFrame.fromEulerAnglesXYZ(-math.pi/1, -4, -4))
  29. SM.editLimbs("Right Arm", CFrame.new(1.5, 0.5, -0.5) * CFrame.fromEulerAnglesXYZ(-math.pi/1, -4, 4))
  30. SM.editLimbs("Right Leg", CFrame.new(0.5, -1.75, 0.25) * CFrame.fromEulerAnglesXYZ(-math.rad(10), 0, 0))
  31. wait(0.01)
  32. SM.editLimbs("Right Leg", CFrame.new(0.5, -1.5, 0.5) * CFrame.fromEulerAnglesXYZ(-math.rad(50), -math.rad(85), 0))
  33. wait(.6)
  34. SM.editLimbs("Right Leg", CFrame.new(0.7,-1.8,0.5) * CFrame.fromEulerAnglesXYZ(math.pi/-3,-1.5,-0.7))
  35.  
  36. RL.Touched:connect(function(hit)
  37. if Kick == false then return end
  38. if hit.Locked == true or hit.Anchored == true then return end
  39. if (RL.Position - hit.Position).magnitude > 3 then return end
  40. Kick = false
  41. SM.applyForce(28, hit, RL, maxF)
  42. end)
  43. for i, v in pairs(RL:GetTouchingParts()) do
  44. if Kick == true and v.Locked == false and v.Anchored == false and (RL.Position - v.Position).magnitude < 3 then
  45. Kick = false
  46. SM.applyForce(28, v, RL, maxF)
  47. end
  48. end
  49.  
  50. wait(0.5)
  51. Kick = false
  52. SM.resetWelds()
  53. wait(0.2)
  54. Go = 0
  55. end
  56. end
  57. end
  58.  
  59. bin.Unequipped:connect(function()
  60. end)
  61. function onSelected(mouse)
  62. mouse.KeyDown:connect(onKeyDown)
  63. end
  64.  
  65. bin.Equipped:connect(onSelected)
  66.  
  67. function ChangeOwner(ball)
  68. game.ReplicatedStorage.ChangeOwner:FireServer(ball)
  69. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement