Advertisement
McRoblox132

The Angry Guest

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