assbagfaggotidk

hek

Jun 15th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.77 KB | None | 0 0
  1. --So i saw a guy exploiting with a lvl 7 exploit and i saw a bat, so i decided to make my own baseball bat remake script
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. using = false
  4. attack = false
  5. bat = Instance.new("Part", game.Players.LocalPlayer.Character)
  6. bat.Size = Vector3.new(1, 1, 5)
  7. bat.CanCollide = false
  8. bat:BreakJoints()
  9. baseballhit = Instance.new("Sound", bat)
  10. baseballhit.Volume = 10
  11. baseballhit.SoundId = "rbxassetid://476177883"
  12. swinging = Instance.new("Sound", bat)
  13. swinging.Volume = 10
  14. swinging.PlaybackSpeed = 1.2
  15. swinging.SoundId = "rbxassetid://476177883"
  16. weld = Instance.new("Weld", bat)
  17. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  18. weld.Part1 = bat
  19. weld.C0 = weld.C0 * CFrame.Angles(0,3.15,0) * CFrame.new(0,-0.95,1.9)
  20. mesh = Instance.new("SpecialMesh", bat)
  21. mesh.MeshId = "http://www.roblox.com/asset/?id=54983181"
  22. mesh.TextureId = "http://www.roblox.com/asset/?id=54983107"
  23. mesh.Scale = Vector3.new(2,2,2)
  24. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  25. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  26. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  27. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  28. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  29. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  30. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  31. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  32. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  33. lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  34. for i = 1,20 do
  35.     wait()
  36.     game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.09)
  37.     lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.12)
  38.     rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.13)
  39.     game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
  40. end
  41. for i = 1,20 do
  42.     wait()
  43.     lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.08,0,0) * CFrame.new(0,-0.1,0)
  44. end
  45. function swing(key)
  46.     key = key:lower()
  47.     if key == "e" then
  48.         if not using then
  49.             using = true
  50.             local detect = Instance.new("Part", bat)
  51.             detect.Size = Vector3.new(1,1,4.5)
  52.             detect:BreakJoints()
  53.             detect.CanCollide = false
  54.             detect.Transparency = 1
  55.             local welding = Instance.new("Weld", detect)
  56.             welding.Part0 = bat
  57.             welding.Part1 = detect
  58.             local function rip(part)
  59.             if not attack then
  60.             attack = true
  61.             local humanoid = part.Parent:findFirstChild("Humanoid")
  62.             root = part.Parent:findFirstChild("HumanoidRootPart")
  63.             local joint = root:findFirstChild("RootJoint")
  64.             local torso = part.Parent:findFirstChild("Torso")
  65.             local head = part.Parent:findFirstChild("Head")
  66.             if head ~= nil then
  67.             if torso ~= nil then
  68.             if humanoid ~= nil then
  69.                 if root ~= nil then
  70.                     if joint ~= nil then
  71.                         baseballhit:Play()
  72.                         head.Died.Volume = 90
  73.                         head.Died:Play()
  74.                         humanoid.WalkSpeed = 69
  75.                         humanoid.JumpPower = 66
  76.                         for i = 1,15 do
  77.                         wait(0.02)
  78.                         torso["Right Shoulder"].C1 = torso["Right Shoulder"].C1 * CFrame.Angles(0.06,0,0)
  79.                         torso["Left Shoulder"].C1 = torso["Left Shoulder"].C1 * CFrame.Angles(0.03,0,0)
  80.                         joint.C1 = joint.C1 * CFrame.Angles(-0.11,0,0)
  81.                         joint.C1 = joint.C1 * CFrame.new(0,0.4,0)
  82.                         torso["Left Hip"].C1 = torso["Left Hip"].C1 * CFrame.Angles(0.01,0,0)
  83.                         torso["Right Hip"].C1 = torso["Right Hip"].C1 * CFrame.Angles(0.005,0,0)
  84.                         end --end of anim
  85.                         wait(1.2)
  86.                         attack = false
  87.                         torso.Anchored = true
  88.                    end --end of joint nil
  89.                 end -- end of root nil
  90.             end -- end of humanoid nil
  91.             end -- end of torso nil
  92.             end -- end if head nil
  93.             end -- end of not attacked
  94.             end -- end of function (rip)
  95.             detect.Touched:connect(rip)
  96.             for i = 1,7 do
  97.             wait()
  98.             rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.3)
  99.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.5)
  100.             end
  101.             detect:destroy()
  102.             for i = 1,7 do
  103.             wait()
  104.             rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.3)
  105.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.5)
  106.             end
  107.             using = false
  108.         end --end of is not using then
  109.     end --end of if key
  110. end --end of swing function
  111. mouse.KeyDown:connect(swing)
Add Comment
Please, Sign In to add comment