Orangeplayer1431

bendy and the ink machine op

Jul 23rd, 2017
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.38 KB | None | 0 0
  1. -- hastebin.com/raw/dignsxi
  2. TorsoColor = BrickColor.new("Royal purple")
  3. --------------------------This is an Official script from Duelist--------------------------
  4. ---{-------------------- -------------------}---
  5. ---{-------------------- / \ -------------------}---
  6. ---{-------------------- II -------------------}---
  7. ---{-------------------- II -------------------}---
  8. ---{-------------------- II -------------------}---
  9. ---{-------------------- A========A -------------------}---
  10. ---{-------------------- II -------------------}---
  11. ---{-------------------- II -------------------}---
  12. ---{-------------------- W -------------------}---
  13. --------------------------------------------------------------------------------------------------------------
  14. local char = game.Players.LocalPlayer.Character
  15. local torso = char.Torso
  16. local hum = char.Humanoid
  17. local hed = char.Head
  18. local root = char.HumanoidRootPart
  19. GroundWave2 = function(target)
  20. if TorsoColor == BrickColor.new("Royal purple") then
  21. local wave = Instance.new("Part", torso)
  22. wave.BrickColor = BrickColor.new("Really black")
  23. wave.Anchored = true
  24. wave.CanCollide = false
  25. wave.Locked = true
  26. wave.Size = Vector3.new(1, 1, 1)
  27. wave.TopSurface = "Smooth"
  28. wave.BottomSurface = "Smooth"
  29. wave.Transparency = 0.35
  30. wave.CFrame = target
  31. wave.Material = "Neon"
  32. wm = Instance.new("SpecialMesh", wave)
  33. wm.MeshType = "Sphere"
  34. local wave5 = Instance.new("Part", torso)
  35. wave5.BrickColor = BrickColor.new("Really black")
  36. wave5.Anchored = true
  37. wave5.CanCollide = false
  38. wave5.Locked = true
  39. wave5.Size = Vector3.new(1, 1, 1)
  40. wave5.TopSurface = "Smooth"
  41. wave5.BottomSurface = "Smooth"
  42. wave5.Transparency = 0.35
  43. wave5.CFrame = target
  44. wave5.Material = "Neon"
  45. wm5 = Instance.new("SpecialMesh", wave)
  46. wm5.MeshType = "Sphere"
  47. wm5.Scale = Vector3.new(1,1,1)
  48. local wave2 = Instance.new("Part", torso)
  49. wave2.BrickColor = BrickColor.new("Really black")
  50. wave2.Anchored = true
  51. wave2.CanCollide = false
  52. wave2.Locked = true
  53. wave2.Size = Vector3.new(1, 1, 1)
  54. wave2.TopSurface = "Smooth"
  55. wave2.BottomSurface = "Smooth"
  56. wave2.Transparency = 0.35
  57. wave2.CFrame = target
  58. wave2.Material = "Neon"
  59. wm2 = Instance.new("SpecialMesh", wave2)
  60. wm2.MeshType = "FileMesh"
  61. wm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  62. wm2.Scale = Vector3.new(1,1,1)
  63. local wave3 = Instance.new("Part", torso)
  64. wave3.BrickColor = BrickColor.new("Really black")
  65. wave3.Anchored = true
  66. wave3.CanCollide = false
  67. wave3.Locked = true
  68. wave3.Size = Vector3.new(1, 1, 1)
  69. wave3.TopSurface = "Smooth"
  70. wave3.BottomSurface = "Smooth"
  71. wave3.Transparency = 0
  72. wave3.CFrame = target
  73. wave3.Material = "Neon"
  74. wm3 = Instance.new("SpecialMesh", wave3)
  75. wm3.MeshType = "FileMesh"
  76. wm3.MeshId = "http://www.roblox.com/asset/?id=3270017"
  77. wm3.Scale = Vector3.new(1,1,1)
  78. coroutine.wrap(function()
  79. for i = 1, 18, 1 do
  80. wm.Scale = Vector3.new(2+i*1.2, 2+i*1.2, 2+i*1.2)
  81. wm5.Scale = Vector3.new(2+i*1.1, 2+i*1.1, 2+i*1.1)
  82. wm2.Scale = Vector3.new(2+i*1.2, 2+i*1.2, 2)
  83. wm3.Scale = Vector3.new(2+i*1.2, 2+i*1.2, 2)
  84. --wave.Size = wm.Scale
  85. wave.CFrame = target
  86. wave.Transparency = i/14
  87. --wave.Size
  88. wave5.CFrame = target
  89. wave5.Transparency = i/14
  90. --wave2.Size = wm2.Scale
  91. wave2.CFrame = target
  92. wave2.Rotation = Vector3.new(90, 0, 0)
  93. wave2.Transparency = i/14
  94. --wave3.Size = wm3.Scale
  95. wave3.CFrame = target
  96. wave3.Rotation = Vector3.new(90, 0, 0)
  97. wave3.Transparency = i/14
  98. wait()
  99. end
  100. wait()
  101. wave:Destroy()
  102. wave5:Destroy()
  103. wave2:Destroy()
  104. wave3:Destroy()
  105. end)()
  106. elseif TorsoColor == BrickColor.new("Royal purple") then
  107. wait()
  108. end
  109. end
  110. GroundWave = function(target)
  111. if TorsoColor == BrickColor.new("Royal purple") then
  112. local wave = Instance.new("Part", torso)
  113. wave.BrickColor = BrickColor.new("Really black")
  114. wave.Anchored = true
  115. wave.CanCollide = false
  116. wave.Locked = true
  117. wave.Size = Vector3.new(1, 1, 1)
  118. wave.TopSurface = "Smooth"
  119. wave.BottomSurface = "Smooth"
  120. wave.Transparency = 0.35
  121. wave.CFrame = target
  122. wave.Material = "Neon"
  123. wm = Instance.new("SpecialMesh", wave)
  124. wm.MeshType = "Sphere"
  125. wm.Scale = Vector3.new(1,1,1)
  126. local wave2 = Instance.new("Part", torso)
  127. wave2.BrickColor = BrickColor.new("Really black")
  128. wave2.Anchored = true
  129. wave2.CanCollide = false
  130. wave2.Locked = true
  131. wave2.Size = Vector3.new(1, 1, 1)
  132. wave2.TopSurface = "Smooth"
  133. wave2.BottomSurface = "Smooth"
  134. wave2.Transparency = 0.35
  135. wave2.CFrame = target
  136. wave2.Material = "Neon"
  137. wm2 = Instance.new("SpecialMesh", wave2)
  138. wm2.MeshType = "FileMesh"
  139. wm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  140. wm2.Scale = Vector3.new(1,1,1)
  141. local wave3 = Instance.new("Part", torso)
  142. wave3.BrickColor = BrickColor.new("Really black")
  143. wave3.Anchored = true
  144. wave3.CanCollide = false
  145. wave3.Locked = true
  146. wave3.Size = Vector3.new(1, 1, 1)
  147. wave3.TopSurface = "Smooth"
  148. wave3.BottomSurface = "Smooth"
  149. wave3.Transparency = 0.35
  150. wave3.CFrame = target
  151. wave3.Material = "Neon"
  152. wm3 = Instance.new("SpecialMesh", wave3)
  153. wm3.MeshType = "FileMesh"
  154. wm3.MeshId = "http://www.roblox.com/asset/?id=3270017"
  155. wm3.Scale = Vector3.new(1,1,1)
  156. coroutine.wrap(function()
  157. for i = 1, 18, 1 do
  158. wm.Scale = Vector3.new(2+i*1.2, 2+i*1.2, 2+i*1.2)
  159. wm2.Scale = Vector3.new(2+i*1.2, 2+i*1.2, 2)
  160. wm3.Scale = Vector3.new(2+i*1.2, 2+i*1.2, 2)
  161. --wave.Size = wm.Scale
  162. wave.CFrame = target
  163. wave.Transparency = i/14
  164. --wave2.Size = wm2.Scale
  165. wave2.CFrame = target
  166. wave2.Rotation = Vector3.new(90, 0, 0)
  167. wave2.Transparency = i/14
  168. --wave3.Size = wm3.Scale
  169. wave3.CFrame = target
  170. wave3.Rotation = Vector3.new(90, 0, 0)
  171. wave3.Transparency = i/14
  172. wait()
  173. end
  174. wait()
  175. wave:Destroy()
  176. wave2:Destroy()
  177. wave3:Destroy()
  178. end)()
  179. elseif TorsoColor == BrickColor.new("Royal purple") then
  180. wait()
  181. end
  182. end
  183. local p = game.Players.LocalPlayer
  184. local char = p.Character
  185. local mouse = p:GetMouse()
  186. local larm = char["Left Arm"]
  187. local rarm = char["Right Arm"]
  188. local lleg = char["Left Leg"]
  189. local rleg = char["Right Leg"]
  190. local hed = char.Head
  191. local torso = char.Torso
  192. local hum = char.Humanoid
  193. local cam = game.Workspace.CurrentCamera
  194. local root = char.HumanoidRootPart
  195. local rj = root.RootJoint
  196. local deb = false
  197. local shot = 0
  198. local stanceToggle = "Idle1"
  199. local l = game:GetService("Lighting")
  200. local rs = game:GetService("RunService").RenderStepped
  201. local hb = game:GetService("RunService").Heartbeat
  202. local Stepped = game:GetService("RunService").Stepped
  203. hed.face.Texture = "rbxassetid://0"
  204. eye2 = Instance.new("Part", workspace)
  205. eye2.Anchored = false
  206. eye2.Parent = hed
  207. eye2.TopSurface = 0
  208. eye2.BrickColor = BrickColor.new("Royal purple")
  209. eye2.Material = "Neon"
  210. eye2.BottomSurface = 0
  211. eye2m = Instance.new("SpecialMesh", eye2)
  212. eye2m.MeshId = "rbxassetid://862497341"
  213. eye2m.TextureId = "rbxassetid://862497354"
  214. eye2m.Scale = Vector3.new(0.05, 0.05, 0.05)
  215. ogsize = eye2m.Scale
  216. weld = Instance.new("Weld", hed)
  217. weld.Part0 = eye2
  218. weld.Part1 = hed
  219. weld.Name = "eye2Weld"
  220. weld.C1 = CFrame.new(0,.45,0.05)
  221. local shir = Instance.new("Shirt",char)
  222. local pan = Instance.new("Pants",char)
  223. shir.ShirtTemplate = "http://www.roblox.com/asset/?id=870418443"
  224. pan.PantsTemplate = "http://www.roblox.com/asset/?id=772824951"
  225. spawn(function()
  226. while wait() do
  227. for i,v in pairs(char:GetChildren()) do
  228. if v:IsA('Part') then
  229. v.BrickColor = BrickColor.new("Really black")
  230. end
  231. end
  232. end
  233. end)
  234. spawn(function()
  235. while wait(.9) do
  236. GroundWave2(torso.CFrame)
  237. end
  238. end)
  239. fat = Instance.new("BindableEvent", script)
  240. fat.Name = "Heartbeat"
  241. script:WaitForChild("Heartbeat")
  242. frame = 0.033333333333333
  243. tf = 0
  244. allowframeloss = false
  245. tossremainder = false
  246. lastframe = tick()
  247. script.Heartbeat:Fire()
  248. game:GetService("RunService").Heartbeat:connect(function(s, p)
  249.  
  250. tf = tf + s
  251. if frame <= tf then
  252. if allowframeloss then
  253. script.Heartbeat:Fire()
  254. lastframe = tick()
  255. else
  256. for i = 1, math.floor(tf / frame) do
  257. script.Heartbeat:Fire()
  258. end
  259. lastframe = tick()
  260. end
  261. if tossremainder then
  262. tf = 0
  263. else
  264. tf = tf - frame * math.floor(tf / frame)
  265. end
  266. end
  267. end
  268. )
  269. for i,v in pairs(hed:GetChildren()) do
  270. if v:IsA("Sound") then
  271. v:Destroy()
  272. end
  273. end
  274. Debounces = {CanAttack = true, CanJoke = true, NoIdl = false, RPunch = false, RPunched = false, LPunch = false, LPunched = false, Slashing = false, Slashed = false, ks = false, ks2 = false}
  275. weld5 = function(part0, part1, c0, c1)
  276.  
  277. weeld = Instance.new("Weld", part0)
  278. weeld.Part0 = part0
  279. weeld.Part1 = part1
  280. weeld.C0 = c0
  281. weeld.C1 = c1
  282. return weeld
  283. end
  284.  
  285. NewPart = function(prnt, siz, cf, trans, anc, mat, col)
  286.  
  287. local prt = Instance.new("Part")
  288. prt.Parent = prnt
  289. prt.Name = "Part"
  290. prt.Size = siz
  291. prt.CanCollide = false
  292. prt.Anchored = anc
  293. prt.Locked = true
  294. prt.Transparency = trans
  295. prt.TopSurface = 10
  296. prt.BottomSurface = 10
  297. prt.FrontSurface = 10
  298. prt.BackSurface = 10
  299. prt.LeftSurface = 10
  300. prt.RightSurface = 10
  301. prt:BreakJoints()
  302. if not cf then
  303. prt.CFrame = CFrame.new(30, 10, 30)
  304. prt.Material = mat
  305. prt.BrickColor = BrickColor.new(col)
  306. m = Instance.new("SpecialMesh", prt)
  307. m.MeshType = 6
  308. return prt
  309. end
  310. end
  311.  
  312. lerp = function(a, b, t)
  313.  
  314. return a + (b - a) * t
  315. end
  316.  
  317. slerp = function(a, b, t)
  318.  
  319. dot = a:Dot(b)
  320. if t > 0.5 or not a then
  321. do return dot <= 0.99999 and dot >= -0.99999 or b end
  322. r = math.acos(dot)
  323. do return (a * math.sin((1 - t) * r) + b * math.sin(t * r)) / math.sin(r) end
  324. end
  325. end
  326.  
  327. matrixInterpolate = function(a, b, t)
  328.  
  329. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  330. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  331. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx, by, bz), t)
  332. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t)
  333. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t)
  334. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t)
  335. local t = v1:Dot(v2)
  336. if t >= 0 and t ~= 0 and t <= 0 then
  337. return CFrame.new()
  338. end
  339. return CFrame.new(v0.x, v0.y, v0.z, v1.x, v1.y, v1.z, v2.x, v2.y, v2.z, v3.x, v3.y, v3.z)
  340. end
  341.  
  342. genWeld = function(a, b)
  343.  
  344. local w = Instance.new("Weld", a)
  345. w.Part0 = a
  346. w.Part1 = b
  347. return w
  348. end
  349.  
  350. weld = function(a, b)
  351.  
  352. local weld = Instance.new("Weld")
  353. weld.Name = "W"
  354. weld.Part0 = a
  355. weld.Part1 = b
  356. weld.C0 = a.CFrame:inverse() * b.CFrame
  357. weld.Parent = a
  358. return weld
  359. end
  360.  
  361. Lerp = function(c1, c2, al)
  362.  
  363. local com1 = {c1.X, c1.Y, c1.Z, c1:toEulerAnglesXYZ()}
  364. local com2 = {c2.X, c2.Y, c2.Z, c2:toEulerAnglesXYZ()}
  365. for i,v in pairs(com1) do
  366. com1[i] = v + (com2[i] - v) * al
  367. end
  368. return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
  369. end
  370.  
  371. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  372.  
  373. local wld = Instance.new("Weld", wp1)
  374. wld.Part0 = wp0
  375. wld.Part1 = wp1
  376. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  377. end
  378.  
  379. newWeld(torso, larm, -1.5, 0.5, 0)
  380. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  381. newWeld(torso, rarm, 1.5, 0.5, 0)
  382. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  383. newWeld(torso, hed, 0, 1.5, 0)
  384. newWeld(torso, lleg, -0.5, -1, 0)
  385. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  386. newWeld(torso, rleg, 0.5, -1, 0)
  387. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  388. newWeld(root, torso, 0, -1, 0)
  389. torso.Weld.C1 = CFrame.new(0, -1, 0)
  390. z = Instance.new("Sound", char)
  391. z.SoundId = "rbxassetid://763799656"
  392. z.Looped = true
  393. z.Pitch = 1.2
  394. z.Volume = 2
  395. wait(0.1)
  396. z:Play()
  397. New = function(Object, Parent, Name, Data)
  398.  
  399. local Object = Instance.new(Object)
  400. if not Data then
  401. for Index,Value in pairs({}) do
  402. Object[Index] = Value
  403. end
  404. Object.Parent = Parent
  405. Object.Name = Name
  406. return Object
  407. end
  408. end
  409.  
  410. part1 = Instance.new("Part", rarm)
  411. part1.Name = "Arbiter"
  412. part1.BrickColor = BrickColor.new("Really black")
  413. part1.CFrame = rarm.CFrame
  414. part1.Material = "Neon"
  415. part1.Anchored = false
  416. part1.CanCollide = false
  417. part1.Locked = true
  418. part1.Size = Vector3.new(0.25, 1.05, 5.9)
  419. mesh1 = Instance.new("SpecialMesh", part1)
  420. mesh1.MeshType = Enum.MeshType.FileMesh
  421. mesh1.MeshId = "rbxassetid://777371122"
  422. mesh1.TextureId = "http://www.roblox.com/asset/?id=777371154"
  423. mesh1.Scale = Vector3.new(0.8,0.8,0.8)
  424. local cor = Instance.new("Part", rarm)
  425. cor.Name = "Thingy"
  426. cor.Locked = true
  427. cor.TopSurface = 0
  428. cor.BottomSurface = 0
  429. cor.CanCollide = false
  430. cor.Size = Vector3.new(0.2, 0.2, 0.2)
  431. cor.Transparency = 1
  432. corw = Instance.new("Weld", cor)
  433. corw.Part0 = rarm
  434. corw.Part1 = cor
  435. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  436. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  437. weld1 = Instance.new("Weld", cor)
  438. weld1.Part0 = cor
  439. weld1.Part1 = part1
  440. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  441. weld1.C1 = CFrame.new(0.25, 1, -0.5) * CFrame.Angles(math.rad(-20), math.rad(30), math.rad(90))
  442. hitb = Instance.new("Part", cor)
  443. hitb.Name = "Thingy2"
  444. hitb.Locked = true
  445. hitb.TopSurface = 0
  446. hitb.BottomSurface = 0
  447. hitb.CanCollide = false
  448. hitb.Size = Vector3.new(4, 1, 3.5)
  449. hitb.Transparency = 1
  450. weld4 = Instance.new("Weld", cor)
  451. weld4.Part0 = hitb
  452. weld4.Part1 = cor
  453. weld4.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  454. weld4.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  455. local animpose = "Idle1"
  456. local lastanimpose = "Idle1"
  457. local grab = false
  458. local Smooth = 1
  459. local sine = 0
  460. local change = 1
  461. local val = 0
  462. local ffing = false
  463. mod4 = Instance.new("Model", char)
  464. ptez = {0.7, 0.8, 0.9, 1}
  465. FindNearestTorso = function(Position, Distance, SinglePlayer)
  466.  
  467. if SinglePlayer.Torso.CFrame.p - Position.magnitude >= Distance then
  468. do return not SinglePlayer end
  469. do
  470. local List = {}
  471. for i,v in pairs(workspace:GetChildren()) do
  472. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= char and v.Torso.Position - Position.magnitude <= Distance then
  473. table.insert(List, v)
  474. end
  475. end
  476. do return List end
  477. -- DECOMPILER ERROR: 3 unprocessed JMP targets
  478. end
  479. end
  480. end
  481.  
  482. Slam = function()
  483.  
  484. local part = Instance.new("Part", mod4)
  485. part.Anchored = true
  486. part.CanCollide = false
  487. part.FormFactor = "Custom"
  488. part.Size = Vector3.new(0.2, 0.2, 0.2)
  489. part.CFrame = root.CFrame * CFrame.new(0, -2.8, -1.4) * CFrame.Angles(math.rad(90), 0, 0)
  490. part.Transparency = 0.7
  491. part.BrickColor = BrickColor.new("Really black")
  492. mesh = Instance.new("SpecialMesh", part)
  493. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  494. mesh.Scale = Vector3.new(3, 3, 3)
  495. local part2 = Instance.new("Part", mod4)
  496. part2.Anchored = true
  497. part2.CanCollide = false
  498. part2.FormFactor = "Custom"
  499. part2.Size = Vector3.new(0.2, 0.2, 0.2)
  500. part2.CFrame = root.CFrame * CFrame.new(0, -2.4, -1.6)
  501. part2.Transparency = 0.7
  502. part2.BrickColor = BrickColor.new("Lime green")
  503. mesh2 = Instance.new("SpecialMesh", part2)
  504. mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  505. mesh2.Scale = Vector3.new(3, 1.5, 3)
  506. x = Instance.new("Sound", larm)
  507. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  508. x.Pitch = ptez[math.random(1, #ptez)]
  509. x.Volume = 1
  510. x1 = Instance.new("Sound", larm)
  511. x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
  512. x1.Pitch = ptez[math.random(1, #ptez)]
  513. x1.Volume = 1
  514. x:Play()
  515. x1:Play()
  516. for i,v in pairs(FindNearestTorso(torso.CFrame.p, 4)) do
  517. if v:FindFirstChild("Humanoid") then
  518. v.Humanoid.Health = 0
  519. end
  520. end
  521. coroutine.resume(coroutine.create(function()
  522.  
  523. for i = 0, 0.62, 0.13 do
  524. fat.Event:wait()
  525. part.CFrame = part.CFrame
  526. part.Transparency = i
  527. mesh.Scale = mesh.Scale + Vector3.new(0.4, 0.4, 0.4)
  528. part2.CFrame = part2.CFrame
  529. part2.Transparency = i
  530. mesh2.Scale = mesh2.Scale + Vector3.new(0.4, 0.2, 0.4)
  531. end
  532. part.Parent = nil
  533. part2.Parent = nil
  534. x:Destroy()
  535. end
  536. ))
  537. end
  538.  
  539. wPart = function(x, y, z, color, tr, cc, an, parent)
  540.  
  541. local wp = Instance.new("WedgePart", parent or Weapon)
  542. wp.formFactor = "Custom"
  543. wp.Size = Vector3.new(x, y, z)
  544. wp.BrickColor = BrickColor.new(color)
  545. wp.CanCollide = cc
  546. wp.Transparency = tr
  547. wp.Anchored = an
  548. wp.TopSurface = 0
  549. return wp
  550. end
  551.  
  552. Mesh = function(par, num, x, y, z)
  553.  
  554. local msh = _
  555. if num == 1 then
  556. msh = Instance.new("CylinderMesh", par)
  557. else
  558. if num == 2 then
  559. msh = Instance.new("SpecialMesh", par)
  560. msh.MeshType = 3
  561. else
  562. if num == 3 then
  563. msh = Instance.new("BlockMesh", par)
  564. else
  565. if num == 4 then
  566. msh = Instance.new("SpecialMesh", par)
  567. msh.MeshType = "Torso"
  568. else
  569. if type(num) == "string" then
  570. msh = Instance.new("SpecialMesh", par)
  571. msh.MeshId = num
  572. end
  573. end
  574. end
  575. end
  576. end
  577. msh.Scale = Vector3.new(x, y, z)
  578. return msh
  579. end
  580.  
  581. local CFrameFromTopBack = function(at, top, back)
  582.  
  583. local right = top:Cross(back)
  584. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  585. end
  586.  
  587. Triangle = function(a, b, c)
  588.  
  589. local edg1 = c - a:Dot(b - a.unit)
  590. local edg2 = a - b:Dot(c - b.unit)
  591. local edg3 = b - c:Dot(a - c.unit)
  592. if edg1 <= b - a.magnitude and edg1 >= 0 then
  593. a = a
  594. else
  595. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  596.  
  597. if edg2 <= c - b.magnitude and edg2 >= 0 then
  598. a = b
  599. else
  600. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  601.  
  602. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  603.  
  604. if edg3 <= a - c.magnitude and edg3 >= 0 then
  605. a = c
  606. else
  607. print("unreachable")
  608. end
  609. end
  610. end
  611. local len1 = c - a:Dot(b - a.unit)
  612. local len2 = b - a.magnitude - len1
  613. local width = a + b - a.unit * len1 - c.magnitude
  614. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  615. local list = {}
  616. if len1 > 0.01 then
  617. local w1 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char)
  618. do
  619. local sz = Vector3.new(0.2, width, len1)
  620. w1.Size = sz
  621. local sp = Mesh(w1, 2, 0, 0, 0)
  622. sp.MeshType = "Wedge"
  623. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  624. w1:BreakJoints()
  625. w1.Anchored = true
  626. w1.Transparency = 0.7
  627. Spawn(function()
  628.  
  629. for i = 0, 1, 0.1 do
  630. fat.Event:wait()
  631. w1.Transparency = w1.Transparency + 0.03
  632. end
  633. end
  634. )
  635. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  636. table.insert(list, w1)
  637. end
  638. end
  639. do
  640. if len2 > 0.01 then
  641. local w2 = wPart(0, 0, 0, "Lime green", 0.5, false, true, char)
  642. local sz = Vector3.new(0.2, width, len2)
  643. w2.Size = sz
  644. local sp = Mesh(w2, 2, 0, 0, 0)
  645. sp.MeshType = "Wedge"
  646. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  647. w2:BreakJoints()
  648. w2.Anchored = true
  649. w2.Transparency = 0.7
  650. Spawn(function()
  651.  
  652. for i = 0, 1, 0.1 do
  653. fat.Event:wait()
  654. w2.Transparency = w2.Transparency + 0.03
  655. end
  656. end
  657. )
  658. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  659. table.insert(list, w2)
  660. end
  661. do
  662. return unpack(list)
  663. end
  664. end
  665. end
  666.  
  667. trail = function(p, t, h)
  668.  
  669. Spawn(function()
  670.  
  671. local blcf = p.CFrame
  672. local scfr = blcf
  673. for i = 1, t do
  674. local blcf = p.CFrame
  675. if scfr and p.Position - scfr.p.magnitude > 0.1 then
  676. local a, b = Triangle(scfr * CFrame.new(0, h / 2, 0).p, scfr * CFrame.new(0, -h / 2, 0).p, blcf * CFrame.new(0, h / 2, 0).p)
  677. if a then
  678. game.Debris:AddItem(a, 1)
  679. end
  680. if b then
  681. game.Debris:AddItem(b, 1)
  682. end
  683. local a, b = Triangle(blcf * CFrame.new(0, h / 2, 0).p, blcf * CFrame.new(0, -h / 2, 0).p, scfr * CFrame.new(0, -h / 2, 0).p)
  684. if a then
  685. game.Debris:AddItem(a, 1)
  686. end
  687. if b then
  688. game.Debris:AddItem(b, 1)
  689. end
  690. scfr = blcf
  691. else
  692. do
  693. do
  694. if not scfr then
  695. scfr = blcf
  696. end
  697. fat.Event:wait()
  698. -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out DO_STMT
  699.  
  700. -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  701.  
  702. -- DECOMPILER ERROR at PC120: LeaveBlock: unexpected jumping out IF_STMT
  703.  
  704. end
  705. end
  706. end
  707. end
  708. scfr = nil
  709. end
  710. )
  711. end
  712.  
  713. rarm.Touched:connect(function(ht)
  714.  
  715. hit = ht.Parent
  716. if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.RPunch == true and Debounces.RPunched == false then
  717. Debounces.RPunched = true
  718. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8))
  719. if Debounces.ks == true then
  720. z = Instance.new("Sound", hed)
  721. z.SoundId = "rbxassetid://169380525"
  722. z.Pitch = ptz[math.random(1, #ptz)]
  723. z.Volume = 1
  724. z:Play()
  725. end
  726. wait(0.4)
  727. Debounces.RPunched = false
  728. end
  729. if ht and hit:IsA("Hat") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") and Debounces.RPunch == true and Debounces.RPunched == false then
  730. Debounces.RPunched = true
  731. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5, 8))
  732. if Debounces.ks == true then
  733. z = Instance.new("Sound", hed)
  734. z.SoundId = "rbxassetid://169380525"
  735. z.Pitch = ptz[math.random(1, #ptz)]
  736. z.Volume = 1
  737. z:Play()
  738. end
  739. wait(0.4)
  740. Debounces.RPunched = false
  741. end
  742. end
  743. )
  744. larm.Touched:connect(function(ht)
  745.  
  746. hit = ht.Parent
  747. if ht and hit:IsA("Model") and hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name and Debounces.LPunch == true and Debounces.LPunched == false then
  748. Debounces.LPunched = true
  749. hit:FindFirstChild("Humanoid").Health = 0
  750. hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -160
  751. if Debounces.ks2 == true then
  752. z = Instance.new("Sound", hed)
  753. z.SoundId = "rbxassetid://169380525"
  754. z.Pitch = ptz[math.random(1, #ptz)]
  755. z.Volume = 1
  756. z:Play()
  757. end
  758. wait(0.4)
  759. Debounces.LPunched = false
  760. end
  761. if ht and hit:IsA("Hat") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") and Debounces.LPunch == true and Debounces.LPunched == false then
  762. Debounces.LPunched = true
  763. hit.Parent:FindFirstChild("Humanoid").Health = 0
  764. if Debounces.ks2 == true then
  765. z = Instance.new("Sound", hed)
  766. z.SoundId = "rbxassetid://169380525"
  767. z.Pitch = ptz[math.random(1, #ptz)]
  768. z.Volume = 1
  769. z:Play()
  770. end
  771. wait(0.4)
  772. Debounces.LPunched = false
  773. end
  774. end
  775. )
  776. local acos = math.acos
  777. local sqrt = math.sqrt
  778. local Vec3 = Vector3.new
  779. local fromAxisAngle = CFrame.fromAxisAngle
  780. local toAxisAngle = function(CFr)
  781.  
  782. local X, Y, Z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = CFr:components()
  783. local Angle = math.acos((R00 + R11 + R22 - 1) / 2)
  784. local A = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2
  785. if A ~= 0 or not 1e-05 then
  786. local B = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2
  787. if B ~= 0 or not 1e-05 then
  788. local C = R21 - R12 ^ 2 + R02 - R20 ^ 2 + R10 - R01 ^ 2
  789. if C ~= 0 or not 1e-05 then
  790. local x = (R21 - R12) / sqrt(A)
  791. local y = (R02 - R20) / sqrt(B)
  792. local z = (R10 - R01) / sqrt(C)
  793. return Vec3(x, y, z), Angle
  794. end
  795. end
  796. end
  797. end
  798.  
  799. ApplyTrig = function(Num, Func)
  800.  
  801. local Min, Max = Func(0), Func(1)
  802. local i = Func(Num)
  803. return (i - Min) / (Max - Min)
  804. end
  805.  
  806. LerpCFrame = function(CFrame1, CFrame2, Num)
  807.  
  808. local Vec, Ang = toAxisAngle(CFrame1:inverse() * CFrame2)
  809. return CFrame1 * fromAxisAngle(Vec, Ang * Num) + (CFrame2.p - CFrame1.p) * Num
  810. end
  811.  
  812. Crater = function(Torso, Radius)
  813.  
  814. Spawn(function()
  815.  
  816. local Ray = Ray.new(Torso.Position, Vector3.new(0, -1, 0) * 10)
  817. local Ignore = {}
  818. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  819. if v.Character ~= nil then
  820. Ignore[#Ignore + 1] = v.Character
  821. end
  822. end
  823. local Hit, Pos, SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray, Ignore)
  824. if Hit == nil then
  825. return
  826. end
  827. local Parts = {}
  828. for i = 1, 360, 10 do
  829. local P = Instance.new("Part", Torso.Parent)
  830. P.Anchored = true
  831. P.FormFactor = "Custom"
  832. P.BrickColor = Hit.BrickColor
  833. P.Material = Hit.Material
  834. P.TopSurface = "Smooth"
  835. P.BottomSurface = "Smooth"
  836. P.Size = Vector3.new(5, 10, 10) * (math.random(80, 100) / 100)
  837. P.CFrame = (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 7, 0)) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  838. Parts[#Parts + 1] = {P, P.CFrame, (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 1, 0)) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -Radius) * CFrame.Angles(math.rad(math.random(-50, -20)), math.rad(math.random(-15, 15)), math.rad(math.random(-15, 15))), P.Size}
  839. if math.random(0, 5) == 0 then
  840. local P = Instance.new("Part", Torso.Parent)
  841. P.Anchored = true
  842. P.FormFactor = "Custom"
  843. P.BrickColor = Hit.BrickColor
  844. P.Material = Hit.Material
  845. P.TopSurface = "Smooth"
  846. P.BottomSurface = "Smooth"
  847. P.Size = Vector3.new(2, 2, 2) * (math.random(80, 100) / 100)
  848. P.CFrame = (CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) - Vector3.new(0, 2.5, 0)) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  849. Parts[#Parts + 1] = {P, P.CFrame, CFrame.new(Pos, Pos + SurfaceNorm) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -Radius - 8) * CFrame.Angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))), P.Size}
  850. end
  851. end
  852. for i = 0, 1, 0.05 do
  853. for i2,v in pairs(Parts) do
  854. v[1].CFrame = LerpCFrame(v[2], v[3], ApplyTrig(i, math.cos))
  855. end
  856. wait(0.02)
  857. end
  858. for i,v in pairs(Parts) do
  859. if v[1].Size.X > 2.1 then
  860. v[1].CFrame = v[1].CFrame + Vector3.new(0, 2, 0)
  861. end
  862. v[1].Anchored = false
  863. end
  864. for i = 0, 1, 0.05 do
  865. for i2,v in pairs(Parts) do
  866. v[1].Transparency = i
  867. if i == 1 then
  868. v[1]:Destroy()
  869. else
  870. if i >= 0.25 then
  871. v[1].CanCollide = false
  872. end
  873. end
  874. end
  875. wait(0.02)
  876. end
  877. Parts = nil
  878. end
  879. )
  880. end
  881.  
  882. function Dmg()
  883. local partofdeath = hitb
  884. local function CreateRegion3FromLocAndSize(Position, Size)
  885. local SizeOffset = Size/2
  886. local Point1 = Position - SizeOffset
  887. local Point2 = Position + SizeOffset
  888. return Region3.new(Point1, Point2)
  889. end
  890. local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
  891. for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
  892. Spawn(function()
  893. if Debounces.Slashing == true and Debounces.Slashed == false then
  894. Debounces.Slashed = true
  895. ypcall(function()
  896. local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
  897. GroundWave(v.Parent.Torso.CFrame)
  898. humanoid.Health = humanoid.Health - 928373
  899. local ex = Instance.new('Explosion',workspace)
  900. ex.Position = v.Parent.Torso.Position
  901. ex.BlastRadius = 0
  902. end)
  903. wait(.4)
  904. Debounces.Slashed = false
  905. end
  906. end)
  907. end
  908. end
  909.  
  910. pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  911. ptz = {0.7, 0.8, 0.9, 1, 1.1}
  912. part1.Transparency = 0
  913. attackone = function()
  914.  
  915. for i = 1, 10 do
  916. corw.C0 = Lerp(corw.C0, CFrame.new(-0.5, -1.5, -0.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(150)), 0.4)
  917. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, -0.5) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-24)), 0.4)
  918. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(10)), 0.5)
  919. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), 0.5)
  920. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-24), math.rad(0), math.rad(-20)), 0.3)
  921. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  922. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(-30), 0), 0.7)
  923. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
  924. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.7)
  925. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.7)
  926. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0.2) * CFrame.Angles(math.rad(-11), math.rad(0), math.rad(-14)), 0.5)
  927. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  928. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -1, -0.3) * CFrame.Angles(math.rad(20), math.rad(-30), math.rad(16)), 0.5)
  929. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  930. if Debounces.on == false then
  931. break
  932. end
  933. fat.Event:wait()
  934. end
  935. end
  936.  
  937. attacktwo = function()
  938.  
  939. Debounces.Slashing = true
  940. z = Instance.new("Sound", hed)
  941. z.SoundId = "rbxassetid://227194094"
  942. z.Pitch = ptz[math.random(1, #ptz)]
  943. z.Volume = 0.4
  944. wait(0.01)
  945. z:Play()
  946. for i = 1, 14 do
  947. Dmg()
  948. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  949. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(28)), 0.4)
  950. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(100)), 0.4)
  951. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  952. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(36), math.rad(0), math.rad(-20)), 0.3)
  953. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  954. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.36)
  955. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(-40), math.rad(0)), 0.36)
  956. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(0), math.rad(-40), 0), 0.4)
  957. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  958. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.72, -1, -0.3) * CFrame.Angles(math.rad(14), math.rad(50), math.rad(-15)), 0.5)
  959. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  960. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0.2) * CFrame.Angles(math.rad(-12), math.rad(-30), math.rad(16)), 0.5)
  961. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  962. if Debounces.on == false then
  963. break
  964. end
  965. fat.Event:wait()
  966. end
  967. do
  968. Debounces.Slashing = false
  969. end
  970. end
  971.  
  972. attackthree = function()
  973.  
  974. for i = 1, 10 do
  975. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  976. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-24)), 0.4)
  977. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(100)), 0.4)
  978. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  979. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(48), math.rad(0), math.rad(-20)), 0.4)
  980. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4)
  981. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.5)
  982. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.5)
  983. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1.3) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.5)
  984. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  985. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.72, -1, -0.4) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(-10)), 0.5)
  986. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  987. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(-30), math.rad(16)), 0.5)
  988. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  989. if Debounces.on == false then
  990. break
  991. end
  992. fat.Event:wait()
  993. end
  994. end
  995.  
  996. mouse.KeyDown:connect(function(key)
  997. if key == "e" then
  998. if Debounces.CanAttack == true then
  999. Debounces.CanAttack = false
  1000. Debounces.on = true
  1001. Debounces.NoIdl = true
  1002. for i = 1, 50 do
  1003. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(160),math.rad(-6),math.rad(30)), 0.4)
  1004. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(10),math.rad(30),math.rad(-15)), 0.2)
  1005. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2)
  1006. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(0)), 0.3)
  1007. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2)
  1008. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2)
  1009. if Debounces.on == false then break end
  1010. rs:wait(2.6)
  1011. end
  1012. Spawn(function()
  1013. local Parts = {}
  1014. for Y = -5,5 do
  1015. local P = Instance.new("Part",char)
  1016. P.Anchored = true
  1017. P.FormFactor = "Custom"
  1018. P.CanCollide = false
  1019. P.Size = Vector3.new(2,4,2)
  1020. P.TopSurface = "SmoothNoOutlines"
  1021. P.BottomSurface = "SmoothNoOutlines"
  1022. P.Material = "Neon"
  1023. P.BrickColor = BrickColor.new("Really black")
  1024. P.Name = tostring(Y)
  1025. local i = (Y+5)/(100)
  1026. i = 1-math.cos(math.pi*i-(math.pi/2))
  1027. P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-2+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0)
  1028. --[[P.Touched:connect(function(ht)
  1029. local hit = ht.Parent
  1030. if hit:FindFirstChild("Humanoid") then
  1031. hit.Humanoid:TakeDamage(math.random(20,50))
  1032. end
  1033. end)]]--
  1034. s = Instance.new("Sound",P)
  1035. s.SoundId = "rbxassetid://228343271"
  1036. s.Volume = 1
  1037. s.Pitch = 0.9
  1038. s:Play()
  1039. sa = Instance.new("Sound",P)
  1040. sa.SoundId = "rbxassetid://419447292"
  1041. sa.Volume = 1
  1042. sa.Pitch = 1
  1043. sa:Play()
  1044. P.Touched:connect(function(ht)
  1045. hit = ht.Parent
  1046. if ht and hit:IsA("Model") then
  1047. if hit:FindFirstChild("Humanoid") then
  1048. if hit.Name ~= p.Name then
  1049. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1050. Debounces.Slashed = true]]--
  1051. hit:FindFirstChild("Humanoid").Health = 0
  1052. hit:FindFirstChild("Humanoid").PlatformStand = true
  1053. wait(1)
  1054. --Debounces.Slashed = false
  1055. --end
  1056. end
  1057. end
  1058. elseif ht and hit:IsA("Hat") then
  1059. if hit.Parent.Name ~= p.Name then
  1060. if hit.Parent:FindFirstChild("Humanoid") then
  1061. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1062. Debounces.Slashed = true]]--
  1063. hit.Parent:FindFirstChild("Humanoid").Health = 0
  1064. hit:FindFirstChild("Humanoid").PlatformStand = true
  1065. wait(1)
  1066. --Debounces.Slashed = false
  1067. --end
  1068. end
  1069. end
  1070. end
  1071. end)
  1072. Parts[#Parts+1] = P
  1073. end
  1074. local BREAKIT = false
  1075. local CParts = {}
  1076. local Rocks = {}
  1077. local LastPos = nil
  1078. for i = 1,70 do
  1079. for i2,v in pairs(Parts) do
  1080. v.CFrame = v.CFrame*CFrame.new(0,0,-4)
  1081. local cf = v.CFrame
  1082. v.Size = v.Size+Vector3.new(0.4,0.35,0)
  1083. v.CFrame = cf
  1084. v.Transparency = v.Transparency+0.02
  1085. if v.Transparency >= 0.975 then BREAKIT = true end
  1086. if v.Name == "0" then
  1087. local Ignore = {}
  1088. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1089. if v.Character ~= nil then
  1090. Ignore[#Ignore+1] = v.Character
  1091. end
  1092. end
  1093. local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0))
  1094. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore)
  1095. if Hit ~= nil then
  1096. if #Rocks == 0 then
  1097. for i = 1,5 do
  1098. local P = Instance.new("Part",char)
  1099. Rocks[#Rocks+1] = P
  1100. P.Anchored = true
  1101. P.FormFactor = "Custom"
  1102. P.BrickColor = Hit.BrickColor
  1103. P.Material = Hit.Material
  1104. P.TopSurface = "Smooth"
  1105. P.BottomSurface = "Smooth"
  1106. P.Size = Vector3.new(2,2,2)*(math.random(500,900)/100)
  1107. end
  1108. end
  1109. for i,P in pairs(Rocks) do
  1110. P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
  1111. end
  1112. local P = Instance.new("Part",char)
  1113. CParts[#CParts+1] = {P,tick()}
  1114. P.Anchored = true
  1115. P.FormFactor = "Custom"
  1116. P.BrickColor = Hit.BrickColor
  1117. P.Material = Hit.Material
  1118. P.TopSurface = "Smooth"
  1119. P.BottomSurface = "Smooth"
  1120. P.Size = Vector3.new(2,2,2)*(math.random(100,300)/100)
  1121. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
  1122. Pos = Pos.p
  1123. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
  1124. local P = P:Clone()
  1125. CParts[#CParts+1] = {P,tick()}
  1126. P.Parent = char
  1127. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0)
  1128. Pos = Pos.p
  1129. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20)))
  1130. if LastPos ~= nil then
  1131. local P = P:Clone()
  1132. CParts[#CParts+1] = {P,tick()}
  1133. P.Parent = char
  1134. P.BrickColor = BrickColor.new("Royal purple")
  1135. P.Material = "Neon"
  1136. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
  1137. Pos = Pos.p
  1138. local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
  1139. P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25)
  1140. --P.Velocity = Vector3.new(0,-1000,0)
  1141. P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2)
  1142. end
  1143. LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
  1144. end
  1145. end
  1146. end
  1147. if BREAKIT then break end
  1148. wait(0.002)
  1149. end
  1150. for i,v in pairs(Rocks) do
  1151. CParts[#CParts+1] = {v,tick()}
  1152. end
  1153. for i,v in pairs(Parts) do
  1154. v:Destroy()
  1155. end
  1156. Parts = nil
  1157. while true do
  1158. local t = tick()
  1159. local p = nil
  1160. for i,v in pairs(CParts) do
  1161. if t-v[2] > 4 then
  1162. v[1].Transparency = v[1].Transparency+0.05
  1163. if v[1].Transparency >= 1 then
  1164. v[1]:Destroy()
  1165. CParts[i] = nil
  1166. end
  1167. end
  1168. p = v
  1169. end
  1170. if p == nil then break end
  1171. wait(0.002)
  1172. end
  1173. for i,v in pairs(CParts) do
  1174. v:Destroy()
  1175. end
  1176. CParts = {}
  1177. end)
  1178. for i = 1, 20 do
  1179. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(30)), 0.2)
  1180. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20)), 0.2)
  1181. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
  1182. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(0)), 0.4)
  1183. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2)
  1184. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2)
  1185. if Debounces.on == false then break end
  1186. rs:wait(2)
  1187. end
  1188. if Debounces.CanAttack == false then
  1189. Debounces.CanAttack = true
  1190. Debounces.on = false
  1191. Debounces.NoIdl = false
  1192. end
  1193. end
  1194. end
  1195. end)
  1196.  
  1197. attackfour = function()
  1198.  
  1199. Debounces.Slashing = true
  1200. z = Instance.new("Sound", hed)
  1201. z.SoundId = "rbxassetid://227194094"
  1202. z.Pitch = ptz[math.random(1, #ptz)]
  1203. z.Volume = 0.4
  1204. wait(0.01)
  1205. z:Play()
  1206. for i = 1, 14 do
  1207. Dmg()
  1208. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1209. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(28)), 0.4)
  1210. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.4) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(-60)), 0.4)
  1211. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(0)), 0.4)
  1212. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(-10)), 0.3)
  1213. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1214. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.36)
  1215. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(0)), 0.36)
  1216. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1.6) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.36)
  1217. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
  1218. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0.2) * CFrame.Angles(math.rad(-10), math.rad(-20), math.rad(-16)), 0.5)
  1219. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1220. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.72, -1, -0.4) * CFrame.Angles(math.rad(14), math.rad(-50), math.rad(14)), 0.5)
  1221. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1222. if Debounces.on == false then
  1223. break
  1224. end
  1225. fat.Event:wait()
  1226. end
  1227. do
  1228. Debounces.Slashing = false
  1229. end
  1230. end
  1231.  
  1232. attackfive = function()
  1233.  
  1234. z = Instance.new("Sound", hed)
  1235. z.SoundId = "rbxassetid://"
  1236. z.Pitch = 1
  1237. z.Volume = 0.8
  1238. wait(0.01)
  1239. z:Play()
  1240. for i = 1, 18 do
  1241. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
  1242. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.5)
  1243. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.7, 0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(-40)), 0.4)
  1244. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1245. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.7, 0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(40)), 0.4)
  1246. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1247. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.4, 0.15) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.5)
  1248. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.25)
  1249. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, -1.6) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.5)
  1250. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.5)
  1251. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-15), math.rad(20), math.rad(-15)), 0.5)
  1252. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1253. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-15), math.rad(-20), math.rad(15)), 0.5)
  1254. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1255. if Debounces.on == false then
  1256. break
  1257. end
  1258. fat.Event:wait()
  1259. end
  1260. do
  1261. z = Instance.new("Sound", hed)
  1262. z.SoundId = "rbxassetid://227194094"
  1263. z.Pitch = 0.6
  1264. z.Volume = 1
  1265. wait(0.01)
  1266. z:Play()
  1267. Debounces.Slashing = true
  1268. for i = 1, 18 do
  1269. Dmg()
  1270. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-40)), 0.5)
  1271. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-20), math.rad(-50), math.rad(0)), 0.5)
  1272. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.4, -0.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-40)), 0.5)
  1273. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1274. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.4, -0.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(40)), 0.5)
  1275. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1276. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.4, -0.15) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.5)
  1277. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.5)
  1278. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, -2) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.3)
  1279. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1280. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -0.2, -0.48) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-10)), 0.3)
  1281. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1282. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -0.9, 0.2) * CFrame.Angles(math.rad(-70), math.rad(0), math.rad(10)), 0.3)
  1283. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1284. if Debounces.on == false then
  1285. break
  1286. end
  1287. fat.Event:wait()
  1288. end
  1289. do
  1290. Debounces.Slashing = false
  1291. end
  1292. end
  1293. end
  1294.  
  1295. ComboNum = 0
  1296. mouse.Button1Down:connect(function()
  1297.  
  1298. if Debounces.CanAttack == true then
  1299. Debounces.CanAttack = false
  1300. Debounces.NoIdl = true
  1301. Debounces.on = true
  1302. if ComboNum == 0 then
  1303. attackone()
  1304. else
  1305. if ComboNum == 1 then
  1306. attacktwo()
  1307. else
  1308. if ComboNum == 2 then
  1309. attackthree()
  1310. else
  1311. if ComboNum == 3 then
  1312. attackfour()
  1313. else
  1314. if ComboNum == 4 then
  1315. attackfive()
  1316. end
  1317. end
  1318. end
  1319. end
  1320. end
  1321. ComboNum = ComboNum + 1
  1322. Debounces.CanAttack = true
  1323. Debounces.on = false
  1324. wait(0.2)
  1325. if Debounces.CanAttack == true then
  1326. ComboNum = 0
  1327. Debounces.NoIdl = false
  1328. end
  1329. end
  1330. end
  1331. )
  1332. mouse.KeyDown:connect(function(key)
  1333.  
  1334. if string.byte(key) == 52 then
  1335. Swing = 2
  1336. char.Humanoid.WalkSpeed = 28
  1337. end
  1338. end
  1339. )
  1340. mouse.KeyUp:connect(function(key)
  1341.  
  1342. if string.byte(key) == 52 then
  1343. Swing = 1
  1344. char.Humanoid.WalkSpeed = 16
  1345. end
  1346. end
  1347. )
  1348. jump = false
  1349. rs:connect(function()
  1350.  
  1351. if char.Humanoid.Jump == true then
  1352. jump = true
  1353. else
  1354. jump = false
  1355. end
  1356. char.Humanoid.FreeFalling:connect(function(f)
  1357.  
  1358. if f then
  1359. ffing = true
  1360. else
  1361. ffing = false
  1362. end
  1363. end
  1364. )
  1365. sine = sine + change
  1366. if jump == true then
  1367. animpose = "Jumping"
  1368. else
  1369. if ffing == true then
  1370. animpose = "Freefalling"
  1371. else
  1372. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then
  1373. animpose = "Idle"
  1374. else
  1375. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 20 then
  1376. animpose = "Walking"
  1377. else
  1378. if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude > 20 then
  1379. animpose = "Running"
  1380. end
  1381. end
  1382. end
  1383. end
  1384. end
  1385. RightLeg = CFrame.new(0.5, -1, 0)
  1386. LeftLeg = CFrame.new(-0.5, -1, 0)
  1387. lefth = (torso.CFrame*LeftLeg)
  1388. righth = (torso.CFrame*RightLeg)
  1389.  
  1390. speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  1391.  
  1392. TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  1393.  
  1394. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  1395. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  1396. if animpose ~= lastanimpose then
  1397. sine = 0
  1398. if Debounces.NoIdl == false then
  1399. if stanceToggle == "Idle1" then
  1400. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-12 - 4 * math.cos(sine / 22)), math.rad(-12 - 2 * math.cos(sine / 22)), math.rad(12 + 2 * math.cos(sine / 22))), 0.3)
  1401. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, -0.2) * CFrame.Angles(math.rad(20 + 4 * math.cos(sine / 22)), math.rad(-22 - 2 * math.cos(sine / 22)), math.rad(-15 - 2 * math.cos(sine / 22))), 0.3)
  1402. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-12 + 2.5 * math.cos(sine / 22)), math.rad(0), math.rad(0)), 0.2)
  1403. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2 + 2 * math.cos(sine / 22)), math.rad(0), 0), 0.2)
  1404. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 22)), math.rad(5), math.rad(-5)), 0.2)
  1405. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 22)), math.rad(-5), math.rad(5)), 0.2)
  1406. else
  1407. if stanceToggle == "Idle2" then
  1408. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-22 - 4 * math.cos(sine / 12)), math.rad(-40 - 2 * math.cos(sine / 12)), math.rad(24 + 2 * math.cos(sine / 12))), 0.3)
  1409. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.6, -0.6) * CFrame.Angles(math.rad(90 + 4 * math.cos(sine / 12)), math.rad(0), math.rad(50 - 2 * math.cos(sine / 12))), 0.3)
  1410. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-6 + 2.5 * math.cos(sine / 12)), math.rad(0), math.rad(0)), 0.2)
  1411. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20 + 2 * math.cos(sine / 12)), math.rad(0), 0), 0.2)
  1412. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7 - 2 * math.cos(sine / 12)), math.rad(7), math.rad(-5)), 0.2)
  1413. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30 - 2 * math.cos(sine / 12)), math.rad(-9), math.rad(5)), 0.2)
  1414. end
  1415. end
  1416. fat.Event:wait()
  1417. end
  1418. end
  1419. lastanimpose = animpose
  1420. if Debounces.NoIdl == false then
  1421. if animpose == "Idle" then
  1422. change = 0.8
  1423. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1424. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-26)), 0.4)
  1425. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5 + 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(30 + 2 * math.sin(sine / 10)), math.rad(-40 - 10 * math.cos(sine / 10)), math.rad(20)), 0.1)
  1426. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.1)
  1427. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.sin(sine / 10), 0.15) * CFrame.Angles(math.rad(20 - 2 * math.sin(sine / 10)), math.rad(0 + 10 * math.cos(sine / 10)), math.rad(-20)), 0.1)
  1428. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.1)
  1429. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1430. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0.15 - 0.05 * math.sin(sine / 10)) * CFrame.Angles(math.rad(15 - 3 * math.sin(sine / 10)), math.rad(0), math.rad(0)), 0.1)
  1431. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-3 + 3 * math.cos(sine / 10)), math.rad(0), 0), 0.1)
  1432. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1433. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1 - 0.01 * math.cos(sine / 10), 0) * CFrame.Angles(math.rad(5 - 5 * math.cos(sine / 5)), math.rad(0), math.rad(-10 + 1.9 * math.cos(sine / 10))), 0.1)
  1434. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0.3) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1435. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 + 0.01 * math.cos(sine / 10), 0) * CFrame.Angles(math.rad(-5 - 3 * math.cos(sine / 10)), math.rad(-10), math.rad(12 + 1.9 * math.cos(sine / 10))), 0.1)
  1436. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1437. rj.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(-3 + 3 * math.cos(sine / 10)), math.rad(0), 0), 0.1)
  1438. rj.C1 = Lerp(torso.Weld.C1, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1439. else
  1440. if animpose == "Walking" then
  1441. change = 0.8
  1442. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0.5) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1443. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), 0.4)
  1444. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(20 + 2 * math.cos(sine / 7)), math.rad(0), math.rad(30)), 0.4)
  1445. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
  1446. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.cos(sine / 2), -math.sin(sine / 4) / 4) * CFrame.Angles(math.sin(sine / 4) / 2.8, -math.sin(sine / 4) / 3, math.rad(-10 - 7 * math.cos(sine / 2)) + root.RotVelocity.Y / 30), 0.4)
  1447. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
  1448. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1 + 0.1 * math.cos(sine / 2)) * CFrame.Angles(math.rad(-10 + 4 * math.cos(sine / 2)), math.rad(0 - 8 * math.cos(sine / 4) / 2.3), math.rad(0)), 0.4)
  1449. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.7)
  1450. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.12 * math.cos(sine / 2), 0) * CFrame.Angles(math.rad(-4 + 2 * math.cos(sine / 2)), math.rad(0 + 10 * math.cos(sine / 4) / 2.3) + root.RotVelocity.Y / 30, math.rad(0) + root.RotVelocity.Y / 30), 0.4)
  1451. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1452. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5, -1 - math.cos(sine / 4) * 0.2, 0 + math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * AngleThetaL.Z, AngleThetaL.X, math.sin(sine / 4) * 3 * -AngleThetaL.X - root.RotVelocity.Y / 20), 0.8)
  1453. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1454. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5, -1 + math.cos(sine / 4) * 0.2, 0 - math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3 * -AngleThetaR.Z, AngleThetaR.X, math.sin(sine / 4) * 3 * AngleThetaR.X - root.RotVelocity.Y / 20), 0.8)
  1455. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1456. else
  1457. if animpose == "Running" then
  1458. change = 1.1
  1459. corw.C0 = Lerp(corw.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1460. corw.C1 = Lerp(corw.C1, CFrame.new(-2.4, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(-35)), 0.4)
  1461. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.54, 0) * CFrame.Angles(math.rad(-34), math.rad(-15), math.rad(26)), 0.2)
  1462. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
  1463. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24 + 0.6 * math.cos(sine / 4) / 1.4, 0.54, 0 - 0.8 * math.cos(sine / 4)) * CFrame.Angles(math.rad(6 + 140 * math.cos(sine / 4) / 1.2), math.rad(0), math.rad(20 + 70 * math.cos(sine / 4))), 0.2)
  1464. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1465. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-8 + 12 * math.cos(sine / 2) / 1.5), math.rad(0 + 12 * math.cos(sine / 4)), math.rad(0)), 0.2)
  1466. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.5)
  1467. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.2 * math.cos(sine / 2) / 1.7, 0) * CFrame.Angles(math.rad(-14 + 10 * math.cos(sine / 2) / 1.5), math.rad(0 - 12 * math.cos(sine / 4)) - root.RotVelocity.Y / 10, math.rad(0) + root.RotVelocity.Y / 20), 0.2)
  1468. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1469. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.8 - 0.4 * math.cos(sine / 4) / 2, math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + -math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.8)
  1470. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1471. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8 + 0.4 * math.cos(sine / 4) / 2, -math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.8)
  1472. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1473. else
  1474. if animpose == "Jumping" then
  1475. change = 1
  1476. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(10)), 0.2)
  1477. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
  1478. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.2)
  1479. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1480. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.2)
  1481. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(1), math.rad(0), 0), 0.2)
  1482. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1483. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1484. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1485. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1486. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1487. else
  1488. if animpose == "Freefalling" then
  1489. change = 1
  1490. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-40), math.rad(20), math.rad(50)), 0.2)
  1491. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
  1492. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(110), math.rad(-20), math.rad(-30)), 0.2)
  1493. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
  1494. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), 0), 0.2)
  1495. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
  1496. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1497. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, -0.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1498. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1499. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, 0, 0.5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  1500. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1501. end
  1502. end
  1503. end
  1504. end
  1505. end
  1506. end
  1507. end
  1508. )
  1509. hum.MaxHealth = math.huge
  1510. wait(3)
  1511. hum.Health = math.huge
Add Comment
Please, Sign In to add comment