Advertisement
RoyalOOBatManOo

Untitled

Mar 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 51.57 KB | None | 0 0
  1. --By Rufus14
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. songplaying = false
  4. song1 = Instance.new("Sound", game.Players.LocalPlayer.Character)
  5. song1.SoundId = "rbxassetid://226041794"
  6. song1.Volume = 3
  7. song1.Looped = true
  8. function song(key)
  9.     key = key:lower()
  10.     if key == "q" then
  11.         songplaying = not songplaying
  12.         if not songplaying then
  13.             song1:Play()
  14.         else
  15.             song1:Stop()
  16.         end
  17.     end
  18. end
  19. mouse.KeyDown:connect(song)
  20. bat = Instance.new("Part", game.Players.LocalPlayer.Character)
  21. bat.Size = Vector3.new(1, 1, 5)
  22. bat.CanCollide = false
  23. bat:BreakJoints()
  24. swoosh = Instance.new("Sound", bat)
  25. swoosh.SoundId = "rbxassetid://12222200"
  26. swoosh.Volume = 5
  27. hitsound = Instance.new("Sound", bat)
  28. hitsound.SoundId = "rbxassetid://175024455"
  29. hitsound.Volume = 5
  30. hitsoundmarker = Instance.new("Sound", bat)
  31. hitsoundmarker.SoundId = "rbxassetid://131864673"
  32. hitsoundmarker.Volume = 10
  33. weld = Instance.new("Weld", bat)
  34. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  35. weld.Part1 = bat
  36. weld.C0 = weld.C0 * CFrame.Angles(0,3.15,0) * CFrame.new(0,-0.95,1.9)
  37. print(weld.C0)
  38. mesh = Instance.new("SpecialMesh", bat)
  39. mesh.MeshId = "http://www.roblox.com/asset/?id=54983181"
  40. mesh.TextureId = "http://www.roblox.com/asset/?id=54983107"
  41. mesh.Scale = Vector3.new(2.3,2.3,1.8)
  42. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  43. game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove()
  44. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  45. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  46. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  47. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  48. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  49. game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove()
  50. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  51. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  52. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  53. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  54. local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  55. game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove()
  56. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  57. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  58. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  59. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  60. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  61. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  62. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  63. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  64. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  65. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  66. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  67. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  68. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  69. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  70. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  71. for i = 0,0.5 , 0.05 do
  72.     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00790023804, 0.199968576, -0.00020980835, 0.999964595, -0.00790178124, 0.00306172855, 0.00790151209, 0.999969304, 0.000218808651, -0.0030639898, -0.000195354223, 0.999996841),i)
  73.     llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.505001068, -1.86916244, -0.621334076, 0.999965012, 0.00531583838, -0.00659736991, -0.00790282805, 0.865899682, -0.500156105, 0.00305361301, 0.500189841, 0.865911663),i)
  74.     lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.60521126, 0.0956981182, 0.261711121, 0.980589807, 0.186369807, -0.0609254427, -0.159354717, 0.938544989, 0.306180835, 0.114243567, -0.290528506, 0.95002687),i)
  75.     rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.500003815, -1.98082137, 0.341064453, 1.00000024, -4.760921e-06, 6.13927841e-06, 2.53296457e-06, 0.939691961, 0.342023224, -7.70017505e-06, -0.342023879, 0.939692199),i)
  76.     rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54322338, 0.0253696442, -0.292896271, 0.992699027, -0.0961229801, 0.0728714988, 0.115717016, 0.929440677, -0.35035944, -0.0340529159, 0.35623306, 0.933778286),i)
  77.     game:GetService("RunService").RenderStepped:wait()
  78. end
  79. canwalk = true
  80. swinging = false
  81. candamage = true
  82. function swing()
  83.     if not swinging then
  84.         swinging = true
  85.         canwalk = false
  86.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 5
  87.         game.Players.LocalPlayer.Character.Humanoid.JumpPower = 25
  88.         for i = 0,1 , 0.05 do
  89.             humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.060305357, 0.342018127, 1, 0, 0, 0, 0.939693272, -0.342020303, 0, 0.342019916, 0.939693391),i)
  90.             rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.70000172, -0.519617081, 1, 0, 0, 0, 0.866026163, -0.499999225, 0, 0.499999225, 0.866026402),i)
  91.             lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.987316132, 0.282949448, -0.698820114, 0.939694464, -0.34202224, 2.70232778e-08, 0.0593919083, 0.163177595, -0.984809518, 0.336825609, 0.925419152, 0.173649967),i)
  92.             rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.30303764, 1.01691437, 0.573373795, 0.984808326, 0.173646584, -6.79235441e-08, 0.1116198, -0.633033633, 0.766036034, 0.133019418, -0.754398465, -0.642799139),i)
  93.             llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.9396944, 0.342021942, 1, 0, 0, 0, 0.939693332, 0.342020005, 0, -0.342020273, 0.93969363),i)
  94.             game:GetService("RunService").RenderStepped:wait()
  95.         end
  96.         swoosh:Play()
  97.         local se = Instance.new("Part", bat)
  98.         se.Size = Vector3.new(1.5, 1, 3)
  99.         se:BreakJoints()
  100.         se.Transparency = 1
  101.         se.CanCollide = false
  102.         local dmgweld = Instance.new("Weld", se)
  103.         dmgweld.Part0 = bat
  104.         dmgweld.Part1 = se
  105.         dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  106.         local function setouch(part)
  107.             local humanoid = part.Parent:findFirstChild("Humanoid")
  108.             if humanoid and candamage then
  109.                     se:destroy()
  110.                     hitsound:Play()
  111.                     hitsoundmarker:Play()
  112.                     local dedsound = humanoid.Parent.Head:findFirstChild("Died")
  113.                     local kysniba = Instance.new("BodyVelocity", humanoid.Parent.Torso)
  114.                                     kysniba.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  115.                                     kysniba.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * math.random(5,35)
  116.                                         if dedsound then
  117.                                             dedsound:Play()
  118.                                             dedsound.Volume = 8
  119.                                         end
  120.                                         humanoid.Health = humanoid.Health - math.random(35,50)
  121.                                         humanoid.PlatformStand = true
  122.                                         wait()
  123.                                         kysniba:destroy()
  124.                                         local lshclone = humanoid.Parent.Torso["Left Shoulder"]:Clone()
  125.                                         local rshclone = humanoid.Parent.Torso["Right Shoulder"]:Clone()
  126.                                         local lhclone = humanoid.Parent.Torso["Left Hip"]:Clone()
  127.                                         local rhclone = humanoid.Parent.Torso["Right Hip"]:Clone()
  128.                                         local leftarm = humanoid.Parent["Left Arm"]
  129.                                         local rightrm = humanoid.Parent["Right Arm"]
  130.                                         local leftleg = humanoid.Parent["Left Leg"]
  131.                                         local rightleg = humanoid.Parent["Right Leg"]
  132.                                         humanoid.Parent.Torso["Left Hip"]:destroy()
  133.                                         local head = humanoid.Parent.Head
  134.                                         glue = Instance.new("Glue", humanoid.Parent.Torso)
  135.                                         glue.Part0 = humanoid.Parent.Torso
  136.                                         glue.Part1 = leftleg
  137.                                         glue.Name = "Left leg"
  138.                                         collider = Instance.new("Part", leftleg)
  139.                                         collider.Position = Vector3.new(0,999,0)
  140.                                         collider.Size = Vector3.new(1.5, 1, 1)
  141.                                         collider.Shape = "Cylinder"
  142.                                         local weld = Instance.new("Weld", collider)
  143.                                         weld.Part0 = leftleg
  144.                                         weld.Part1 = collider
  145.                                         weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  146.                                         collider.TopSurface = "Smooth"
  147.                                         collider.BottomSurface = "Smooth"
  148.                                         collider.formFactor = "Symmetric"
  149.                                         glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  150.                                         glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  151.                                         collider.Transparency = 1
  152.                                         ------------
  153.                                         humanoid.Parent.Torso["Right Hip"]:destroy()
  154.                                         glue1 = Instance.new("Glue", humanoid.Parent.Torso)
  155.                                         glue1.Part0 = humanoid.Parent.Torso
  156.                                         glue1.Part1 = rightleg
  157.                                         glue1.Name = "Right leg"
  158.                                         collider1 = Instance.new("Part", rightleg)
  159.                                         collider1.Position = Vector3.new(0,9999,0)
  160.                                         collider1.Size = Vector3.new(1.5, 1, 1)
  161.                                         collider1.Shape = "Cylinder"
  162.                                         local weld1 = Instance.new("Weld", collider1)
  163.                                         weld1.Part0 = rightleg
  164.                                         weld1.Part1 = collider1
  165.                                         weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  166.                                         collider1.TopSurface = "Smooth"
  167.                                         collider1.BottomSurface = "Smooth"
  168.                                         collider1.formFactor = "Symmetric"
  169.                                         glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  170.                                         glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  171.                                         collider1.Transparency = 1
  172.                                         ------------
  173.                                         humanoid.Parent.Torso["Right Shoulder"]:destroy()
  174.                                         glue11 = Instance.new("Glue", humanoid.Parent.Torso)
  175.                                         glue11.Part0 = humanoid.Parent.Torso
  176.                                         glue11.Part1 = rightrm
  177.                                         glue11.Name = "Right shoulder"
  178.                                         collider11 = Instance.new("Part", rightrm)
  179.                                         collider11.Position = Vector3.new(0,9999,0)
  180.                                         collider11.Size = Vector3.new(1.8,1,1)
  181.                                         collider11.Shape = "Cylinder"
  182.                                         local weld11 = Instance.new("Weld", collider11)
  183.                                         weld11.Part0 = rightrm
  184.                                         weld11.Part1 = collider11
  185.                                         weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  186.                                         collider11.TopSurface = "Smooth"
  187.                                         collider11.BottomSurface = "Smooth"
  188.                                         collider11.formFactor = "Symmetric"
  189.                                         glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  190.                                         glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  191.                                         collider11.Transparency = 1
  192.                                         ------------
  193.                                         humanoid.Parent.Torso["Left Shoulder"]:destroy()
  194.                                         glue111 = Instance.new("Glue", humanoid.Parent.Torso)
  195.                                         glue111.Part0 = humanoid.Parent.Torso
  196.                                         glue111.Part1 = leftarm
  197.                                         glue111.Name = "Left shoulder"
  198.                                         collider111 = Instance.new("Part", leftarm)
  199.                                         collider111.Position = Vector3.new(0,9999,0)
  200.                                         collider111.Size = Vector3.new(1.5, 1, 1)
  201.                                         collider111.Shape = "Cylinder"
  202.                                         local weld111 = Instance.new("Weld", collider111)
  203.                                         weld111.Part0 = leftarm
  204.                                         weld111.Part1 = collider111
  205.                                         weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  206.                                         collider111.TopSurface = "Smooth"
  207.                                         collider111.BottomSurface = "Smooth"
  208.                                         collider111.formFactor = "Symmetric"
  209.                                         glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  210.                                         glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  211.                                         collider111.Transparency = 1
  212.                                         -----------------
  213.                                         wait(3.5)
  214.                                         lshclone.Parent = humanoid.Parent.Torso
  215.                                         glue:destroy()
  216.                                         rshclone.Parent = humanoid.Parent.Torso
  217.                                         glue1:destroy()
  218.                                         lhclone.Parent = humanoid.Parent.Torso
  219.                                         glue11:destroy()
  220.                                         rhclone.Parent = humanoid.Parent.Torso
  221.                                         glue111:destroy()
  222.                                         collider:destroy()
  223.                                         collider1:destroy()
  224.                                         collider11:destroy()
  225.                                         collider111:destroy()
  226.                                         humanoid.PlatformStand = false
  227.             end
  228.         end
  229.         se.Touched:connect(setouch)
  230.         for i = 0,1 , 0.11 do
  231.             weld.C0 = weld.C0:lerp(CFrame.new(-0.297571182, -1.49015808, -1.51836586, -0.985374331, -0.0475560725, -0.163633719, 0.00750970328, 0.947216451, -0.32050702, 0.170238599, -0.317048222, -0.933005512),i)
  232.             humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(1.90734863e-06, -0.0151953697, -0.173664093, 1.00000513, -3.31550837e-07, -2.52574682e-06, 5.01750037e-08, 0.984812319, 0.173652053, 2.98023224e-08, -0.173651025, 0.98481524),i)
  233.             rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.500009537, -1.70720339, 1.0928154, 1, -3.39564826e-06, 3.12621842e-06, -1.00954344e-06, 0.500003278, 0.866023481, -4.5038305e-06, -0.866023481, 0.500003278),i)
  234.             lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.76405525, 0.315278292, 0.180755615, 0.955111921, 0.296198726, -0.0052483133, -0.103770666, 0.351103872, 0.930568516, 0.277475923, -0.888252497, 0.366080195),i)
  235.             rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.10239601, 0.189299107, -0.839540482, 0.938380003, 0.344308525, 0.0301573183, -0.148524553, 0.480493009, -0.864339054, -0.312090695, 0.806592703, 0.50202179),i)
  236.             llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.500007629, -1.98484421, -0.173652649, 1.00000513, 5.01750037e-08, 2.98023224e-08, -3.31550837e-07, 0.984812319, -0.173651025, -2.52574682e-06, 0.173652053, 0.98481524),i)
  237.             game:GetService("RunService").RenderStepped:wait()
  238.         end
  239.         for i = 0,0.5 , 0.03 do
  240.             humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  241.             weld.C0 = weld.C0:lerp(CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654),i)
  242.             llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.740257263, -2.03609467, -0.136482239, 0.983402133, 0.178129673, -0.0344976112, -0.181415305, 0.96843487, -0.1709456, 0.00295820553, 0.174366668, 0.984676421),i)
  243.             lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5622654, 0.129275084, -0.0601882935, 0.980589986, 0.172955066, -0.0923573449, -0.159350663, 0.977449715, 0.138561979, 0.114239655, -0.121155277, 0.98603791),i)
  244.             rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.500007629, -2.00265956, 0.172412872, 1, -1.20094264e-05, 1.7030412e-05, 8.86936687e-06, 0.984804928, 0.173664317, -1.88572412e-05, -0.173664317, 0.984804928),i)
  245.             rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.53644848, 0.148818254, -0.0714874268, 0.992697001, -0.115257569, 0.0356137939, 0.115724243, 0.993216813, -0.01132611, -0.0340668, 0.0153647754, 0.999301434),i)
  246.             game:GetService("RunService").RenderStepped:wait()
  247.         end
  248.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
  249.         game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  250.         se:destroy()
  251.         canwalk = true
  252.         swinging = false
  253.     end
  254. end
  255. function homerun(key)
  256.     key = key:lower()
  257.     if key == "e" then
  258.         if not swinging then
  259.             swinging = true
  260.             canwalk = false
  261.             wait(0.5)
  262.             for i = 0,0.5 , 0.04 do
  263.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.0025062561, -3.14712524e-05, -0.00749588013, 0.344882131, -0.00252126367, -0.938642621, 0.0078982953, 0.999968827, 0.0002160515, 0.938612878, -0.00748818787, 0.34489125),i)
  264.                 weld.C0 = weld.C0:lerp(CFrame.new(0.166256905, -0.98138237, 1.23845291, 0.0427939594, 0.998588681, -0.0317649394, -0.996390939, 0.0449908599, 0.0719992965, 0.0733263046, 0.0285686739, 0.996902406),i)
  265.                 llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.740257263, -2.03609467, -0.136482239, 0.983402133, 0.178129673, -0.0344976112, -0.181415305, 0.96843487, -0.1709456, 0.00295820553, 0.174366668, 0.984676421),i)
  266.                 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.115190506, 0.512830734, -0.79851532, 0.673410773, -0.722994387, -0.154290587, -0.143455178, 0.0769419968, -0.986662924, 0.725221038, 0.686558425, -0.0519037582),i)
  267.                 rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.500007629, -2.00265956, 0.172412872, 1, -1.20094264e-05, 1.7030412e-05, 8.86936687e-06, 0.984804928, 0.173664317, -1.88572412e-05, -0.173664317, 0.984804928),i)
  268.                 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.29099751, 0.444964886, -0.534446716, -0.115245081, 0.0356208719, 0.992698252, 0.993218303, -0.0113236597, 0.115711786, 0.0153627321, 0.999301195, -0.0340743102),i)
  269.                 game:GetService("RunService").RenderStepped:wait()
  270.             end
  271.             wait(0.5)
  272.             swoosh:Play()
  273.             local se = Instance.new("Part", bat)
  274.             se.Size = Vector3.new(1.5, 1, 3)
  275.             se:BreakJoints()
  276.             se.Transparency = 1
  277.             se.CanCollide = false
  278.             local dmgweld = Instance.new("Weld", se)
  279.             dmgweld.Part0 = bat
  280.             dmgweld.Part1 = se
  281.             dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  282.             local function setouch(part)
  283.                 local humanoid = part.Parent:findFirstChild("Humanoid")
  284.                 if humanoid and candamage then
  285.                         se:destroy()
  286.                         hitsound:Play()
  287.                         hitsoundmarker:Play()
  288.                         local dedsound = humanoid.Parent.Head:findFirstChild("Died")
  289.                         local kysniba = Instance.new("BodyVelocity", humanoid.Parent.Torso)
  290.                                         kysniba.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  291.                                         kysniba.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * math.random(-45,-40)
  292.                                             if dedsound then
  293.                                                 dedsound:Play()
  294.                                                 dedsound.Volume = 8
  295.                                             end
  296.                                             humanoid.Health = humanoid.Health - math.random(35,50)
  297.                                             humanoid.PlatformStand = true
  298.                                             wait()
  299.                                             kysniba:destroy()
  300.                                             local lshclone = humanoid.Parent.Torso["Left Shoulder"]:Clone()
  301.                                             local rshclone = humanoid.Parent.Torso["Right Shoulder"]:Clone()
  302.                                             local lhclone = humanoid.Parent.Torso["Left Hip"]:Clone()
  303.                                             local rhclone = humanoid.Parent.Torso["Right Hip"]:Clone()
  304.                                             local leftarm = humanoid.Parent["Left Arm"]
  305.                                             local rightrm = humanoid.Parent["Right Arm"]
  306.                                             local leftleg = humanoid.Parent["Left Leg"]
  307.                                             local rightleg = humanoid.Parent["Right Leg"]
  308.                                             humanoid.Parent.Torso["Left Hip"]:destroy()
  309.                                             local head = humanoid.Parent.Head
  310.                                             glue = Instance.new("Glue", humanoid.Parent.Torso)
  311.                                             glue.Part0 = humanoid.Parent.Torso
  312.                                             glue.Part1 = leftleg
  313.                                             glue.Name = "Left leg"
  314.                                             collider = Instance.new("Part", leftleg)
  315.                                             collider.Position = Vector3.new(0,999,0)
  316.                                             collider.Size = Vector3.new(1.5, 1, 1)
  317.                                             collider.Shape = "Cylinder"
  318.                                             local weld = Instance.new("Weld", collider)
  319.                                             weld.Part0 = leftleg
  320.                                             weld.Part1 = collider
  321.                                             weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  322.                                             collider.TopSurface = "Smooth"
  323.                                             collider.BottomSurface = "Smooth"
  324.                                             collider.formFactor = "Symmetric"
  325.                                             glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  326.                                             glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  327.                                             collider.Transparency = 1
  328.                                             ------------
  329.                                             humanoid.Parent.Torso["Right Hip"]:destroy()
  330.                                             glue1 = Instance.new("Glue", humanoid.Parent.Torso)
  331.                                             glue1.Part0 = humanoid.Parent.Torso
  332.                                             glue1.Part1 = rightleg
  333.                                             glue1.Name = "Right leg"
  334.                                             collider1 = Instance.new("Part", rightleg)
  335.                                             collider1.Position = Vector3.new(0,9999,0)
  336.                                             collider1.Size = Vector3.new(1.5, 1, 1)
  337.                                             collider1.Shape = "Cylinder"
  338.                                             local weld1 = Instance.new("Weld", collider1)
  339.                                             weld1.Part0 = rightleg
  340.                                             weld1.Part1 = collider1
  341.                                             weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  342.                                             collider1.TopSurface = "Smooth"
  343.                                             collider1.BottomSurface = "Smooth"
  344.                                             collider1.formFactor = "Symmetric"
  345.                                             glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  346.                                             glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  347.                                             collider1.Transparency = 1
  348.                                             ------------
  349.                                             humanoid.Parent.Torso["Right Shoulder"]:destroy()
  350.                                             glue11 = Instance.new("Glue", humanoid.Parent.Torso)
  351.                                             glue11.Part0 = humanoid.Parent.Torso
  352.                                             glue11.Part1 = rightrm
  353.                                             glue11.Name = "Right shoulder"
  354.                                             collider11 = Instance.new("Part", rightrm)
  355.                                             collider11.Position = Vector3.new(0,9999,0)
  356.                                             collider11.Size = Vector3.new(1.8,1,1)
  357.                                             collider11.Shape = "Cylinder"
  358.                                             local weld11 = Instance.new("Weld", collider11)
  359.                                             weld11.Part0 = rightrm
  360.                                             weld11.Part1 = collider11
  361.                                             weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  362.                                             collider11.TopSurface = "Smooth"
  363.                                             collider11.BottomSurface = "Smooth"
  364.                                             collider11.formFactor = "Symmetric"
  365.                                             glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  366.                                             glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  367.                                             collider11.Transparency = 1
  368.                                             ------------
  369.                                             humanoid.Parent.Torso["Left Shoulder"]:destroy()
  370.                                             glue111 = Instance.new("Glue", humanoid.Parent.Torso)
  371.                                             glue111.Part0 = humanoid.Parent.Torso
  372.                                             glue111.Part1 = leftarm
  373.                                             glue111.Name = "Left shoulder"
  374.                                             collider111 = Instance.new("Part", leftarm)
  375.                                             collider111.Position = Vector3.new(0,9999,0)
  376.                                             collider111.Size = Vector3.new(1.5, 1, 1)
  377.                                             collider111.Shape = "Cylinder"
  378.                                             local weld111 = Instance.new("Weld", collider111)
  379.                                             weld111.Part0 = leftarm
  380.                                             weld111.Part1 = collider111
  381.                                             weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  382.                                             collider111.TopSurface = "Smooth"
  383.                                             collider111.BottomSurface = "Smooth"
  384.                                             collider111.formFactor = "Symmetric"
  385.                                             glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  386.                                             glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  387.                                             collider111.Transparency = 1
  388.                                             -----------------
  389.                                             wait(3.5)
  390.                                             lshclone.Parent = humanoid.Parent.Torso
  391.                                             glue:destroy()
  392.                                             rshclone.Parent = humanoid.Parent.Torso
  393.                                             glue1:destroy()
  394.                                             lhclone.Parent = humanoid.Parent.Torso
  395.                                             glue11:destroy()
  396.                                             rhclone.Parent = humanoid.Parent.Torso
  397.                                             glue111:destroy()
  398.                                             collider:destroy()
  399.                                             collider1:destroy()
  400.                                             collider11:destroy()
  401.                                             collider111:destroy()
  402.                                             humanoid.PlatformStand = false
  403.                 end
  404.             end
  405.             se.Touched:connect(setouch)
  406.             for i = 0,1 , 0.06 do
  407.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00290107727, -3.14712524e-05, 0.00735473633, 0.339134485, -0.00288238749, 0.940737188, 0.00789805129, 0.999969661, 0.00021667406, -0.940710008, 0.0073564481, 0.339143455),i)
  408.                 weld.C0 = weld.C0:lerp(CFrame.new(0.363064766, -3.34135723, -0.00578689575, 0.129290998, 0.977891922, 0.164350972, 0.115099035, 0.149822131, -0.981990576, -0.98490411, 0.145879179, -0.0931837559),i)
  409.                 llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.740257263, -2.03609467, -0.136482239, 0.983402133, 0.178129673, -0.0344976112, -0.181415305, 0.96843487, -0.1709456, 0.00295820553, 0.174366668, 0.984676421),i)
  410.                 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.463953018, 0.485588312, -1.28636932, 0.788734317, -0.595068872, -0.154285714, -0.154632434, 0.0508582667, -0.986663163, 0.594980121, 0.802068651, -0.0519035384),i)
  411.                 rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.500007629, -2.00265956, 0.172412872, 1, -1.20094264e-05, 1.7030412e-05, 8.86936687e-06, 0.984804928, 0.173664317, -1.88572412e-05, -0.173664317, 0.984804928),i)
  412.                 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.980017662, 0.469520569, -1.02002907, -0.115247473, 0.527205765, 0.841893554, 0.993219674, 0.0480508804, 0.105872333, 0.0153623596, 0.848385453, -0.529164553),i)
  413.                 game:GetService("RunService").RenderStepped:wait()
  414.             end
  415.             for i = 0,0.6 , 0.06 do
  416.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.0037689209, -3.1709671e-05, -0.00695133209, 0.502638817, -0.0037825685, -0.864492178, 0.00789782684, 0.999969304, 0.000216558576, 0.864467442, -0.00693635643, 0.502654672),i)
  417.                 weld.C0 = weld.C0:lerp(CFrame.new(0.363064766, -3.34135723, -0.00578689575, 0.129290998, 0.977891922, 0.164350972, 0.115099035, 0.149822131, -0.981990576, -0.98490411, 0.145879179, -0.0931837559),i)
  418.                 llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.740257263, -2.03609467, -0.136482239, 0.983402133, 0.178129673, -0.0344976112, -0.181415305, 0.96843487, -0.1709456, 0.00295820553, 0.174366668, 0.984676421),i)
  419.                 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.463953018, 0.485588312, -1.28636932, 0.788734317, -0.595068872, -0.154285714, -0.154632434, 0.0508582667, -0.986663163, 0.594980121, 0.802068651, -0.0519035384),i)
  420.                 rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.500007629, -2.00265956, 0.172412872, 1, -1.20094264e-05, 1.7030412e-05, 8.86936687e-06, 0.984804928, 0.173664317, -1.88572412e-05, -0.173664317, 0.984804928),i)
  421.                 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.980017662, 0.469520569, -1.02002907, -0.115247473, 0.527205765, 0.841893554, 0.993219674, 0.0480508804, 0.105872333, 0.0153623596, 0.848385453, -0.529164553),i)
  422.                 game:GetService("RunService").RenderStepped:wait()
  423.             end
  424.             se:destroy()
  425.             swinging = false
  426.             canwalk = true
  427.         end
  428.     end
  429. end
  430. function finish(key)
  431.     key = key:lower()
  432.     if key == "r" then
  433.         if not swinging then
  434.             swinging = true
  435.             canwalk = false
  436.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  437.             game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  438.             wait(0.3)
  439.             for i = 0,0.5 , 0.04 do
  440.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00790500641, -0.95325017, 0.00522613525, 0.999153674, -0.0285614356, 0.0298122466, 0.0324949361, 0.989460409, -0.141119018, -0.0254644509, 0.141966894, 0.989548504),i)
  441.                 weld.C0 = weld.C0:lerp(CFrame.new(1.68849564, -0.692239761, -0.428113937, -0.12418396, -0.0975907221, 0.987448454, -0.184139758, 0.980132401, 0.0737097934, -0.975023568, -0.172674939, -0.139687046),i)
  442.                 llegweld.C0 = llegweld.C0:lerp(CFrame.new(-1.00843811, -1.19844329, 0.914150238, 0.999923646, -0.000131767243, 0.0128494678, -0.0128492834, 0.000317718834, 0.999918461, -0.000132776797, -1.00000465, 0.000315986574),i)
  443.                 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.115190506, 0.512830734, -0.79851532, 0.673410773, -0.722994387, -0.154290587, -0.143455178, 0.0769419968, -0.986662924, 0.725221038, 0.686558425, -0.0519037582),i)
  444.                 rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.504602432, -1.41426539, -0.43113327, 0.998532414, 0.0129502807, -0.0527050048, 0.0148650706, 0.868719757, 0.495082885, 0.0522002652, -0.495138437, 0.867249846),i)
  445.                 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.3915844, 1.38915205, 0.475536346, 0.0243803822, 0.00994206313, 0.999659538, -0.446981192, -0.894325435, 0.0197958294, 0.894215584, -0.447310358, -0.0173569731),i)
  446.                 game:GetService("RunService").RenderStepped:wait()
  447.             end
  448.             for i = 1,10 do
  449.                 for i = 0,0.8 , 0.1 do
  450.                     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00790500641, -0.95325017, 0.00522613525, 0.999153674, -0.0285614356, 0.0298122466, 0.0324949361, 0.989460409, -0.141119018, -0.0254644509, 0.141966894, 0.989548504),i)
  451.                     weld.C0 = weld.C0:lerp(CFrame.new(1.68849564, -0.692239761, -0.428113937, -0.12418396, -0.0975907221, 0.987448454, -0.184139758, 0.980132401, 0.0737097934, -0.975023568, -0.172674939, -0.139687046),i)
  452.                     llegweld.C0 = llegweld.C0:lerp(CFrame.new(-1.00843811, -1.19844329, 0.914150238, 0.999923646, -0.000131767243, 0.0128494678, -0.0128492834, 0.000317718834, 0.999918461, -0.000132776797, -1.00000465, 0.000315986574),i)
  453.                     lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.115190506, 0.512830734, -0.79851532, 0.673410773, -0.722994387, -0.154290587, -0.143455178, 0.0769419968, -0.986662924, 0.725221038, 0.686558425, -0.0519037582),i)
  454.                     rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.504602432, -1.41426539, -0.43113327, 0.998532414, 0.0129502807, -0.0527050048, 0.0148650706, 0.868719757, 0.495082885, 0.0522002652, -0.495138437, 0.867249846),i)
  455.                     rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.3915844, 1.38915205, 0.475536346, 0.0243803822, 0.00994206313, 0.999659538, -0.446981192, -0.894325435, 0.0197958294, 0.894215584, -0.447310358, -0.0173569731),i)
  456.                     game:GetService("RunService").RenderStepped:wait()
  457.                 end
  458.                 swoosh:Play()
  459.                 local se = Instance.new("Part", bat)
  460.             se.Size = Vector3.new(1.5, 1, 3)
  461.             se:BreakJoints()
  462.             se.Transparency = 1
  463.             se.CanCollide = false
  464.             local dmgweld = Instance.new("Weld", se)
  465.             dmgweld.Part0 = bat
  466.             dmgweld.Part1 = se
  467.             dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  468.             local function setouch(part)
  469.                 local humanoid = part.Parent:findFirstChild("Humanoid")
  470.                 if humanoid and candamage then
  471.                         kaykaykay = true
  472.                         hitsound:Play()
  473.                         hitsoundmarker:Play()
  474.                         local dedsound = humanoid.Parent.Head:findFirstChild("Died")
  475.                         local kysniba = Instance.new("BodyVelocity", humanoid.Parent.Torso)
  476.                                         kysniba.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  477.                                         kysniba.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 0
  478.                                             if dedsound then
  479.                                                 dedsound:Play()
  480.                                                 dedsound.Volume = 8
  481.                                             end
  482.                                             humanoid.Health = humanoid.Health - math.random(5,5)
  483.                                             humanoid.PlatformStand = true
  484.                                             wait()
  485.                                             kysniba:destroy()
  486.                                             local lshclone = humanoid.Parent.Torso["Left Shoulder"]:Clone()
  487.                                             local rshclone = humanoid.Parent.Torso["Right Shoulder"]:Clone()
  488.                                             local lhclone = humanoid.Parent.Torso["Left Hip"]:Clone()
  489.                                             local rhclone = humanoid.Parent.Torso["Right Hip"]:Clone()
  490.                                             local leftarm = humanoid.Parent["Left Arm"]
  491.                                             local rightrm = humanoid.Parent["Right Arm"]
  492.                                             local leftleg = humanoid.Parent["Left Leg"]
  493.                                             local rightleg = humanoid.Parent["Right Leg"]
  494.                                             humanoid.Parent.Torso["Left Hip"]:destroy()
  495.                                             local head = humanoid.Parent.Head
  496.                                             glue = Instance.new("Glue", humanoid.Parent.Torso)
  497.                                             glue.Part0 = humanoid.Parent.Torso
  498.                                             glue.Part1 = leftleg
  499.                                             glue.Name = "Left leg"
  500.                                             collider = Instance.new("Part", leftleg)
  501.                                             collider.Position = Vector3.new(0,999,0)
  502.                                             collider.Size = Vector3.new(1.5, 1, 1)
  503.                                             collider.Shape = "Cylinder"
  504.                                             local weld = Instance.new("Weld", collider)
  505.                                             weld.Part0 = leftleg
  506.                                             weld.Part1 = collider
  507.                                             weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  508.                                             collider.TopSurface = "Smooth"
  509.                                             collider.BottomSurface = "Smooth"
  510.                                             collider.formFactor = "Symmetric"
  511.                                             glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  512.                                             glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  513.                                             collider.Transparency = 1
  514.                                             ------------
  515.                                             humanoid.Parent.Torso["Right Hip"]:destroy()
  516.                                             glue1 = Instance.new("Glue", humanoid.Parent.Torso)
  517.                                             glue1.Part0 = humanoid.Parent.Torso
  518.                                             glue1.Part1 = rightleg
  519.                                             glue1.Name = "Right leg"
  520.                                             collider1 = Instance.new("Part", rightleg)
  521.                                             collider1.Position = Vector3.new(0,9999,0)
  522.                                             collider1.Size = Vector3.new(1.5, 1, 1)
  523.                                             collider1.Shape = "Cylinder"
  524.                                             local weld1 = Instance.new("Weld", collider1)
  525.                                             weld1.Part0 = rightleg
  526.                                             weld1.Part1 = collider1
  527.                                             weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  528.                                             collider1.TopSurface = "Smooth"
  529.                                             collider1.BottomSurface = "Smooth"
  530.                                             collider1.formFactor = "Symmetric"
  531.                                             glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  532.                                             glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  533.                                             collider1.Transparency = 1
  534.                                             ------------
  535.                                             humanoid.Parent.Torso["Right Shoulder"]:destroy()
  536.                                             glue11 = Instance.new("Glue", humanoid.Parent.Torso)
  537.                                             glue11.Part0 = humanoid.Parent.Torso
  538.                                             glue11.Part1 = rightrm
  539.                                             glue11.Name = "Right shoulder"
  540.                                             collider11 = Instance.new("Part", rightrm)
  541.                                             collider11.Position = Vector3.new(0,9999,0)
  542.                                             collider11.Size = Vector3.new(1.8,1,1)
  543.                                             collider11.Shape = "Cylinder"
  544.                                             local weld11 = Instance.new("Weld", collider11)
  545.                                             weld11.Part0 = rightrm
  546.                                             weld11.Part1 = collider11
  547.                                             weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  548.                                             collider11.TopSurface = "Smooth"
  549.                                             collider11.BottomSurface = "Smooth"
  550.                                             collider11.formFactor = "Symmetric"
  551.                                             glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  552.                                             glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  553.                                             collider11.Transparency = 1
  554.                                             ------------
  555.                                             humanoid.Parent.Torso["Left Shoulder"]:destroy()
  556.                                             glue111 = Instance.new("Glue", humanoid.Parent.Torso)
  557.                                             glue111.Part0 = humanoid.Parent.Torso
  558.                                             glue111.Part1 = leftarm
  559.                                             glue111.Name = "Left shoulder"
  560.                                             collider111 = Instance.new("Part", leftarm)
  561.                                             collider111.Position = Vector3.new(0,9999,0)
  562.                                             collider111.Size = Vector3.new(1.5, 1, 1)
  563.                                             collider111.Shape = "Cylinder"
  564.                                             local weld111 = Instance.new("Weld", collider111)
  565.                                             weld111.Part0 = leftarm
  566.                                             weld111.Part1 = collider111
  567.                                             weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  568.                                             collider111.TopSurface = "Smooth"
  569.                                             collider111.BottomSurface = "Smooth"
  570.                                             collider111.formFactor = "Symmetric"
  571.                                             glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  572.                                             glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  573.                                             collider111.Transparency = 1
  574.                                             -----------------
  575.                                             wait(3.5)
  576.                                             lshclone.Parent = humanoid.Parent.Torso
  577.                                             glue:destroy()
  578.                                             rshclone.Parent = humanoid.Parent.Torso
  579.                                             glue1:destroy()
  580.                                             lhclone.Parent = humanoid.Parent.Torso
  581.                                             glue11:destroy()
  582.                                             rhclone.Parent = humanoid.Parent.Torso
  583.                                             glue111:destroy()
  584.                                             collider:destroy()
  585.                                             collider1:destroy()
  586.                                             collider11:destroy()
  587.                                             collider111:destroy()
  588.                                             humanoid.PlatformStand = false
  589.                                            
  590.                 end
  591.             end
  592.             se.Touched:connect(setouch)
  593.                 for i = 0,0.8 , 0.1 do
  594.                     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00790500641, -1.10856056, -0.113021851, 0.999153674, -0.0285614356, 0.0298122466, 0.015409233, 0.927881479, 0.372561187, -0.0383003242, -0.371782839, 0.927533865),i)
  595.                     weld.C0 = weld.C0:lerp(CFrame.new(1.75426292, -1.81475067, -0.224495888, -0.124183893, 0.409208655, 0.903953254, -0.184139788, 0.885677457, -0.426232308, -0.975023508, -0.219385028, -0.0346353203),i)
  596.                     llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.531410217, -1.51909602, 0.309326172, 0.999858439, 0.0112568531, -0.0129960477, 0.0027226212, 0.642678738, 0.766132534, 0.0169795267, -0.766057372, 0.642555475),i)
  597.                     lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53067207, 0.149219036, 0.221874237, 0.986711502, 0.108026817, 0.121435449, -0.151131794, 0.884698153, 0.440993249, -0.0597912408, -0.453483284, 0.88926661),i)
  598.                     rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.533989906, -0.802585959, -0.829696655, 0.997155249, -0.00385875348, -0.0753595084, -0.00967934448, 0.983901083, -0.178458288, 0.074837774, 0.178679526, 0.981062055),i)
  599.                     rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.38949299, 0.092348814, -0.696056366, 0.104881018, 0.0200879835, 0.994288206, 0.721826732, 0.686205924, -0.0900060534, -0.684091628, 0.727142394, 0.0574717149),i)
  600.                     game:GetService("RunService").RenderStepped:wait()
  601.                 end
  602.                 se:destroy()
  603.             end
  604.             wait(2)
  605.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
  606.             game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  607.             swinging = false
  608.             canwalk = true
  609.         end
  610.     end
  611. end
  612. mouse.KeyDown:connect(finish)
  613. mouse.KeyDown:connect(homerun)
  614. mouse.Button1Down:connect(swing)
  615. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
  616. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  617. local run = game.Players.LocalPlayer.Character.Head:findFirstChild("Running")
  618. if run then
  619.     playback = run.PlaybackSpeed
  620.     run.Volume = 10
  621.     run.PlaybackSpeed = 2
  622. end
  623. howmuch = 0
  624. function change(key)
  625.     if key == "w" or key == "a" or key == "s" or key == "d" then
  626.         howmuch = howmuch + 1
  627.     end
  628. end
  629. function otherchange(key)
  630.     if key == "w" or key == "a" or key == "s" or key == "d" then
  631.         howmuch = howmuch - 1
  632.     end
  633. end
  634. mouse.KeyDown:connect(change)
  635. mouse.KeyUp:connect(otherchange)
  636. while true do
  637.     if howmuch <= -1 then
  638.         howmuch = 0
  639.     end
  640.     if howmuch >= 4 then
  641.         howmuch = 0
  642.     end
  643.     if canwalk and howmuch < 1 then
  644.         for i = 0,0.5 , 0.03 do
  645.             humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  646.             weld.C0 = weld.C0:lerp(CFrame.new(-0.0159739517, -0.949999988, -1.89993286, -0.999964654, 0, -0.00840734318, 0, 1, 0, 0.00840734318, 0, -0.999964654),i)
  647.             llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.740257263, -2.03609467, -0.136482239, 0.983402133, 0.178129673, -0.0344976112, -0.181415305, 0.96843487, -0.1709456, 0.00295820553, 0.174366668, 0.984676421),i)
  648.             lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5622654, 0.129275084, -0.0601882935, 0.980589986, 0.172955066, -0.0923573449, -0.159350663, 0.977449715, 0.138561979, 0.114239655, -0.121155277, 0.98603791),i)
  649.             rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.500007629, -2.00265956, 0.172412872, 1, -1.20094264e-05, 1.7030412e-05, 8.86936687e-06, 0.984804928, 0.173664317, -1.88572412e-05, -0.173664317, 0.984804928),i)
  650.             rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.53644848, 0.148818254, -0.0714874268, 0.992697001, -0.115257569, 0.0356137939, 0.115724243, 0.993216813, -0.01132611, -0.0340668, 0.0153647754, 0.999301434),i)
  651.             game:GetService("RunService").RenderStepped:wait()
  652.         end
  653.     end
  654.     if canwalk and howmuch >= 1 then
  655.         if canwalk then
  656.             for i = 0,0.5 , 0.035 do
  657.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00790023804, 0.199968576, -0.00020980835, 0.999964595, -0.00790178124, 0.00306172855, 0.00790151209, 0.999969304, 0.000218808651, -0.0030639898, -0.000195354223, 0.999996841),i)
  658.                 llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.505001068, -1.86916244, -0.621334076, 0.999965012, 0.00531583838, -0.00659736991, -0.00790282805, 0.865899682, -0.500156105, 0.00305361301, 0.500189841, 0.865911663),i)
  659.                 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.60521126, 0.0956981182, 0.261711121, 0.980589807, 0.186369807, -0.0609254427, -0.159354717, 0.938544989, 0.306180835, 0.114243567, -0.290528506, 0.95002687),i)
  660.                 rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.500003815, -1.98082137, 0.341064453, 1.00000024, -4.760921e-06, 6.13927841e-06, 2.53296457e-06, 0.939691961, 0.342023224, -7.70017505e-06, -0.342023879, 0.939692199),i)
  661.                 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54322338, 0.0253696442, -0.292896271, 0.992699027, -0.0961229801, 0.0728714988, 0.115717016, 0.929440677, -0.35035944, -0.0340529159, 0.35623306, 0.933778286),i)
  662.                 game:GetService("RunService").RenderStepped:wait()
  663.             end
  664.         end
  665.         if canwalk then
  666.             for i = 0,0.5 , 0.035 do
  667.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  668.                 llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.508262634, -1.87163961, 0.440429688, 0.999970257, 0.00836944394, 0.00130646117, -0.00790115632, 0.866101623, 0.499812841, 0.00304995291, -0.499809325, 0.866141915),i)
  669.                 lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5253067, 0.0738544464, -0.454620361, 0.980590165, 0.0731252506, -0.181929275, -0.159353688, 0.83783412, -0.522152305, 0.114242911, 0.54100734, 0.833227038),i)
  670.                 rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499994278, -1.92724752, -0.551742554, 1.00000608, 1.25449151e-06, 1.01868063e-05, 4.95591667e-06, 0.866037965, -0.499993861, -1.09765679e-05, 0.499994934, 0.866033196),i)
  671.                 rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.55067635, 0.144279242, 0.328227997, 0.992699504, -0.117612652, -0.026791174, 0.115719222, 0.865823865, 0.486786127, -0.0340576619, -0.486334682, 0.873112977),i)
  672.                 game:GetService("RunService").RenderStepped:wait()
  673.             end
  674.         end
  675.     end
  676.     wait()
  677. end
  678.  
  679. print("thx for using ragdoll by Rufus14")
  680. while true do
  681.     wait(2)
  682.     for i,v in pairs(workspace:GetChildren()) do
  683.         if v.ClassName == "Model" then
  684.             local huma = v:findFirstChild("Humanoid")
  685.             if huma then
  686.                 local canbe = v:findFirstChild("canbearagdoll")
  687.                 if canbe then
  688.                
  689.                 else
  690.                     local ca = Instance.new("BoolValue", v)
  691.                     ca.Name = "canbearagdoll"
  692.                     print("Added ragdoll death to "..v.Name)
  693.                     --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
  694.                     --die plz
  695.                     local function ragdoll()
  696.                     v.Archivable = true
  697.                     clone = v:Clone()
  698.                     clone.Parent = workspace
  699.                     for i,v in pairs(clone:GetChildren()) do
  700.                         if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  701.                             v:destroy()
  702.                         end
  703.                         for i,p in pairs(v:GetChildren()) do
  704.                         if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  705.                             p:destroy()
  706.                         end
  707.                     end
  708.                     end
  709.                     for i,t in pairs(v:GetChildren()) do
  710.                         if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  711.                             t:destroy()
  712.                         end
  713.                     end
  714.                     vel = Instance.new("BodyVelocity", clone.Torso)
  715.                     vel.Velocity = clone.Torso.CFrame.lookVector * 4
  716.                     vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  717.                     clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  718.                     using = false
  719.                     local leftarm = clone:findFirstChild("Left Arm")
  720.                     local rightrm = clone:findFirstChild("Right Arm")
  721.                     local leftleg = clone:findFirstChild("Left Leg")
  722.                     local rightleg = clone:findFirstChild("Right Leg")
  723.                     local head = clone:findFirstChild("Head")
  724.                     for i, g in pairs(v:GetChildren()) do
  725.                         if g.ClassName == "Part" then
  726.                             g:destroy()
  727.                         end
  728.                     end
  729.                     for i, h in pairs(v:GetChildren()) do
  730.                         if h.ClassName == "Accesory" then
  731.                             h:destroy()
  732.                         end
  733.                     end
  734.                     if head ~= nil then
  735.                         local glue13 = Instance.new("Glue", clone.Torso)
  736.                         glue13.Part0 = clone.Torso
  737.                         glue13.Part1 = head
  738.                         glue13.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  739.                         glue13.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  740.                         local collider13 = Instance.new("Part", head)
  741.                         collider13.Position = Vector3.new(0,999,0)
  742.                         collider13.Size = Vector3.new(0.5, 0.9, 0.9)
  743.                         collider13.Shape = "Cylinder"
  744.                         collider13.Transparency = 1
  745.                         local weld = Instance.new("Weld", collider13)
  746.                         weld.Part0 = head
  747.                         weld.Part1 = collider13
  748.                         weld.C0 = weld.C0 * CFrame.new(0,0.2,0) * CFrame.Angles(0, 0, 80)
  749.                         collider13.TopSurface = "Smooth"
  750.                         collider13.BottomSurface = "Smooth"
  751.                         collider13.formFactor = "Symmetric"
  752.                     end
  753.                     if leftleg ~= nil then
  754.                     local glue = Instance.new("Glue", clone.Torso)
  755.                     glue.Part0 = clone.Torso
  756.                     glue.Part1 = leftleg
  757.                     glue.Name = "Left leg"
  758.                     local collider = Instance.new("Part", leftleg)
  759.                     collider.Position = Vector3.new(0,999,0)
  760.                     collider.Size = Vector3.new(1.7, 1, 1)
  761.                     collider.Shape = "Cylinder"
  762.                     local weld = Instance.new("Weld", collider)
  763.                     weld.Part0 = leftleg
  764.                     weld.Part1 = collider
  765.                     weld.C0 = CFrame.Angles(0, 0, 80)
  766.                     collider.TopSurface = "Smooth"
  767.                     collider.BottomSurface = "Smooth"
  768.                     collider.formFactor = "Symmetric"
  769.                     glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  770.                     glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  771.                     collider.Transparency = 1
  772.                     end
  773.                     ------------
  774.                     if rightleg ~= nil then
  775.                     local glue1 = Instance.new("Glue", clone.Torso)
  776.                     glue1.Part0 = clone.Torso
  777.                     glue1.Part1 = rightleg
  778.                     glue1.Name = "Right leg"
  779.                     local collider1 = Instance.new("Part", rightleg)
  780.                     collider1.Position = Vector3.new(0,999,0)
  781.                     collider1.Size = Vector3.new(1.7, 1, 1)
  782.                     collider1.Shape = "Cylinder"
  783.                     local weld1 = Instance.new("Weld", collider1)
  784.                     weld1.Part0 = rightleg
  785.                     weld1.Part1 = collider1
  786.                     weld1.C0 = CFrame.Angles(0, 0, 80)
  787.                     collider1.TopSurface = "Smooth"
  788.                     collider1.BottomSurface = "Smooth"
  789.                     collider1.formFactor = "Symmetric"
  790.                     glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  791.                     glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  792.                     collider1.Transparency = 1
  793.                     end
  794.                     ------------
  795.                     if rightrm ~= nil then
  796.                     local glue11 = Instance.new("Glue", clone.Torso)
  797.                     glue11.Part0 = clone.Torso
  798.                     glue11.Part1 = rightrm
  799.                     glue11.Name = "Right shoulder"
  800.                     local collider11 = Instance.new("Part", rightrm)
  801.                     collider11.Position = Vector3.new(0,9999,0)
  802.                     collider11.Size = Vector3.new(1.8,1,1)
  803.                     collider11.Shape = "Cylinder"
  804.                     local weld11 = Instance.new("Weld", collider11)
  805.                     weld11.Part0 = rightrm
  806.                     weld11.Part1 = collider11
  807.                     weld11.C0 = CFrame.Angles(0, 0, 80)
  808.                     collider11.TopSurface = "Smooth"
  809.                     collider11.BottomSurface = "Smooth"
  810.                     collider11.formFactor = "Symmetric"
  811.                     glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  812.                     glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  813.                     collider11.Transparency = 1
  814.                     end
  815.                     ------------
  816.                     if leftarm ~= nil then
  817.                     local glue111 = Instance.new("Glue", clone.Torso)
  818.                     glue111.Part0 = clone.Torso
  819.                     glue111.Part1 = leftarm
  820.                     glue111.Name = "Left shoulder"
  821.                     local collider111 = Instance.new("Part", leftarm)
  822.                     collider111.Position = Vector3.new(0,9999,0)
  823.                     collider111.Size = Vector3.new(1.8,1,1)
  824.                     collider111.Shape = "Cylinder"
  825.                     local weld111 = Instance.new("Weld", collider111)
  826.                     weld111.Part0 = leftarm
  827.                     weld111.Part1 = collider111
  828.                     weld111.C0 = CFrame.Angles(0, 0, 80)
  829.                     collider111.TopSurface = "Smooth"
  830.                     collider111.BottomSurface = "Smooth"
  831.                     collider111.formFactor = "Symmetric"
  832.                     glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  833.                     glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  834.                     collider111.Transparency = 1
  835.                     ----------------
  836.                     end
  837.                     clone.Name = v.Name.." (DEAD)"
  838.                     wait(0.2)
  839.                     vel:destroy()
  840.                     end
  841.                     v.Humanoid.Died:connect(ragdoll)
  842.                    
  843.                     --di ent  
  844.                 end
  845.             end
  846.         end
  847.     end
  848. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement