Kaemi

Rufus14's Edited Scout Bat

May 12th, 2017
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 28.65 KB | None | 0 0
  1. --Thanks RUFUS14
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. using = false
  4. hit = 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. laughing = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  10. laughing.Volume = 6
  11. laughing.SoundId = "rbxassetid://617500399"
  12. ooh = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  13. ooh .Volume = 6
  14. ooh .SoundId = "rbxassetid://183345423"
  15. baseballhit = Instance.new("Sound", bat)
  16. baseballhit.Volume = 10
  17. baseballhit.SoundId = "rbxassetid://175024455"
  18. baseballhit1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  19. baseballhit1.Volume = 20
  20. baseballhit1.SoundId = "rbxassetid://130944130"
  21. swinging = Instance.new("Sound", bat)
  22. swinging.Volume = 10
  23. swinging.PlaybackSpeed = 1.2
  24. swinging.SoundId = "rbxassetid://147722227"
  25. weld = Instance.new("Weld", bat)
  26. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  27. weld.Part1 = bat
  28. local batcritical = Instance.new("Sound", bat)
  29. batcritical.SoundId = "rbxassetid://296102734"
  30. batcritical.Volume = 5
  31. weld.C0 = weld.C0 * CFrame.Angles(0,3.15,0) * CFrame.new(0,-0.95,1.9)
  32. print(weld.C0)
  33. mesh = Instance.new("SpecialMesh", bat)
  34. mesh.MeshId = "http://www.roblox.com/asset/?id=54983181"
  35. mesh.TextureId = "http://www.roblox.com/asset/?id=7927703"
  36. mesh.Scale = Vector3.new(2,2,2)
  37. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  38. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  39. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  40. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  41. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  42. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  43. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  44. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  45. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  46. lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  47. function hit()
  48.     if not using then
  49.         using = true
  50.         for i = 0,1 , 0.1 do
  51.             wait()
  52.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.35),i)
  53.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.35),i)
  54.             rhandweld.C0 = rhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.3),i)
  55.             lhandweld.C0 = lhandweld.C0 * CFrame.new():lerp(CFrame.Angles(-0.15,0,0),i)
  56.         end
  57.         for i = 1,2 do
  58.             wait()
  59.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
  60.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  61.             rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
  62.             lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  63.         end
  64.         wait(0.2)
  65.         swinging:Play()
  66.         local se = Instance.new("Part", bat)
  67.         se.Size = Vector3.new(1, 1, 3)
  68.         se:BreakJoints()
  69.         se.Transparency = 1
  70.         se.CanCollide = false
  71.         local dmgweld = Instance.new("Weld", se)
  72.         dmgweld.Part0 = bat
  73.         dmgweld.Part1 = se
  74.         dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  75.         local function dmg(part)
  76.             local hum = part.Parent:findFirstChild("Humanoid")
  77.             if hum ~= nil then
  78.                 se:destroy()
  79.                 baseballhit:Play()
  80.                 baseballhit1:Play()
  81.                 hum.Health = hum.Health - math.random(50,75)
  82.                 hum.PlatformStand = true
  83.                 local tor = part.Parent:findFirstChild("Torso")
  84.                 local dmgmat = math.random(1,4)
  85.                 if dmgmat == 3 then
  86.                 batcritical:Play()
  87.                 hum.Health = hum.Health - math.random(120,500000)
  88.                 end
  89.                 if tor then
  90.                     tor.RotVelocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
  91.                     tor.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 34
  92.                 end
  93.                 wait(2)
  94.                 hum.PlatformStand = false
  95.                 hit = false
  96.             end
  97.         end
  98.         se.Touched:connect(dmg)
  99.         for i = 0,1 , 0.2 do
  100.             wait()
  101.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.7),i)
  102.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.70),i)
  103.             rhandweld.C0 = rhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0,0,-0.6),i)
  104.             lhandweld.C0 = lhandweld.C0 * CFrame.new():lerp(CFrame.Angles(0.30,0,0),i)
  105.         end
  106.         for i = 1,2 do
  107.             wait()
  108.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.1)
  109.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.3)
  110.             rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.4)
  111.         end
  112.         for i = 1,2 do
  113.             wait()
  114.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.05)
  115.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  116.             rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.2)
  117.         end
  118.         wait(0.2)
  119.         for i = 1,2 do
  120.             wait()
  121.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.05)
  122.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  123.             rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.2)
  124.         end
  125.         for i = 1,2 do
  126.             wait()
  127.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.06)
  128.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
  129.             rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.2)
  130.         end
  131.         se:destroy()
  132.         for i = 1,2 do
  133.             wait()
  134.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,0.1)
  135.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  136.             rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
  137.         end
  138.         for i = 1,2 do
  139.             wait()
  140.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0,0,-0.05)
  141.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  142.             rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.1)
  143.         end
  144.         game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  145.         game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  146.         lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  147.         lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  148.         rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  149.         rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  150.         using = false
  151.     end
  152. end
  153. function combo(key)
  154.     key = key:lower()
  155.     if key == "q" then
  156.         if not using then
  157.             using = true
  158.             swinging:Play()
  159.             for i = 1,2 do
  160.                 wait()
  161.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  162.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  163.             end
  164.             for i = 1,3 do
  165.                 wait()
  166.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.47)
  167.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.47)
  168.             end
  169.             for i = 1,2 do
  170.                 wait()
  171.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  172.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  173.             end
  174.             wait(0.4)
  175.             swinging:Play()
  176.             for i = 1,2 do
  177.                 wait()
  178.                 weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  179.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  180.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  181.             end
  182.             for i = 1,3 do
  183.                 wait()
  184.                 weld.C0 = weld.C0 * CFrame.Angles(0.33,0,0.1) * CFrame.new(0,-0.66,0.3)
  185.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.2,0,0)
  186.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.2,0,0)
  187.             end
  188.             for i = 1,2 do
  189.                 wait()
  190.                 weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  191.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  192.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  193.             end
  194.             wait(0.5)
  195.             for i = 1,2 do
  196.                 wait()
  197.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  198.             end
  199.             for i = 1,2 do
  200.                 wait()
  201.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
  202.             end
  203.             for i = 1,2 do
  204.                 wait()
  205.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.2)
  206.             end
  207.             for i = 1,2 do
  208.                 wait()
  209.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.4)
  210.             end
  211.             swinging:Play()
  212.             for i = 1,2 do
  213.                 wait()
  214.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
  215.             end
  216.             local se = Instance.new("Part", bat)
  217.             se.Size = Vector3.new(1, 1, 3)
  218.             se:BreakJoints()
  219.             se.Transparency = 1
  220.             se.CanCollide = false
  221.             local dmgweld = Instance.new("Weld", se)
  222.             dmgweld.Part0 = bat
  223.             dmgweld.Part1 = se
  224.             dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  225.             local function dmg(part)
  226.                 if not hit then
  227.                     hit = true
  228.                     local hum = part.Parent:findFirstChild("Humanoid")
  229.                     if hum ~= nil then
  230.                     baseballhit:Play()
  231.                     baseballhit1:Play()
  232.                     hum.Health = hum.Health - math.random(5,25)
  233.                     hum.PlatformStand = true
  234.                     local tor = part.Parent:findFirstChild("Torso")
  235.                     if tor then
  236.                         local vel = Instance.new("BodyVelocity", tor)
  237.                         vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  238.                         vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 35
  239.                         wait(0.1)
  240.                         vel:destroy()
  241.                         hit = false
  242.                     end
  243.                     wait(0.2)
  244.                     hit = false
  245.                     wait(1.5)
  246.                     hum.PlatformStand = false
  247.                 end
  248.                 end
  249.             end
  250.             se.Touched:connect(dmg)
  251.             for i = 1,20 do
  252.                 swinging:Play()
  253.                 for i = 1,10 do
  254.                     wait()
  255.                     game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.9)
  256.                 end
  257.             end
  258.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  259.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  260.             for i = 1,2 do
  261.                 wait()
  262.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  263.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  264.             end
  265.             for i = 1,3 do
  266.                 wait()
  267.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.47)
  268.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.47)
  269.             end
  270.             for i = 1,2 do
  271.                 wait()
  272.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  273.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  274.             end
  275.             wait(0.4)
  276.             swinging:Play()
  277.             for i = 1,2 do
  278.                 wait()
  279.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  280.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  281.             end
  282.             for i = 1,3 do
  283.                 wait()
  284.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.2,0,0)
  285.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.2,0,0)
  286.             end
  287.             for i = 1,2 do
  288.                 wait()
  289.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  290.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  291.             end
  292.             for i = 1,2 do
  293.                 wait()
  294.                 weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  295.             end
  296.             for i = 1,3 do
  297.                 wait()
  298.                 weld.C0 = weld.C0 * CFrame.Angles(-0.33,0,-0.1) * CFrame.new(0,0.66,-0.3)
  299.             end
  300.             for i = 1,2 do
  301.                 wait()
  302.                 weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  303.             end
  304.             weld.C0 = CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654)
  305.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  306.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  307.             lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  308.             lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  309.             rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  310.             rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  311.             using = false
  312.             se:destroy()
  313.         end
  314.     end
  315. end
  316. function laugh(key)
  317.     key = key:lower()
  318.     if key == "h" then
  319.         local lahmath = math.random(1,2)
  320.         if lahmath == 1 then
  321.             laughing:Play()
  322.         end
  323.         if lahmath == 2 then
  324.             ooh:Play()
  325.         end
  326.     end
  327. end
  328. function boom(key)
  329.     key = key:lower()
  330.     if key == "f" then
  331.         if not using then
  332.             using = true
  333.             swinging:Play()
  334.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 8
  335.             game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  336.             for i = 1,2 do
  337.                 wait()
  338.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  339.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  340.             end
  341.             for i = 1,3 do
  342.                 wait()
  343.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.47)
  344.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.47)
  345.             end
  346.             for i = 1,2 do
  347.                 wait()
  348.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  349.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  350.             end
  351.             wait(0.4)
  352.             swinging:Play()
  353.             for i = 1,2 do
  354.                 wait()
  355.                 weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  356.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  357.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  358.             end
  359.             for i = 1,3 do
  360.                 wait()
  361.                 weld.C0 = weld.C0 * CFrame.Angles(0.33,0,0.1) * CFrame.new(0,-0.66,0.3)
  362.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.2,0,0)
  363.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.2,0,0)
  364.             end
  365.             for i = 1,2 do
  366.                 wait()
  367.                 weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  368.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  369.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  370.             end
  371.             wait(2)
  372.             for i = 1,2 do
  373.                 wait()
  374.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  375.             end
  376.             swinging:Play()
  377.             for i = 1,2 do
  378.                 wait()
  379.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
  380.             end
  381.             local se = Instance.new("Part", bat)
  382.             se.Size = Vector3.new(1, 1, 3)
  383.             se:BreakJoints()
  384.             se.Transparency = 1
  385.             se.CanCollide = false
  386.             local dmgweld = Instance.new("Weld", se)
  387.             dmgweld.Part0 = bat
  388.             dmgweld.Part1 = se
  389.             dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  390.             local function dmg(part)
  391.                 if not hit then
  392.                     hit = true
  393.                     se:destroy()
  394.                     local hum = part.Parent:findFirstChild("Humanoid")
  395.                     if hum ~= nil then
  396.                     batcritical:Play()
  397.                     baseballhit1:Play()
  398.                     hum.Health = hum.Health - math.random(70,86)
  399.                     hum.PlatformStand = true
  400.                     local tor = part.Parent:findFirstChild("Torso")
  401.                     if tor then
  402.                         hum.Jump = true
  403.                         local vel1 = Instance.new("BodyVelocity", tor)
  404.                         vel1.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  405.                         vel1.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 130
  406.                         wait(0.1)
  407.                         vel1:destroy()
  408.                         hit = false
  409.                     end
  410.                     wait(0.2)
  411.                     hit = false
  412.                     wait(1.5)
  413.                     hum.PlatformStand = false
  414.                 end
  415.                 end
  416.             end
  417.             se.Touched:connect(dmg)
  418.             for i = 1,2 do
  419.                 wait()
  420.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.2)
  421.             end
  422.             for i = 1,2 do
  423.                 wait()
  424.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.4)
  425.             end
  426.             for i = 1,2 do
  427.                 wait()
  428.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
  429.             end
  430.             for i = 1,2 do
  431.                 wait()
  432.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.9)
  433.             end
  434.             for i = 1,2 do
  435.                 wait()
  436.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-1.1)
  437.             end
  438.             for i = 1,2 do
  439.                 wait()
  440.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-1.1)
  441.             end
  442.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-1.1)
  443.             for i = 1,2 do
  444.                 wait()
  445.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
  446.             end
  447.             for i = 1,2 do
  448.                 wait()
  449.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.6)
  450.             end
  451.             for i = 1,2 do
  452.                 wait()
  453.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.3)
  454.             end
  455.             for i = 1,2 do
  456.                 wait()
  457.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
  458.             end
  459.             for i = 1,2 do
  460.                 wait()
  461.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  462.             end
  463.             wait(0.5)
  464.             for i = 1,2 do
  465.                 wait()
  466.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.05)
  467.             end
  468.             for i = 1,2 do
  469.                 wait()
  470.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  471.             end
  472.             for i = 1,2 do
  473.                 wait()
  474.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
  475.             end
  476.             for i = 1,2 do
  477.                 wait()
  478.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.2)
  479.             end
  480.             for i = 1,2 do
  481.                 wait()
  482.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.05)
  483.             end
  484.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  485.             game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  486.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  487.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  488.             for i = 1,2 do
  489.                 wait()
  490.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  491.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  492.             end
  493.             for i = 1,3 do
  494.                 wait()
  495.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.47)
  496.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.47)
  497.             end
  498.             for i = 1,2 do
  499.                 wait()
  500.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  501.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  502.             end
  503.             wait(0.4)
  504.             swinging:Play()
  505.             for i = 1,2 do
  506.                 wait()
  507.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  508.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  509.             end
  510.             for i = 1,3 do
  511.                 wait()
  512.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.2,0,0)
  513.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.2,0,0)
  514.             end
  515.             for i = 1,2 do
  516.                 wait()
  517.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  518.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  519.             end
  520.             for i = 1,2 do
  521.                 wait()
  522.                 weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  523.             end
  524.             for i = 1,3 do
  525.                 wait()
  526.                 weld.C0 = weld.C0 * CFrame.Angles(-0.33,0,-0.1) * CFrame.new(0,0.66,-0.3)
  527.             end
  528.             for i = 1,2 do
  529.                 wait()
  530.                 weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  531.             end
  532.             weld.C0 = CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654)
  533.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  534.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  535.             lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  536.             lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  537.             rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  538.             rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  539.             se:destroy()
  540.             using = false
  541.         end
  542.     end
  543. end
  544. mouse.KeyDown:connect(boom)
  545. mouse.KeyDown:connect(combo)
  546. mouse.KeyDown:connect(laugh)
  547. mouse.Button1Down:connect(hit)
  548. --[[
  549.     local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  550. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
  551. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  552. --]]
  553. --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
  554. --die plz
  555. mouse = game.Players.LocalPlayer:GetMouse()
  556. function ragdoll()
  557. game.Players.LocalPlayer.Character.Archivable = true
  558. clone = game.Players.LocalPlayer.Character:Clone()
  559. clone.Parent = workspace
  560. for i,v in pairs(clone:GetChildren()) do
  561.     if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  562.         v:destroy()
  563.     end
  564.     for i,p in pairs(v:GetChildren()) do
  565.     if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  566.         p:destroy()
  567.     end
  568. end
  569. end
  570. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  571.     if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  572.         t:destroy()
  573.     end
  574. end
  575. vel = Instance.new("BodyVelocity", clone.Torso)
  576. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  577. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  578. using = false
  579. hit = Instance.new("Sound", clone.Torso)
  580. hit.SoundId = "rbxassetid://260430060"
  581. hit.Volume = 5
  582. hit1 = Instance.new("Sound", clone.Torso)
  583. hit1.SoundId = "rbxassetid://138087186"
  584. hit1.Volume = 5
  585. hit2 = Instance.new("Sound", clone.Torso)
  586. hit2.SoundId = "rbxassetid://131237241"
  587. hit2.Volume = 5
  588. hit3 = Instance.new("Sound", clone.Torso)
  589. hit3.SoundId = "rbxassetid://278062209"
  590. hit3.Volume = 5
  591. hit3.TimePosition = 0.33
  592. ded = Instance.new("Sound", clone.Torso)
  593. ded.SoundId = "rbxassetid://160718677"
  594. ded.Volume = 100
  595. local leftarm = clone:findFirstChild("Left Arm")
  596. local rightrm = clone:findFirstChild("Right Arm")
  597. local leftleg = clone:findFirstChild("Left Leg")
  598. local rightleg = clone:findFirstChild("Right Leg")
  599. local head = clone:findFirstChild("Head")
  600. local welding = Instance.new("Weld", clone.Torso)
  601. welding.Part0 = clone.Torso
  602. welding.Part1 = head
  603. welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
  604. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  605.     if g.ClassName == "Part" then
  606.         g:destroy()
  607.     end
  608. end
  609. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  610.     if h.ClassName == "Hat" then
  611.         h:destroy()
  612.     end
  613. end
  614. game.Workspace.CurrentCamera.CameraSubject = head
  615. if leftleg ~= nil then
  616. local glue = Instance.new("Glue", clone.Torso)
  617. glue.Part0 = clone.Torso
  618. glue.Part1 = leftleg
  619. glue.Name = "Left leg"
  620. local collider = Instance.new("Part", leftleg)
  621. collider.Position = Vector3.new(0,999,0)
  622. collider.Size = Vector3.new(1.7, 1, 1)
  623. collider.Shape = "Cylinder"
  624. local weld = Instance.new("Weld", collider)
  625. weld.Part0 = leftleg
  626. weld.Part1 = collider
  627. weld.C0 = CFrame.Angles(0, 0, 80)
  628. collider.TopSurface = "Smooth"
  629. collider.BottomSurface = "Smooth"
  630. collider.formFactor = "Symmetric"
  631. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  632. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  633. collider.Transparency = 1
  634. end
  635. ------------
  636. if rightleg ~= nil then
  637. local glue1 = Instance.new("Glue", clone.Torso)
  638. glue1.Part0 = clone.Torso
  639. glue1.Part1 = rightleg
  640. glue1.Name = "Right leg"
  641. local collider1 = Instance.new("Part", rightleg)
  642. collider1.Position = Vector3.new(0,999,0)
  643. collider1.Size = Vector3.new(1.7, 1, 1)
  644. collider1.Shape = "Cylinder"
  645. local weld1 = Instance.new("Weld", collider1)
  646. weld1.Part0 = rightleg
  647. weld1.Part1 = collider1
  648. weld1.C0 = CFrame.Angles(0, 0, 80)
  649. collider1.TopSurface = "Smooth"
  650. collider1.BottomSurface = "Smooth"
  651. collider1.formFactor = "Symmetric"
  652. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  653. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  654. collider1.Transparency = 1
  655. end
  656. ------------
  657. if rightrm ~= nil then
  658. local glue11 = Instance.new("Glue", clone.Torso)
  659. glue11.Part0 = clone.Torso
  660. glue11.Part1 = rightrm
  661. glue11.Name = "Right shoulder"
  662. local collider11 = Instance.new("Part", rightrm)
  663. collider11.Position = Vector3.new(0,9999,0)
  664. collider11.Size = Vector3.new(1.8,1,1)
  665. collider11.Shape = "Cylinder"
  666. local weld11 = Instance.new("Weld", collider11)
  667. weld11.Part0 = rightrm
  668. weld11.Part1 = collider11
  669. weld11.C0 = CFrame.Angles(0, 0, 80)
  670. collider11.TopSurface = "Smooth"
  671. collider11.BottomSurface = "Smooth"
  672. collider11.formFactor = "Symmetric"
  673. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  674. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  675. collider11.Transparency = 1
  676. end
  677. ------------
  678. if leftarm ~= nil then
  679. local glue111 = Instance.new("Glue", clone.Torso)
  680. glue111.Part0 = clone.Torso
  681. glue111.Part1 = leftarm
  682. glue111.Name = "Left shoulder"
  683. local collider111 = Instance.new("Part", leftarm)
  684. collider111.Position = Vector3.new(0,9999,0)
  685. collider111.Size = Vector3.new(1.8,1,1)
  686. collider111.Shape = "Cylinder"
  687. local weld111 = Instance.new("Weld", collider111)
  688. weld111.Part0 = leftarm
  689. weld111.Part1 = collider111
  690. weld111.C0 = CFrame.Angles(0, 0, 80)
  691. collider111.TopSurface = "Smooth"
  692. collider111.BottomSurface = "Smooth"
  693. collider111.formFactor = "Symmetric"
  694. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  695. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  696. collider111.Transparency = 1
  697. ----------------
  698. sensoring = Instance.new("Part", clone.Torso)
  699. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  700. sensoring.CanCollide = false
  701. sensoring.Position = clone.Torso.Position
  702. local welder = Instance.new("Weld", sensoring)
  703. welder.Part0 = clone.Torso
  704. welder.Part1 = sensoring
  705. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  706. sensoring.Transparency = 1
  707. -----------------
  708. sensoring1 = Instance.new("Part", clone.Torso)
  709. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  710. sensoring1.CanCollide = false
  711. sensoring1.Position = clone.Torso.Position
  712. local welder1 = Instance.new("Weld", sensoring)
  713. welder1.Part0 = clone.Torso
  714. welder1.Part1 = sensoring1
  715. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  716. sensoring1.Transparency = 1
  717. end
  718. clone.Name = game.Players.LocalPlayer.Character.Name.."  (Dead)"
  719. ded:Play()
  720. vel:destroy()
  721. wait(0.5)
  722. local function touch()
  723.     if not using then
  724.         using = true
  725.         local Math = math.random(1,4)
  726.         if Math == 1 then
  727.             hit:Play()
  728.         end
  729.         if Math == 2 then
  730.             hit1:Play()
  731.         end
  732.         if Math == 3 then
  733.             hit2:Play()
  734.         end
  735.         if Math == 4 then
  736.             hit3:Play()
  737.         end
  738.         wait(0.1)
  739.         using = false
  740.     end
  741. end
  742. sensoring.Touched:connect(touch)
  743. sensoring1.Touched:connect(touch)
  744. wait(4.47)
  745. hit1.Volume = 0
  746. hit2.Volume = 0
  747. hit3.Volume = 0
  748. hit.Volume = 0
  749.         end
  750.  
  751. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  752.  
  753. --di ent
Add Comment
Please, Sign In to add comment