Advertisement
UltimateGate

Fighter Script by UltimateGate

Jul 8th, 2017
1,880
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 102.92 KB | None | 1 0
  1. --dis wus easi xd
  2. --~Pix
  3. script.Parent = nil
  4. Meshes = {Blast = "20329976", Crown = "1323306", Ring = "3270017", Claw = "10681506", Crystal = "9756362", Coil = "9753878", Cloud = "1095708"}
  5. clangsounds = {"199149119", "199149109", "199149072", "199149025", "199148971"}
  6. hitsounds = {"131237241", "856713718", "281156569", "281156569", "281156569", "281156569"}
  7. blocksounds = {"199148933", "199148947"}
  8. armorsounds = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  9. woosh = {Heavy1 = "320557353", Heavy2 = "320557382", Heavy3 = "320557453", Heavy4 = "199144226", Heavy5 = "203691447", Heavy6 = "203691467", Heavy7 = "203691492", Light1 = "320557413", Light2 = "320557487", Light3 = "199145095", Light4 = "199145146", Light5 = "199145887", Light6 = "199145913", Light7 = "199145841", Medium1 = "320557518", Medium2 = "320557537", Medium3 = "320557563", Medium4 = "199145204"}
  10. music = {Breaking = "179281636", FinalReckoning = "357375770", NotDeadYet = "346175829", Intense = "151514610", JumpP1 = "160536628", JumpP2 = "60536666", SonsOfWar = "158929777", WrathOfSea = "165520893", ProtectorsOfEarth = "160542922", SkyTitans = "179282324", ArchAngel = "144043274", Anticipation = "168614529", TheMartyred = "186849544", AwakeP1 = "335631255", AwakeP2 = "335631297", ReadyAimFireP1 = "342455387", ReadyAimFireP2 = "342455399", DarkLordP1 = "209567483", DarkLordP2 = "209567529", BloodDrainP1 = "162914123", BloodDrainP2 = "162914203", DanceOfSwords = "320473062", Opal = "286415112", Calamity = "190454307", Hypnotica = "155968128", Nemisis = "160453802", Breathe = "276963903", GateToTheRift = "270655227", InfernalBeserking = "244143404", Trust = "246184492", AwakeningTheProject = "245121821", BloodPain = "242545577", Chaos = "247241693", NightmareFictionHighStake = "248062278", TheWhiteWeapon = "247236446", Gale = "256851659", ImperialCode = "256848383", Blitzkrieg = "306431437", RhapsodyRage = "348690251", TheGodFist = "348541501", BattleForSoul = "321185592", TheDarkColossus = "305976780", EmpireOfAngels = "302580452", Kronos = "302205297", Exorcist = "299796054", CrimsonFlames = "297799220", UltimatePower = "295753229", DrivingInTheDark = "295753229", AscendToPower = "293860654", GodOfTheSun = "293612495", DarkRider = "293861765", Vengeance = "293375555", SoundOfWar = "293376196", HellsCrusaders = "293012202", Legend = "293011823", RisingSouls = "290524959"}
  11. misc = {GroundSlam = "199145477", LaserSlash = "199145497", RailGunFire = "199145534", Charge1 = "199145659", Charge2 = "169380469", Charge3 = "169380479", EmptyGun = "203691822", GunShoot = "203691837", Stomp1 = "200632875", Stomp2 = "200632561", TelsaCannonCharge = "169445572", TelsaCannonShoot = "169445602", AncientHymm = "245313442"}
  12. Player = game:GetService("Players").LocalPlayer
  13. Character = Player.Character
  14. PlayerGui = Player.PlayerGui
  15. Backpack = Player.Backpack
  16. Torso = Character.Torso
  17. Head = Character.Head
  18. Humanoid = Character.Humanoid
  19. LeftArm = Character["Left Arm"]
  20. LeftLeg = Character["Left Leg"]
  21. RightArm = Character["Right Arm"]
  22. RightLeg = Character["Right Leg"]
  23. LS = Torso["Left Shoulder"]
  24. LH = Torso["Left Hip"]
  25. RS = Torso["Right Shoulder"]
  26. RH = Torso["Right Hip"]
  27. Face = Head.face
  28. Neck = Torso.Neck
  29. it = Instance.new
  30. attacktype = 1
  31. vt = Vector3.new
  32. cf = CFrame.new
  33. euler = CFrame.fromEulerAnglesXYZ
  34. angles = CFrame.Angles
  35. cloaked = false
  36. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  37. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  38. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  39. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  40. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  41. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  42. RootPart = Character.HumanoidRootPart
  43. RootJoint = RootPart.RootJoint
  44. RootCF = euler(-1.57, 0, 3.14)
  45. attack = false
  46. attackdebounce = false
  47. deb = false
  48. equipped = false
  49. hand = false
  50. MMouse = nil
  51. combo = 0
  52. mana = 0
  53. trispeed = 0.2
  54. attackmode = "none"
  55. local idle = 0
  56. local Anim = "Idle"
  57. local gun = false
  58. local shoot = false
  59. ShotTarget = RootPart
  60. player = nil
  61. mana = 0
  62. Humanoid:findFirstChild("Animator"):Destroy()
  63. print("Harbaceus loaded.")
  64. mouse = Player:GetMouse()
  65. RSH = nil
  66. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  67. RW.Name = "Right Shoulder"
  68. LW.Name = "Left Shoulder"
  69. LH = Torso["Left Hip"]
  70. RH = Torso["Right Hip"]
  71. TorsoColor = Torso.BrickColor
  72. Colorpart1 = Torso.BrickColor.r
  73. Colorpart2 = Torso.BrickColor.g
  74. Colorpart3 = Torso.BrickColor.b
  75. NoOutline = function(Part)
  76. Part.TopSurface = 10
  77. end
  78. player = Player
  79. ch = Character
  80. RSH = ch.Torso["Right Shoulder"]
  81. LSH = ch.Torso["Left Shoulder"]
  82. RSH.Parent = nil
  83. LSH.Parent = nil
  84. RW.Name = "Right Shoulder"
  85. RW.Part0 = ch.Torso
  86. RW.C0 = cf(1.5, 0.5, 0)
  87. RW.C1 = cf(0, 0.5, 0)
  88. RW.Part1 = ch["Right Arm"]
  89. RW.Parent = ch.Torso
  90. LW.Name = "Left Shoulder"
  91. LW.Part0 = ch.Torso
  92. LW.C0 = cf(-1.5, 0.5, 0)
  93. LW.C1 = cf(0, 0.5, 0)
  94. LW.Part1 = ch["Left Arm"]
  95. LW.Parent = ch.Torso
  96. Player = game:GetService("Players").LocalPlayer
  97. Character = Player.Character
  98. Mouse = Player:GetMouse()
  99. local weldBetween = function(a, b)
  100. local weldd = Instance.new("ManualWeld")
  101. weldd.Part0 = a
  102. weldd.Part1 = b
  103. weldd.C0 = CFrame.new()
  104. weldd.C1 = b.CFrame:inverse() * a.CFrame
  105. weldd.Parent = a
  106. return weldd
  107. end
  108. swait = function(num)
  109. if num == 0 or num == nil then
  110. game:service("RunService").Heartbeat:wait(0)
  111. else
  112. for i = 0, num do
  113. game:service("RunService").Heartbeat:wait(0)
  114. end
  115. end
  116. end
  117. fat = Instance.new("BindableEvent", script)
  118. fat.Name = "Heartbeat"
  119. script:WaitForChild("Heartbeat")
  120. frame = 0.033333333333333
  121. tf = 0
  122. allowframeloss = false
  123. tossremainder = false
  124. lastframe = tick()
  125. script.Heartbeat:Fire()
  126. game:GetService("RunService").Heartbeat:connect(function(s, p)
  127. tf = tf + s
  128. if frame <= tf then
  129. if allowframeloss then
  130. script.Heartbeat:Fire()
  131. lastframe = tick()
  132. else
  133. for i = 1, math.floor(tf / frame) do
  134. script.Heartbeat:Fire()
  135. end
  136. lastframe = tick()
  137. end
  138. if tossremainder then
  139. tf = 0
  140. else
  141. tf = tf - frame * math.floor(tf / frame)
  142. end
  143. end
  144. end)
  145. it = Instance.new
  146. nooutline = function(part)
  147. part.TopSurface = 10
  148. end
  149. part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  150. local fp = it("Part")
  151. fp.formFactor = formfactor
  152. fp.Parent = parent
  153. fp.Reflectance = reflectance
  154. fp.Transparency = transparency
  155. fp.CanCollide = false
  156. fp.Locked = true
  157. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  158. fp.Name = name
  159. fp.Size = size
  160. fp.Position = Character.Torso.Position
  161. nooutline(fp)
  162. fp.Material = material
  163. fp:BreakJoints()
  164. return fp
  165. end
  166. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  167. local mesh = it(Mesh)
  168. mesh.Parent = part
  169. if Mesh == "SpecialMesh" then
  170. mesh.MeshType = meshtype
  171. mesh.MeshId = meshid
  172. end
  173. mesh.Offset = offset
  174. mesh.Scale = scale
  175. return mesh
  176. end
  177. weld = function(parent, part0, part1, c0, c1)
  178. local weld = it("Weld")
  179. weld.Parent = parent
  180. weld.Part0 = part0
  181. weld.Part1 = part1
  182. weld.C0 = c0
  183. weld.C1 = c1
  184. return weld
  185. end
  186.  
  187. wait(0.1)
  188. local Player = game.Players.localPlayer
  189. local Character = Player.Character
  190. local Humanoid = Character.Humanoid
  191. local mouse = Player:GetMouse()
  192. local LeftArm = Character["Left Arm"]
  193. local RightArm = Character["Right Arm"]
  194. local LeftLeg = Character["Left Leg"]
  195. local RightLeg = Character["Right Leg"]
  196. local Head = Character.Head
  197. local Torso = Character.Torso
  198. local cam = game.Workspace.CurrentCamera
  199. local RootPart = Character.HumanoidRootPart
  200. local equipped = false
  201. local attack = false
  202. local Anim = "Idle"
  203. local idle = 0
  204. local sprint = false
  205. local battlestance = false
  206. local attacktype = 1
  207. local state = "none"
  208. local torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  209. local velocity = RootPart.Velocity.y
  210. local sine = 0
  211. local change = 1
  212. local on = false
  213. local grabbed = false
  214. local skill1 = false
  215. local skill2 = false
  216. local skill3 = false
  217. local skill4 = false
  218. local cooldown1 = 0
  219. local cooldown2 = 0
  220. local cooldown3 = 0
  221. local cooldown4 = 0
  222. local co1 = 0
  223. local co2 = 0
  224. local co3 = 0
  225. local co4 = 0
  226. local inputserv = game:GetService("UserInputService")
  227. local typing = false
  228. local crit = false
  229. local critchance = 2
  230. local critdamageaddmin = 2
  231. local critdamageaddmax = 7
  232. local maxstamina = 100
  233. local stamina = 0
  234. local skill1stam = 0
  235. local skill2stam = 0
  236. local skill3stam = 0
  237. local skill4stam = 0
  238. local recovermana = 4
  239. local defensevalue = 1.2
  240. local speedvalue = 1
  241. local mindamage = 4
  242. local maxdamage = 7
  243. local damagevalue = 1
  244. local cf = CFrame.new
  245. local mr = math.rad
  246. local angles = CFrame.Angles
  247. local ud = UDim2.new
  248. local c3 = Color3.new
  249. local skillcolorscheme = c3(1, 1, 1)
  250. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  251. makeframe = function(par, trans, pos, size, color)
  252. local frame = Instance.new("Frame", par)
  253. frame.BackgroundTransparency = trans
  254. frame.BorderSizePixel = 0
  255. frame.Position = pos
  256. frame.Size = size
  257. frame.BackgroundColor3 = color
  258. return frame
  259. end
  260. makelabel = function(par, text)
  261. local label = Instance.new("TextLabel", par)
  262. label.BackgroundTransparency = 1
  263. label.Size = ud(1, 0, 1, 0)
  264. label.Position = ud(0, 0, 0, 0)
  265. label.TextColor3 = c3(255, 255, 255)
  266. label.TextStrokeTransparency = 0
  267. label.FontSize = Enum.FontSize.Size32
  268. label.Font = Enum.Font.SourceSansBold
  269. label.BorderSizePixel = 0
  270. label.TextScaled = true
  271. label.Text = text
  272. end
  273. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
  274. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
  275. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
  276. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
  277. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  278. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  279. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  280. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  281. text1 = makelabel(framesk1, " ")
  282. text2 = makelabel(framesk2, " ")
  283. text3 = makelabel(framesk3, " ")
  284. text4 = makelabel(framesk4, " ")
  285. staminabar = makeframe(scrn, 1, ud(1, 0, 1, 0), ud(1, 0, 0.03, 0), c3(0.23921568627451, 0.67058823529412, 1))
  286. staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(0, 0, 0, 0), c3(0.23921568627451, 0.67058823529412, 1))
  287. staminatext = makelabel(staminabar, " ")
  288. healthbar = makeframe(scrn, 1, ud(0.37, 0, 0.82, 0), ud(0.26, 0, 0.03, 0), c3(1, 1, 0))
  289. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 0.18039215686275, 0.1921568627451))
  290. healthtext = makelabel(healthbar, "HP")
  291. local stats = Instance.new("Folder", Character)
  292. stats.Name = "Stats"
  293. local block = Instance.new("BoolValue", stats)
  294. block.Name = "Block"
  295. block.Value = false
  296. local stun = Instance.new("BoolValue", stats)
  297. stun.Name = "Stun"
  298. stun.Value = false
  299. local defense = Instance.new("NumberValue", stats)
  300. defense.Name = "Defence"
  301. defense.Value = defensevalue
  302. local speed = Instance.new("NumberValue", stats)
  303. speed.Name = "Speed"
  304. speed.Value = speedvalue
  305. local damagea = Instance.new("NumberValue", stats)
  306. damagea.Name = "Damage"
  307. damagea.Value = damagevalue
  308. makeeffect = function(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
  309. local p = Instance.new("Part", par or workspace)
  310. p.CFrame = pos1
  311. p.Anchored = true
  312. p.Material = "Plastic"
  313. p.CanCollide = false
  314. p.TopSurface = 0
  315. p.Size = Vector3.new(1, 1, 1)
  316. p.BottomSurface = 0
  317. p.Transparency = trans
  318. p.FormFactor = "Custom"
  319. nooutline(p)
  320. local mesh = Instance.new("SpecialMesh", p)
  321. mesh.Scale = size
  322. if id ~= nil and type == nil then
  323. mesh.MeshId = "rbxassetid://" .. id
  324. else
  325. if id == nil and type ~= nil then
  326. mesh.MeshType = type
  327. else
  328. if id == nil and type == nil then
  329. mesh.MeshType = "Brick"
  330. end
  331. end
  332. end
  333. coroutine.wrap(function()
  334. for i = 0, delay1, 0.1 do
  335. wait(0.016666666666667)
  336. p.CFrame = p.CFrame
  337. mesh.Scale = mesh.Scale + howmuch
  338. p.Transparency = p.Transparency + trans1
  339. end
  340. p:Destroy()
  341. end)()
  342. return p
  343. end
  344. clangy = function(cframe)
  345. wait(0.016666666666667)
  346. local clang = {}
  347. local dis = 0
  348. local part = Instance.new("Part", nil)
  349. part.CFrame = cframe
  350. part.Anchored = true
  351. part.CanCollide = false
  352. part.BrickColor = BrickColor.new("Crimson")
  353. part.FormFactor = "Custom"
  354. part.Name = "clanger"
  355. part.Size = Vector3.new(0.2, 0.2, 0.2)
  356. part.TopSurface = 10
  357. part.BottomSurface = 10
  358. part.RightSurface = 10
  359. part.LeftSurface = 10
  360. part.BackSurface = 10
  361. part.FrontSurface = 10
  362. part:BreakJoints()
  363. local mesh = Instance.new("BlockMesh", part)
  364. coroutine.wrap(function()
  365. for i = 1, 7 do
  366. do
  367. wait(0.016666666666667)
  368. dis = dis + 0.2
  369. local partc = part:clone()
  370. partc.Parent = workspace
  371. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  372. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  373. table.insert(clang, partc)
  374. end
  375. end
  376. for i,v in pairs(clang) do
  377. coroutine.wrap(function()
  378. for i = 1, 10 do
  379. wait(0.01)
  380. v.Transparency = v.Transparency + 0.1
  381. end
  382. v:destroy()
  383. end)()
  384. end
  385. end)()
  386. end
  387. circle = function(color, pos1)
  388. local p = Instance.new("Part", m)
  389. p.BrickColor = BrickColor.new(color)
  390. p.CFrame = pos1
  391. p.Anchored = true
  392. p.Material = "Plastic"
  393. p.CanCollide = false
  394. p.TopSurface = 0
  395. p.Size = Vector3.new(1, 1, 1)
  396. p.BottomSurface = 0
  397. p.Transparency = 0.35
  398. p.FormFactor = "Custom"
  399. local mesh = Instance.new("CylinderMesh", p)
  400. mesh.Scale = Vector3.new(0, 0, 0)
  401. coroutine.wrap(function()
  402. for i = 0, 5, 0.1 do
  403. wait(0.016666666666667)
  404. p.CFrame = p.CFrame
  405. mesh.Scale = mesh.Scale + Vector3.new(0.5, 0, 0.5)
  406. p.Transparency = p.Transparency + 0.025
  407. end
  408. p:Destroy()
  409. end)()
  410. end
  411. firespaz1 = function(color, pos1)
  412. local p = Instance.new("Part", m)
  413. p.BrickColor = BrickColor.new(color)
  414. p.CFrame = pos1
  415. p.Anchored = true
  416. p.Material = "Plastic"
  417. p.CanCollide = false
  418. p.TopSurface = 0
  419. p.Size = Vector3.new(1, 1, 1)
  420. p.BottomSurface = 0
  421. p.Transparency = 0.5
  422. p.FormFactor = "Custom"
  423. local mesh = Instance.new("BlockMesh", p)
  424. mesh.Scale = Vector3.new(1, 1, 1)
  425. coroutine.wrap(function()
  426. for i = 0, 15, 0.1 do
  427. wait(0.033333333333333)
  428. p.CFrame = p.CFrame * CFrame.new(0, 0.1, 0)
  429. mesh.Scale = mesh.Scale - Vector3.new(0.1, 0.1, 0.1)
  430. p.Transparency = p.Transparency + 0.025
  431. end
  432. p:Destroy()
  433. end)()
  434. end
  435. pickrandom = function(tablesa)
  436. local randomized = tablesa[math.random(1, #tablesa)]
  437. return randomized
  438. end
  439. sound = function(id, pitch, volume, par, last)
  440. local s = Instance.new("Sound", par or Torso)
  441. s.SoundId = "rbxassetid://" .. id
  442. s.Pitch = pitch or 1
  443. s.Volume = volume or 1
  444. wait()
  445. s:play()
  446. game.Debris:AddItem(s, last or 120)
  447. end
  448. clangy = function(cframe)
  449. wait(0.016666666666667)
  450. local clang = {}
  451. local dis = 0
  452. local part = Instance.new("Part", nil)
  453. part.CFrame = cframe
  454. part.Anchored = true
  455. part.CanCollide = false
  456. part.BrickColor = BrickColor.new("Crimson")
  457. part.FormFactor = "Custom"
  458. part.Name = "clanger"
  459. part.Size = Vector3.new(0.2, 0.2, 0.2)
  460. part.TopSurface = 10
  461. part.BottomSurface = 10
  462. part.RightSurface = 10
  463. part.LeftSurface = 10
  464. part.BackSurface = 10
  465. part.FrontSurface = 10
  466. part:BreakJoints()
  467. local mesh = Instance.new("BlockMesh", part)
  468. coroutine.wrap(function()
  469. for i = 1, 7 do
  470. do
  471. wait(0.016666666666667)
  472. dis = dis + 0.2
  473. local partc = part:clone()
  474. partc.Parent = workspace
  475. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  476. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  477. table.insert(clang, partc)
  478. end
  479. end
  480. for i,v in pairs(clang) do
  481. coroutine.wrap(function()
  482. for i = 1, 10 do
  483. wait(0.01)
  484. v.Transparency = v.Transparency + 0.1
  485. end
  486. v:destroy()
  487. end)()
  488. end
  489. end)()
  490. end
  491. so = function(id, par, vol, pit)
  492. coroutine.resume(coroutine.create(function()
  493. local sou = Instance.new("Sound", par or workspace)
  494. sou.Volume = vol
  495. sou.Pitch = pit or 1
  496. sou.SoundId = id
  497. swait()
  498. sou:play()
  499. game:GetService("Debris"):AddItem(sou, 6)
  500. end))
  501. end
  502. getclosest = function(obj, dis, player)
  503. if player.Torso.CFrame.p - obj.magnitude >= dis then
  504. do return not player end
  505. do
  506. local list = {}
  507. for i,v in pairs(workspace:GetChildren()) do
  508. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and v.Torso.Position - obj.magnitude <= dis then
  509. table.insert(list, v)
  510. end
  511. end
  512. do return list end
  513. -- DECOMPILER ERROR: 3 unprocessed JMP targets
  514. end
  515. end
  516. end
  517. tag = function(hum, player)
  518. local creator = Instance.new("ObjectValue", hum)
  519. creator.Value = player
  520. creator.Name = "creator"
  521. end
  522. untag = function(hum)
  523. if hum ~= nil then
  524. local tag = hum:findFirstChild("creator")
  525. if tag ~= nil then
  526. tag.Parent = nil
  527. end
  528. end
  529. end
  530. tagplayer = function(h)
  531. coroutine.wrap(function()
  532. tag(h, player)
  533. wait(1)
  534. untag(h)
  535. end)()
  536. end
  537. randomizer = function(percent)
  538. local randomized = math.random(0, 100)
  539. if randomized <= percent then
  540. return true
  541. else
  542. if percent <= randomized then
  543. return false
  544. end
  545. end
  546. end
  547. turncrit = function()
  548. coroutine.resume(coroutine.create(function()
  549. print("CRITICAL!")
  550. crit = true
  551. wait(0.25)
  552. crit = false
  553. end))
  554. end
  555. subtractstamina = function(k)
  556. if k <= stamina then
  557. stamina = stamina - k
  558. end
  559. end
  560. local weldBetween = function(a, b)
  561. local weldd = Instance.new("ManualWeld")
  562. weldd.Part0 = a
  563. weldd.Part1 = b
  564. weldd.C0 = CFrame.new()
  565. weldd.C1 = b.CFrame:inverse() * a.CFrame
  566. weldd.Parent = a
  567. return weldd
  568. end
  569. swait = function(num)
  570. if num == 0 or num == nil then
  571. game:service("RunService").Stepped:wait(0)
  572. else
  573. for i = 0, num do
  574. game:service("RunService").Stepped:wait(0)
  575. end
  576. end
  577. end
  578. nooutline = function(part)
  579. part.TopSurface = 10
  580. end
  581. part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  582. local fp = it("Part")
  583. fp.formFactor = formfactor
  584. fp.Parent = parent
  585. fp.Reflectance = reflectance
  586. fp.Transparency = transparency
  587. fp.CanCollide = false
  588. fp.Locked = true
  589. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  590. fp.Name = name
  591. fp.Size = size
  592. fp.Position = Character.Torso.Position
  593. nooutline(fp)
  594. fp.Material = material
  595. fp:BreakJoints()
  596. return fp
  597. end
  598. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  599. local mesh = it(Mesh)
  600. mesh.Parent = part
  601. if Mesh == "SpecialMesh" then
  602. mesh.MeshType = meshtype
  603. mesh.MeshId = meshid
  604. end
  605. mesh.Offset = offset
  606. mesh.Scale = scale
  607. return mesh
  608. end
  609. weld = function(parent, part0, part1, c0, c1)
  610. local weld = it("Weld")
  611. weld.Parent = parent
  612. weld.Part0 = part0
  613. weld.Part1 = part1
  614. weld.C0 = c0
  615. weld.C1 = c1
  616. return weld
  617. end
  618. local CFrameFromTopBack = function(at, top, back)
  619. local right = top:Cross(back)
  620. 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)
  621. end
  622. Triangle = function(a, b, c)
  623. local edg1 = c - a:Dot(b - a.unit)
  624. local edg2 = a - b:Dot(c - b.unit)
  625. local edg3 = b - c:Dot(a - c.unit)
  626. if edg1 <= b - a.magnitude and edg1 >= 0 then
  627. a = a
  628. else
  629. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  630.  
  631. if edg2 <= c - b.magnitude and edg2 >= 0 then
  632. a = b
  633. else
  634. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  635.  
  636. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  637.  
  638. if edg3 <= a - c.magnitude and edg3 >= 0 then
  639. a = c
  640. else
  641. assert(false, "unreachable")
  642. end
  643. end
  644. end
  645. local len1 = c - a:Dot(b - a.unit)
  646. local len2 = b - a.magnitude - len1
  647. local width = a + b - a.unit * len1 - c.magnitude
  648. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  649. local list = {}
  650. local TrailColor = "Dark grey"
  651. if len1 > 0.01 then
  652. local w1 = Instance.new("WedgePart", m)
  653. game:GetService("Debris"):AddItem(w1, 5)
  654. w1.Material = "SmoothPlastic"
  655. w1.FormFactor = "Custom"
  656. w1.BrickColor = BrickColor.new(TrailColor)
  657. w1.Transparency = 0
  658. w1.Reflectance = 0
  659. w1.Material = "SmoothPlastic"
  660. w1.CanCollide = false
  661. NoOutline(w1)
  662. local sz = Vector3.new(0.2, width, len1)
  663. w1.Size = sz
  664. local sp = Instance.new("SpecialMesh", w1)
  665. sp.MeshType = "Wedge"
  666. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  667. w1:BreakJoints()
  668. w1.Anchored = true
  669. w1.Parent = workspace
  670. w1.Transparency = 0.7
  671. table.insert(Effects, {w1, "Disappear", 0.01})
  672. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  673. table.insert(list, w1)
  674. end
  675. do
  676. if len2 > 0.01 then
  677. local w2 = Instance.new("WedgePart", m)
  678. game:GetService("Debris"):AddItem(w2, 5)
  679. w2.Material = "SmoothPlastic"
  680. w2.FormFactor = "Custom"
  681. w2.BrickColor = BrickColor.new(TrailColor)
  682. w2.Transparency = 0
  683. w2.Reflectance = 0
  684. w2.Material = "SmoothPlastic"
  685. w2.CanCollide = false
  686. NoOutline(w2)
  687. local sz = Vector3.new(0.2, width, len2)
  688. w2.Size = sz
  689. local sp = Instance.new("SpecialMesh", w2)
  690. sp.MeshType = "Wedge"
  691. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  692. w2:BreakJoints()
  693. w2.Anchored = true
  694. w2.Parent = workspace
  695. w2.Transparency = 0.7
  696. table.insert(Effects, {w2, "Disappear", 0.01})
  697. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  698. table.insert(list, w2)
  699. end
  700. do
  701. return unpack(list)
  702. end
  703. end
  704. end
  705. so = function(id, par, vol, pit)
  706. coroutine.resume(coroutine.create(function()
  707. local sou = Instance.new("Sound", par or workspace)
  708. sou.Volume = vol
  709. sou.Pitch = pit or 1
  710. sou.SoundId = id
  711. swait()
  712. sou:play()
  713. game:GetService("Debris"):AddItem(sou, 6)
  714. end))
  715. end
  716. clerp = function(a, b, t)
  717. local qa = {QuaternionFromCFrame(a)}
  718. local qb = {QuaternionFromCFrame(b)}
  719. local ax, ay, az = a.x, a.y, a.z
  720. local bx, by, bz = b.x, b.y, b.z
  721. local _t = 1 - t
  722. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  723. end
  724. local clerp = CFrame.new().lerp
  725. QuaternionFromCFrame = function(cf)
  726. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  727. local trace = m00 + m11 + m22
  728. if trace > 0 then
  729. local s = math.sqrt(1 + trace)
  730. local recip = 0.5 / s
  731. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  732. else
  733. do
  734. local i = 0
  735. if m00 < m11 then
  736. i = 1
  737. end
  738. if i == 0 and m00 or m11 < m22 then
  739. i = 2
  740. end
  741. if i == 0 then
  742. local s = math.sqrt(m00 - m11 - m22 + 1)
  743. local recip = 0.5 / s
  744. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  745. else
  746. do
  747. if i == 1 then
  748. local s = math.sqrt(m11 - m22 - m00 + 1)
  749. local recip = 0.5 / s
  750. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  751. else
  752. do
  753. if i == 2 then
  754. local s = math.sqrt(m22 - m00 - m11 + 1)
  755. local recip = 0.5 / s
  756. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  757. end
  758. end
  759. end
  760. end
  761. end
  762. end
  763. end
  764. end
  765. QuaternionToCFrame = function(px, py, pz, x, y, z, w)
  766. local xs, ys, zs = x + x, y + y, z + z
  767. local wx, wy, wz = w * xs, w * ys, w * zs
  768. local xx = x * xs
  769. local xy = x * ys
  770. local xz = x * zs
  771. local yy = y * ys
  772. local yz = y * zs
  773. local zz = z * zs
  774. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  775. end
  776. QuaternionSlerp = function(a, b, t)
  777. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  778. local startInterp, finishInterp = nil, nil
  779. if cosTheta >= 0.0001 then
  780. if 1 - cosTheta > 0.0001 then
  781. local theta = math.acos(cosTheta)
  782. local invSinTheta = 1 / math.sin(theta)
  783. startInterp = math.sin((1 - t) * theta) * invSinTheta
  784. finishInterp = math.sin(t * theta) * invSinTheta
  785. else
  786. do
  787. startInterp = 1 - t
  788. finishInterp = t
  789. if 1 + cosTheta > 0.0001 then
  790. local theta = math.acos(-cosTheta)
  791. local invSinTheta = 1 / math.sin(theta)
  792. startInterp = math.sin((t - 1) * theta) * invSinTheta
  793. finishInterp = math.sin(t * theta) * invSinTheta
  794. else
  795. do
  796. startInterp = t - 1
  797. finishInterp = t
  798. return a[1] * (startInterp) + b[1] * finishInterp, a[2] * (startInterp) + b[2] * finishInterp, a[3] * (startInterp) + b[3] * finishInterp, a[4] * (startInterp) + b[4] * finishInterp
  799. end
  800. end
  801. end
  802. end
  803. end
  804. end
  805. rayCast = function(Pos, Dir, Max, Ignore)
  806. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  807. end
  808. makegui = function(cframe, text)
  809. local a = math.random(-10, 10) / 100
  810. local c = Instance.new("Part")
  811. c.Transparency = 1
  812. Instance.new("BodyGyro").Parent = c
  813. c.Parent = workspace
  814. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  815. local f = Instance.new("BodyPosition")
  816. f.P = 2000
  817. f.D = 100
  818. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  819. f.position = c.Position + Vector3.new(0, 3, 0)
  820. f.Parent = c
  821. game:GetService("Debris"):AddItem(c, 6.5)
  822. c.CanCollide = false
  823. c.Parent = workspace
  824. c.CanCollide = false
  825. local bg = Instance.new("BillboardGui", c)
  826. bg.Adornee = c
  827. bg.Size = UDim2.new(1, 0, 1, 0)
  828. bg.StudsOffset = Vector3.new(0, 0, 0)
  829. bg.AlwaysOnTop = false
  830. local tl = Instance.new("TextLabel", bg)
  831. tl.BackgroundTransparency = 1
  832. tl.Size = UDim2.new(1, 0, 1, 0)
  833. tl.Text = text
  834. tl.Font = "SourceSansBold"
  835. tl.FontSize = "Size42"
  836. if crit == true then
  837. tl.TextColor3 = Color3.new(0.70588235294118, 0, 0)
  838. else
  839. tl.TextColor3 = Color3.new(255, 0.70588235294118, 0.2)
  840. end
  841. tl.TextStrokeTransparency = 0
  842. tl.TextScaled = true
  843. tl.TextWrapped = true
  844. coroutine.wrap(function()
  845. wait(2)
  846. for i = 1, 10 do
  847. fat.Event:wait()
  848. c.Transparency = 1
  849. tl.TextTransparency = tl.TextTransparency + 0.1
  850. end
  851. end)()
  852. end
  853. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, decreaseblock)
  854. if hit.Parent == nil then
  855. return
  856. end
  857. h = hit.Parent:FindFirstChild("Humanoid")
  858. for _,v in pairs(hit.Parent:children()) do
  859. if v:IsA("Humanoid") then
  860. h = v
  861. end
  862. end
  863. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  864. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  865. end
  866. if hit.Parent.className == "Hat" then
  867. hit = hit.Parent.Parent:findFirstChild("Head")
  868. end
  869. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  870. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  871. return
  872. end
  873. blocked = false
  874. block = hit.Parent:findFirstChild("Block")
  875. if block ~= nil then
  876. print(block.className)
  877. if block.className == "NumberValue" and block.Value > 0 then
  878. blocked = true
  879. if decreaseblock == nil then
  880. block.Value = block.Value - 1
  881. end
  882. end
  883. if block.className == "IntValue" and block.Value > 0 then
  884. blocked = true
  885. if decreaseblock ~= nil then
  886. block.Value = block.Value - 1
  887. end
  888. end
  889. end
  890. if blocked == false then
  891. local D = math.random(minim, maxim) * damagea.Value
  892. if h.Parent:FindFirstChild("Stats") then
  893. D = D / h.Parent:FindFirstChild("Stats").Defence.Value
  894. else
  895. end
  896. if not h.Parent:FindFirstChild("Stats") then
  897. do
  898. h.Health = h.Health - D
  899. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)))
  900. local D = math.random(minim, maxim) * damagea.Value
  901. if h.Parent:FindFirstChild("Stats") then
  902. D = D / h.Parent:FindFirstChild("Stats").Defence.Value
  903. else
  904. end
  905. if not h.Parent:FindFirstChild("Stats") then
  906. do
  907. h.Health = h.Health - D / 2
  908. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)))
  909. if Type == "Knockdown" then
  910. humanoid = hit.Parent.Humanoid
  911. humanoid.PlatformStand = true
  912. coroutine.resume(coroutine.create(function(Humanoid)
  913. fat.Event:wait()
  914. Humanoid.PlatformStand = false
  915. end), humanoid)
  916. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  917. local bodvol = Instance.new("BodyVelocity")
  918. bodvol.velocity = angle * knockback
  919. bodvol.P = 5000
  920. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  921. bodvol.Parent = hit
  922. rl = Instance.new("BodyAngularVelocity")
  923. rl.P = 3000
  924. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  925. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  926. rl.Parent = hit
  927. game:GetService("Debris"):AddItem(bodvol, 0.5)
  928. game:GetService("Debris"):AddItem(rl, 0.5)
  929. else
  930. do
  931. if Type == "Normal" then
  932. so("http://www.roblox.com/asset/?id=344936315", hit, 1, math.random(100, 200) / 100)
  933. vp = Instance.new("BodyVelocity")
  934. vp.P = 500
  935. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  936. if KnockbackType == 1 then
  937. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  938. else
  939. if KnockbackType == 2 then
  940. vp.velocity = Property.CFrame.lookVector * knockback
  941. end
  942. end
  943. if knockback > 0 then
  944. vp.Parent = hit.Parent.Torso
  945. end
  946. game:GetService("Debris"):AddItem(vp, 0.5)
  947. else
  948. if Type == "LaserShot" then
  949. so("http://www.roblox.com/asset/?id=201858072", hit, 1, math.random(100, 200) / 100)
  950. so("http://www.roblox.com/asset/?id=180204650", hit, 1, math.random(50, 100) / 100)
  951. so("http://www.roblox.com/asset/?id=151790502", hit, 1, math.random(100, 200) / 100)
  952. vp = Instance.new("BodyVelocity")
  953. vp.P = 500
  954. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  955. if KnockbackType == 1 then
  956. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  957. else
  958. if KnockbackType == 2 then
  959. vp.velocity = Property.CFrame.lookVector * knockback
  960. end
  961. end
  962. if knockback > 0 then
  963. vp.Parent = hit.Parent.Torso
  964. end
  965. game:GetService("Debris"):AddItem(vp, 0.5)
  966. else
  967. if Type == "Up" then
  968. local bodyVelocity = Instance.new("BodyVelocity")
  969. bodyVelocity.velocity = vt(0, 60, 0)
  970. bodyVelocity.P = 5000
  971. bodyVelocity.maxForce = Vector3.new(8000, 8000, 8000)
  972. bodyVelocity.Parent = hit
  973. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  974. rl = Instance.new("BodyAngularVelocity")
  975. rl.P = 3000
  976. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  977. rl.angularvelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  978. rl.Parent = hit
  979. game:GetService("Debris"):AddItem(rl, 0.5)
  980. else
  981. do
  982. if Type == "Snare" then
  983. bp = Instance.new("BodyPosition")
  984. bp.P = 2000
  985. bp.D = 100
  986. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  987. bp.position = hit.Parent.Torso.Position
  988. bp.Parent = hit.Parent.Torso
  989. game:GetService("Debris"):AddItem(bp, 1)
  990. else
  991. if Type == "Target" then
  992. so("http://www.roblox.com/asset/?id=199144144", hit, 1, math.random(150, 200) / 100)
  993. vp = Instance.new("BodyVelocity")
  994. vp.P = 500
  995. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  996. if KnockbackType == 1 then
  997. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  998. else
  999. if KnockbackType == 2 then
  1000. vp.velocity = Property.CFrame.lookVector * knockback
  1001. end
  1002. end
  1003. if knockback > 0 then
  1004. vp.Parent = hit.Parent.Torso
  1005. end
  1006. game:GetService("Debris"):AddItem(vp, 0.5)
  1007. end
  1008. end
  1009. debounce = Instance.new("BoolValue")
  1010. debounce.Name = "DebounceHit"
  1011. debounce.Parent = hit.Parent
  1012. debounce.Value = true
  1013. game:GetService("Debris"):AddItem(debounce, Delay)
  1014. c = Instance.new("ObjectValue")
  1015. c.Name = "creator"
  1016. c.Value = Player
  1017. c.Parent = h
  1018. game:GetService("Debris"):AddItem(c, 0.5)
  1019. CRIT = false
  1020. hitDeb = true
  1021. AttackPos = 6
  1022. end
  1023. end
  1024. end
  1025. end
  1026. end
  1027. end
  1028. end
  1029. end
  1030. end
  1031. end
  1032. end
  1033. end
  1034. end
  1035. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1036. for _,c in pairs(workspace:children()) do
  1037. local hum = c:findFirstChild("Humanoid")
  1038. if hum ~= nil then
  1039. local head = c:findFirstChild("Torso")
  1040. if head ~= nil then
  1041. local targ = head.Position - Part.Position
  1042. local mag = targ.magnitude
  1043. if mag <= magni and c.Name ~= Player.Name then
  1044. Damagefunc(head, mindam, maxdam, knock, Type, RootPart, 0.2, 1, 3, 1)
  1045. end
  1046. end
  1047. end
  1048. end
  1049. end
  1050. JumpEffect = function(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1051. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1052. prt.Anchored = true
  1053. prt.CanCollide = false
  1054. prt.CFrame = cframe * angles(math.rad(90), 0, 0)
  1055. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1056. game:GetService("Debris"):AddItem(prt, 10)
  1057. coroutine.resume(coroutine.create(function(Part, Mesh)
  1058. for i = 0, 1, delay do
  1059. fat.Event:wait()
  1060. Part.CFrame = Part.CFrame
  1061. Part.Transparency = i
  1062. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1063. end
  1064. Part.Parent = nil
  1065. end), prt, msh)
  1066. end
  1067. OrbEffect = function(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1068. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1069. prt.Anchored = true
  1070. prt.CanCollide = false
  1071. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1072. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1073. game:GetService("Debris"):AddItem(prt, 10)
  1074. coroutine.resume(coroutine.create(function(Part, Mesh)
  1075. for i = 0, 1, delay do
  1076. fat.Event:wait()
  1077. Part.CFrame = Part.CFrame
  1078. Part.Transparency = i
  1079. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1080. end
  1081. Part.Parent = nil
  1082. end), prt, msh)
  1083. end
  1084. BlockShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1085. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1086. prt.Anchored = true
  1087. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1088. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1089. game:GetService("Debris"):AddItem(prt, 10)
  1090. coroutine.resume(coroutine.create(function(Part, Mesh)
  1091. for i = 0, 1, delay do
  1092. fat.Event:wait()
  1093. Part.CFrame = Part.CFrame * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1094. Part.Transparency = i
  1095. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1096. end
  1097. Part.Parent = nil
  1098. end), prt, msh)
  1099. end
  1100. CylinderShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1101. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1102. prt.Anchored = true
  1103. prt.CFrame = cframe
  1104. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1105. game:GetService("Debris"):AddItem(prt, 10)
  1106. coroutine.resume(coroutine.create(function(Part, Mesh)
  1107. for i = 0, 1, delay do
  1108. fat.Event:wait()
  1109. Part.Transparency = i
  1110. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1111. end
  1112. Part.Parent = nil
  1113. end), prt, msh)
  1114. end
  1115. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1116. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1117. prt.Anchored = true
  1118. prt.CFrame = cframe
  1119. prt.Material = "Neon"
  1120. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1121. game:GetService("Debris"):AddItem(prt, 10)
  1122. coroutine.resume(coroutine.create(function(Part, Mesh)
  1123. for i = 0, 1, delay do
  1124. fat.Event:wait()
  1125. Part.Transparency = i
  1126. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1127. end
  1128. Part.Parent = nil
  1129. end), prt, msh)
  1130. end
  1131. Laser2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1132. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1133. prt.Anchored = true
  1134. prt.CFrame = cframe
  1135. prt.Material = "Neon"
  1136. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1137. game:GetService("Debris"):AddItem(prt, 10)
  1138. coroutine.resume(coroutine.create(function(Part, Mesh)
  1139. for i = 0, 1, delay do
  1140. fat.Event:wait()
  1141. Part.Transparency = i
  1142. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1143. end
  1144. Part.Parent = nil
  1145. end), prt, msh)
  1146. end
  1147. Laser3 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1148. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1149. prt.Anchored = true
  1150. prt.CFrame = cframe
  1151. prt.Material = "Neon"
  1152. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1153. game:GetService("Debris"):AddItem(prt, 10)
  1154. coroutine.resume(coroutine.create(function(Part, Mesh)
  1155. for i = 0, 1, delay do
  1156. fat.Event:wait()
  1157. Part.Transparency = i
  1158. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1159. end
  1160. Part.Parent = nil
  1161. end), prt, msh)
  1162. end
  1163. SphereShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1164. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1165. prt.Anchored = true
  1166. prt.CFrame = cframe
  1167. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1168. game:GetService("Debris"):AddItem(prt, 10)
  1169. coroutine.resume(coroutine.create(function(Part, Mesh)
  1170. for i = 0, 1, delay do
  1171. fat.Event:wait()
  1172. Part.Transparency = i
  1173. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1174. end
  1175. Part.Parent = nil
  1176. end), prt, msh)
  1177. end
  1178. SphereShockwave2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1179. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1180. prt.Anchored = true
  1181. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  1182. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1183. game:GetService("Debris"):AddItem(prt, 10)
  1184. coroutine.resume(coroutine.create(function(Part, Mesh)
  1185. for i = 0, 1, delay do
  1186. fat.Event:wait()
  1187. Part.Transparency = i
  1188. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1189. end
  1190. Part.Parent = nil
  1191. end), prt, msh)
  1192. end
  1193. Shockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1194. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1195. prt.Anchored = true
  1196. prt.CFrame = cframe
  1197. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1198. game:GetService("Debris"):AddItem(prt, 10)
  1199. coroutine.resume(coroutine.create(function(Part, Mesh)
  1200. for i = 0, 1, delay do
  1201. fat.Event:wait()
  1202. Part.CFrame = Part.CFrame
  1203. Part.Transparency = i
  1204. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1205. end
  1206. Part.Parent = nil
  1207. end), prt, msh)
  1208. end
  1209. canwalk = true
  1210. canidle = true
  1211. aimtorso = false
  1212. MMouse = mouse
  1213. gyro = Instance.new("BodyGyro")
  1214. gyro.Parent = nil
  1215. gyro.P = 10000000
  1216. gyro.D = 1000
  1217. gyro.MaxTorque = Vector3.new(0, 10000000, 0)
  1218. EquiporUnequip = function()
  1219. attack = true
  1220. if equipped == false then
  1221. equipped = true
  1222. so("http://roblox.com/asset/?id=200633077", Hitbox, 1, 0.8)
  1223. for i = 0, 1, 0.75 do
  1224. fat.Event:wait()
  1225. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.45)
  1226. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-30)), 0.45)
  1227. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.6)
  1228. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(15)), 0.6)
  1229. end
  1230. for i = 0, 1, 0.15 do
  1231. fat.Event:wait()
  1232. hammeraura.Pitch = 0 + 0.8 * i
  1233. hammeraura.Volume = 0 + 1 * i
  1234. EffectPart.Transparency = 1 - 2 * i
  1235. Effect2Part.Transparency = 1 - 2 * i
  1236. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.45)
  1237. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.45)
  1238. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.6)
  1239. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(210), math.rad(30), math.rad(30)), 0.6)
  1240. end
  1241. hammeraura.Pitch = 0.8
  1242. hammeraura.Volume = 1
  1243. Handleweld.Part0 = LeftArm
  1244. Handleweld.Part1 = Handle
  1245. Handleweld.C0 = cf(0, 0, -0.5) * angles(math.rad(-30), math.rad(-90), math.rad(0))
  1246. for i = 0, 1, 0.5 do
  1247. fat.Event:wait()
  1248. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.45)
  1249. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(45)), 0.45)
  1250. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.45)
  1251. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(135), math.rad(0), math.rad(-30)), 0.45)
  1252. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, -0.5) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.3)
  1253. end
  1254. attack=false
  1255. else
  1256. do
  1257. if equipped == true then
  1258. equipped = false
  1259. so("http://roblox.com/asset/?id=200633029", Hitbox, 1, 0.8)
  1260. for i = 0, 1, 0.75 do
  1261. fat.Event:wait()
  1262. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.45)
  1263. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-30)), 0.45)
  1264. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.6)
  1265. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(15)), 0.6)
  1266. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, -0.5) * angles(math.rad(-30), math.rad(-90), math.rad(0)), 0.3)
  1267. end
  1268. for i = 0, 1, 0.15 do
  1269. fat.Event:wait()
  1270. hammeraura.Pitch = 0.8 - 0.8 * i
  1271. hammeraura.Volume = 1 - 1 * i
  1272. EffectPart.Transparency = 0 + 2 * i
  1273. Effect2Part.Transparency = 0 + 2 * i
  1274. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.45)
  1275. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.45)
  1276. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.6)
  1277. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(210), math.rad(30), math.rad(30)), 0.6)
  1278. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, -0.5) * angles(math.rad(-30), math.rad(-90), math.rad(0)), 0.3)
  1279. end
  1280. hammeraura.Pitch = 0
  1281. hammeraura.Volume = 0
  1282. Handleweld.Part0 = Torso
  1283. Handleweld.Part1 = Handle
  1284. Handleweld.C0 = cf(-1.5, 0.5, 0.75) * angles(math.rad(-90), math.rad(-45), math.rad(90))
  1285. for i = 0, 1, 0.75 do
  1286. fat.Event:wait()
  1287. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.45)
  1288. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-30)), 0.45)
  1289. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.6)
  1290. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(15)), 0.6)
  1291. end
  1292. end
  1293. do
  1294. attack = false
  1295. end
  1296. end
  1297. end
  1298. end
  1299. unequipattackone = function()
  1300. attack = true
  1301. for i = 0, 1, 0.2 do
  1302. fat.Event:wait()
  1303. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(60)), 0.45)
  1304. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-45)), 0.45)
  1305. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(60), math.rad(0), math.rad(-60)), 0.45)
  1306. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-45)), 0.45)
  1307. end
  1308. con1 = LeftArm.Touched:connect(function(hit)
  1309. Damagefunc(hit, 4, 6, 5, "Normal", RootPart, 0.2, 1)
  1310. end)
  1311. so("http://roblox.com/asset/?id=200632136", LeftArm, 1, 1)
  1312. Torso.Velocity = RootPart.CFrame.lookVector * 25
  1313. for i = 0, 1, 0.25 do
  1314. fat.Event:wait()
  1315. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-60)), 0.45)
  1316. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(-10), math.rad(45)), 0.45)
  1317. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.45)
  1318. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(45)), 0.45)
  1319. end
  1320. con1:disconnect()
  1321. attack = false
  1322. end
  1323. unequipattacktwo = function()
  1324. canwalk = false
  1325. canidle = false
  1326. attack = true
  1327. Humanoid.WalkSpeed = 0 * speed.Value
  1328. for i = 0, 1, 0.15 do
  1329. fat.Event:wait()
  1330. Humanoid.WalkSpeed = 0 * speed.Value
  1331. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-30)), 0.45)
  1332. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(-10), math.rad(-30)), 0.45)
  1333. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.45)
  1334. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.25) * angles(math.rad(60), math.rad(0), math.rad(15)), 0.45)
  1335. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, -0.5) * angles(math.rad(-30), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45)
  1336. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * angles(math.rad(20), math.rad(-60), math.rad(0)) * angles(math.rad(-7.5), math.rad(0), math.rad(0)), 0.45)
  1337. end
  1338. con1 = RightLeg.Touched:connect(function(hit)
  1339. Damagefunc(hit, 4, 6, 5, "Normal", RootPart, 0.2, 1)
  1340. end)
  1341. so("http://roblox.com/asset/?id=200632211", RightLeg, 1, 1)
  1342. Torso.Velocity = RootPart.CFrame.lookVector * 25
  1343. for i = 0, 1, 0.2 do
  1344. fat.Event:wait()
  1345. Humanoid.WalkSpeed = 0 * speed.Value
  1346. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(15)), 0.45)
  1347. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(-10), math.rad(-15)), 0.45)
  1348. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(-45)), 0.45)
  1349. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(-15)), 0.45)
  1350. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, -0.5) * angles(math.rad(75), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45)
  1351. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * angles(math.rad(-20), math.rad(-60), math.rad(0)) * angles(math.rad(-7.5), math.rad(0), math.rad(0)), 0.45)
  1352. end
  1353. Humanoid.WalkSpeed = 16 * speed.Value
  1354. canwalk = true
  1355. canidle = true
  1356. con1:disconnect()
  1357. attack = false
  1358. end
  1359. unequipattackthree = function()
  1360. attack = true
  1361. for i = 0, 1, 0.15 do
  1362. fat.Event:wait()
  1363. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(math.rad(10), math.rad(0), math.rad(75)), 0.45)
  1364. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.45)
  1365. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.45)
  1366. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(-15)), 0.45)
  1367. end
  1368. con1 = RightArm.Touched:connect(function(hit)
  1369. Damagefunc(hit, 4, 6, 5, "Normal", RootPart, 0.2, 1)
  1370. end)
  1371. so("http://roblox.com/asset/?id=200632136", RightArm, 1, 0.8)
  1372. Torso.Velocity = RootPart.CFrame.lookVector * 25
  1373. for i = 0, 1, 0.2 do
  1374. fat.Event:wait()
  1375. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.45)
  1376. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(45)), 0.45)
  1377. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(75)), 0.45)
  1378. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-30)), 0.45)
  1379. end
  1380. con1:disconnect()
  1381. attack = false
  1382. end
  1383. unequipattackfour = function()
  1384. canidle = false
  1385. canwalk = false
  1386. attack = true
  1387. for i = 0, 1, 0.15 do
  1388. fat.Event:wait()
  1389. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.25) * angles(math.rad(20), math.rad(0), math.rad(-45)), 0.45)
  1390. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(30)), 0.45)
  1391. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.45)
  1392. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(45)), 0.45)
  1393. RH.C0 = clerp(RH.C0, cf(0.8, -0.75, -0.1) * angles(math.rad(-10), math.rad(75), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.45)
  1394. LH.C0 = clerp(LH.C0, cf(-1.25, -0.65, -0.25) * angles(math.rad(20), math.rad(-45), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45)
  1395. end
  1396. con1 = RightLeg.Touched:connect(function(hit)
  1397. Damagefunc(hit, 4, 6, 5, "Normal", RootPart, 0.2, 1)
  1398. end)
  1399. con2 = LeftLeg.Touched:connect(function(hit)
  1400. Damagefunc(hit, 4, 6, 5, "Normal", RootPart, 0.2, 1)
  1401. end)
  1402. so("http://roblox.com/asset/?id=200632370", Torso, 1, 1)
  1403. for i = 0, 1, 0.12 do
  1404. fat.Event:wait()
  1405. Torso.Velocity = RootPart.CFrame.lookVector * 25
  1406. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1) * angles(math.rad(-10), math.rad(0), math.rad(45 + 360 * i)), 0.45)
  1407. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45)
  1408. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.45)
  1409. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.45)
  1410. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-75), math.rad(0), math.rad(0)), 0.45)
  1411. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-75), math.rad(0), math.rad(0)), 0.45)
  1412. end
  1413. con1:disconnect()
  1414. con2:disconnect()
  1415. canidle = true
  1416. canwalk = true
  1417. attack = false
  1418. end
  1419. equipattackone = function()
  1420. attack = true
  1421. for i = 0, 1, 0.08 do
  1422. fat.Event:wait()
  1423. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.3)
  1424. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(-5), math.rad(-60)), 0.3)
  1425. RW.C0 = clerp(RW.C0, CFrame.new(0.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-75)), 0.3)
  1426. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.25) * angles(math.rad(165), math.rad(30), math.rad(-60)), 0.3)
  1427. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, -1) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.3)
  1428. end
  1429. con1 = Hitbox.Touched:connect(function(hit)
  1430. Damagefunc(hit, 5, 10, 5, "Normal", RootPart, 0.2, 1)
  1431. end)
  1432. so("http://roblox.com/asset/?id=203691447", Hitbox, 1, 0.9)
  1433. for i = 0, 1, 0.08 do
  1434. fat.Event:wait()
  1435. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-90)), 0.3)
  1436. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(75)), 0.3)
  1437. RW.C0 = clerp(RW.C0, CFrame.new(0.75, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-45)), 0.3)
  1438. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.25) * angles(math.rad(255), math.rad(90), math.rad(-165)), 0.3)
  1439. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1.5, -0.5) * angles(math.rad(-120), math.rad(0), math.rad(0)), 0.3)
  1440. end
  1441. con1:disconnect()
  1442. attack = false
  1443. end
  1444. equipattacktwo = function()
  1445. attack = true
  1446. for i = 0, 1, 0.08 do
  1447. fat.Event:wait()
  1448. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-105)), 0.3)
  1449. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(75)), 0.3)
  1450. RW.C0 = clerp(RW.C0, CFrame.new(0.75, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-45)), 0.3)
  1451. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.25) * angles(math.rad(235), math.rad(90), math.rad(-165)), 0.3)
  1452. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1.5, -0.5) * angles(math.rad(-120), math.rad(0), math.rad(0)), 0.3)
  1453. end
  1454. con1 = Hitbox.Touched:connect(function(hit)
  1455. Damagefunc(hit, 5, 10, 5, "Normal", RootPart, 0.2, 1)
  1456. end)
  1457. so("http://roblox.com/asset/?id=203691467", Hitbox, 1, 0.9)
  1458. for i = 0, 1, 0.08 do
  1459. fat.Event:wait()
  1460. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
  1461. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(-5), math.rad(-45)), 0.3)
  1462. RW.C0 = clerp(RW.C0, CFrame.new(0.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.3)
  1463. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.25) * angles(math.rad(175), math.rad(30), math.rad(-105)), 0.3)
  1464. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1.5, -0.5) * angles(math.rad(-120), math.rad(0), math.rad(0)), 0.3)
  1465. end
  1466. con1:disconnect()
  1467. attack = false
  1468. end
  1469. equipattackthree = function()
  1470. attack = true
  1471. for i = 0, 1, 0.08 do
  1472. fat.Event:wait()
  1473. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.3)
  1474. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.3)
  1475. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(75), math.rad(0), math.rad(-45)), 0.3)
  1476. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(75), math.rad(0), math.rad(45)), 0.3)
  1477. Handleweld.C0 = clerp(Handleweld.C0, cf(-1, -0.6, 0) * angles(math.rad(-90), math.rad(45), math.rad(90)), 0.3)
  1478. end
  1479. con1 = Hitbox.Touched:connect(function(hit)
  1480. Damagefunc(hit, 5, 10, 5, "Normal", RootPart, 0.2, 1)
  1481. end)
  1482. for i = 1, 3 do
  1483. so("http://roblox.com/asset/?id=203691492", Hitbox, 1, 0.9)
  1484. for i = 0, 1, 0.1 do
  1485. fat.Event:wait()
  1486. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30 - 360 * i)), 0.3)
  1487. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.3)
  1488. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(75), math.rad(0), math.rad(-45)), 0.3)
  1489. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(75), math.rad(0), math.rad(45)), 0.3)
  1490. Handleweld.C0 = clerp(Handleweld.C0, cf(-1, -0.6, 0) * angles(math.rad(-90), math.rad(45), math.rad(90)), 0.3)
  1491. end
  1492. end
  1493. con1:disconnect()
  1494. attack = false
  1495. end
  1496. equipattackfour = function()
  1497. attack = true
  1498. for i = 0, 1, 0.08 do
  1499. fat.Event:wait()
  1500. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1501. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  1502. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(135), math.rad(0), math.rad(-45)), 0.3)
  1503. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(135), math.rad(0), math.rad(45)), 0.3)
  1504. Handleweld.C0 = clerp(Handleweld.C0, cf(0.5, -0.25, 0) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.3)
  1505. end
  1506. con1 = Hitbox.Touched:connect(function(hit)
  1507. Damagefunc(hit, 5, 10, 5, "Normal", RootPart, 0.2, 1)
  1508. end)
  1509. so("http://roblox.com/asset/?id=203691467", Hitbox, 1, 1.1)
  1510. for i = 0, 1, 0.08 do
  1511. fat.Event:wait()
  1512. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1513. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.3)
  1514. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.25, -0.5) * angles(math.rad(45), math.rad(0), math.rad(-45)), 0.3)
  1515. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.25, -0.5) * angles(math.rad(45), math.rad(0), math.rad(45)), 0.3)
  1516. Handleweld.C0 = clerp(Handleweld.C0, cf(0.5, -0.25, -0.5) * angles(math.rad(-30), math.rad(30), math.rad(-45)), 0.3)
  1517. end
  1518. con1:disconnect()
  1519. attack = false
  1520. end
  1521. Ability1 = function()
  1522. attack = true
  1523. holdz = true
  1524. local prepare = 1
  1525. damagebonus = 1
  1526. gyro.Parent = RootPart
  1527. for i = 0, 1, 0.15 do
  1528. fat.Event:wait()
  1529. Humanoid.WalkSpeed = 8 * speed.Value
  1530. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.3)
  1531. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(60)), 0.3)
  1532. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(60), math.rad(0), math.rad(-45)), 0.3)
  1533. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(60), math.rad(0), math.rad(45)), 0.3)
  1534. Handleweld.C0 = clerp(Handleweld.C0, cf(-1, -0.6, 0) * angles(math.rad(-90), math.rad(45), math.rad(90)), 0.3)
  1535. end
  1536. so("http://roblox.com/asset/?id=2101137", Hitbox, 1, math.random(100, 150) / 100)
  1537. while holdz == true do
  1538. do
  1539. for i = 0, 1, 0.5 do
  1540. fat.Event:wait()
  1541. Humanoid.WalkSpeed = 8 * speed.Value
  1542. BlockShockwave(TorsoColor, cf(Effect2Part.Position), 0.1, 0.1, 0.1, 0.5, 0.5, 0.5, 0.1)
  1543. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0 + prepare), math.rad(0), math.rad(-75 - prepare)), 0.3)
  1544. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(60)), 0.3)
  1545. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(60), math.rad(0), math.rad(-45 + prepare * 1.5)), 0.3)
  1546. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(60), math.rad(0), math.rad(45 + prepare * 1.5)), 0.3)
  1547. Handleweld.C0 = clerp(Handleweld.C0, cf(-1, -0.6, 0) * angles(math.rad(-90), math.rad(45), math.rad(90)), 0.3)
  1548. end
  1549. end
  1550. prepare = prepare + 1
  1551. damagebonus = damagebonus + 1
  1552. print(damagebonus)
  1553. if holdz == false or damagebonus == 20 then
  1554. damagebonus = damagebonus / 2
  1555. holdz = false
  1556. print("Damage capability multiplied by " .. damagebonus .. ".")
  1557. end
  1558. end
  1559. if holdz == false or damagebonus == 10 then
  1560. holdz = false
  1561. con1 = Hitbox.Touched:connect(function(hit)
  1562. Damagefunc(hit, 5, 5 * (damagebonus / 2), 5, "Normal", RootPart, 0.2, 1)
  1563. end)
  1564. so("http://roblox.com/asset/?id=203691492", Hitbox, 1, 1.1)
  1565. for i = 0, 1, 0.08 do
  1566. fat.Event:wait()
  1567. BlockShockwave(TorsoColor, cf(Effect2Part.Position), 0.1, 0.1, 0.1, 0.5, 0.5, 0.5, 0.1)
  1568. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30 + 360 * i)), 0.3)
  1569. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.3)
  1570. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(75), math.rad(0), math.rad(-45)), 0.3)
  1571. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(75), math.rad(0), math.rad(45)), 0.3)
  1572. Handleweld.C0 = clerp(Handleweld.C0, cf(-1, -0.6, 0) * angles(math.rad(-90), math.rad(45), math.rad(90)), 0.3)
  1573. end
  1574. so("http://roblox.com/asset/?id=203691467", Hitbox, 1, 1.1)
  1575. for i = 0, 1, 0.16 do
  1576. fat.Event:wait()
  1577. if damagebonus == 10 then
  1578. so("http://roblox.com/asset/?id=378352088", Hitbox, 0.25, math.random(120, 140) / 100)
  1579. so("http://roblox.com/asset/?id=340143970", Hitbox, 0.25, math.random(120, 140) / 100)
  1580. local spread = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  1581. local MainPos = Hitbox.Position
  1582. local MainPos2 = MMouse.Hit.p + spread
  1583. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1584. local speed = 0
  1585. local num = 300
  1586. local dropspeed = 0
  1587. coroutine.resume(coroutine.create(function()
  1588. repeat
  1589. fat.Event:wait()
  1590. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, ShotTarget.Parent)
  1591. local mag = MainPos - pos.magnitude
  1592. Laser(TorsoColor, CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.175, 0, -0.175, 0.15)
  1593. MainPos = MainPos + MouseLook.lookVector * speed
  1594. num = num - 1
  1595. speed = speed + 0.01
  1596. dropspeed = dropspeed - 0.01
  1597. MouseLook = MouseLook * angles(math.rad(dropspeed), 0, 0)
  1598. if speed >= 1 then
  1599. speed = 1
  1600. end
  1601. if hit ~= nil then
  1602. num = 0
  1603. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1604. refpart.Anchored = true
  1605. refpart.CFrame = cf(pos)
  1606. game:GetService("Debris"):AddItem(refpart, 2)
  1607. so("http://roblox.com/asset/?id=114488148", refpart, 0.5, math.random(120, 140) / 100)
  1608. so("http://roblox.com/asset/?id=340143964", refpart, 0.5, math.random(120, 140) / 100)
  1609. so("http://roblox.com/asset/?id=340143970", refpart, 0.5, math.random(120, 140) / 100)
  1610. Damagefunc(hit, 4, 8, 10, "LaserShot", RootPart, 0)
  1611. MagniDamage(refpart, 2.5, 2, 4, 5, "LaserShot")
  1612. for i = 1, math.random(2, 4) do
  1613. OrbEffect(TorsoColor, cf(refpart.Position), 0.1, 0.1, 0.1, 0.25, 0.25, 0.25, 0.075)
  1614. BlockShockwave(TorsoColor, cf(refpart.Position), 1, 1, 1, 0.25, 0.25, 0.25, 0.075)
  1615. end
  1616. end
  1617. do
  1618. if num <= 0 then
  1619. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1620. refpart.Anchored = true
  1621. refpart.CFrame = cf(MainPos)
  1622. game:GetService("Debris"):AddItem(refpart, 2)
  1623. so("http://roblox.com/asset/?id=114488148", refpart, 0.5, math.random(120, 140) / 100)
  1624. so("http://roblox.com/asset/?id=340143964", refpart, 0.5, math.random(120, 140) / 100)
  1625. so("http://roblox.com/asset/?id=340143970", refpart, 0.5, math.random(120, 140) / 100)
  1626. MagniDamage(refpart, 2.5, 2, 4, 5, "LaserShot")
  1627. for i = 1, math.random(2, 4) do
  1628. OrbEffect(TorsoColor, cf(refpart.Position), 0.1, 0.1, 0.1, 0.25, 0.25, 0.25, 0.075)
  1629. BlockShockwave(TorsoColor, cf(refpart.Position), 1, 1, 1, 0.25, 0.25, 0.25, 0.075)
  1630. end
  1631. end
  1632. end
  1633. until num <= 0
  1634. end))
  1635. end
  1636. do
  1637. do
  1638. Humanoid.WalkSpeed = 8 * speed.Value
  1639. BlockShockwave(TorsoColor, cf(Effect2Part.Position), 0.1, 0.1, 0.1, 0.5, 0.5, 0.5, 0.1)
  1640. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.3)
  1641. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.15)
  1642. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(75), math.rad(0), math.rad(-45)), 0.3)
  1643. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(75), math.rad(0), math.rad(45)), 0.3)
  1644. Handleweld.C0 = clerp(Handleweld.C0, cf(-1, -0.6, 0) * angles(math.rad(-90), math.rad(45), math.rad(90)), 0.3)
  1645. -- DECOMPILER ERROR at PC816: LeaveBlock: unexpected jumping out DO_STMT
  1646.  
  1647. end
  1648. end
  1649. end
  1650. end
  1651. gyro.Parent = nil
  1652. con1:disconnect()
  1653. Humanoid.WalkSpeed = 16 * speed.Value
  1654. attack = false
  1655. end
  1656. Ability2 = function()
  1657. attack = true
  1658. Humanoid.Jump = true
  1659. for i = 0, 1, 0.12 do
  1660. fat.Event:wait()
  1661. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5 - 5 * i) * angles(math.rad(20 + 360 * i), math.rad(0), math.rad(0)), 0.3)
  1662. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  1663. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(165), math.rad(0), math.rad(-45)), 0.3)
  1664. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(165), math.rad(0), math.rad(45)), 0.3)
  1665. Handleweld.C0 = clerp(Handleweld.C0, cf(0.5, -0.25, 0) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.3)
  1666. end
  1667. Humanoid.WalkSpeed = 0 * speed.Value
  1668. so("http://roblox.com/asset/?id=203691492", Hitbox, 1, 1.1)
  1669. canwalk = false
  1670. canidle = false
  1671. for i = 0, 1, 0.24 do
  1672. fat.Event:wait()
  1673. Humanoid.WalkSpeed = 0 * speed.Value
  1674. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.45)
  1675. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45)
  1676. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(45), math.rad(0), math.rad(-45)), 0.45)
  1677. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(45), math.rad(0), math.rad(45)), 0.45)
  1678. RH.C0 = clerp(RH.C0, cf(1, 0, -0.5) * angles(math.rad(20), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45)
  1679. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-45), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45)
  1680. Handleweld.C0 = clerp(Handleweld.C0, cf(0.5, -0.25, -0.5) * angles(math.rad(-30), math.rad(30), math.rad(-45)), 0.45)
  1681. end
  1682. hitfloor = nil
  1683. while hitfloor == nil do
  1684. local hit, pos = rayCast(Hitbox.Position, CFrame.new(Hitbox.Position, Hitbox.Position - Vector3.new(0, 1, 0)).lookVector, 5, Character)
  1685. for i = 0, 1, 0.24 do
  1686. do
  1687. fat.Event:wait()
  1688. Humanoid.WalkSpeed = 0 * speed.Value
  1689. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.45)
  1690. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45)
  1691. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(45), math.rad(0), math.rad(-45)), 0.45)
  1692. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(45), math.rad(0), math.rad(45)), 0.45)
  1693. RH.C0 = clerp(RH.C0, cf(1, 0, -0.5) * angles(math.rad(20), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45)
  1694. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-45), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45)
  1695. Handleweld.C0 = clerp(Handleweld.C0, cf(0.5, -0.25, -0.5) * angles(math.rad(-30), math.rad(30), math.rad(-45)), 0.45)
  1696. end
  1697. end
  1698. end
  1699. do
  1700. wait()
  1701. actualstartingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1702. actualstartingrefpart.Anchored = true
  1703. actualstartingrefpart.CFrame = RootPart.CFrame * cf(0, 0, inc)
  1704. game:GetService("Debris"):AddItem(actualstartingrefpart, 5)
  1705. local inc = -5
  1706. for i = 1, 5 do
  1707. Humanoid.WalkSpeed = 0 * speed.Value
  1708. startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1709. startingrefpart.Anchored = true
  1710. startingrefpart.CFrame = actualstartingrefpart.CFrame * cf(0, 0, inc)
  1711. game:GetService("Debris"):AddItem(startingrefpart, 3)
  1712. local hit, pos = rayCast(startingrefpart.Position, CFrame.new(startingrefpart.Position, startingrefpart.Position - Vector3.new(0, 1, 0)).lookVector, 200, Character)
  1713. if hit ~= nil then
  1714. floor = true
  1715. local Color = hit.BrickColor
  1716. local Materials = hit.Material
  1717. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1718. refpart.Anchored = true
  1719. refpart.CFrame = cf(pos)
  1720. game:GetService("Debris"):AddItem(refpart, 3)
  1721. so("http://roblox.com/asset/?id=203691510", refpart, 1, math.random(80, 120) / 100)
  1722. for i = 1, 10 do
  1723. local actualgroundpart = part(3, workspace, "SmoothPlastic", 0, 0, Color, "Ground", vt(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100))
  1724. actualgroundpart.Anchored = true
  1725. actualgroundpart.Material = Materials
  1726. actualgroundpart.CanCollide = true
  1727. actualgroundpart.Friction = 1
  1728. actualgroundpart.CFrame = cf(refpart.Position) * cf(math.random(-250, 250) / 100, 0, math.random(-250, 250) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1729. game:GetService("Debris"):AddItem(actualgroundpart, 5.5)
  1730. coroutine.resume(coroutine.create(function()
  1731. wait(5)
  1732. while 1 do
  1733. swait()
  1734. actualgroundpart.Transparency = actualgroundpart.Transparency + 0.05
  1735. end
  1736. actualgroundpart:Destroy()
  1737. end))
  1738. end
  1739. BlockShockwave(Color, cf(refpart.Position), 1, 1, 1, 1, 1, 1, 0.05)
  1740. SphereShockwave(Color, cf(refpart.Position), 0.1, 0.1, 0.1, 0.5, 1.5, 0.5, 0.025)
  1741. JumpEffect(Color, cf(refpart.Position), 0.5, 0.5, 1, 0.25, 0.25, 0.25, 0.025)
  1742. MagniDamage(refpart, 10, 10, 20, 10, "Normal")
  1743. end
  1744. do
  1745. inc = inc - 5
  1746. for i = 0, 1, 15 do
  1747. fat.Event:wait()
  1748. Humanoid.WalkSpeed = 0 * speed.Value
  1749. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.45)
  1750. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45)
  1751. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(45), math.rad(0), math.rad(-45)), 0.45)
  1752. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(45), math.rad(0), math.rad(45)), 0.45)
  1753. RH.C0 = clerp(RH.C0, cf(1, 0, -0.5) * angles(math.rad(20), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45)
  1754. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-45), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45)
  1755. Handleweld.C0 = clerp(Handleweld.C0, cf(0.5, -0.25, -0.5) * angles(math.rad(-30), math.rad(30), math.rad(-45)), 0.45)
  1756. end
  1757. -- DECOMPILER ERROR at PC1218: LeaveBlock: unexpected jumping out DO_STMT
  1758.  
  1759. end
  1760. end
  1761. canwalk = true
  1762. canidle = true
  1763. Humanoid.WalkSpeed = 16 * speed.Value
  1764. attack = false
  1765. end
  1766. end
  1767. Ability3 = function()
  1768. attack = true
  1769. so("http://roblox.com/asset/?id=200633077", Hitbox, 1, 1.2)
  1770. for i = 0, 1, 0.12 do
  1771. fat.Event:wait()
  1772. Effect2Part.Transparency = 0 + 2 * i
  1773. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * angles(math.rad(10), math.rad(0), math.rad(-15)), 0.3)
  1774. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(15)), 0.3)
  1775. RW.C0 = clerp(RW.C0, CFrame.new(0.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-75)), 0.3)
  1776. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-15)), 0.3)
  1777. Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1778. end
  1779. gyro.Parent = RootPart
  1780. do
  1781. for i = 1, 5 do
  1782. so("http://roblox.com/asset/?id=378352088", Effect2Part, 0.5, math.random(80, 120) / 100)
  1783. so("http://roblox.com/asset/?id=340143970", Effect2Part, 0.5, math.random(80, 120) / 100)
  1784. local spread = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  1785. local MainPos = Effect2Part.Position
  1786. local MainPos2 = MMouse.Hit.p + spread
  1787. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1788. local speed = 10
  1789. local num = 30
  1790. coroutine.resume(coroutine.create(function()
  1791. repeat
  1792. fat.Event:wait()
  1793. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, ShotTarget.Parent)
  1794. local mag = (MainPos - pos).magnitude
  1795. Laser(TorsoColor, CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.175, 0, -0.175, 0.15)
  1796. MainPos = MainPos + MouseLook.lookVector * speed
  1797. num = num - 1
  1798. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1799. if hit ~= nil then
  1800. num = 0
  1801. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1802. refpart.Anchored = true
  1803. refpart.CFrame = cf(pos)
  1804. game:GetService("Debris"):AddItem(refpart, 2)
  1805. so("http://roblox.com/asset/?id=114488148", refpart, 0.5, math.random(80, 120) / 100)
  1806. so("http://roblox.com/asset/?id=340143964", refpart, 0.5, math.random(80, 120) / 100)
  1807. so("http://roblox.com/asset/?id=340143970", refpart, 0.5, math.random(80, 120) / 100)
  1808. Damagefunc(hit, 5, 10, 10, "LaserShot", RootPart, 0)
  1809. MagniDamage(refpart, 10, 5, 10, 5, "LaserShot")
  1810. for i = 1, math.random(2, 4) do
  1811. OrbEffect(TorsoColor, cf(refpart.Position), 0.1, 0.1, 0.1, 1, 1, 1, 0.075)
  1812. BlockShockwave(TorsoColor, cf(refpart.Position), 1, 1, 1, 1, 1, 1, 0.075)
  1813. end
  1814. end
  1815. do
  1816. if num <= 0 then
  1817. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  1818. refpart.Anchored = true
  1819. refpart.CFrame = cf(pos)
  1820. game:GetService("Debris"):AddItem(refpart, 2)
  1821. so("http://roblox.com/asset/?id=114488148", refpart, 0.5, math.random(80, 120) / 100)
  1822. so("http://roblox.com/asset/?id=340143964", refpart, 0.5, math.random(80, 120) / 100)
  1823. so("http://roblox.com/asset/?id=340143970", refpart, 0.5, math.random(80, 120) / 100)
  1824. MagniDamage(refpart, 10, 5, 10, 5, "LaserShot")
  1825. for i = 1, math.random(2, 4) do
  1826. OrbEffect(TorsoColor, cf(refpart.Position), 0.1, 0.1, 0.1, 1, 1, 1, 0.075)
  1827. BlockShockwave(TorsoColor, cf(refpart.Position), 1, 1, 1, 1, 1, 1, 0.075)
  1828. end
  1829. end
  1830. end
  1831. until num <= 0
  1832. end))
  1833. for i = 1, math.random(2, 4) do
  1834. BlockShockwave(TorsoColor, cf(Effect2Part.Position), 0.1, 0.1, 0.1, 0.5, 0.5, 0.5, 0.125)
  1835. end
  1836. for i = 0, 1, 0.24 do
  1837. fat.Event:wait()
  1838. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
  1839. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-15)), 0.3)
  1840. RW.C0 = clerp(RW.C0, CFrame.new(0.5, 0.5, -0.5) * angles(math.rad(105), math.rad(0), math.rad(-90)), 0.3)
  1841. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, 0) * angles(math.rad(105), math.rad(0), math.rad(15)), 0.3)
  1842. Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1843. end
  1844. for i = 0, 1, 0.24 do
  1845. fat.Event:wait()
  1846. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * angles(math.rad(10), math.rad(0), math.rad(-15)), 0.3)
  1847. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(15)), 0.3)
  1848. RW.C0 = clerp(RW.C0, CFrame.new(0.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-75)), 0.3)
  1849. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-15)), 0.3)
  1850. Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1851. end
  1852. end
  1853. end
  1854. gyro.Parent = nil
  1855. so("http://roblox.com/asset/?id=200633029", Hitbox, 1, 1.2)
  1856. for i = 0, 1, 0.12 do
  1857. fat.Event:wait()
  1858. Effect2Part.Transparency = 1 - 2 * i
  1859. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * angles(math.rad(10), math.rad(0), math.rad(-15)), 0.3)
  1860. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(15)), 0.3)
  1861. RW.C0 = clerp(RW.C0, CFrame.new(0.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-75)), 0.3)
  1862. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-15)), 0.3)
  1863. Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1864. end
  1865. attack = false
  1866. end
  1867. mouse.Button1Down:connect(function()
  1868. if attack == false then
  1869. if attacktype == 1 then
  1870. attacktype = 2
  1871. if equipped == false then
  1872. unequipattackone()
  1873. else
  1874. if equipped == true then
  1875. equipattackone()
  1876. end
  1877. end
  1878. else
  1879. if attacktype == 2 then
  1880. attacktype = 3
  1881. if equipped == false then
  1882. unequipattacktwo()
  1883. else
  1884. if equipped == true then
  1885. equipattacktwo()
  1886. end
  1887. end
  1888. else
  1889. if attacktype == 3 then
  1890. attacktype = 4
  1891. if equipped == false then
  1892. unequipattackthree()
  1893. else
  1894. if equipped == true then
  1895. equipattackthree()
  1896. end
  1897. end
  1898. else
  1899. if attacktype == 4 then
  1900. attacktype = 1
  1901. if equipped == false then
  1902. unequipattackfour()
  1903. else
  1904. if equipped == true then
  1905. equipattackfour()
  1906. end
  1907. end
  1908. end
  1909. end
  1910. end
  1911. end
  1912. end
  1913. coroutine.resume(coroutine.create(function()
  1914. for i = 1, 50 do
  1915. if attack == false then
  1916. fat.Event:wait()
  1917. end
  1918. end
  1919. if attack == false then
  1920. attacktype = 1
  1921. end
  1922. end))
  1923. end)
  1924. idletype = 1
  1925. mouse.KeyDown:connect(function(k)
  1926. k = k:lower()
  1927. if k == "{" and attack == false then
  1928. idle = 300
  1929. idletype = math.random(1, 2)
  1930. end
  1931. if k == "}" and attack == false then
  1932. EquiporUnequip()
  1933. end
  1934. if k == ":" and attack == false and equipped == true and co1 <= cooldown1 and skill1stam <= stamina then
  1935. cooldown1 = 0
  1936. subtractstamina(skill1stam)
  1937. Ability1()
  1938. end
  1939. if k == ">" and attack == false and equipped == true and co2 <= cooldown2 and skill2stam <= stamina then
  1940. cooldown2 = 0
  1941. subtractstamina(skill2stam)
  1942. Ability2()
  1943. end
  1944. if k == "<" and attack == false and equipped == true and co3 <= cooldown3 and skill3stam <= stamina then
  1945. cooldown3 = 0
  1946. subtractstamina(skill3stam)
  1947. Ability3()
  1948. end
  1949. end)
  1950. mouse.KeyUp:connect(function(k)
  1951. k = k:lower()
  1952. if k == "*" and holdz == true then
  1953. holdz = false
  1954. end
  1955. end)
  1956. updateskills = function()
  1957. if cooldown1 <= co1 then
  1958. cooldown1 = cooldown1 + 0.033333333333333
  1959. end
  1960. if cooldown2 <= co2 then
  1961. cooldown2 = cooldown2 + 0.033333333333333
  1962. end
  1963. if cooldown3 <= co3 then
  1964. cooldown3 = cooldown3 + 0.033333333333333
  1965. end
  1966. if cooldown4 <= co4 then
  1967. cooldown4 = cooldown4 + 0.033333333333333
  1968. end
  1969. if stamina <= skill1stam then
  1970. bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1971. else
  1972. bar4.BackgroundColor3 = skillcolorscheme
  1973. end
  1974. if stamina <= skill2stam then
  1975. bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1976. else
  1977. bar3.BackgroundColor3 = skillcolorscheme
  1978. end
  1979. if stamina <= skill3stam then
  1980. bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1981. else
  1982. bar1.BackgroundColor3 = skillcolorscheme
  1983. end
  1984. if stamina <= skill4stam then
  1985. bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1986. else
  1987. bar2.BackgroundColor3 = skillcolorscheme
  1988. end
  1989. if stamina <= maxstamina then
  1990. stamina = stamina + recovermana / 30
  1991. end
  1992. end
  1993. game:GetService("RunService").Heartbeat:connect(function()
  1994. updateskills()
  1995. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.5)
  1996. staminacover:TweenSize(ud(1 * (stamina / maxstamina), 0, 1, 0), "Out", "Quad", 0.5)
  1997. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  1998. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  1999. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  2000. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  2001. end)
  2002. local sine = 0
  2003. local change = 1
  2004. local val = 0
  2005. fat.Event:connect(function()
  2006. gyro.CFrame = CFrame.new(Vector3.new(), mouse.Hit.p - RootPart.CFrame.p.unit * 100)
  2007. sine = sine + change
  2008. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2009. local velderp = RootPart.Velocity.y
  2010. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2011. if equipped == true or equipped == false then
  2012. if Anim == "Idle" and attack == false then
  2013. idle = idle + 1
  2014. else
  2015. idle = 0
  2016. end
  2017. if idle == 300 and attack == false then
  2018. idletype = math.random(1, 2)
  2019. end
  2020. if RootPart.Velocity.y > 1 and hitfloor == nil then
  2021. Anim = "Jump"
  2022. if attack == false and equipped == false then
  2023. fat.Event:wait()
  2024. Humanoid.WalkSpeed = 16 * speed.Value
  2025. change = 2
  2026. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2027. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2028. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.3)
  2029. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(-15)), 0.3)
  2030. RH.C0 = clerp(RH.C0, cf(1, -0.5, -0.5) * angles(math.rad(-15), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2031. LH.C0 = clerp(LH.C0, cf(-1, -0.75, -0.25) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2032. Handleweld.C0 = clerp(Handleweld.C0, cf(-1.5, 0.5, 0.75) * angles(math.rad(-90), math.rad(-45), math.rad(90)), 0.15)
  2033. else
  2034. if attack == false and equipped == true then
  2035. fat.Event:wait()
  2036. Humanoid.WalkSpeed = 16 * speed.Value
  2037. change = 2
  2038. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2039. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2040. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.225, 0) * angles(math.rad(90), math.rad(15), math.rad(-30)), 0.3)
  2041. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.225, -0.5) * angles(math.rad(-45), math.rad(-135), math.rad(-120)), 0.3)
  2042. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2043. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2044. Handleweld.C0 = clerp(Handleweld.C0, cf(1, -0.75, 0) * angles(math.rad(15), math.rad(0), math.rad(-90)), 0.3)
  2045. else
  2046. if attack == true then
  2047. fat.Event:wait()
  2048. Humanoid.WalkSpeed = 16 * speed.Value
  2049. change = 2
  2050. RH.C0 = clerp(RH.C0, cf(1, -0.5, -0.5) * angles(math.rad(-15), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2051. LH.C0 = clerp(LH.C0, cf(-1, -0.75, -0.25) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2052. end
  2053. end
  2054. end
  2055. else
  2056. if RootPart.Velocity.y < -1 and hitfloor == nil then
  2057. Anim = "Fall"
  2058. if attack == false and equipped == false then
  2059. fat.Event:wait()
  2060. Humanoid.WalkSpeed = 16 * speed.Value
  2061. change = 2
  2062. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2063. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2064. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  2065. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  2066. RH.C0 = clerp(RH.C0, cf(1, -0.75, -0.25) * angles(math.rad(-30), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2067. LH.C0 = clerp(LH.C0, cf(-1, -0.75, -0.25) * angles(math.rad(-30), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2068. Handleweld.C0 = clerp(Handleweld.C0, cf(-1.5, 0.5, 0.75) * angles(math.rad(-90), math.rad(-45), math.rad(90)), 0.15)
  2069. else
  2070. if attack == false and equipped == true then
  2071. fat.Event:wait()
  2072. Humanoid.WalkSpeed = 16 * speed.Value
  2073. change = 2
  2074. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2075. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2076. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.225, 0) * angles(math.rad(90), math.rad(15), math.rad(-30)), 0.3)
  2077. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.225, -0.5) * angles(math.rad(-45), math.rad(-135), math.rad(-120)), 0.3)
  2078. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-10), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2079. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-10), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2080. Handleweld.C0 = clerp(Handleweld.C0, cf(1, -0.75, 0) * angles(math.rad(15), math.rad(0), math.rad(-90)), 0.3)
  2081. else
  2082. if attack == true then
  2083. fat.Event:wait()
  2084. Humanoid.WalkSpeed = 16 * speed.Value
  2085. change = 2
  2086. RH.C0 = clerp(RH.C0, cf(1, -0.75, -0.25) * angles(math.rad(-30), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2087. LH.C0 = clerp(LH.C0, cf(-1, -0.75, -0.25) * angles(math.rad(-30), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2088. end
  2089. end
  2090. end
  2091. else
  2092. if torvel < 1 and hitfloor ~= nil then
  2093. Anim = "Idle"
  2094. if attack == false and equipped == true and idletype == 1 and idle >= 300 then
  2095. fat.Event:wait()
  2096. Humanoid.WalkSpeed = 16 * speed.Value
  2097. change = 2
  2098. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.1 * math.cos(sine / 30)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  2099. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10 - 2.5 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(-15)), 0.15)
  2100. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 + 0.025 * math.cos(sine / 30) + math.sin(sine / 30) / 15, 0) * angles(math.rad(5 + 5 * math.cos(sine / 30)), math.rad(0), math.rad(15 - 5 * math.cos(sine / 30))), 0.15)
  2101. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 + 0.025 * math.cos(sine / 30) + math.sin(sine / 30) / 15, 0) * angles(math.rad(75), math.rad(0), math.rad(-45)), 0.15)
  2102. RH.C0 = clerp(RH.C0, cf(1, -0.9 - 0.1 * math.cos(sine / 30), 0) * angles(math.rad(0), math.rad(75), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  2103. LH.C0 = clerp(LH.C0, cf(-1, -0.9 - 0.1 * math.cos(sine / 30), 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  2104. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -0.25, 0.5) * angles(math.rad(75), math.rad(0), math.rad(0)), 0.15)
  2105. else
  2106. if attack == false and equipped == true and idletype == 2 and idle >= 300 then
  2107. fat.Event:wait()
  2108. Humanoid.WalkSpeed = 16 * speed.Value
  2109. change = 2
  2110. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.1 * math.cos(sine / 30)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.15)
  2111. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10 - 2.5 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(0)), 0.15)
  2112. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5 + 0.025 * math.cos(sine / 30), -0.5) * angles(math.rad(95 - 5 * math.cos(sine / 30)), math.rad(0), math.rad(-45)), 0.15)
  2113. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5 + 0.025 * math.cos(sine / 30), -0.5) * angles(math.rad(95 - 5 * math.cos(sine / 30)), math.rad(0), math.rad(45)), 0.15)
  2114. RH.C0 = clerp(RH.C0, cf(1, -0.9 - 0.1 * math.cos(sine / 30), 0.1) * angles(math.rad(5), math.rad(75), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  2115. LH.C0 = clerp(LH.C0, cf(-1, -0.9 - 0.1 * math.cos(sine / 30), 0.1) * angles(math.rad(5), math.rad(-75), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  2116. Handleweld.C0 = clerp(Handleweld.C0, cf(0.5, -1.75, -1 + 0.1 * math.cos(sine / 30)) * angles(math.rad(-180 + 2.5 * math.cos(sine / 30)), math.rad(0 + 2.5 * math.cos(sine / 30)), math.rad(-45)), 0.15)
  2117. else
  2118. if attack == false and equipped == false and idletype == 1 and idle >= 300 then
  2119. fat.Event:wait()
  2120. Humanoid.WalkSpeed = 16 * speed.Value
  2121. change = 2
  2122. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.1 * math.cos(sine / 30)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2123. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(0)), 0.15)
  2124. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.25 + 0.025 * math.cos(sine / 30) + math.sin(sine / 30) / 15, 0.25) * angles(math.rad(-45), math.rad(0), math.rad(-45)), 0.15)
  2125. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.25 + 0.025 * math.cos(sine / 30) + math.sin(sine / 30) / 15, 0.25) * angles(math.rad(-45), math.rad(0), math.rad(45)), 0.15)
  2126. RH.C0 = clerp(RH.C0, cf(1, -0.9 - 0.1 * math.cos(sine / 30), 0.1) * angles(math.rad(0), math.rad(75), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  2127. LH.C0 = clerp(LH.C0, cf(-1, -0.9 - 0.1 * math.cos(sine / 30), 0.1) * angles(math.rad(0), math.rad(-75), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  2128. Handleweld.C0 = clerp(Handleweld.C0, cf(-1.5, 0.5, 0.75) * angles(math.rad(-90), math.rad(-45), math.rad(90)), 0.15)
  2129. else
  2130. if attack == false and equipped == false and idletype == 2 and idle >= 300 then
  2131. fat.Event:wait()
  2132. Humanoid.WalkSpeed = 16 * speed.Value
  2133. change = 2
  2134. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.1 + 0.1 * math.cos(sine / 30)) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.15)
  2135. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(15)), 0.15)
  2136. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5 + 0.025 * math.cos(sine / 30) + math.sin(sine / 30) / 15, -0.25) * angles(math.rad(80 - 5 * math.cos(sine / 30)), math.rad(0), math.rad(-45)), 0.15)
  2137. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 + 0.025 * math.cos(sine / 30) + math.sin(sine / 30) / 15, 0) * angles(math.rad(15 + 5 * math.cos(sine / 30)), math.rad(0), math.rad(-15 + 5 * math.cos(sine / 30))), 0.15)
  2138. RH.C0 = clerp(RH.C0, cf(1, 0.1 - 0.1 * math.cos(sine / 30), -0.5) * angles(math.rad(10), math.rad(75), math.rad(0)) * angles(math.rad(2.5), math.rad(0), math.rad(0)), 0.15)
  2139. LH.C0 = clerp(LH.C0, cf(-1, -0.9 - 0.1 * math.cos(sine / 30), 0) * angles(math.rad(-60), math.rad(-75), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  2140. Handleweld.C0 = clerp(Handleweld.C0, cf(-1.5, 0.5, 0.75) * angles(math.rad(-90), math.rad(-45), math.rad(90)), 0.15)
  2141. else
  2142. if attack == false and equipped == false then
  2143. fat.Event:wait()
  2144. Humanoid.WalkSpeed = 16 * speed.Value
  2145. change = 2
  2146. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.1 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  2147. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(-5), math.rad(-30)), 0.3)
  2148. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.525 + 0.025 * math.cos(sine / 20) + math.sin(sine / 20) / 20, 0) * angles(math.rad(0), math.rad(0), math.rad(10 - 5 * math.cos(sine / 20))), 0.3)
  2149. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.525 + 0.025 * math.cos(sine / 20) + math.sin(sine / 20) / 20, 0) * angles(math.rad(0), math.rad(0), math.rad(-10 + 5 * math.cos(sine / 20))), 0.3)
  2150. RH.C0 = clerp(RH.C0, cf(1, -0.9 - 0.1 * math.cos(sine / 20), 0) * angles(math.rad(7.5), math.rad(60), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2151. LH.C0 = clerp(LH.C0, cf(-1, -0.9 - 0.1 * math.cos(sine / 20), 0) * angles(math.rad(-7.5), math.rad(-75), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2152. Handleweld.C0 = clerp(Handleweld.C0, cf(-1.5, 0.5, 0.75) * angles(math.rad(-90), math.rad(-45), math.rad(90)), 0.15)
  2153. else
  2154. if attack == false and equipped == true then
  2155. fat.Event:wait()
  2156. Humanoid.WalkSpeed = 16 * speed.Value
  2157. change = 2
  2158. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.1 * math.cos(sine / 20)) * angles(math.rad(10), math.rad(-5), math.rad(-45)), 0.3)
  2159. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(5), math.rad(45)), 0.3)
  2160. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.225 + 0.025 * math.cos(sine / 20) + math.sin(sine / 20) / 20, 0) * angles(math.rad(90), math.rad(15), math.rad(-30)), 0.3)
  2161. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.225 + 0.025 * math.cos(sine / 20) + math.sin(sine / 20) / 20, -0.5) * angles(math.rad(-45), math.rad(-135), math.rad(-120)), 0.3)
  2162. RH.C0 = clerp(RH.C0, cf(1, -0.9 - 0.1 * math.cos(sine / 20), 0) * angles(math.rad(-5), math.rad(75), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2163. LH.C0 = clerp(LH.C0, cf(-1.2, -0.9 - 0.1 * math.cos(sine / 20), 0.2) * angles(math.rad(5), math.rad(-45), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2164. Handleweld.C0 = clerp(Handleweld.C0, cf(1, -0.75, 0) * angles(math.rad(15), math.rad(0), math.rad(-90)), 0.3)
  2165. else
  2166. if attack == true and canidle == true then
  2167. fat.Event:wait()
  2168. Humanoid.WalkSpeed = 16 * speed.Value
  2169. change = 2
  2170. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2171. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2172. end
  2173. end
  2174. end
  2175. end
  2176. end
  2177. end
  2178. end
  2179. else
  2180. if torvel > 2 and hitfloor ~= nil then
  2181. Anim = "Walk"
  2182. if attack == false and equipped == false then
  2183. fat.Event:wait()
  2184. Humanoid.WalkSpeed = 18 * speed.Value
  2185. change = 2
  2186. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.1 * math.cos(sine / 4)) * angles(math.rad(10), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 8))), 0.3)
  2187. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 * math.cos(sine / 8)) + Head.RotVelocity.Y / 15), 0.3)
  2188. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(45 * math.cos(sine / 8)) + math.sin(sine / 8) / 4, math.rad(0), math.rad(5)), 0.3)
  2189. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-45 * math.cos(sine / 8)) + -math.sin(sine / 8) / 4, math.rad(0), math.rad(-5)), 0.3)
  2190. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.5 * math.cos(sine / 8) / 2, 0.25 * math.cos(sine / 8) / 2) * angles(math.rad(-15 - 45 * math.cos(sine / 8)) + -math.sin(sine / 8) / 2.5, math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2191. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.5 * math.cos(sine / 8) / 2, -0.25 * math.cos(sine / 8) / 2) * angles(math.rad(-15 + 45 * math.cos(sine / 8)) + math.sin(sine / 8) / 2.5, math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2192. Handleweld.C0 = clerp(Handleweld.C0, cf(-1.5, 0.5, 0.75) * angles(math.rad(-90), math.rad(-45), math.rad(90)), 0.15)
  2193. else
  2194. if attack == false and equipped == true then
  2195. fat.Event:wait()
  2196. Humanoid.WalkSpeed = 16 * speed.Value
  2197. change = 2
  2198. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.2 * math.cos(sine / 3)) * angles(math.rad(10), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-45 + 5 * math.cos(sine / 6))), 0.3)
  2199. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(5), math.rad(45 - 5 * math.cos(sine / 6)) + Head.RotVelocity.Y / 15), 0.3)
  2200. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.225, 0) * angles(math.rad(90), math.rad(15), math.rad(-30)), 0.3)
  2201. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.225, -0.5) * angles(math.rad(-45), math.rad(-135), math.rad(-120)), 0.3)
  2202. RH.C0 = clerp(RH.C0, cf(0.8 + 0.2 * math.cos(sine / 6) / 2, -1, 0.5 * math.cos(sine / 6) / 2) * angles(math.rad(-5 - 30 * math.cos(sine / 6)) + -math.sin(sine / 6) / 2.5, math.rad(90), math.rad(0)) * angles(math.rad(-30 * math.cos(sine / 6) + -math.sin(sine / 6) / 2.5), math.rad(0), math.rad(0)), 0.3)
  2203. LH.C0 = clerp(LH.C0, cf(-1 - 0.2 * math.cos(sine / 6) / 2, -0.8, -0.5 * math.cos(sine / 6) / 2) * angles(math.rad(-5 + 30 * math.cos(sine / 6)) + math.sin(sine / 6) / 2.5, math.rad(-90), math.rad(0)) * angles(math.rad(-30 * math.cos(sine / 6) + math.sin(sine / 6) / 2.5), math.rad(0), math.rad(0)), 0.3)
  2204. Handleweld.C0 = clerp(Handleweld.C0, cf(1, -0.75, 0) * angles(math.rad(15), math.rad(0), math.rad(-90)), 0.3)
  2205. else
  2206. if attack == true and canwalk == true then
  2207. fat.Event:wait()
  2208. Humanoid.WalkSpeed = 16 * speed.Value
  2209. change = 2
  2210. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.5 * math.cos(sine / 8) / 2, 0.25 * math.cos(sine / 8) / 2) * angles(math.rad(-15 - 45 * math.cos(sine / 8)) + -math.sin(sine / 8) / 2.5, math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2211. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.5 * math.cos(sine / 8) / 2, -0.25 * math.cos(sine / 8) / 2) * angles(math.rad(-15 + 45 * math.cos(sine / 8)) + math.sin(sine / 8) / 2.5, math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3)
  2212. end
  2213. end
  2214. end
  2215. end
  2216. end
  2217. end
  2218. end
  2219. end
  2220. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement