Advertisement
sneakydodge123

ora

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