lafur

Untitled

Sep 2nd, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.09 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --By Rufus14
  6. mouse = game.Players.LocalPlayer:GetMouse()
  7. songplaying = false
  8. song1 = Instance.new("Sound", game.Players.LocalPlayer.Character)
  9. song1.SoundId = "rbxassetid://825526716"
  10. song1.Volume = 3
  11. song1.Looped = true
  12. function song(key)
  13. key = key:lower()
  14. if key == "q" then
  15. songplaying = not songplaying
  16. if not songplaying then
  17. song1:Play()
  18. else
  19. song1:Stop()
  20. end
  21. end
  22. end
  23. mouse.KeyDown:connect(song)
  24. bat = Instance.new("Part", game.Players.LocalPlayer.Character)
  25. bat.Size = Vector3.new(1, 1, 5)
  26. bat.CanCollide = false
  27. bat:BreakJoints()
  28. swoosh = Instance.new("Sound", bat)
  29. swoosh.SoundId = "rbxassetid://12222200"
  30. swoosh.Volume = 5
  31. hitsound = Instance.new("Sound", bat)
  32. hitsound.SoundId = "rbxassetid://794068813"
  33. hitsound.Volume = 5
  34. hitsoundmarker = Instance.new("Sound", bat)
  35. hitsoundmarker.SoundId = "rbxassetid://131864673"
  36. hitsoundmarker.Volume = 555555
  37. weld = Instance.new("Weld", bat)
  38. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  39. weld.Part1 = bat
  40. weld.C0 = weld.C0 * CFrame.Angles(0,3.15,0) * CFrame.new(0,-0.95,1.9)
  41. print(weld.C0)
  42. mesh = Instance.new("SpecialMesh", bat)
  43. mesh.MeshId = "http://www.roblox.com/asset/?id=11442510"
  44. mesh.TextureId = "http://www.roblox.com/asset/?id=489064580"
  45. mesh.Scale = Vector3.new(2.3,2.3,1.8)
  46. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  47. game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove()
  48. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  49. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  50. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  51. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  52. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  53. game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove()
  54. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  55. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  56. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  57. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  58. local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  59. game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove()
  60. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  61. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  62. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  63. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  64. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  65. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  66. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  67. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  68. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  69. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  70. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  71. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  72. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  73. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  74. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  75. for i = 0,0.5 , 0.05 do
  76. 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)
  77. 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)
  78. 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)
  79. 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)
  80. 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)
  81. game:GetService("RunService").RenderStepped:wait()
  82. end
  83. canwalk = true
  84. swinging = false
  85. candamage = true
  86. function swing()
  87. if not swinging then
  88. swinging = true
  89. canwalk = false
  90. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 5
  91. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 25
  92. for i = 0,1 , 0.05 do
  93. 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)
  94. 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)
  95. 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)
  96. 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)
  97. 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)
  98. game:GetService("RunService").RenderStepped:wait()
  99. end
  100. swoosh:Play()
  101. local se = Instance.new("Part", bat)
  102. se.Size = Vector3.new(1.5, 1, 3)
  103. se:BreakJoints()
  104. se.Transparency = 1
  105. se.CanCollide = false
  106. local dmgweld = Instance.new("Weld", se)
  107. dmgweld.Part0 = bat
  108. dmgweld.Part1 = se
  109. dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  110. local function setouch(part)
  111. local humanoid = part.Parent:findFirstChild("Humanoid")
  112. if humanoid and candamage then
  113. se:destroy()
  114. hitsound:Play()
  115. hitsoundmarker:Play()
  116. local dedsound = humanoid.Parent.Head:findFirstChild("Died")
  117. local kysniba = Instance.new("BodyVelocity", humanoid.Parent.Torso)
  118. kysniba.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  119. kysniba.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * math.random(5,35)
  120. if dedsound then
  121. dedsound:Play()
  122. dedsound.Volume = 8
  123. end
  124. humanoid.Health = humanoid.Health - math.random(35,50)
  125. humanoid.PlatformStand = true
  126. wait()
  127. kysniba:destroy()
  128. local lshclone = humanoid.Parent.Torso["Left Shoulder"]:Clone()
  129. local rshclone = humanoid.Parent.Torso["Right Shoulder"]:Clone()
  130. local lhclone = humanoid.Parent.Torso["Left Hip"]:Clone()
  131. local rhclone = humanoid.Parent.Torso["Right Hip"]:Clone()
  132. local leftarm = humanoid.Parent["Left Arm"]
  133. local rightrm = humanoid.Parent["Right Arm"]
  134. local leftleg = humanoid.Parent["Left Leg"]
  135. local rightleg = humanoid.Parent["Right Leg"]
  136. humanoid.Parent.Torso["Left Hip"]:destroy()
  137. local head = humanoid.Parent.Head
  138. glue = Instance.new("Glue", humanoid.Parent.Torso)
  139. glue.Part0 = humanoid.Parent.Torso
  140. glue.Part1 = leftleg
  141. glue.Name = "Left leg"
  142. collider = Instance.new("Part", leftleg)
  143. collider.Position = Vector3.new(0,999,0)
  144. collider.Size = Vector3.new(1.5, 1, 1)
  145. collider.Shape = "Cylinder"
  146. local weld = Instance.new("Weld", collider)
  147. weld.Part0 = leftleg
  148. weld.Part1 = collider
  149. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  150. collider.TopSurface = "Smooth"
  151. collider.BottomSurface = "Smooth"
  152. collider.formFactor = "Symmetric"
  153. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  154. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  155. collider.Transparency = 1
  156. ------------
  157. humanoid.Parent.Torso["Right Hip"]:destroy()
  158. glue1 = Instance.new("Glue", humanoid.Parent.Torso)
  159. glue1.Part0 = humanoid.Parent.Torso
  160. glue1.Part1 = rightleg
  161. glue1.Name = "Right leg"
  162. collider1 = Instance.new("Part", rightleg)
  163. collider1.Position = Vector3.new(0,9999,0)
  164. collider1.Size = Vector3.new(1.5, 1, 1)
  165. collider1.Shape = "Cylinder"
  166. local weld1 = Instance.new("Weld", collider1)
  167. weld1.Part0 = rightleg
  168. weld1.Part1 = collider1
  169. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  170. collider1.TopSurface = "Smooth"
  171. collider1.BottomSurface = "Smooth"
  172. collider1.formFactor = "Symmetric"
  173. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  174. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  175. collider1.Transparency = 1
  176. ------------
  177. humanoid.Parent.Torso["Right Shoulder"]:destroy()
  178. glue11 = Instance.new("Glue", humanoid.Parent.Torso)
  179. glue11.Part0 = humanoid.Parent.Torso
  180. glue11.Part1 = rightrm
  181. glue11.Name = "Right shoulder"
  182. collider11 = Instance.new("Part", rightrm)
  183. collider11.Position = Vector3.new(0,9999,0)
  184. collider11.Size = Vector3.new(1.8,1,1)
  185. collider11.Shape = "Cylinder"
  186. local weld11 = Instance.new("Weld", collider11)
  187. weld11.Part0 = rightrm
  188. weld11.Part1 = collider11
  189. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  190. collider11.TopSurface = "Smooth"
  191. collider11.BottomSurface = "Smooth"
  192. collider11.formFactor = "Symmetric"
  193. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  194. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  195. collider11.Transparency = 1
  196. ------------
  197. humanoid.Parent.Torso["Left Shoulder"]:destroy()
  198. glue111 = Instance.new("Glue", humanoid.Parent.Torso)
  199. glue111.Part0 = humanoid.Parent.Torso
  200. glue111.Part1 = leftarm
  201. glue111.Name = "Left shoulder"
  202. collider111 = Instance.new("Part", leftarm)
  203. collider111.Position = Vector3.new(0,9999,0)
  204. collider111.Size = Vector3.new(1.5, 1, 1)
  205. collider111.Shape = "Cylinder"
  206. local weld111 = Instance.new("Weld", collider111)
  207. weld111.Part0 = leftarm
  208. weld111.Part1 = collider111
  209. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  210. collider111.TopSurface = "Smooth"
  211. collider111.BottomSurface = "Smooth"
  212. collider111.formFactor = "Symmetric"
  213. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  214. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  215. collider111.Transparency = 1
  216. -----------------
  217. wait(3.5)
  218. lshclone.Parent = humanoid.Parent.Torso
  219. glue:destroy()
  220. rshclone.Parent = humanoid.Parent.Torso
  221. glue1:destroy()
  222. lhclone.Parent = humanoid.Parent.Torso
  223. glue11:destroy()
  224. rhclone.Parent = humanoid.Parent.Torso
  225. glue111:destroy()
  226. collider:destroy()
  227. collider1:destroy()
  228. collider11:destroy()
  229. collider111:destroy()
  230. humanoid.PlatformStand = false
  231. end
  232. end
  233. se.Touched:connect(setouch)
  234. for i = 0,1 , 0.11 do
  235. 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)
  236. 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)
  237. 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)
  238. 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)
  239. 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)
  240. 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)
  241. game:GetService("RunService").RenderStepped:wait()
  242. end
  243. for i = 0,0.5 , 0.03 do
  244. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  245. 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)
  246. 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)
  247. 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)
  248. 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)
  249. 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)
  250. game:GetService("RunService").RenderStepped:wait()
  251. end
  252. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
  253. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  254. se:destroy()
  255. canwalk = true
  256. swinging = false
  257. end
  258. end
  259. function homerun(key)
  260. key = key:lower()
  261. if key == "e" then
  262. if not swinging then
  263. swinging = true
  264. canwalk = false
  265. wait(0.5)
  266. for i = 0,0.5 , 0.04 do
  267. 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)
  268. 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)
  269. 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)
  270. 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)
  271. 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)
  272. 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)
  273. game:GetService("RunService").RenderStepped:wait()
  274. end
  275. wait(0.5)
  276. swoosh:Play()
  277. local se = Instance.new("Part", bat)
  278. se.Size = Vector3.new(1.5, 1, 3)
  279. se:BreakJoints()
  280. se.Transparency = 1
  281. se.CanCollide = false
  282. local dmgweld = Instance.new("Weld", se)
  283. dmgweld.Part0 = bat
  284. dmgweld.Part1 = se
  285. dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  286. local function setouch(part)
  287. local humanoid = part.Parent:findFirstChild("Humanoid")
  288. if humanoid and candamage then
  289. se:destroy()
  290. hitsound:Play()
  291. hitsoundmarker:Play()
  292. local dedsound = humanoid.Parent.Head:findFirstChild("Died")
  293. local kysniba = Instance.new("BodyVelocity", humanoid.Parent.Torso)
  294. kysniba.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  295. kysniba.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * math.random(-45,-40)
  296. if dedsound then
  297. dedsound:Play()
  298. dedsound.Volume = 8
  299. end
  300. humanoid.Health = humanoid.Health - math.random(35,50)
  301. humanoid.PlatformStand = true
  302. wait()
  303. kysniba:destroy()
  304. local lshclone = humanoid.Parent.Torso["Left Shoulder"]:Clone()
  305. local rshclone = humanoid.Parent.Torso["Right Shoulder"]:Clone()
  306. local lhclone = humanoid.Parent.Torso["Left Hip"]:Clone()
  307. local rhclone = humanoid.Parent.Torso["Right Hip"]:Clone()
  308. local leftarm = humanoid.Parent["Left Arm"]
  309. local rightrm = humanoid.Parent["Right Arm"]
  310. local leftleg = humanoid.Parent["Left Leg"]
  311. local rightleg = humanoid.Parent["Right Leg"]
  312. humanoid.Parent.Torso["Left Hip"]:destroy()
  313. local head = humanoid.Parent.Head
  314. glue = Instance.new("Glue", humanoid.Parent.Torso)
  315. glue.Part0 = humanoid.Parent.Torso
  316. glue.Part1 = leftleg
  317. glue.Name = "Left leg"
  318. collider = Instance.new("Part", leftleg)
  319. collider.Position = Vector3.new(0,999,0)
  320. collider.Size = Vector3.new(1.5, 1, 1)
  321. collider.Shape = "Cylinder"
  322. local weld = Instance.new("Weld", collider)
  323. weld.Part0 = leftleg
  324. weld.Part1 = collider
  325. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  326. collider.TopSurface = "Smooth"
  327. collider.BottomSurface = "Smooth"
  328. collider.formFactor = "Symmetric"
  329. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  330. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  331. collider.Transparency = 1
  332. ------------
  333. humanoid.Parent.Torso["Right Hip"]:destroy()
  334. glue1 = Instance.new("Glue", humanoid.Parent.Torso)
  335. glue1.Part0 = humanoid.Parent.Torso
  336. glue1.Part1 = rightleg
  337. glue1.Name = "Right leg"
  338. collider1 = Instance.new("Part", rightleg)
  339. collider1.Position = Vector3.new(0,9999,0)
  340. collider1.Size = Vector3.new(1.5, 1, 1)
  341. collider1.Shape = "Cylinder"
  342. local weld1 = Instance.new("Weld", collider1)
  343. weld1.Part0 = rightleg
  344. weld1.Part1 = collider1
  345. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  346. collider1.TopSurface = "Smooth"
  347. collider1.BottomSurface = "Smooth"
  348. collider1.formFactor = "Symmetric"
  349. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  350. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  351. collider1.Transparency = 1
  352. ------------
  353. humanoid.Parent.Torso["Right Shoulder"]:destroy()
  354. glue11 = Instance.new("Glue", humanoid.Parent.Torso)
  355. glue11.Part0 = humanoid.Parent.Torso
  356. glue11.Part1 = rightrm
  357. glue11.Name = "Right shoulder"
  358. collider11 = Instance.new("Part", rightrm)
  359. collider11.Position = Vector3.new(0,9999,0)
  360. collider11.Size = Vector3.new(1.8,1,1)
  361. collider11.Shape = "Cylinder"
  362. local weld11 = Instance.new("Weld", collider11)
  363. weld11.Part0 = rightrm
  364. weld11.Part1 = collider11
  365. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  366. collider11.TopSurface = "Smooth"
  367. collider11.BottomSurface = "Smooth"
  368. collider11.formFactor = "Symmetric"
  369. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  370. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  371. collider11.Transparency = 1
  372. ------------
  373. humanoid.Parent.Torso["Left Shoulder"]:destroy()
  374. glue111 = Instance.new("Glue", humanoid.Parent.Torso)
  375. glue111.Part0 = humanoid.Parent.Torso
  376. glue111.Part1 = leftarm
  377. glue111.Name = "Left shoulder"
  378. collider111 = Instance.new("Part", leftarm)
  379. collider111.Position = Vector3.new(0,9999,0)
  380. collider111.Size = Vector3.new(1.5, 1, 1)
  381. collider111.Shape = "Cylinder"
  382. local weld111 = Instance.new("Weld", collider111)
  383. weld111.Part0 = leftarm
  384. weld111.Part1 = collider111
  385. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  386. collider111.TopSurface = "Smooth"
  387. collider111.BottomSurface = "Smooth"
  388. collider111.formFactor = "Symmetric"
  389. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  390. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  391. collider111.Transparency = 1
  392. -----------------
  393. wait(3.5)
  394. lshclone.Parent = humanoid.Parent.Torso
  395. glue:destroy()
  396. rshclone.Parent = humanoid.Parent.Torso
  397. glue1:destroy()
  398. lhclone.Parent = humanoid.Parent.Torso
  399. glue11:destroy()
  400. rhclone.Parent = humanoid.Parent.Torso
  401. glue111:destroy()
  402. collider:destroy()
  403. collider1:destroy()
  404. collider11:destroy()
  405. collider111:destroy()
  406. humanoid.PlatformStand = false
  407. end
  408. end
  409. se.Touched:connect(setouch)
  410. for i = 0,1 , 0.06 do
  411. 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)
  412. 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)
  413. 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)
  414. 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)
  415. 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)
  416. 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)
  417. game:GetService("RunService").RenderStepped:wait()
  418. end
  419. for i = 0,0.6 , 0.06 do
  420. 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)
  421. 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)
  422. 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)
  423. 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)
  424. 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)
  425. 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)
  426. game:GetService("RunService").RenderStepped:wait()
  427. end
  428. se:destroy()
  429. swinging = false
  430. canwalk = true
  431. end
  432. end
  433. end
  434. function finish(key)
  435. key = key:lower()
  436. if key == "r" then
  437. if not swinging then
  438. swinging = true
  439. canwalk = false
  440. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  441. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  442. wait(0.3)
  443. for i = 0,0.5 , 0.04 do
  444. 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)
  445. 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)
  446. 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)
  447. 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)
  448. 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)
  449. 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)
  450. game:GetService("RunService").RenderStepped:wait()
  451. end
  452. for i = 1,10 do
  453. for i = 0,0.8 , 0.1 do
  454. 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)
  455. 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)
  456. 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)
  457. 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)
  458. 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)
  459. 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)
  460. game:GetService("RunService").RenderStepped:wait()
  461. end
  462. swoosh:Play()
  463. local se = Instance.new("Part", bat)
  464. se.Size = Vector3.new(1.5, 1, 3)
  465. se:BreakJoints()
  466. se.Transparency = 1
  467. se.CanCollide = false
  468. local dmgweld = Instance.new("Weld", se)
  469. dmgweld.Part0 = bat
  470. dmgweld.Part1 = se
  471. dmgweld.C0 = dmgweld.C0 * CFrame.new(0,0,1)
  472. local function setouch(part)
  473. local humanoid = part.Parent:findFirstChild("Humanoid")
  474. if humanoid and candamage then
  475. kaykaykay = true
  476. hitsound:Play()
  477. hitsoundmarker:Play()
  478. local dedsound = humanoid.Parent.Head:findFirstChild("Died")
  479. local kysniba = Instance.new("BodyVelocity", humanoid.Parent.Torso)
  480. kysniba.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  481. kysniba.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.rightVector * 0
  482. if dedsound then
  483. dedsound:Play()
  484. dedsound.Volume = 8
  485. end
  486. humanoid.Health = humanoid.Health - math.random(5,5)
  487. humanoid.PlatformStand = true
  488. wait()
  489. kysniba:destroy()
  490. local lshclone = humanoid.Parent.Torso["Left Shoulder"]:Clone()
  491. local rshclone = humanoid.Parent.Torso["Right Shoulder"]:Clone()
  492. local lhclone = humanoid.Parent.Torso["Left Hip"]:Clone()
  493. local rhclone = humanoid.Parent.Torso["Right Hip"]:Clone()
  494. local leftarm = humanoid.Parent["Left Arm"]
  495. local rightrm = humanoid.Parent["Right Arm"]
  496. local leftleg = humanoid.Parent["Left Leg"]
  497. local rightleg = humanoid.Parent["Right Leg"]
  498. humanoid.Parent.Torso["Left Hip"]:destroy()
  499. local head = humanoid.Parent.Head
  500. glue = Instance.new("Glue", humanoid.Parent.Torso)
  501. glue.Part0 = humanoid.Parent.Torso
  502. glue.Part1 = leftleg
  503. glue.Name = "Left leg"
  504. collider = Instance.new("Part", leftleg)
  505. collider.Position = Vector3.new(0,999,0)
  506. collider.Size = Vector3.new(1.5, 1, 1)
  507. collider.Shape = "Cylinder"
  508. local weld = Instance.new("Weld", collider)
  509. weld.Part0 = leftleg
  510. weld.Part1 = collider
  511. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  512. collider.TopSurface = "Smooth"
  513. collider.BottomSurface = "Smooth"
  514. collider.formFactor = "Symmetric"
  515. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  516. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  517. collider.Transparency = 1
  518. ------------
  519. humanoid.Parent.Torso["Right Hip"]:destroy()
  520. glue1 = Instance.new("Glue", humanoid.Parent.Torso)
  521. glue1.Part0 = humanoid.Parent.Torso
  522. glue1.Part1 = rightleg
  523. glue1.Name = "Right leg"
  524. collider1 = Instance.new("Part", rightleg)
  525. collider1.Position = Vector3.new(0,9999,0)
  526. collider1.Size = Vector3.new(1.5, 1, 1)
  527. collider1.Shape = "Cylinder"
  528. local weld1 = Instance.new("Weld", collider1)
  529. weld1.Part0 = rightleg
  530. weld1.Part1 = collider1
  531. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  532. collider1.TopSurface = "Smooth"
  533. collider1.BottomSurface = "Smooth"
  534. collider1.formFactor = "Symmetric"
  535. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  536. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  537. collider1.Transparency = 1
  538. ------------
  539. humanoid.Parent.Torso["Right Shoulder"]:destroy()
  540. glue11 = Instance.new("Glue", humanoid.Parent.Torso)
  541. glue11.Part0 = humanoid.Parent.Torso
  542. glue11.Part1 = rightrm
  543. glue11.Name = "Right shoulder"
  544. collider11 = Instance.new("Part", rightrm)
  545. collider11.Position = Vector3.new(0,9999,0)
  546. collider11.Size = Vector3.new(1.8,1,1)
  547. collider11.Shape = "Cylinder"
  548. local weld11 = Instance.new("Weld", collider11)
  549. weld11.Part0 = rightrm
  550. weld11.Part1 = collider11
  551. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  552. collider11.TopSurface = "Smooth"
  553. collider11.BottomSurface = "Smooth"
  554. collider11.formFactor = "Symmetric"
  555. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  556. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  557. collider11.Transparency = 1
  558. ------------
  559. humanoid.Parent.Torso["Left Shoulder"]:destroy()
  560. glue111 = Instance.new("Glue", humanoid.Parent.Torso)
  561. glue111.Part0 = humanoid.Parent.Torso
  562. glue111.Part1 = leftarm
  563. glue111.Name = "Left shoulder"
  564. collider111 = Instance.new("Part", leftarm)
  565. collider111.Position = Vector3.new(0,9999,0)
  566. collider111.Size = Vector3.new(1.5, 1, 1)
  567. collider111.Shape = "Cylinder"
  568. local weld111 = Instance.new("Weld", collider111)
  569. weld111.Part0 = leftarm
  570. weld111.Part1 = collider111
  571. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  572. collider111.TopSurface = "Smooth"
  573. collider111.BottomSurface = "Smooth"
  574. collider111.formFactor = "Symmetric"
  575. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  576. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  577. collider111.Transparency = 1
  578. -----------------
  579. wait(3.5)
  580. lshclone.Parent = humanoid.Parent.Torso
  581. glue:destroy()
  582. rshclone.Parent = humanoid.Parent.Torso
  583. glue1:destroy()
  584. lhclone.Parent = humanoid.Parent.Torso
  585. glue11:destroy()
  586. rhclone.Parent = humanoid.Parent.Torso
  587. glue111:destroy()
  588. collider:destroy()
  589. collider1:destroy()
  590. collider11:destroy()
  591. collider111:destroy()
  592. humanoid.PlatformStand = false
  593.  
  594. end
  595. end
  596. se.Touched:connect(setouch)
  597. for i = 0,0.8 , 0.1 do
  598. 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)
  599. 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)
  600. 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)
  601. 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)
  602. 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)
  603. 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)
  604. game:GetService("RunService").RenderStepped:wait()
  605. end
  606. se:destroy()
  607. end
  608. wait(2)
  609. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
  610. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  611. swinging = false
  612. canwalk = true
  613. end
  614. end
  615. end
  616. mouse.KeyDown:connect(finish)
  617. mouse.KeyDown:connect(homerun)
  618. mouse.Button1Down:connect(swing)
  619. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 15
  620. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  621. local run = game.Players.LocalPlayer.Character.Head:findFirstChild("Running")
  622. if run then
  623. playback = run.PlaybackSpeed
  624. run.Volume = 10
  625. run.PlaybackSpeed = 2
  626. end
  627. howmuch = 0
  628. function change(key)
  629. if key == "w" or key == "a" or key == "s" or key == "d" then
  630. howmuch = howmuch + 1
  631. end
  632. end
  633. function otherchange(key)
  634. if key == "w" or key == "a" or key == "s" or key == "d" then
  635. howmuch = howmuch - 1
  636. end
  637. end
  638. mouse.KeyDown:connect(change)
  639. mouse.KeyUp:connect(otherchange)
  640. while true do
  641. if howmuch <= -1 then
  642. howmuch = 0
  643. end
  644. if howmuch >= 4 then
  645. howmuch = 0
  646. end
  647. if canwalk and howmuch < 1 then
  648. for i = 0,0.5 , 0.03 do
  649. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  650. 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)
  651. 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)
  652. 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)
  653. 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)
  654. 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)
  655. game:GetService("RunService").RenderStepped:wait()
  656. end
  657. end
  658. if canwalk and howmuch >= 1 then
  659. if canwalk then
  660. for i = 0,0.5 , 0.035 do
  661. 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)
  662. 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)
  663. 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)
  664. 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)
  665. 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)
  666. game:GetService("RunService").RenderStepped:wait()
  667. end
  668. end
  669. if canwalk then
  670. for i = 0,0.5 , 0.035 do
  671. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  672. 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)
  673. 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)
  674. 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)
  675. 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)
  676. game:GetService("RunService").RenderStepped:wait()
  677. end
  678. end
  679. end
  680. wait()
  681. end
Add Comment
Please, Sign In to add comment