Advertisement
GS1029

Super Bat

May 26th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 28.74 KB | None | 0 0
  1. --MADE BY 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=54983107"
  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 = 0.1,0.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()
  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(0,5)
  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(98,135)
  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()
  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()
  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.                 hit = true
  162.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  163.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  164.             end
  165.             for i = 1,3 do
  166.                 wait()
  167.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.47)
  168.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.47)
  169.             end
  170.             for i = 1,2 do
  171.                 wait()
  172.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  173.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  174.             end
  175.             wait()
  176.             swinging:Play()
  177.             for i = 1,2 do
  178.                 wait()
  179.                 weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  180.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  181.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  182.             end
  183.             for i = 1,3 do
  184.                 wait()
  185.                 weld.C0 = weld.C0 * CFrame.Angles(0.33,0,0.1) * CFrame.new(0,-0.66,0.3)
  186.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.2,0,0)
  187.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.2,0,0)
  188.             end
  189.             for i = 1,2 do
  190.                 wait()
  191.                 weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  192.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  193.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  194.             end
  195.             wait()
  196.             for i = 1,2 do
  197.                 wait()
  198.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  199.             end
  200.             for i = 1,2 do
  201.                 wait()
  202.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
  203.             end
  204.             for i = 1,2 do
  205.                 wait()
  206.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.2)
  207.             end
  208.             for i = 1,2 do
  209.                 wait()
  210.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.4)
  211.             end
  212.             swinging:Play()
  213.             for i = 1,2 do
  214.                 wait()
  215.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.8)
  216. hit = false
  217.             end
  218.             local se = Instance.new("Part", bat)
  219.             se.Size = Vector3.new(1, 1, 3)
  220.             se:BreakJoints()
  221.             se.Transparency = 1
  222.             se.CanCollide = false
  223.             local dmgweld = Instance.new("Weld", se)
  224.             dmgweld.Part0 = bat
  225.             dmgweld.Part1 = se
  226.             dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  227.             local function dmg(part)
  228.                 if not hit then
  229.                     hit = true
  230.                     local hum = part.Parent:findFirstChild("Humanoid")
  231.                     if hum ~= nil then
  232.                     baseballhit:Play()
  233.                     baseballhit1:Play()
  234.                     hum.Health = hum.Health - math.random(5,25)
  235.                     hum.PlatformStand = true
  236.                     local tor = part.Parent:findFirstChild("Torso")
  237.                     if tor then
  238.                         local vel = Instance.new("BodyVelocity", tor)
  239.                         vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  240.                         vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 35
  241.                         wait()
  242.                         vel:destroy()
  243.                         hit = false
  244.                     end
  245.                     wait()
  246.                     hit = false
  247.                     wait()
  248.                     hum.PlatformStand = false
  249.                 end
  250.                 end
  251.             end
  252.             se.Touched:connect(dmg)
  253.             for i = 1,20 do
  254.                 swinging:Play()
  255.                 for i = 1,10 do
  256.                     wait()
  257.                     game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.9)
  258.                 end
  259.             end
  260.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  261.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  262.             for i = 1,2 do
  263.                 wait()
  264.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  265.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  266.             end
  267.             for i = 1,3 do
  268.                 wait()
  269.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.47)
  270.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.47)
  271.             end
  272.             for i = 1,2 do
  273.                 wait()
  274.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  275.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  276.             end
  277.             wait()
  278.             swinging:Play()
  279.             for i = 1,2 do
  280.                 wait()
  281.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  282.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  283.             end
  284.             for i = 1,3 do
  285.                 wait()
  286.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.2,0,0)
  287.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.2,0,0)
  288.             end
  289.             for i = 1,2 do
  290.                 wait()
  291.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  292.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  293.             end
  294.             for i = 1,2 do
  295.                 wait()
  296.                 weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  297.             end
  298.             for i = 1,3 do
  299.                 wait()
  300.                 weld.C0 = weld.C0 * CFrame.Angles(-0.33,0,-0.1) * CFrame.new(0,0.66,-0.3)
  301.             end
  302.             for i = 1,2 do
  303.                 wait()
  304.                 weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  305.             end
  306.             weld.C0 = CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654)
  307.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  308.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  309.             lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  310.             lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  311.             rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  312.             rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  313.             using = false
  314.             se:destroy()
  315.         end
  316.     end
  317. end
  318. function laugh(key)
  319.     key = key:lower()
  320.     if key == "h" then
  321.         local lahmath = math.random(1,2)
  322.         if lahmath == 1 then
  323.             laughing:Play()
  324.         end
  325.         if lahmath == 2 then
  326.             ooh:Play()
  327.         end
  328.     end
  329. end
  330. function boom(key)
  331.     key = key:lower()
  332.     if key == "f" then
  333.         if not using then
  334.             using = true
  335.             swinging:Play()
  336.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 8
  337.             game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  338.             for i = 1,2 do
  339.                 wait()
  340.                 hit = true
  341.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  342.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  343.             end
  344.             for i = 1,3 do
  345.                 wait()
  346.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.47)
  347.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.47)
  348.             end
  349.             for i = 1,2 do
  350.                 wait()
  351.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,-0.05)
  352.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.05)
  353.             end
  354.             wait()
  355.             swinging:Play()
  356.             for i = 1,2 do
  357.                 wait()
  358.                 weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  359.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  360.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  361.             end
  362.             for i = 1,3 do
  363.                 wait()
  364.                 weld.C0 = weld.C0 * CFrame.Angles(0.33,0,0.1) * CFrame.new(0,-0.66,0.3)
  365.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.2,0,0)
  366.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.2,0,0)
  367.             end
  368.             for i = 1,2 do
  369.                 wait()
  370.                 weld.C0 = weld.C0 * CFrame.Angles(0.13,0,0.05) * CFrame.new(0,-0.27,0.1)
  371.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0.05,0,0)
  372.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0.05,0,00)
  373.             end
  374.             wait()
  375.             for i = 1,2 do
  376.                 wait()
  377.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  378.             end
  379.             swinging:Play()
  380.             for i = 1,2 do
  381.                 wait()
  382.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.1)
  383.             hit = false
  384.             end
  385.             local se = Instance.new("Part", bat)
  386.             se.Size = Vector3.new(1, 1, 3)
  387.             se:BreakJoints()
  388.             se.Transparency = 1
  389.             se.CanCollide = false
  390.             local dmgweld = Instance.new("Weld", se)
  391.             dmgweld.Part0 = bat
  392.             dmgweld.Part1 = se
  393.             dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  394.             local function dmg(part)
  395.                 if not hit then
  396.                     hit = true
  397.                     se:destroy()
  398.                     local hum = part.Parent:findFirstChild("Humanoid")
  399.                     if hum ~= nil then
  400.                     batcritical:Play()
  401.                     baseballhit1:Play()
  402.                     hum.Health = hum.Health - math.random(70,86)
  403.                     hum.PlatformStand = true
  404.                     local tor = part.Parent:findFirstChild("Torso")
  405.                     if tor then
  406.                         hum.Jump = true
  407.                         local vel1 = Instance.new("BodyVelocity", tor)
  408.                         vel1.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  409.                         vel1.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 130
  410.                         wait()
  411.                         vel1:destroy()
  412.                         hit = false
  413.                     end
  414.                     wait()
  415.                     hit = false
  416.                     wait()
  417.                     hum.PlatformStand = false
  418.                 end
  419.                 end
  420.             end
  421.             se.Touched:connect(dmg)
  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.2)
  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.4)
  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.8)
  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,-0.9)
  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.             for i = 1,2 do
  443.                 wait()
  444.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-1.1)
  445.             end
  446.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-1.1)
  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.8)
  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.6)
  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.3)
  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.1)
  462.             end
  463.             for i = 1,2 do
  464.                 wait()
  465.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,-0.05)
  466.             end
  467.             wait()
  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.05)
  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.1)
  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.2)
  483.             end
  484.             for i = 1,2 do
  485.                 wait()
  486.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.05)
  487.             end
  488.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  489.             game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  490.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  491.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  492.             for i = 1,2 do
  493.                 wait()
  494.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  495.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  496.             end
  497.             for i = 1,3 do
  498.                 wait()
  499.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.47)
  500.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.47)
  501.             end
  502.             for i = 1,2 do
  503.                 wait()
  504.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(0,0,0.05)
  505.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.05)
  506.             end
  507.             wait()
  508.             swinging:Play()
  509.             for i = 1,2 do
  510.                 wait()
  511.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  512.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  513.             end
  514.             for i = 1,3 do
  515.                 wait()
  516.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.2,0,0)
  517.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.2,0,0)
  518.             end
  519.             for i = 1,2 do
  520.                 wait()
  521.                 lhandweld.C0 = lhandweld.C0 * CFrame.Angles(-0.05,0,0)
  522.                 rhandweld.C0 = rhandweld.C0 * CFrame.Angles(-0.05,0,00)
  523.             end
  524.             for i = 1,2 do
  525.                 wait()
  526.                 weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  527.             end
  528.             for i = 1,3 do
  529.                 wait()
  530.                 weld.C0 = weld.C0 * CFrame.Angles(-0.33,0,-0.1) * CFrame.new(0,0.66,-0.3)
  531.             end
  532.             for i = 1,2 do
  533.                 wait()
  534.                 weld.C0 = weld.C0 * CFrame.Angles(-0.13,0,-0.05) * CFrame.new(0,0.27,-0.1)
  535.             end
  536.             weld.C0 = CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654)
  537.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  538.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  539.             lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  540.             lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  541.             rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  542.             rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  543.             se:destroy()
  544.             using = false
  545.         end
  546.     end
  547. end
  548. mouse.KeyDown:connect(boom)
  549. mouse.KeyDown:connect(combo)
  550. mouse.KeyDown:connect(laugh)
  551. mouse.Button1Down:connect(hit)
  552. --[[
  553.     local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  554. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
  555. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  556. --]]
  557. --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
  558. --die plz
  559. mouse = game.Players.LocalPlayer:GetMouse()
  560. function ragdoll()
  561. game.Players.LocalPlayer.Character.Archivable = true
  562. clone = game.Players.LocalPlayer.Character:Clone()
  563. clone.Parent = workspace
  564. for i,v in pairs(clone:GetChildren()) do
  565.     if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  566.         v:destroy()
  567.     end
  568.     for i,p in pairs(v:GetChildren()) do
  569.     if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  570.         p:destroy()
  571.     end
  572. end
  573. end
  574. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  575.     if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  576.         t:destroy()
  577.     end
  578. end
  579. vel = Instance.new("BodyVelocity", clone.Torso)
  580. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  581. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  582. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=272649558"
  583. using = false
  584. hit = Instance.new("Sound", clone.Torso)
  585. hit.SoundId = "rbxassetid://260430060"
  586. hit.Volume = 5
  587. hit1 = Instance.new("Sound", clone.Torso)
  588. hit1.SoundId = "rbxassetid://138087186"
  589. hit1.Volume = 5
  590. hit2 = Instance.new("Sound", clone.Torso)
  591. hit2.SoundId = "rbxassetid://131237241"
  592. hit2.Volume = 5
  593. hit3 = Instance.new("Sound", clone.Torso)
  594. hit3.SoundId = "rbxassetid://278062209"
  595. hit3.Volume = 5
  596. hit3.TimePosition = 0.33
  597. ded = Instance.new("Sound", clone.Torso)
  598. ded.SoundId = "rbxassetid://521472918"
  599. ded.Volume = 5
  600. local leftarm = clone:findFirstChild("Left Arm")
  601. local rightrm = clone:findFirstChild("Right Arm")
  602. local leftleg = clone:findFirstChild("Left Leg")
  603. local rightleg = clone:findFirstChild("Right Leg")
  604. local head = clone:findFirstChild("Head")
  605. local welding = Instance.new("Weld", clone.Torso)
  606. welding.Part0 = clone.Torso
  607. welding.Part1 = head
  608. welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
  609. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  610.     if g.ClassName == "Part" then
  611.         g:destroy()
  612.     end
  613. end
  614. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  615.     if h.ClassName == "Accesory" then
  616.         h:destroy()
  617.     end
  618. end
  619. game.Workspace.CurrentCamera.CameraSubject = head
  620. if leftleg ~= nil then
  621. local glue = Instance.new("Glue", clone.Torso)
  622. glue.Part0 = clone.Torso
  623. glue.Part1 = leftleg
  624. glue.Name = "Left leg"
  625. local collider = Instance.new("Part", leftleg)
  626. collider.Position = Vector3.new(0,999,0)
  627. collider.Size = Vector3.new(1.7, 1, 1)
  628. collider.Shape = "Cylinder"
  629. local weld = Instance.new("Weld", collider)
  630. weld.Part0 = leftleg
  631. weld.Part1 = collider
  632. weld.C0 = CFrame.Angles(0, 0, 80)
  633. collider.TopSurface = "Smooth"
  634. collider.BottomSurface = "Smooth"
  635. collider.formFactor = "Symmetric"
  636. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  637. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  638. collider.Transparency = 1
  639. end
  640. ------------
  641. if rightleg ~= nil then
  642. local glue1 = Instance.new("Glue", clone.Torso)
  643. glue1.Part0 = clone.Torso
  644. glue1.Part1 = rightleg
  645. glue1.Name = "Right leg"
  646. local collider1 = Instance.new("Part", rightleg)
  647. collider1.Position = Vector3.new(0,999,0)
  648. collider1.Size = Vector3.new(1.7, 1, 1)
  649. collider1.Shape = "Cylinder"
  650. local weld1 = Instance.new("Weld", collider1)
  651. weld1.Part0 = rightleg
  652. weld1.Part1 = collider1
  653. weld1.C0 = CFrame.Angles(0, 0, 80)
  654. collider1.TopSurface = "Smooth"
  655. collider1.BottomSurface = "Smooth"
  656. collider1.formFactor = "Symmetric"
  657. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  658. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  659. collider1.Transparency = 1
  660. end
  661. ------------
  662. if rightrm ~= nil then
  663. local glue11 = Instance.new("Glue", clone.Torso)
  664. glue11.Part0 = clone.Torso
  665. glue11.Part1 = rightrm
  666. glue11.Name = "Right shoulder"
  667. local collider11 = Instance.new("Part", rightrm)
  668. collider11.Position = Vector3.new(0,9999,0)
  669. collider11.Size = Vector3.new(1.8,1,1)
  670. collider11.Shape = "Cylinder"
  671. local weld11 = Instance.new("Weld", collider11)
  672. weld11.Part0 = rightrm
  673. weld11.Part1 = collider11
  674. weld11.C0 = CFrame.Angles(0, 0, 80)
  675. collider11.TopSurface = "Smooth"
  676. collider11.BottomSurface = "Smooth"
  677. collider11.formFactor = "Symmetric"
  678. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  679. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  680. collider11.Transparency = 1
  681. end
  682. ------------
  683. if leftarm ~= nil then
  684. local glue111 = Instance.new("Glue", clone.Torso)
  685. glue111.Part0 = clone.Torso
  686. glue111.Part1 = leftarm
  687. glue111.Name = "Left shoulder"
  688. local collider111 = Instance.new("Part", leftarm)
  689. collider111.Position = Vector3.new(0,9999,0)
  690. collider111.Size = Vector3.new(1.8,1,1)
  691. collider111.Shape = "Cylinder"
  692. local weld111 = Instance.new("Weld", collider111)
  693. weld111.Part0 = leftarm
  694. weld111.Part1 = collider111
  695. weld111.C0 = CFrame.Angles(0, 0, 80)
  696. collider111.TopSurface = "Smooth"
  697. collider111.BottomSurface = "Smooth"
  698. collider111.formFactor = "Symmetric"
  699. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  700. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  701. collider111.Transparency = 1
  702. ----------------
  703. sensoring = Instance.new("Part", clone.Torso)
  704. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  705. sensoring.CanCollide = false
  706. sensoring.Position = clone.Torso.Position
  707. local welder = Instance.new("Weld", sensoring)
  708. welder.Part0 = clone.Torso
  709. welder.Part1 = sensoring
  710. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  711. sensoring.Transparency = 1
  712. -----------------
  713. sensoring1 = Instance.new("Part", clone.Torso)
  714. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  715. sensoring1.CanCollide = false
  716. sensoring1.Position = clone.Torso.Position
  717. local welder1 = Instance.new("Weld", sensoring)
  718. welder1.Part0 = clone.Torso
  719. welder1.Part1 = sensoring1
  720. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  721. sensoring1.Transparency = 1
  722. end
  723. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  724. ded:Play()
  725. vel:destroy()
  726. wait()
  727. local function touch()
  728.     if not using then
  729.         using = true
  730.         local Math = math.random(1,4)
  731.         if Math == 1 then
  732.             hit:Play()
  733.         end
  734.         if Math == 2 then
  735.             hit1:Play()
  736.         end
  737.         if Math == 3 then
  738.             hit2:Play()
  739.         end
  740.         if Math == 4 then
  741.             hit3:Play()
  742.         end
  743.         wait()
  744.         using = false
  745.     end
  746. end
  747. sensoring.Touched:connect(touch)
  748. sensoring1.Touched:connect(touch)
  749. wait(4.47)
  750. hit1.Volume = 0
  751. hit2.Volume = 0
  752. hit3.Volume = 0
  753. hit.Volume = 0
  754.         end
  755.  
  756. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  757.  
  758. --di ent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement