Advertisement
DarkScriptZEditors

Swooor

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