Advertisement
memberhero

Hammer

Apr 21st, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 133.48 KB | None | 0 0
  1. module = Instance.new("ModuleScript",game.ReplicatedStorage)
  2. module.Name = "TagService"
  3.  
  4. event = Instance.new("Folder",game.ReplicatedStorage)
  5. event.Name = "Remotes"
  6.  
  7. event2 = Instance.new("RemoteEvent",event)
  8. event2.Name = "HealthEvent"
  9.  
  10. wait(1)
  11. local Character = game.Players.localPlayer.Character
  12. local Humanoid=Character.Humanoid
  13. script.Parent=nil
  14. wait()
  15. if Character:FindFirstChild"Animate" then
  16. Character.Animate:Destroy()
  17. end--[[Harbaceus class created by Brannon1964802.]]--
  18. TagService = game.ReplicatedStorage.TagService
  19.  
  20. Meshes = {
  21. Blast = '20329976',
  22. Crown = '1323306',
  23. Ring = '3270017',
  24. Claw = '10681506',
  25. Crystal = '9756362',
  26. Coil = '9753878',
  27. Cloud = '1095708',
  28. }
  29. clangsounds = {
  30. '199149119',
  31. '199149109',
  32. '199149072',
  33. '199149025',
  34. '199148971'
  35. }
  36. hitsounds = {
  37. '199149137',
  38. '199149186',
  39. '199149221',
  40. '199149235',
  41. '199149269',
  42. '199149297'
  43. }
  44. blocksounds = {
  45. '199148933',
  46. '199148947'
  47. }
  48. armorsounds = {
  49. '199149321',
  50. '199149338',
  51. '199149367',
  52. '199149409',
  53. '199149452'
  54. }
  55. woosh = {
  56. Heavy1 = '320557353',
  57. Heavy2 = '320557382',
  58. Heavy3 = '320557453',
  59. Heavy4 = '199144226',
  60. Heavy5 = '203691447',
  61. Heavy6 = '203691467',
  62. Heavy7 = '203691492',
  63. Light1 = '320557413',
  64. Light2 = '320557487',
  65. Light3 = '199145095',
  66. Light4 = '199145146',
  67. Light5 = '199145887',
  68. Light6 = '199145913',
  69. Light7 = '199145841',
  70. Medium1 = '320557518',
  71. Medium2 = '320557537',
  72. Medium3 = '320557563',
  73. Medium4 = '199145204'
  74. }
  75. music = {--i like music a lot
  76. Breaking = '179281636',
  77. FinalReckoning = '357375770',
  78. NotDeadYet = '346175829',
  79. Intense = '151514610',
  80. JumpP1 = '160536628',
  81. JumpP2 = '60536666',
  82. SonsOfWar = '158929777',
  83. WrathOfSea = '165520893',
  84. ProtectorsOfEarth = '160542922',
  85. SkyTitans = '179282324',
  86. ArchAngel = '144043274',
  87. Anticipation = '168614529',
  88. TheMartyred = '186849544',
  89. AwakeP1 = '335631255',
  90. AwakeP2 = '335631297',
  91. ReadyAimFireP1 = '342455387',
  92. ReadyAimFireP2 = '342455399',
  93. DarkLordP1 = '209567483',
  94. DarkLordP2 = '209567529',
  95. BloodDrainP1 = '162914123',
  96. BloodDrainP2 = '162914203',
  97. DanceOfSwords = '320473062',
  98. Opal = '286415112',
  99. Calamity = '190454307',
  100. Hypnotica = '155968128',
  101. Nemisis = '160453802',
  102. Breathe = '276963903',
  103. GateToTheRift = '270655227',
  104. InfernalBeserking = '244143404',
  105. Trust = '246184492',
  106. AwakeningTheProject = '245121821',
  107. BloodPain = '242545577',
  108. Chaos = '247241693',
  109. NightmareFictionHighStake = '248062278',
  110. TheWhiteWeapon = '247236446',
  111. Gale = '256851659',
  112. ImperialCode = '256848383',
  113. Blitzkrieg = '306431437',
  114. RhapsodyRage = '348690251',
  115. TheGodFist = '348541501',
  116. BattleForSoul = '321185592',
  117. TheDarkColossus = '305976780',
  118. EmpireOfAngels = '302580452',
  119. Kronos = '302205297',
  120. Exorcist = '299796054',
  121. CrimsonFlames = '297799220',
  122. UltimatePower = '295753229',
  123. DrivingInTheDark = '295753229',
  124. AscendToPower = '293860654',
  125. GodOfTheSun = '293612495',
  126. DarkRider = '293861765',
  127. Vengeance = '293375555',
  128. SoundOfWar = '293376196',
  129. HellsCrusaders = '293012202',
  130. Legend = '293011823',
  131. RisingSouls = '290524959'
  132. }
  133. misc = {
  134. GroundSlam = '199145477',
  135. LaserSlash = '199145497',
  136. RailGunFire = '199145534',
  137. Charge1 = '199145659',
  138. Charge2 = '169380469',
  139. Charge3 = '169380479',
  140. EmptyGun = '203691822',
  141. GunShoot = '203691837',
  142. Stomp1 = '200632875',
  143. Stomp2 = '200632561',
  144. TelsaCannonCharge = '169445572',
  145. TelsaCannonShoot = '169445602',
  146. AncientHymm = '245313442'
  147. }
  148.  
  149. Player=game:GetService("Players").LocalPlayer
  150. Character=Player.Character
  151. PlayerGui=Player.PlayerGui
  152. Backpack=Player.Backpack
  153. Torso=Character.Torso
  154. Head=Character.Head
  155. Humanoid=Character.Humanoid
  156. --m=Instance.new("Model",Character)
  157. LeftArm=Character["Left Arm"]
  158. LeftLeg=Character["Left Leg"]
  159. RightArm=Character["Right Arm"]
  160. RightLeg=Character["Right Leg"]
  161. LS=Torso["Left Shoulder"]
  162. LH=Torso["Left Hip"]
  163. RS=Torso["Right Shoulder"]
  164. RH=Torso["Right Hip"]
  165. Face = Head.face
  166. Neck=Torso.Neck
  167. it=Instance.new
  168. attacktype=1
  169. vt=Vector3.new
  170. cf=CFrame.new
  171. euler=CFrame.fromEulerAnglesXYZ
  172. angles=CFrame.Angles
  173. cloaked=false
  174. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  175. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  176. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  177. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  178. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  179. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  180. RootPart=Character.HumanoidRootPart
  181. RootJoint=RootPart.RootJoint
  182. RootCF=euler(-1.57,0,3.14)
  183. attack = false
  184. attackdebounce = false
  185. deb=false
  186. equipped=false
  187. hand=false
  188. MMouse=nil
  189. combo=0
  190. mana=0
  191. trispeed=.2
  192. attackmode='none'
  193. local idle=0
  194. local Anim="Idle"
  195. local gun=false
  196. local shoot=false
  197. ShotTarget=RootPart
  198. player=nil
  199. mana=0
  200.  
  201. Humanoid:findFirstChild("Animator"):Destroy()
  202.  
  203. --[[music = Instance.new("Sound", Character)
  204. music.SoundId = "http://www.roblox.com/asset/?id=270264335" --346175829, 175475871, 270264335
  205. music.Volume = 0.5
  206. music.Looped = true
  207. wait(0.1)
  208. music:Play()]]--
  209.  
  210. print("Harbaceus loaded.")
  211.  
  212. mouse=Player:GetMouse()
  213. --save shoulders
  214. RSH, LSH=nil, nil
  215. --welds
  216. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  217. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  218. LH=Torso["Left Hip"]
  219. RH=Torso["Right Hip"]
  220. TorsoColor=Torso.BrickColor
  221. Colorpart1=Torso.BrickColor.r
  222. Colorpart2=Torso.BrickColor.g
  223. Colorpart3=Torso.BrickColor.b
  224. function NoOutline(Part)
  225. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  226. end
  227. player=Player
  228. ch=Character
  229. RSH=ch.Torso["Right Shoulder"]
  230. LSH=ch.Torso["Left Shoulder"]
  231. --
  232. RSH.Parent=nil
  233. LSH.Parent=nil
  234. --
  235. RW.Name="Right Shoulder"
  236. RW.Part0=ch.Torso
  237. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  238. RW.C1=cf(0, 0.5, 0)
  239. RW.Part1=ch["Right Arm"]
  240. RW.Parent=ch.Torso
  241. --
  242. LW.Name="Left Shoulder"
  243. LW.Part0=ch.Torso
  244. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  245. LW.C1=cf(0, 0.5, 0)
  246. LW.Part1=ch["Left Arm"]
  247. LW.Parent=ch.Torso
  248.  
  249. Player=game:GetService('Players').LocalPlayer
  250. Character=Player.Character
  251. Mouse=Player:GetMouse()
  252.  
  253. local function weldBetween(a, b)
  254. local weldd = Instance.new("ManualWeld")
  255. weldd.Part0 = a
  256. weldd.Part1 = b
  257. weldd.C0 = CFrame.new()
  258. weldd.C1 = b.CFrame:inverse() * a.CFrame
  259. weldd.Parent = a
  260. return weldd
  261. end
  262.  
  263. function swait(num)
  264. if num==0 or num==nil then
  265. game:service'RunService'.Heartbeat:wait(0)
  266. else
  267. for i=0,num do
  268. game:service'RunService'.Heartbeat:wait(0)
  269. end
  270. end
  271. end
  272.  
  273. fat = Instance.new("BindableEvent",script)
  274. fat.Name = "Heartbeat"
  275.  
  276. script:WaitForChild("Heartbeat")
  277.  
  278. frame = 1/30
  279. tf = 0
  280. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  281. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  282. lastframe = tick()
  283. script.Heartbeat:Fire() --ayy lmao
  284.  
  285. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  286. tf = tf + s
  287. if tf >= frame then
  288. if allowframeloss then
  289. script.Heartbeat:Fire()
  290. lastframe=tick()
  291. else
  292. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  293. for i=1, math.floor(tf/frame) do
  294. script.Heartbeat:Fire()
  295. end
  296. lastframe=tick()
  297. end
  298. if tossremainder then
  299. tf = 0
  300. else
  301. tf = tf - frame * math.floor(tf/frame)
  302. end
  303. end
  304. end)
  305. --To use: fat.Event:wait() or fat.Event:connect(function() asdcode end)
  306.  
  307. it=Instance.new
  308.  
  309. function nooutline(part)
  310. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  311. end
  312.  
  313. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  314. local fp=it("Part")
  315. fp.formFactor=formfactor
  316. fp.Parent=parent
  317. fp.Reflectance=reflectance
  318. fp.Transparency=transparency
  319. fp.CanCollide=false
  320. fp.Locked=true
  321. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  322. fp.Name=name
  323. fp.Size=size
  324. fp.Position=Character.Torso.Position
  325. nooutline(fp)
  326. fp.Material=material
  327. fp:BreakJoints()
  328. return fp
  329. end
  330.  
  331. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  332. local mesh=it(Mesh)
  333. mesh.Parent=part
  334. if Mesh=="SpecialMesh" then
  335. mesh.MeshType=meshtype
  336. mesh.MeshId=meshid
  337. end
  338. mesh.Offset=offset
  339. mesh.Scale=scale
  340. return mesh
  341. end
  342.  
  343. function weld(parent,part0,part1,c0,c1)
  344. local weld=it("Weld")
  345. weld.Parent=parent
  346. weld.Part0=part0
  347. weld.Part1=part1
  348. weld.C0=c0
  349. weld.C1=c1
  350. return weld
  351. end
  352.  
  353. m = Instance.new("Model",Character)
  354. m.Name = "Harbaceus"
  355.  
  356. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  357. Handleweld=weld(m,Character["Left Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.149982452, 0.0603427887, 0.939049006, 1, 4.2277577e-008, 2.58397517e-008, 2.5839757e-008, 0, -0.999999881, -4.22775805e-008, 0.999999762, 0))
  358. mesh("SpecialMesh",Handle,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(2.5, 5.5, 2.5))
  359. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  360. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.979997635, 0, 0, -4.37113812e-008, 0.999999762, 7.55569324e-016, -1, -4.37113812e-008, 1.0658141e-014, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  361. mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(12, 2, 2))
  362. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  363. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.489999771, -4.76837158e-007, 1, 8.8817842e-015, -1.42108547e-014, 8.8817842e-015, 0.999999762, -1.09244243e-015, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  364. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(2.04999995, 2, 2.04999995))
  365. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  366. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699998856, 0, 0, -3.78551768e-008, 0.999999762, 5.07983287e-016, -0.866025627, -3.7279051e-008, 0.499999374, 0.499999583, -1.68824528e-008, 0.86602515))
  367. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  368. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  369. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699998856, 0, 4.76837158e-007, -1.13133867e-008, 0.999999762, 5.96046235e-008, -0.258820474, -6.62924933e-008, 0.965924978, 0.965925455, -4.84303975e-009, 0.258820355))
  370. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  371. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  372. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699998856, 0, 0, -3.09086339e-008, 0.999999762, 2.14300262e-016, -0.707107186, -7.78761162e-008, 0.707106054, 0.707106352, 7.78760949e-008, 0.707106888))
  373. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  374. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  375. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699998856, 4.76837158e-007, 0, -4.22219557e-008, 0.999999762, 6.92600047e-016, -0.965925872, -5.47616068e-008, 0.258818686, 0.258818805, 6.6878143e-009, 0.965925395))
  376. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  377. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  378. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699998856, 0, 0, -4.37113812e-008, 0.999999762, 7.55569324e-016, -1, -4.37113812e-008, 1.0658141e-014, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  379. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  380. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  381. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699998856, 4.76837158e-007, 0, -2.18557243e-008, 0.999999762, -1.68434884e-016, -0.500000834, -4.27222204e-008, 0.866024673, 0.866024911, -3.72267621e-008, 0.500000715))
  382. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  383. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  384. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00999832, -4.76837158e-007, -4.76837158e-007, -3.09086339e-008, 0.999999762, 2.14300262e-016, -0.707107186, -7.78761162e-008, 0.707106054, 0.707106352, 7.78760949e-008, 0.707106888))
  385. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  386. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  387. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00999832, -7.15255737e-007, 4.76837158e-007, -1.13133867e-008, 0.999999762, 5.96046235e-008, -0.258820474, -6.62924933e-008, 0.965924978, 0.965925455, -4.84303975e-009, 0.258820355))
  388. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  389. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  390. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00999832, 4.76837158e-007, -7.15255737e-007, -4.22219557e-008, 0.999999762, 6.92600047e-016, -0.965925872, -5.47616068e-008, 0.258818686, 0.258818805, 6.6878143e-009, 0.965925395))
  391. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  392. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  393. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00999832, -4.76837158e-007, -5.96046448e-007, -3.78551768e-008, 0.999999762, 5.07983287e-016, -0.866025627, -3.7279051e-008, 0.499999374, 0.499999583, -1.68824528e-008, 0.86602515))
  394. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  395. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  396. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00999832, 0, 0, -2.18557243e-008, 0.999999762, -1.68434884e-016, -0.500000834, -4.27222204e-008, 0.866024673, 0.866024911, -3.72267621e-008, 0.500000715))
  397. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  398. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  399. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00999832, 0, -7.15255737e-007, -4.37113812e-008, 0.999999762, 7.55569324e-016, -1, -4.37113812e-008, 1.0658141e-014, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  400. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  401. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  402. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.31999779, -4.76837158e-007, -5.96046448e-007, -3.78551768e-008, 0.999999762, 5.07983287e-016, -0.866025627, -3.7279051e-008, 0.499999374, 0.499999583, -1.68824528e-008, 0.86602515))
  403. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  404. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  405. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.31999779, -7.15255737e-007, 4.76837158e-007, -1.13133867e-008, 0.999999762, 5.96046235e-008, -0.258820474, -6.62924933e-008, 0.965924978, 0.965925455, -4.84303975e-009, 0.258820355))
  406. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  407. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  408. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.31999779, -4.76837158e-007, -4.76837158e-007, -3.09086339e-008, 0.999999762, 2.14300262e-016, -0.707107186, -7.78761162e-008, 0.707106054, 0.707106352, 7.78760949e-008, 0.707106888))
  409. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  410. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  411. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.31999779, 4.76837158e-007, -7.15255737e-007, -4.22219557e-008, 0.999999762, 6.92600047e-016, -0.965925872, -5.47616068e-008, 0.258818686, 0.258818805, 6.6878143e-009, 0.965925395))
  412. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  413. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  414. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.31999779, 0, 0, -2.18557243e-008, 0.999999762, -1.68434884e-016, -0.500000834, -4.27222204e-008, 0.866024673, 0.866024911, -3.72267621e-008, 0.500000715))
  415. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  416. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  417. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.31999779, 0, -7.15255737e-007, -4.37113812e-008, 0.999999762, 7.55569324e-016, -1, -4.37113812e-008, 1.0658141e-014, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  418. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  419. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  420. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.61999893, 0, 0, -2.18557243e-008, 0.999999762, -1.68434884e-016, -0.500000834, -4.27222204e-008, 0.866024673, 0.866024911, -3.72267621e-008, 0.500000715))
  421. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  422. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  423. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.61999893, 0, -4.76837158e-007, -3.09086339e-008, 0.999999762, 2.14300262e-016, -0.707107186, -7.78761162e-008, 0.707106054, 0.707106352, 7.78760949e-008, 0.707106888))
  424. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  425. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  426. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.61999893, 4.76837158e-007, -4.76837158e-007, -4.22219557e-008, 0.999999762, 6.92600047e-016, -0.965925872, -5.47616068e-008, 0.258818686, 0.258818805, 6.6878143e-009, 0.965925395))
  427. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  428. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  429. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.61999893, -4.76837158e-007, -3.57627869e-007, -3.78551768e-008, 0.999999762, 5.07983287e-016, -0.866025627, -3.7279051e-008, 0.499999374, 0.499999583, -1.68824528e-008, 0.86602515))
  430. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  431. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  432. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.61999893, 0, -4.76837158e-007, -4.37113812e-008, 0.999999762, 7.55569324e-016, -1, -4.37113812e-008, 1.0658141e-014, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  433. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  434. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  435. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.61999893, -4.76837158e-007, 4.76837158e-007, -1.13133867e-008, 0.999999762, 5.96046235e-008, -0.258820474, -6.62924933e-008, 0.965924978, 0.965925455, -4.84303975e-009, 0.258820355))
  436. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  437. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  438. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.9299984, -4.76837158e-007, -3.57627869e-007, -3.78551768e-008, 0.999999762, 5.07983287e-016, -0.866025627, -3.7279051e-008, 0.499999374, 0.499999583, -1.68824528e-008, 0.86602515))
  439. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  440. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  441. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.9299984, -4.76837158e-007, 4.76837158e-007, -1.13133867e-008, 0.999999762, 5.96046235e-008, -0.258820474, -6.62924933e-008, 0.965924978, 0.965925455, -4.84303975e-009, 0.258820355))
  442. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  443. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  444. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.9299984, 0, -4.76837158e-007, -3.09086339e-008, 0.999999762, 2.14300262e-016, -0.707107186, -7.78761162e-008, 0.707106054, 0.707106352, 7.78760949e-008, 0.707106888))
  445. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  446. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  447. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.9299984, 4.76837158e-007, -4.76837158e-007, -4.22219557e-008, 0.999999762, 6.92600047e-016, -0.965925872, -5.47616068e-008, 0.258818686, 0.258818805, 6.6878143e-009, 0.965925395))
  448. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  449. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  450. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.9299984, 0, -4.76837158e-007, -4.37113812e-008, 0.999999762, 7.55569324e-016, -1, -4.37113812e-008, 1.0658141e-014, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  451. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  452. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  453. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.9299984, 0, 0, -2.18557243e-008, 0.999999762, -1.68434884e-016, -0.500000834, -4.27222204e-008, 0.866024673, 0.866024911, -3.72267621e-008, 0.500000715))
  454. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2, 2))
  455. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  456. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.42128563, -1.9869709, 0, -4.37113954e-008, -0.707106709, -0.707106411, 1.77635684e-014, 0.70710659, -0.707106531, 1, -3.09086055e-008, -3.09086161e-008))
  457. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 5, 0.600000024))
  458. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  459. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.42128563, -1.9869709, 0, -4.37113954e-008, -0.707106709, -0.707106411, 1.77635684e-014, 0.70710659, -0.707106531, 1, -3.09086055e-008, -3.09086161e-008))
  460. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 5, 0.5))
  461. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  462. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.735219002, -2.99343491, 4.76837158e-007, -4.37113812e-008, -0.500000179, -0.866024792, 1.0658141e-014, 0.866024971, -0.50000006, 1, -2.18556941e-008, -3.7855159e-008))
  463. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 2.5, 0.600000024))
  464. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  465. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.735219002, -2.99343491, 4.76837158e-007, -4.37113812e-008, -0.500000179, -0.866024792, 1.0658141e-014, 0.866024971, -0.50000006, 1, -2.18556941e-008, -3.7855159e-008))
  466. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2.5, 0.5))
  467. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  468. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.735218048, -2.99343491, -9.53674316e-007, -4.37114167e-008, -0.500000179, 0.866024792, 1.0658141e-014, 0.866024971, 0.50000006, -1, 2.18556941e-008, -3.78551199e-008))
  469. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2.5, 0.5))
  470. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  471. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.42128563, -1.9869709, -4.76837158e-007, -4.37114096e-008, -0.707106709, 0.707106411, 0, 0.70710659, 0.707106531, -1, 3.09086126e-008, -3.09085912e-008))
  472. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 5, 0.5))
  473. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  474. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.42128563, -1.9869709, -4.76837158e-007, -4.37114096e-008, -0.707106709, 0.707106411, 0, 0.70710659, 0.707106531, -1, 3.09086126e-008, -3.09085912e-008))
  475. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 5, 0.600000024))
  476. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  477. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.735218048, -2.99343491, -9.53674316e-007, -4.37114167e-008, -0.500000179, 0.866024792, 1.0658141e-014, 0.866024971, 0.50000006, -1, 2.18556941e-008, -3.78551199e-008))
  478. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 2.5, 0.600000024))
  479. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  480. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.969996214, -3.38000107, 0, -4.37113918e-008, -7.45057946e-007, -0.999999642, 1.24344979e-014, 0.999999881, -7.45057775e-007, 1, -2.48689958e-014, -4.37113883e-008))
  481. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 2.5, 0.600000024))
  482. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  483. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.969996214, -3.38000107, 0, -4.37113918e-008, -7.45057946e-007, -0.999999642, 1.24344979e-014, 0.999999881, -7.45057775e-007, 1, -2.48689958e-014, -4.37113883e-008))
  484. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2.5, 0.5))
  485. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  486. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.969997168, -3.38000107, 0, -4.37113883e-008, -7.45057946e-007, 0.999999642, 7.10542736e-015, 0.999999881, 7.45057775e-007, -1, 2.84217094e-014, -4.37113563e-008))
  487. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 2.5, 0.5))
  488. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  489. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.0699966, -3.38000298, 0, -4.37113918e-008, -7.45057946e-007, -0.999999642, 1.24344979e-014, 0.999999881, -7.45057775e-007, 1, -2.48689958e-014, -4.37113883e-008))
  490. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.354999989, 0.0700000003))
  491. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  492. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.63521862, -2.99343491, 4.76837158e-007, -4.37113812e-008, -0.500000179, -0.866024792, 1.0658141e-014, 0.866024971, -0.50000006, 1, -2.18556941e-008, -3.7855159e-008))
  493. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.349999994, 0.0700000003))
  494. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  495. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.32128525, -1.98696899, 0, -4.37113954e-008, -0.707106709, -0.707106411, 1.77635684e-014, 0.70710659, -0.707106531, 1, -3.09086055e-008, -3.09086161e-008))
  496. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.699999988, 0.0700000003))
  497. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  498. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.06929064, -3.38000107, -4.76837158e-007, -2.06416678e-015, -7.45057946e-007, 0.999999523, 4.39843859e-008, 0.999999881, 7.45057775e-007, -0.999999881, 4.39843504e-008, 1.77635684e-014))
  499. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.354999989, 0.0700000003))
  500. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  501. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.635828018, -2.99308205, -4.76837158e-007, -1.77635684e-015, -0.500000179, 0.866024792, 0, 0.866024971, 0.50000006, -0.999999881, 2.21286811e-008, 0))
  502. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.349999994, 0.0700000003))
  503. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  504. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.969289303, -3.37999535, -4.76837158e-007, -2.06416678e-015, -7.45057946e-007, 0.999999523, 4.39843859e-008, 0.999999881, 7.45057775e-007, -0.999999881, 4.39843504e-008, 1.77635684e-014))
  505. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 2.5, 0.600000024))
  506. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  507. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.32178497, -1.98646927, 0, -1.24344979e-014, -0.707106709, 0.707106411, 7.10542736e-015, 0.70710665, 0.707106471, -0.999999881, 1.30757876e-008, 7.10542736e-015))
  508. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.699999988, 0.0700000003))
  509. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  510. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-007, -4.1099987, -1.43051147e-006, 1, 8.8817842e-015, -1.42108547e-014, 8.8817842e-015, 0.999999762, -1.09244243e-015, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  511. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 5))
  512. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  513. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.06374645, -3.96995544, -1.43051147e-006, 0.965925813, 0.258819044, 1.87676186e-008, -0.258819073, 0.965925574, 1.09422427e-008, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  514. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 5))
  515. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  516. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.05499935, -3.55936432, -1.43051147e-006, 0.866025388, 0.499999911, -2.17123013e-008, -0.5, 0.866025269, -3.8465835e-008, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  517. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 5))
  518. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  519. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.90620995, -2.90620995, -1.43051147e-006, 0.707106769, 0.70710665, -9.24522681e-011, -0.707106709, 0.70710665, 2.98947604e-008, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  520. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 5))
  521. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  522. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.55936432, -2.05500031, -1.43051147e-006, 0.499999881, 0.866025209, -5.09410967e-008, -0.866025329, 0.499999791, 2.17123013e-008, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  523. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 5))
  524. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  525. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.55936432, -2.05500031, -1.43051147e-006, 0.499999881, 0.866025209, -5.09410967e-008, -0.866025329, 0.499999791, 2.17123013e-008, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  526. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 5))
  527. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  528. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.96995544, -1.06374741, -1.43051147e-006, 0.258819044, 0.965925634, -1.09422444e-008, -0.965925813, 0.258819044, -1.87676186e-008, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  529. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 5))
  530. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  531. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-007, -4.1099987, -4.76837158e-007, 1, 8.8817842e-015, -1.42108547e-014, 1.59872116e-014, 0.999999881, -1.49011555e-007, -7.40313657e-015, 1.49011598e-007, 0.999999642))
  532. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(6.5, 6.5, 16))
  533. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  534. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-007, -4.07999611, -1.16929173, 1, 8.8817842e-015, -1.42108547e-014, 8.8817842e-015, 0.999999762, -1.09244243e-015, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  535. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  536. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  537. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.05598116, -3.94097519, -1.16929173, 0.965925813, 0.258819044, 1.87676186e-008, -0.258819073, 0.965925574, 1.09422427e-008, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  538. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  539. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  540. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.03999805, -3.53338242, -1.16929173, 0.866025388, 0.499999911, -2.17123013e-008, -0.5, 0.866025269, -3.8465835e-008, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  541. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  542. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  543. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.88499451, -2.88499451, -1.16929173, 0.707106769, 0.70710665, -9.24522681e-011, -0.707106709, 0.70710665, 2.98947604e-008, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  544. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  545. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  546. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.53338242, -2.03999901, -1.16929173, 0.499999881, 0.866025209, -5.09410967e-008, -0.866025329, 0.499999791, 2.17123013e-008, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  547. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  548. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  549. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.94097519, -1.05598164, -1.16929173, 0.258818954, 0.965925574, -1.094224e-008, -0.965925694, 0.258818924, -1.87676221e-008, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  550. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  551. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  552. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, -4.08000183, 1.16999853, 1, 7.81597009e-014, 7.62850789e-007, 1.59872116e-014, 0.999999881, -1.49011555e-007, -7.62851073e-007, 1.49011584e-007, 0.999999642))
  553. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  554. EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,TorsoColor,"EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  555. EffectPartweld=weld(m,Handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -4.07999611, -1.46929336, 1, 8.8817842e-015, -1.42108547e-014, 8.8817842e-015, 0.999999762, -1.09244243e-015, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  556. mesh("SpecialMesh",EffectPart,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1.5))
  557. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  558. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.05598116, -3.940979, 1.16999888, 0.965925813, 0.258818984, 7.78726587e-007, -0.258819073, 0.965925574, -1.38069311e-007, -7.89761543e-007, -2.14996884e-014, 0.999999523))
  559. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  560. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  561. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.03999901, -3.53338432, 1.16999972, 0.866025388, 0.499999881, 7.38246626e-007, -0.5, 0.866025269, -9.80704584e-008, -7.62851016e-007, -1.49011612e-007, 0.999999642))
  562. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  563. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  564. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.88499737, -2.88499641, 1.17000055, 0.707106769, 0.70710665, 7.44965348e-007, -0.707106709, 0.707106531, -1.78721422e-007, -6.83953544e-007, -4.47034807e-007, 0.999999523))
  565. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  566. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  567. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.53338432, -2.03999901, 1.17000151, 0.499999881, 0.86602509, 7.23919015e-007, -0.866025329, 0.499999821, -2.01805037e-007, -5.58445663e-007, -5.96046391e-007, 0.999999642))
  568. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  569. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  570. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.940979, -1.05598259, 1.17000198, 0.258818954, 0.965925515, 7.04313265e-007, -0.965925694, 0.258818924, -2.12482661e-007, -3.94880828e-007, -6.85453358e-007, 0.999999523))
  571. mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5, 5, 3))
  572. Effect2Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,TorsoColor,"Effect2Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  573. Effect2Partweld=weld(m,Handle,Effect2Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -4.07999611, 1.46999896, 1, 8.8817842e-015, -1.42108547e-014, 8.8817842e-015, 0.999999762, -1.09244243e-015, -1.0658141e-014, -1.09244243e-015, 0.999999523))
  574. mesh("SpecialMesh",Effect2Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1.5))
  575. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  576. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-007, -4.11000061, -0.700001717, 1, 8.8817842e-015, -1.42108547e-014, 1.59872116e-014, 0.999999881, -1.49011555e-007, -7.40313657e-015, 1.49011598e-007, 0.999999642))
  577. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(6.5, 6.5, 8))
  578. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  579. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-007, -4.11000061, 0.699997306, 1, 8.8817842e-015, -1.42108547e-014, 1.59872116e-014, 0.999999881, -1.49011555e-007, -7.40313657e-015, 1.49011598e-007, 0.999999642))
  580. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(6.5, 6.5, 8))
  581. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Hitbox",Vector3.new(1.5, 5, 1.5))
  582. Hitboxweld=weld(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.43051147e-006, 4.11000061, 1, -1.643782e-008, -4.22775805e-008, 4.22775734e-008, 0, 0.999999642, -1.64378289e-008, -0.999999881, 1.78739389e-015))
  583.  
  584. Handleweld.Part0=Torso
  585. Handleweld.Part1=Handle
  586. Handleweld.C0=cf(-1.5,0.5,0.75)*angles(math.rad(-90),math.rad(-45),math.rad(90))
  587.  
  588. Hitbox.CanCollide = false
  589.  
  590. hammeraura = Instance.new("Sound",Hitbox)
  591. hammeraura.SoundId = "http://roblox.com/asset/?id=143301643"
  592. hammeraura.Looped = true
  593. hammeraura.Pitch = 0
  594. hammeraura.Volume = 0
  595.  
  596. for i,v in pairs(Character:GetChildren()) do
  597. if v:IsA'Model' then
  598. for _,c in pairs(v:GetChildren()) do
  599. if c:IsA'Part' then
  600. c.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
  601. end
  602. end
  603. end
  604. end
  605.  
  606. wait(0.1)
  607. hammeraura:Play()
  608.  
  609. local Player = game.Players.localPlayer
  610. local Character = Player.Character
  611. local Humanoid = Character.Humanoid
  612. local mouse = Player:GetMouse()
  613. --local m = Instance.new('Model', Character)
  614. local LeftArm = Character["Left Arm"]
  615. local RightArm = Character["Right Arm"]
  616. local LeftLeg = Character["Left Leg"]
  617. local RightLeg = Character["Right Leg"]
  618. local Head = Character.Head
  619. local Torso = Character.Torso
  620. local cam = game.Workspace.CurrentCamera
  621. local RootPart = Character.HumanoidRootPart
  622. --cam.CameraSubject = Head
  623. local equipped = false
  624. local attack = false
  625. local Anim = 'Idle'
  626. local idle = 0
  627. local sprint = false
  628. local battlestance = false
  629. local attacktype = 1
  630. local state = 'none'
  631. local torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  632. local velocity = RootPart.Velocity.y
  633. local sine = 0
  634. local change = 1
  635. local on = false
  636. local grabbed = false
  637. local skill1 = false
  638. local skill2 = false
  639. local skill3 = false
  640. local skill4 = false
  641. local cooldown1 = 0
  642. local cooldown2 = 0
  643. local cooldown3 = 0
  644. local cooldown4 = 0
  645. local co1 = 0--how long it will take for skill to cooldown
  646. local co2 = 0
  647. local co3 = 0
  648. local co4 = 0
  649. local inputserv = game:GetService('UserInputService')
  650. local typing = false
  651. local crit = false
  652. local critchance = 2--critical chance percentage
  653. local critdamageaddmin = 2--minimum amount of critical damage being added to regular damage
  654. local critdamageaddmax = 7--maximum amount
  655. local maxstamina = 100--max amount of stamina
  656. local stamina = 0--stamina you start out with
  657. local skill1stam = 0--how much stamina is needed for a skill
  658. local skill2stam = 0
  659. local skill3stam = 0
  660. local skill4stam = 0
  661. local recovermana = 4--how much mana per second
  662. local defensevalue = 1.2--how much defense this character has
  663. local speedvalue = 1--how much speed this character has
  664. --speed is 16*speedvalue
  665. local mindamage = 4--self explanatory
  666. local maxdamage = 7--self explanatory
  667. local damagevalue = 1--how much damage this character has
  668. local cf = CFrame.new-- make things easier :)
  669. local mr = math.rad
  670. local angles = CFrame.Angles
  671. local ud = UDim2.new
  672. local c3 = Color3.new
  673. local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol
  674.  
  675. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  676. function makeframe(par, trans, pos, size, color)
  677. local frame = Instance.new('Frame', par)
  678. frame.BackgroundTransparency = trans
  679. frame.BorderSizePixel = 0
  680. frame.Position = pos
  681. frame.Size = size
  682. frame.BackgroundColor3 = color
  683. return frame
  684. end
  685. function makelabel(par, text)
  686. local label = Instance.new('TextLabel', par)
  687. label.BackgroundTransparency = 1
  688. label.Size = ud(1, 0, 1, 0)
  689. label.Position = ud(0, 0, 0, 0)
  690. label.TextColor3 = c3(255, 255, 255)
  691. label.TextStrokeTransparency = 0
  692. label.FontSize = Enum.FontSize.Size32
  693. label.Font = Enum.Font.SourceSansBold
  694. label.BorderSizePixel = 0
  695. label.TextScaled = true
  696. label.Text = text
  697. end
  698. framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  699. framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  700. framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  701. framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  702. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  703. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  704. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  705. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  706. text1 = makelabel(framesk1, '[C] Ability 3 (Finished)')
  707. text2 = makelabel(framesk2, '[V] Ability 4 (Does nothing at the moment)')
  708. text3 = makelabel(framesk3, '[X] Ability 2 (Finished)')
  709. text4 = makelabel(framesk4, '[Z] Ability 1 (Finished)')
  710. staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1))
  711. staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1))
  712. staminatext = makelabel(staminabar, 'Mana')
  713. healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0))
  714. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255))
  715. healthtext = makelabel(healthbar, 'Health')
  716.  
  717. local stats=Instance.new('Folder',Character)
  718. stats.Name='Stats'
  719. local block=Instance.new('BoolValue',stats)
  720. block.Name='Block'
  721. block.Value=false
  722. local stun=Instance.new('BoolValue',stats)
  723. stun.Name='Stun'
  724. stun.Value=false
  725. local defense=Instance.new('NumberValue',stats)
  726. defense.Name='Defence'
  727. defense.Value=defensevalue
  728. local speed=Instance.new('NumberValue',stats)
  729. speed.Name='Speed'
  730. speed.Value=speedvalue
  731. local damagea=Instance.new('NumberValue',stats)
  732. damagea.Name='Damage'
  733. damagea.Value=damagevalue
  734.  
  735. function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
  736. local p = Instance.new('Part', par or workspace)
  737. p.CFrame = pos1
  738. p.Anchored = true
  739. p.Material = 'Plastic'
  740. p.CanCollide = false
  741. p.TopSurface = 0
  742. p.Size = Vector3.new(1, 1, 1)
  743. p.BottomSurface = 0
  744. p.Transparency = trans
  745. p.FormFactor = 'Custom'
  746. nooutline(p)
  747. local mesh = Instance.new('SpecialMesh', p)
  748. mesh.Scale = size
  749. if id ~= nil and type == nil then
  750. mesh.MeshId = 'rbxassetid://'..id
  751. elseif id == nil and type ~= nil then
  752. mesh.MeshType = type
  753. elseif id == nil and type == nil then
  754. mesh.MeshType = 'Brick'
  755. end
  756. coroutine.wrap(function()
  757. for i = 0, delay1, .1 do
  758. wait(1 / 60)
  759. p.CFrame = p.CFrame
  760. mesh.Scale = mesh.Scale + howmuch
  761. p.Transparency = p.Transparency + trans1
  762. end
  763. p:Destroy()
  764. end)()
  765. return p
  766. end
  767.  
  768. function clangy(cframe)
  769. wait(1 / 60)
  770. local clang = {}
  771. local dis = 0
  772. local part = Instance.new('Part', nil)
  773. part.CFrame = cframe
  774. part.Anchored = true
  775. part.CanCollide = false
  776. part.BrickColor = BrickColor.new('New Yeller')
  777. part.FormFactor = 'Custom'
  778. part.Name = 'clanger'
  779. part.Size = Vector3.new(.2, .2, .2)
  780. part.TopSurface = 10
  781. part.BottomSurface = 10
  782. part.RightSurface = 10
  783. part.LeftSurface = 10
  784. part.BackSurface = 10
  785. part.FrontSurface = 10
  786. --part.Material='Neon'
  787. part:BreakJoints()
  788. local mesh = Instance.new('BlockMesh', part)
  789. coroutine.wrap(function()
  790. for i = 1, 7 do
  791. wait(1 / 60)
  792. dis = dis + .2
  793. local partc = part:clone()
  794. partc.Parent = workspace
  795. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  796. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  797. table.insert(clang, partc)
  798. end
  799. for i, v in pairs(clang) do
  800. coroutine.wrap(function()
  801. for i = 1, 10 do
  802. wait(.01)
  803. v.Transparency = v.Transparency + .1
  804. end
  805. v:destroy()
  806. end)()
  807. end
  808. end)()
  809. end
  810. --damage effects
  811. function circle(color, pos1)
  812. local p = Instance.new('Part', m)
  813. p.BrickColor = BrickColor.new(color)
  814. p.CFrame = pos1
  815. p.Anchored = true
  816. p.Material = 'Plastic'
  817. p.CanCollide = false
  818. p.TopSurface = 0
  819. p.Size = Vector3.new(1, 1, 1)
  820. p.BottomSurface = 0
  821. p.Transparency = 0.35
  822. p.FormFactor = 'Custom'
  823. local mesh = Instance.new('CylinderMesh', p)
  824. mesh.Scale = Vector3.new(0, 0, 0)
  825. coroutine.wrap(function()
  826. for i = 0, 5, .1 do
  827. wait(1 / 60)
  828. p.CFrame = p.CFrame
  829. mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5)
  830. p.Transparency = p.Transparency + .025
  831. end
  832. p:Destroy()
  833. end)()
  834. end
  835. function firespaz1(color, pos1)
  836. local p = Instance.new('Part', m)
  837. p.BrickColor = BrickColor.new(color)
  838. p.CFrame = pos1
  839. p.Anchored = true
  840. p.Material = 'Plastic'
  841. p.CanCollide = false
  842. p.TopSurface = 0
  843. p.Size = Vector3.new(1, 1, 1)
  844. p.BottomSurface = 0
  845. p.Transparency = 0.5
  846. p.FormFactor = 'Custom'
  847. local mesh = Instance.new('BlockMesh', p)
  848. mesh.Scale = Vector3.new(1, 1, 1)
  849. coroutine.wrap(function()
  850. for i = 0, 15, .1 do
  851. wait(1 / 30)
  852. p.CFrame = p.CFrame * CFrame.new(0, .1, 0)
  853. mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1)
  854. p.Transparency = p.Transparency + .025
  855. end
  856. p:Destroy()
  857. end)()
  858. end
  859.  
  860. function pickrandom(tablesa)
  861. local randomized = tablesa[math.random(1, #tablesa)]
  862. return randomized
  863. end
  864. function sound(id,pitch,volume,par,last)
  865. local s=Instance.new('Sound',par or Torso)
  866. s.SoundId='rbxassetid://'..id
  867. s.Pitch=pitch or 1
  868. s.Volume=volume or 1
  869. wait()
  870. s:play()
  871. game.Debris:AddItem(s,last or 120)
  872. end
  873. function clangy(cframe)
  874. wait(1 / 60)
  875. local clang = {}
  876. local dis = 0
  877. local part = Instance.new('Part', nil)
  878. part.CFrame = cframe
  879. part.Anchored = true
  880. part.CanCollide = false
  881. part.BrickColor = BrickColor.new('New Yeller')
  882. part.FormFactor = 'Custom'
  883. part.Name = 'clanger'
  884. part.Size = Vector3.new(.2, .2, .2)
  885. part.TopSurface = 10
  886. part.BottomSurface = 10
  887. part.RightSurface = 10
  888. part.LeftSurface = 10
  889. part.BackSurface = 10
  890. part.FrontSurface = 10
  891. --part.Material='Neon'
  892. part:BreakJoints()
  893. local mesh = Instance.new('BlockMesh', part)
  894. coroutine.wrap(function()
  895. for i = 1, 7 do
  896. wait(1 / 60)
  897. dis = dis + .2
  898. local partc = part:clone()
  899. partc.Parent = workspace
  900. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  901. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  902. table.insert(clang, partc)
  903. end
  904. for i, v in pairs(clang) do
  905. coroutine.wrap(function()
  906. for i = 1, 10 do
  907. wait(.01)
  908. v.Transparency = v.Transparency + .1
  909. end
  910. v:destroy()
  911. end)()
  912. end
  913. end)()
  914. end
  915. --damage effects
  916. --Effects
  917. so = function(id,par,vol,pit)
  918. coroutine.resume(coroutine.create(function()
  919. local sou = Instance.new("Sound",par or workspace)
  920. sou.Volume=vol
  921. sou.Pitch=pit or 1
  922. sou.SoundId=id
  923. swait()
  924. sou:play()
  925. game:GetService("Debris"):AddItem(sou,6)
  926. end))
  927. end
  928.  
  929. function getclosest(obj,dis, player)
  930. if player then
  931. return (player.Torso.CFrame.p - obj).magnitude < dis
  932. end
  933. local list = {}
  934. for i, v in pairs(workspace:GetChildren()) do
  935. if v:IsA("Model") then
  936. if v:findFirstChild("Torso") then
  937. if v ~= Character then
  938. if (v.Torso.Position - obj).magnitude <= dis then
  939. table.insert(list, v)
  940. end
  941. end
  942. end
  943. end
  944. end
  945. return list
  946. end
  947.  
  948. function tag(hum, player)
  949. local creator = Instance.new('ObjectValue', hum)
  950. creator.Value = player
  951. creator.Name = 'creator'
  952. end
  953. function untag(hum)
  954. if hum ~= nil then
  955. local tag = hum:findFirstChild("creator")
  956. if tag ~= nil then
  957. tag.Parent = nil
  958. end
  959. end
  960. end
  961.  
  962. function tagplayer(h)
  963. coroutine.wrap(function()
  964. tag(h, player)
  965. wait(1)
  966. untag(h)
  967. end)()
  968. end
  969.  
  970. function randomizer(percent)
  971. local randomized = math.random(0, 100)
  972. if randomized <= percent then
  973. return true
  974. elseif randomized >= percent then
  975. return false
  976. end
  977. end
  978.  
  979. function turncrit()
  980. coroutine.resume(coroutine.create(function()
  981. print'CRITICAL!'
  982. crit = true
  983. wait(.25)
  984. crit = false
  985. end))
  986. end
  987.  
  988. --[[function damage(hit, mind, maxd, knock, type, prop)
  989. --
  990. to apply it to a player directly, make the first arg go to the players torso
  991. 1 - normal type(damage and knockback)
  992. 2 - drain type(damage no knockback)
  993. 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed
  994. 4 - heal(heals target)
  995. 5 - subtracts enemies defense
  996. 6 - subtracts enemies speed
  997. 7 -
  998.  
  999. if hit.Material == 'Metal' then
  1000. local pos = CFrame.new(0, 1, -1)
  1001. CreateSound(pickrandom(clangsounds),math.random(100,150)/100,1,Torso,6)
  1002. coroutine.wrap(function()
  1003. for i = 1, 4 do
  1004. clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
  1005. end
  1006. end)()
  1007. end
  1008. if hit.Parent == nil then
  1009. return
  1010. end
  1011. local h = hit.Parent:FindFirstChild("Humanoid")
  1012. for i, v in pairs(hit.Parent:children()) do
  1013. if v:IsA("Humanoid") then
  1014. h = v
  1015. end
  1016. end
  1017. if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
  1018. h = hit.Parent.Parent:FindFirstChild('Humanoid')
  1019. end
  1020. if hit.Parent:IsA('Hat') then
  1021. hit = hit.Parent.Parent:findFirstChild('Head')
  1022. end
  1023. local D = math.random(mind, maxd)*damagea.Value
  1024. if h then
  1025. makegui(h.Parent.Head.CFrame, tostring(math.floor(D+.5)))
  1026. end
  1027. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1028. if type == 1 then
  1029. tagplayer(h)
  1030. local asd = randomizer(critchance)
  1031. if asd == true then
  1032. turncrit()
  1033. end
  1034. if crit == false then
  1035. h.Health = h.Health - D
  1036. else
  1037. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  1038. end
  1039. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  1040. local vp = Instance.new('BodyVelocity')
  1041. vp.P = 500
  1042. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1043. vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
  1044. if knock > 0 then
  1045. vp.Parent = hit.Parent.Torso
  1046. end
  1047. game:GetService("Debris"):AddItem(vp, .5)
  1048. elseif type == 2 then
  1049. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  1050. local asd = randomizer(critchance)
  1051. if asd == true then
  1052. turncrit()
  1053. end
  1054. if crit == false then
  1055. h.Health = h.Health - D
  1056. else
  1057. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  1058. end
  1059. tagplayer(h)
  1060. elseif type == 3 then
  1061. tagplayer(h)
  1062. local asd = randomizer(critchance)
  1063. if asd == true then
  1064. turncrit()
  1065. end
  1066. if crit == false then
  1067. h.Health = h.Health - D
  1068. else
  1069. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  1070. end
  1071. Character.Humanoid.Health = Character.Humanoid.Health + D / 2
  1072. so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
  1073. for i = 1, 10 do
  1074. firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
  1075. end
  1076. elseif type == 4 then
  1077. h.Health = h.Health + D
  1078. so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
  1079. circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
  1080. end
  1081. end
  1082. end]]--
  1083.  
  1084. function subtractstamina(k)
  1085. if stamina >= k then
  1086. stamina = stamina - k
  1087. end
  1088. end
  1089.  
  1090. local function weldBetween(a, b)
  1091. local weldd = Instance.new("ManualWeld")
  1092. weldd.Part0 = a
  1093. weldd.Part1 = b
  1094. weldd.C0 = CFrame.new()
  1095. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1096. weldd.Parent = a
  1097. return weldd
  1098. end
  1099.  
  1100. function swait(num)
  1101. if num==0 or num==nil then
  1102. game:service'RunService'.Stepped:wait(0)
  1103. else
  1104. for i=0,num do
  1105. game:service'RunService'.Stepped:wait(0)
  1106. end
  1107. end
  1108. end
  1109.  
  1110. function nooutline(part)
  1111. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1112. end
  1113.  
  1114. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1115. local fp=it("Part")
  1116. fp.formFactor=formfactor
  1117. fp.Parent=parent
  1118. fp.Reflectance=reflectance
  1119. fp.Transparency=transparency
  1120. fp.CanCollide=false
  1121. fp.Locked=true
  1122. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1123. fp.Name=name
  1124. fp.Size=size
  1125. fp.Position=Character.Torso.Position
  1126. nooutline(fp)
  1127. fp.Material=material
  1128. fp:BreakJoints()
  1129. return fp
  1130. end
  1131.  
  1132. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1133. local mesh=it(Mesh)
  1134. mesh.Parent=part
  1135. if Mesh=="SpecialMesh" then
  1136. mesh.MeshType=meshtype
  1137. mesh.MeshId=meshid
  1138. end
  1139. mesh.Offset=offset
  1140. mesh.Scale=scale
  1141. return mesh
  1142. end
  1143.  
  1144. function weld(parent,part0,part1,c0,c1)
  1145. local weld=it("Weld")
  1146. weld.Parent=parent
  1147. weld.Part0=part0
  1148. weld.Part1=part1
  1149. weld.C0=c0
  1150. weld.C1=c1
  1151. return weld
  1152. end
  1153.  
  1154.  
  1155. local function CFrameFromTopBack(at, top, back)
  1156. local right = top:Cross(back)
  1157. return CFrame.new(at.x, at.y, at.z,
  1158. right.x, top.x, back.x,
  1159. right.y, top.y, back.y,
  1160. right.z, top.z, back.z)
  1161. end
  1162.  
  1163. function Triangle(a, b, c)
  1164. local edg1 = (c-a):Dot((b-a).unit)
  1165. local edg2 = (a-b):Dot((c-b).unit)
  1166. local edg3 = (b-c):Dot((a-c).unit)
  1167. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1168. a, b, c = a, b, c
  1169. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1170. a, b, c = b, c, a
  1171. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1172. a, b, c = c, a, b
  1173. else
  1174. assert(false, "unreachable")
  1175. end
  1176.  
  1177. local len1 = (c-a):Dot((b-a).unit)
  1178. local len2 = (b-a).magnitude - len1
  1179. local width = (a + (b-a).unit*len1 - c).magnitude
  1180.  
  1181. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1182.  
  1183. local list = {}
  1184.  
  1185. local TrailColor = ("Dark grey")
  1186.  
  1187. if len1 > 0.01 then
  1188. local w1 = Instance.new('WedgePart', m)
  1189. game:GetService("Debris"):AddItem(w1,5)
  1190. w1.Material = "SmoothPlastic"
  1191. w1.FormFactor = 'Custom'
  1192. w1.BrickColor = BrickColor.new(TrailColor)
  1193. w1.Transparency = 0
  1194. w1.Reflectance = 0
  1195. w1.Material = "SmoothPlastic"
  1196. w1.CanCollide = false
  1197. NoOutline(w1)
  1198. local sz = Vector3.new(0.2, width, len1)
  1199. w1.Size = sz
  1200. local sp = Instance.new("SpecialMesh",w1)
  1201. sp.MeshType = "Wedge"
  1202. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1203. w1:BreakJoints()
  1204. w1.Anchored = true
  1205. w1.Parent = workspace
  1206. w1.Transparency = 0.7
  1207. table.insert(Effects,{w1,"Disappear",.01})
  1208. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1209. table.insert(list,w1)
  1210. end
  1211.  
  1212. if len2 > 0.01 then
  1213. local w2 = Instance.new('WedgePart', m)
  1214. game:GetService("Debris"):AddItem(w2,5)
  1215. w2.Material = "SmoothPlastic"
  1216. w2.FormFactor = 'Custom'
  1217. w2.BrickColor = BrickColor.new(TrailColor)
  1218. w2.Transparency = 0
  1219. w2.Reflectance = 0
  1220. w2.Material = "SmoothPlastic"
  1221. w2.CanCollide = false
  1222. NoOutline(w2)
  1223. local sz = Vector3.new(0.2, width, len2)
  1224. w2.Size = sz
  1225. local sp = Instance.new("SpecialMesh",w2)
  1226. sp.MeshType = "Wedge"
  1227. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1228. w2:BreakJoints()
  1229. w2.Anchored = true
  1230. w2.Parent = workspace
  1231. w2.Transparency = 0.7
  1232. table.insert(Effects,{w2,"Disappear",.01})
  1233. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1234. table.insert(list,w2)
  1235. end
  1236. return unpack(list)
  1237. end
  1238.  
  1239.  
  1240. so = function(id,par,vol,pit)
  1241. coroutine.resume(coroutine.create(function()
  1242. local sou = Instance.new("Sound",par or workspace)
  1243. sou.Volume=vol
  1244. sou.Pitch=pit or 1
  1245. sou.SoundId=id
  1246. swait()
  1247. sou:play()
  1248. game:GetService("Debris"):AddItem(sou,6)
  1249. end))
  1250. end
  1251.  
  1252. function clerp(a,b,t)
  1253. local qa = {QuaternionFromCFrame(a)}
  1254. local qb = {QuaternionFromCFrame(b)}
  1255. local ax, ay, az = a.x, a.y, a.z
  1256. local bx, by, bz = b.x, b.y, b.z
  1257. local _t = 1-t
  1258. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1259. end
  1260.  
  1261. local clerp = CFrame.new().lerp
  1262.  
  1263. function QuaternionFromCFrame(cf)
  1264. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1265. local trace = m00 + m11 + m22
  1266. if trace > 0 then
  1267. local s = math.sqrt(1 + trace)
  1268. local recip = 0.5/s
  1269. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1270. else
  1271. local i = 0
  1272. if m11 > m00 then
  1273. i = 1
  1274. end
  1275. if m22 > (i == 0 and m00 or m11) then
  1276. i = 2
  1277. end
  1278. if i == 0 then
  1279. local s = math.sqrt(m00-m11-m22+1)
  1280. local recip = 0.5/s
  1281. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1282. elseif i == 1 then
  1283. local s = math.sqrt(m11-m22-m00+1)
  1284. local recip = 0.5/s
  1285. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1286. elseif i == 2 then
  1287. local s = math.sqrt(m22-m00-m11+1)
  1288. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1289. end
  1290. end
  1291. end
  1292.  
  1293. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1294. local xs, ys, zs = x + x, y + y, z + z
  1295. local wx, wy, wz = w*xs, w*ys, w*zs
  1296. local xx = x*xs
  1297. local xy = x*ys
  1298. local xz = x*zs
  1299. local yy = y*ys
  1300. local yz = y*zs
  1301. local zz = z*zs
  1302. 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))
  1303. end
  1304.  
  1305. function QuaternionSlerp(a, b, t)
  1306. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1307. local startInterp, finishInterp;
  1308. if cosTheta >= 0.0001 then
  1309. if (1 - cosTheta) > 0.0001 then
  1310. local theta = math.acos(cosTheta)
  1311. local invSinTheta = 1/math.sin(theta)
  1312. startInterp = math.sin((1-t)*theta)*invSinTheta
  1313. finishInterp = math.sin(t*theta)*invSinTheta
  1314. else
  1315. startInterp = 1-t
  1316. finishInterp = t
  1317. end
  1318. else
  1319. if (1+cosTheta) > 0.0001 then
  1320. local theta = math.acos(-cosTheta)
  1321. local invSinTheta = 1/math.sin(theta)
  1322. startInterp = math.sin((t-1)*theta)*invSinTheta
  1323. finishInterp = math.sin(t*theta)*invSinTheta
  1324. else
  1325. startInterp = t-1
  1326. finishInterp = t
  1327. end
  1328. end
  1329. 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
  1330. end
  1331.  
  1332. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1333.  
  1334.  
  1335. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1336. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1337. end
  1338.  
  1339. function makegui(cframe, text)
  1340. local a = math.random(-10, 10) / 100
  1341. local c = Instance.new("Part")
  1342. c.Transparency = 1
  1343. Instance.new("BodyGyro").Parent = c
  1344. c.Parent = workspace
  1345. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  1346. local f = Instance.new("BodyPosition")
  1347. f.P = 2000
  1348. f.D = 100
  1349. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1350. f.position = c.Position + Vector3.new(0, 3, 0)
  1351. f.Parent = c
  1352. game:GetService("Debris"):AddItem(c, .5 + 6)
  1353. c.CanCollide = false
  1354. c.Parent = workspace
  1355. c.CanCollide = false
  1356. local bg = Instance.new('BillboardGui', c)
  1357. bg.Adornee = c
  1358. bg.Size = UDim2.new(1, 0, 1, 0)
  1359. bg.StudsOffset = Vector3.new(0, 0, 0)
  1360. bg.AlwaysOnTop = false
  1361. local tl = Instance.new('TextLabel', bg)
  1362. tl.BackgroundTransparency = 1
  1363. tl.Size = UDim2.new(1, 0, 1, 0)
  1364. tl.Text = text
  1365. tl.Font = 'SourceSansBold'
  1366. tl.FontSize = 'Size42'
  1367. if crit == true then
  1368. tl.TextColor3 = Color3.new(180 / 255, 0, 0)
  1369. else
  1370. tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
  1371. end
  1372. tl.TextStrokeTransparency = 0
  1373. tl.TextScaled = true
  1374. tl.TextWrapped = true
  1375. coroutine.wrap(function()
  1376. wait(2)
  1377. for i = 1, 10 do
  1378. fat.Event:wait()
  1379. c.Transparency = 1
  1380. tl.TextTransparency = tl.TextTransparency + .1
  1381. end
  1382. end)()
  1383. end
  1384.  
  1385. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1386. if hit.Parent==nil then
  1387. return
  1388. end
  1389. h=hit.Parent:FindFirstChild("Humanoid")
  1390. for _,v in pairs(hit.Parent:children()) do
  1391. if v:IsA("Humanoid") then
  1392. h=v
  1393. end
  1394. end
  1395. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1396. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1397. end
  1398. if hit.Parent.className=="Hat" then
  1399. hit=hit.Parent.Parent:findFirstChild("Head")
  1400. end
  1401. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1402. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1403. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1404. return
  1405. end]]
  1406. -- hs(hit,1.2)
  1407. --[[ c=Instance.new("ObjectValue")
  1408. c.Name="creator"
  1409. c.Value=game:service("Players").LocalPlayer
  1410. c.Parent=h
  1411. game:GetService("Debris"):AddItem(c,.5)]]--
  1412. --Damage=math.random(minim,maxim)*damagea.Value/defense.Value
  1413. -- h:TakeDamage(Damage)
  1414. blocked=false
  1415. block=hit.Parent:findFirstChild("Block")
  1416. if block~=nil then
  1417. print(block.className)
  1418. if block.className=="NumberValue" then
  1419. if block.Value>0 then
  1420. blocked=true
  1421. if decreaseblock==nil then
  1422. block.Value=block.Value-1
  1423. end
  1424. end
  1425. end
  1426. if block.className=="IntValue" then
  1427. if block.Value>0 then
  1428. blocked=true
  1429. if decreaseblock~=nil then
  1430. block.Value=block.Value-1
  1431. end
  1432. end
  1433. end
  1434. end
  1435. if blocked==false then
  1436. -- h:TakeDamage(Damage)
  1437. local D = math.random(minim, maxim)*damagea.Value
  1438. --TagService:NewTag(h.Parent, Player, 'Harbaceus', D)
  1439. if h.Parent:FindFirstChild('Stats') then
  1440. D=D/h.Parent:FindFirstChild('Stats').Defence.Value
  1441. elseif not h.Parent:FindFirstChild('Stats') then
  1442. D=D
  1443. end
  1444. h.Health=h.Health-D
  1445. makegui(hit.Parent.Head.CFrame,tostring(math.floor(D+.5)))
  1446. --showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
  1447. else
  1448. local D = math.random(minim, maxim)*damagea.Value
  1449. if h.Parent:FindFirstChild('Stats') then
  1450. D=D/h.Parent:FindFirstChild('Stats').Defence.Value
  1451. elseif not h.Parent:FindFirstChild('Stats') then
  1452. D=D
  1453. end
  1454. h.Health=h.Health-(D/2)
  1455. makegui(hit.Parent.Head.CFrame,tostring(math.floor(D+.5)))
  1456. --showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1457. end
  1458. if Type=="Knockdown" then
  1459. humanoid=hit.Parent.Humanoid
  1460. humanoid.PlatformStand=true
  1461. coroutine.resume(coroutine.create(function(Humanoid)
  1462. fat.Event:wait()
  1463. Humanoid.PlatformStand=false
  1464. end),humanoid)
  1465. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1466. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1467. local bodvol=Instance.new("BodyVelocity")
  1468. bodvol.velocity=angle*knockback
  1469. bodvol.P=5000
  1470. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1471. bodvol.Parent=hit
  1472. rl=Instance.new("BodyAngularVelocity")
  1473. rl.P=3000
  1474. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1475. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1476. rl.Parent=hit
  1477. game:GetService("Debris"):AddItem(bodvol,.5)
  1478. game:GetService("Debris"):AddItem(rl,.5)
  1479. elseif Type=="Normal" then
  1480. so("http://www.roblox.com/asset/?id=344936315",hit,1,math.random(100,200)/100)
  1481. vp=Instance.new("BodyVelocity")
  1482. vp.P=500
  1483. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1484. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1485. if KnockbackType==1 then
  1486. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1487. elseif KnockbackType==2 then
  1488. vp.velocity=Property.CFrame.lookVector*knockback
  1489. end
  1490. if knockback>0 then
  1491. vp.Parent=hit.Parent.Torso
  1492. end
  1493. game:GetService("Debris"):AddItem(vp,.5)
  1494. elseif Type=="LaserShot" then
  1495. so("http://www.roblox.com/asset/?id=201858072",hit,1,math.random(100,200)/100)
  1496. so("http://www.roblox.com/asset/?id=180204650",hit,1,math.random(50,100)/100)
  1497. so("http://www.roblox.com/asset/?id=151790502",hit,1,math.random(100,200)/100)
  1498. vp=Instance.new("BodyVelocity")
  1499. vp.P=500
  1500. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1501. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1502. if KnockbackType==1 then
  1503. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1504. elseif KnockbackType==2 then
  1505. vp.velocity=Property.CFrame.lookVector*knockback
  1506. end
  1507. if knockback>0 then
  1508. vp.Parent=hit.Parent.Torso
  1509. end
  1510. game:GetService("Debris"):AddItem(vp,.5)
  1511. elseif Type=="Up" then
  1512. local bodyVelocity=Instance.new("BodyVelocity")
  1513. bodyVelocity.velocity=vt(0,60,0)
  1514. bodyVelocity.P=5000
  1515. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1516. bodyVelocity.Parent=hit
  1517. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1518. rl=Instance.new("BodyAngularVelocity")
  1519. rl.P=3000
  1520. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1521. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1522. rl.Parent=hit
  1523. game:GetService("Debris"):AddItem(rl,.5)
  1524. elseif Type=="Snare" then
  1525. bp=Instance.new("BodyPosition")
  1526. bp.P=2000
  1527. bp.D=100
  1528. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1529. bp.position=hit.Parent.Torso.Position
  1530. bp.Parent=hit.Parent.Torso
  1531. game:GetService("Debris"):AddItem(bp,1)
  1532. elseif Type=="Target" then
  1533. so("http://www.roblox.com/asset/?id=199144144",hit,1,math.random(150,200)/100)
  1534. vp=Instance.new("BodyVelocity")
  1535. vp.P=500
  1536. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1537. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1538. if KnockbackType==1 then
  1539. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1540. elseif KnockbackType==2 then
  1541. vp.velocity=Property.CFrame.lookVector*knockback
  1542. end
  1543. if knockback>0 then
  1544. vp.Parent=hit.Parent.Torso
  1545. end
  1546. game:GetService("Debris"):AddItem(vp,.5)
  1547. end
  1548. debounce=Instance.new("BoolValue")
  1549. debounce.Name="DebounceHit"
  1550. debounce.Parent=hit.Parent
  1551. debounce.Value=true
  1552. game:GetService("Debris"):AddItem(debounce,Delay)
  1553. c=Instance.new("ObjectValue")
  1554. c.Name="creator"
  1555. c.Value=Player
  1556. c.Parent=h
  1557. game:GetService("Debris"):AddItem(c,.5)
  1558. CRIT=false
  1559. hitDeb=true
  1560. AttackPos=6
  1561. end
  1562. end
  1563.  
  1564. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  1565. for _,c in pairs(workspace:children()) do
  1566. local hum=c:findFirstChild("Humanoid")
  1567. if hum~=nil then
  1568. local head=c:findFirstChild("Torso")
  1569. if head~=nil then
  1570. local targ=head.Position-Part.Position
  1571. local mag=targ.magnitude
  1572. if mag<=magni and c.Name~=Player.Name then
  1573. Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,3,1)
  1574. end
  1575. end
  1576. end
  1577. end
  1578. end
  1579.  
  1580. function JumpEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1581. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1582. prt.Anchored = true
  1583. prt.CanCollide=false
  1584. prt.CFrame = cframe*angles(math.rad(90),0,0)
  1585. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1586. game:GetService("Debris"):AddItem(prt, 10)
  1587. coroutine.resume(coroutine.create(function(Part, Mesh)
  1588. for i = 0, 1, delay do
  1589. fat.Event:wait()
  1590. Part.CFrame = Part.CFrame
  1591. Part.Transparency = i
  1592. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1593. end
  1594. Part.Parent = nil
  1595. end), prt, msh)
  1596. end
  1597.  
  1598. function OrbEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  1599. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1600. prt.Anchored = true
  1601. prt.CanCollide=false
  1602. prt.CFrame = cframe*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1603. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1604. game:GetService("Debris"):AddItem(prt, 10)
  1605. coroutine.resume(coroutine.create(function(Part, Mesh)
  1606. for i = 0, 1, delay do
  1607. fat.Event:wait()
  1608. Part.CFrame = Part.CFrame
  1609. Part.Transparency = i
  1610. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  1611. end
  1612. Part.Parent = nil
  1613. end), prt, msh)
  1614. end
  1615.  
  1616. function BlockShockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1617. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1618. prt.Anchored = true
  1619. prt.CFrame = cframe*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1620. --prt.Material = "Neon"
  1621. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1622. game:GetService("Debris"):AddItem(prt, 10)
  1623. coroutine.resume(coroutine.create(function(Part, Mesh)
  1624. for i = 0, 1, delay do
  1625. fat.Event:wait()
  1626. Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1627. Part.Transparency = i
  1628. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1629. end
  1630. Part.Parent = nil
  1631. end), prt, msh)
  1632. end
  1633.  
  1634. function CylinderShockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1635. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1636. prt.Anchored = true
  1637. prt.CFrame = cframe--*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1638. --prt.Material = "Neon"
  1639. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1640. game:GetService("Debris"):AddItem(prt, 10)
  1641. coroutine.resume(coroutine.create(function(Part, Mesh)
  1642. for i = 0, 1, delay do
  1643. fat.Event:wait()
  1644. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1645. Part.Transparency = i
  1646. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1647. end
  1648. Part.Parent = nil
  1649. end), prt, msh)
  1650. end
  1651.  
  1652. function Laser(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1653. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1654. prt.Anchored = true
  1655. prt.CFrame = cframe--*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1656. prt.Material = "Neon"
  1657. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1658. game:GetService("Debris"):AddItem(prt, 10)
  1659. coroutine.resume(coroutine.create(function(Part, Mesh)
  1660. for i = 0, 1, delay do
  1661. fat.Event:wait()
  1662. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1663. Part.Transparency = i
  1664. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1665. end
  1666. Part.Parent = nil
  1667. end), prt, msh)
  1668. end
  1669.  
  1670. function Laser2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1671. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1672. prt.Anchored = true
  1673. prt.CFrame = cframe--*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1674. prt.Material = "Neon"
  1675. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1676. game:GetService("Debris"):AddItem(prt, 10)
  1677. coroutine.resume(coroutine.create(function(Part, Mesh)
  1678. for i = 0, 1, delay do
  1679. fat.Event:wait()
  1680. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1681. Part.Transparency = i
  1682. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1683. end
  1684. Part.Parent = nil
  1685. end), prt, msh)
  1686. end
  1687.  
  1688. function Laser3(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1689. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1690. prt.Anchored = true
  1691. prt.CFrame = cframe--*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1692. prt.Material = "Neon"
  1693. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1694. game:GetService("Debris"):AddItem(prt, 10)
  1695. coroutine.resume(coroutine.create(function(Part, Mesh)
  1696. for i = 0, 1, delay do
  1697. fat.Event:wait()
  1698. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1699. Part.Transparency = i
  1700. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1701. end
  1702. Part.Parent = nil
  1703. end), prt, msh)
  1704. end
  1705.  
  1706.  
  1707. function SphereShockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1708. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1709. prt.Anchored = true
  1710. prt.CFrame = cframe--*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1711. --prt.Material = "Neon"
  1712. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1713. game:GetService("Debris"):AddItem(prt, 10)
  1714. coroutine.resume(coroutine.create(function(Part, Mesh)
  1715. for i = 0, 1, delay do
  1716. fat.Event:wait()
  1717. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1718. Part.Transparency = i
  1719. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1720. end
  1721. Part.Parent = nil
  1722. end), prt, msh)
  1723. end
  1724.  
  1725. function SphereShockwave2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1726. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1727. prt.Anchored = true
  1728. prt.CFrame = cframe*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1729. --prt.Material = "Neon"
  1730. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1731. game:GetService("Debris"):AddItem(prt, 10)
  1732. coroutine.resume(coroutine.create(function(Part, Mesh)
  1733. for i = 0, 1, delay do
  1734. fat.Event:wait()
  1735. --Part.CFrame = Part.CFrame*angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90)))
  1736. Part.Transparency = i
  1737. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1738. end
  1739. Part.Parent = nil
  1740. end), prt, msh)
  1741. end
  1742.  
  1743. function Shockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1744. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1745. prt.Anchored = true
  1746. prt.CFrame = cframe
  1747. --prt.Material = "Neon"
  1748. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1749. game:GetService("Debris"):AddItem(prt, 10)
  1750. coroutine.resume(coroutine.create(function(Part, Mesh)
  1751. for i = 0, 1, delay do
  1752. fat.Event:wait()
  1753. Part.CFrame = Part.CFrame
  1754. Part.Transparency = i
  1755. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1756. end
  1757. Part.Parent = nil
  1758. end), prt, msh)
  1759. end
  1760.  
  1761. canwalk=true
  1762. canidle=true
  1763. aimtorso=false
  1764. MMouse=mouse
  1765. gyro = Instance.new("BodyGyro")
  1766. gyro.Parent = nil
  1767. gyro.P = 1e7
  1768. gyro.D = 1e3
  1769. gyro.MaxTorque = Vector3.new(0, 1e7, 0)
  1770.  
  1771. function EquiporUnequip()
  1772. attack=true
  1773. if equipped==false then
  1774. equipped=true
  1775. so("http://roblox.com/asset/?id=200633077",Hitbox,1,0.8)
  1776. for i=0,1,0.75 do
  1777. fat.Event:wait()
  1778. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),0.45)
  1779. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-30)),0.45)
  1780. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(15)),0.6)
  1781. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(145),math.rad(0),math.rad(15)),0.6)
  1782. end
  1783. for i=0,1,0.15 do
  1784. fat.Event:wait()
  1785. hammeraura.Pitch = 0+0.8*i
  1786. hammeraura.Volume = 0+1*i
  1787. EffectPart.Transparency = 1-2*i
  1788. Effect2Part.Transparency = 1-2*i
  1789. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),0.45)
  1790. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(-15)),0.45)
  1791. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.6)
  1792. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(210),math.rad(30),math.rad(30)),0.6)
  1793. end
  1794. hammeraura.Pitch = 0.8
  1795. hammeraura.Volume = 1
  1796. Handleweld.Part0=LeftArm
  1797. Handleweld.Part1=Handle
  1798. Handleweld.C0=cf(0,0,-0.5)*angles(math.rad(-30),math.rad(-90),math.rad(0))
  1799. for i=0,1,0.5 do
  1800. fat.Event:wait()
  1801. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.45)
  1802. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(45)),0.45)
  1803. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(15)),0.45)
  1804. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(135),math.rad(0),math.rad(-30)),0.45)
  1805. Handleweld.C0=clerp(Handleweld.C0,CFrame.new(0,0,-0.5)*angles(math.rad(-30),math.rad(0),math.rad(0)),0.3)
  1806. end
  1807. elseif equipped==true then
  1808. equipped=false
  1809. so("http://roblox.com/asset/?id=200633029",Hitbox,1,0.8)
  1810. for i=0,1,0.75 do
  1811. fat.Event:wait()
  1812. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),0.45)
  1813. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-30)),0.45)
  1814. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(15)),0.6)
  1815. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(145),math.rad(0),math.rad(15)),0.6)
  1816. Handleweld.C0=clerp(Handleweld.C0,CFrame.new(0,0,-0.5)*angles(math.rad(-30),math.rad(-90),math.rad(0)),0.3)
  1817. end
  1818. for i=0,1,0.15 do
  1819. fat.Event:wait()
  1820. hammeraura.Pitch = 0.8-0.8*i
  1821. hammeraura.Volume = 1-1*i
  1822. EffectPart.Transparency = 0+2*i
  1823. Effect2Part.Transparency = 0+2*i
  1824. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),0.45)
  1825. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(-15)),0.45)
  1826. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.6)
  1827. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(210),math.rad(30),math.rad(30)),0.6)
  1828. Handleweld.C0=clerp(Handleweld.C0,CFrame.new(0,0,-0.5)*angles(math.rad(-30),math.rad(-90),math.rad(0)),0.3)
  1829. end
  1830. hammeraura.Pitch = 0
  1831. hammeraura.Volume = 0
  1832. Handleweld.Part0=Torso
  1833. Handleweld.Part1=Handle
  1834. Handleweld.C0=cf(-1.5,0.5,0.75)*angles(math.rad(-90),math.rad(-45),math.rad(90))
  1835. for i=0,1,0.75 do
  1836. fat.Event:wait()
  1837. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),0.45)
  1838. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-30)),0.45)
  1839. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(15)),0.6)
  1840. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(145),math.rad(0),math.rad(15)),0.6)
  1841. end
  1842. end
  1843. attack=false
  1844. end
  1845.  
  1846. function unequipattackone()
  1847. attack=true
  1848. for i=0,1,0.2 do
  1849. fat.Event:wait()
  1850. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(60)),0.45)
  1851. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-45)),0.45)
  1852. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(60),math.rad(0),math.rad(-60)),0.45)
  1853. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-45)),0.45)
  1854. end
  1855. con1=LeftArm.Touched:connect(function(hit) Damagefunc(hit,4,6,5,"Normal",RootPart,.2,1) end)
  1856. so("http://roblox.com/asset/?id=200632136",LeftArm,1,1)
  1857. Torso.Velocity=RootPart.CFrame.lookVector*25
  1858. for i=0,1,0.25 do
  1859. fat.Event:wait()
  1860. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-60)),0.45)
  1861. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(-10),math.rad(45)),0.45)
  1862. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.45)
  1863. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(45)),0.45)
  1864. end
  1865. con1:disconnect()
  1866. attack=false
  1867. end
  1868.  
  1869. function unequipattacktwo()
  1870. canwalk=false
  1871. canidle=false
  1872. attack=true
  1873. Humanoid.WalkSpeed = 0*speed.Value
  1874. for i=0,1,0.15 do
  1875. fat.Event:wait()
  1876. Humanoid.WalkSpeed = 0*speed.Value
  1877. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-30)),0.45)
  1878. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(-10),math.rad(-30)),0.45)
  1879. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(15)),0.45)
  1880. 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)
  1881. 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)
  1882. 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)
  1883. end
  1884. con1=RightLeg.Touched:connect(function(hit) Damagefunc(hit,4,6,5,"Normal",RootPart,.2,1) end)
  1885. so("http://roblox.com/asset/?id=200632211",RightLeg,1,1)
  1886. Torso.Velocity=RootPart.CFrame.lookVector*25
  1887. for i=0,1,0.2 do
  1888. fat.Event:wait()
  1889. Humanoid.WalkSpeed = 0*speed.Value
  1890. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(15)),0.45)
  1891. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(-10),math.rad(-15)),0.45)
  1892. RW.C0=clerp(RW.C0,CFrame.new(1.25,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(-45)),0.45)
  1893. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-45),math.rad(0),math.rad(-15)),0.45)
  1894. 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)
  1895. 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)
  1896. end
  1897. Humanoid.WalkSpeed = 16*speed.Value
  1898. canwalk=true
  1899. canidle=true
  1900. con1:disconnect()
  1901. attack=false
  1902. end
  1903.  
  1904. function unequipattackthree()
  1905. attack=true
  1906. for i=0,1,0.15 do
  1907. fat.Event:wait()
  1908. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)*angles(math.rad(10),math.rad(0),math.rad(75)),0.45)
  1909. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-30)),0.45)
  1910. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),0.45)
  1911. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-15)),0.45)
  1912. end
  1913. con1=RightArm.Touched:connect(function(hit) Damagefunc(hit,4,6,5,"Normal",RootPart,.2,1) end)
  1914. so("http://roblox.com/asset/?id=200632136",RightArm,1,0.8)
  1915. Torso.Velocity=RootPart.CFrame.lookVector*25
  1916. for i=0,1,0.2 do
  1917. fat.Event:wait()
  1918. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.45)
  1919. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(45)),0.45)
  1920. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(75)),0.45)
  1921. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(30),math.rad(0),math.rad(-30)),0.45)
  1922. end
  1923. con1:disconnect()
  1924. attack=false
  1925. end
  1926.  
  1927. function unequipattackfour()
  1928. canidle=false
  1929. canwalk=false
  1930. attack=true
  1931. for i=0,1,0.15 do
  1932. fat.Event:wait()
  1933. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.25)*angles(math.rad(20),math.rad(0),math.rad(-45)),0.45)
  1934. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(30)),0.45)
  1935. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(10)),0.45)
  1936. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(45)),0.45)
  1937. 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)
  1938. 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)
  1939. end
  1940. con1=RightLeg.Touched:connect(function(hit) Damagefunc(hit,4,6,5,"Normal",RootPart,.2,1) end)
  1941. con2=LeftLeg.Touched:connect(function(hit) Damagefunc(hit,4,6,5,"Normal",RootPart,.2,1) end)
  1942. so("http://roblox.com/asset/?id=200632370",Torso,1,1)
  1943. for i=0,1,0.12 do
  1944. fat.Event:wait()
  1945. Torso.Velocity=RootPart.CFrame.lookVector*25
  1946. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-10),math.rad(0),math.rad(45+360*i)),0.45)
  1947. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.45)
  1948. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),0.45)
  1949. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),0.45)
  1950. 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)
  1951. 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)
  1952. end
  1953. con1:disconnect()
  1954. con2:disconnect()
  1955. canidle=true
  1956. canwalk=true
  1957. attack=false
  1958. end
  1959.  
  1960. function equipattackone()
  1961. attack=true
  1962. for i=0,1,0.08 do
  1963. fat.Event:wait()
  1964. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(75)),0.3)
  1965. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(-5),math.rad(-60)),0.3)
  1966. 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)
  1967. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.25)*angles(math.rad(165),math.rad(30),math.rad(-60)),0.3)
  1968. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,-1)*angles(math.rad(-60),math.rad(0),math.rad(0)),0.3)
  1969. end
  1970. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"Normal",RootPart,.2,1) end)
  1971. so("http://roblox.com/asset/?id=203691447",Hitbox,1,0.9)
  1972. for i=0,1,0.08 do
  1973. fat.Event:wait()
  1974. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(-90)),0.3)
  1975. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(75)),0.3)
  1976. 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)
  1977. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.25)*angles(math.rad(255),math.rad(90),math.rad(-165)),0.3)
  1978. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1.5,-0.5)*angles(math.rad(-120),math.rad(0),math.rad(0)),0.3)
  1979. end
  1980. con1:disconnect()
  1981. attack=false
  1982. end
  1983.  
  1984. function equipattacktwo()
  1985. attack=true
  1986. for i=0,1,0.08 do
  1987. fat.Event:wait()
  1988. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-105)),0.3)
  1989. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(75)),0.3)
  1990. 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)
  1991. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.25)*angles(math.rad(235),math.rad(90),math.rad(-165)),0.3)
  1992. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1.5,-0.5)*angles(math.rad(-120),math.rad(0),math.rad(0)),0.3)
  1993. end
  1994. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"Normal",RootPart,.2,1) end)
  1995. so("http://roblox.com/asset/?id=203691467",Hitbox,1,0.9)
  1996. for i=0,1,0.08 do
  1997. fat.Event:wait()
  1998. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),0.3)
  1999. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(-5),math.rad(-45)),0.3)
  2000. 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)
  2001. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.25)*angles(math.rad(175),math.rad(30),math.rad(-105)),0.3)
  2002. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1.5,-0.5)*angles(math.rad(-120),math.rad(0),math.rad(0)),0.3)
  2003. end
  2004. con1:disconnect()
  2005. attack=false
  2006. end
  2007.  
  2008. function equipattackthree()
  2009. attack=true
  2010. for i=0,1,0.08 do
  2011. fat.Event:wait()
  2012. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(75)),0.3)
  2013. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-15)),0.3)
  2014. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(75),math.rad(0),math.rad(-45)),0.3)
  2015. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(75),math.rad(0),math.rad(45)),0.3)
  2016. Handleweld.C0=clerp(Handleweld.C0,cf(-1,-0.6,0)*angles(math.rad(-90),math.rad(45),math.rad(90)),0.3)
  2017. end
  2018. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"Normal",RootPart,.2,1) end)
  2019. for i=1,3 do
  2020. so("http://roblox.com/asset/?id=203691492",Hitbox,1,0.9)
  2021. for i=0,1,0.1 do
  2022. fat.Event:wait()
  2023. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30-360*i)),0.3)
  2024. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-15)),0.3)
  2025. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(75),math.rad(0),math.rad(-45)),0.3)
  2026. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(75),math.rad(0),math.rad(45)),0.3)
  2027. Handleweld.C0=clerp(Handleweld.C0,cf(-1,-0.6,0)*angles(math.rad(-90),math.rad(45),math.rad(90)),0.3)
  2028. end
  2029. end
  2030. con1:disconnect()
  2031. attack=false
  2032. end
  2033.  
  2034. function equipattackfour()
  2035. attack=true
  2036. for i=0,1,0.08 do
  2037. fat.Event:wait()
  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(20),math.rad(0),math.rad(0)),0.3)
  2040. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(135),math.rad(0),math.rad(-45)),0.3)
  2041. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(135),math.rad(0),math.rad(45)),0.3)
  2042. Handleweld.C0=clerp(Handleweld.C0,cf(0.5,-0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2043. end
  2044. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"Normal",RootPart,.2,1) end)
  2045. so("http://roblox.com/asset/?id=203691467",Hitbox,1,1.1)
  2046. for i=0,1,0.08 do
  2047. fat.Event:wait()
  2048. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  2049. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),0.3)
  2050. RW.C0=clerp(RW.C0,CFrame.new(1,0.25,-0.5)*angles(math.rad(45),math.rad(0),math.rad(-45)),0.3)
  2051. LW.C0=clerp(LW.C0,CFrame.new(-1,0.25,-0.5)*angles(math.rad(45),math.rad(0),math.rad(45)),0.3)
  2052. Handleweld.C0=clerp(Handleweld.C0,cf(0.5,-0.25,-0.5)*angles(math.rad(-30),math.rad(30),math.rad(-45)),0.3)
  2053. end
  2054. con1:disconnect()
  2055. attack=false
  2056. end
  2057.  
  2058. function Ability1()
  2059. attack=true
  2060. holdz=true
  2061. local prepare=1
  2062. damagebonus=1
  2063. gyro.Parent = RootPart
  2064. for i=0,1,0.15 do
  2065. fat.Event:wait()
  2066. Humanoid.WalkSpeed = 8*speed.Value
  2067. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-75)),0.3)
  2068. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(60)),0.3)
  2069. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(60),math.rad(0),math.rad(-45)),0.3)
  2070. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(60),math.rad(0),math.rad(45)),0.3)
  2071. Handleweld.C0=clerp(Handleweld.C0,cf(-1,-0.6,0)*angles(math.rad(-90),math.rad(45),math.rad(90)),0.3)
  2072. end
  2073. so("http://roblox.com/asset/?id=2101137",Hitbox,1,math.random(100,150)/100)
  2074. while holdz==true do
  2075. for i=0,1,0.5 do
  2076. fat.Event:wait()
  2077. Humanoid.WalkSpeed = 8*speed.Value
  2078. BlockShockwave(TorsoColor,cf(Effect2Part.Position),0.1,0.1,0.1,0.5,0.5,0.5,0.1)
  2079. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0+prepare),math.rad(0),math.rad(-75-prepare)),0.3)
  2080. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(60)),0.3)
  2081. 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)
  2082. 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)
  2083. Handleweld.C0=clerp(Handleweld.C0,cf(-1,-0.6,0)*angles(math.rad(-90),math.rad(45),math.rad(90)),0.3)
  2084. end
  2085. prepare=prepare+1
  2086. damagebonus=damagebonus+1
  2087. print(damagebonus)
  2088. if holdz==false or damagebonus==20 then
  2089. damagebonus=damagebonus/2
  2090. holdz=false
  2091. print("Damage capability multiplied by "..damagebonus..".")
  2092. end
  2093. end
  2094. if holdz==false or damagebonus==10 then
  2095. holdz=false
  2096. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,5,5*(damagebonus/2),5,"Normal",RootPart,.2,1) end)
  2097. so("http://roblox.com/asset/?id=203691492",Hitbox,1,1.1)
  2098. for i=0,1,0.08 do
  2099. fat.Event:wait()
  2100. BlockShockwave(TorsoColor,cf(Effect2Part.Position),0.1,0.1,0.1,0.5,0.5,0.5,0.1)
  2101. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(30+360*i)),0.3)
  2102. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-15)),0.3)
  2103. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(75),math.rad(0),math.rad(-45)),0.3)
  2104. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(75),math.rad(0),math.rad(45)),0.3)
  2105. Handleweld.C0=clerp(Handleweld.C0,cf(-1,-0.6,0)*angles(math.rad(-90),math.rad(45),math.rad(90)),0.3)
  2106. end
  2107. so("http://roblox.com/asset/?id=203691467",Hitbox,1,1.1)
  2108. for i=0,1,0.16 do
  2109. fat.Event:wait()
  2110. if damagebonus==10 then
  2111. so("http://roblox.com/asset/?id=378352088",Hitbox,0.25,math.random(120,140)/100)
  2112. so("http://roblox.com/asset/?id=340143970",Hitbox,0.25,math.random(120,140)/100)
  2113. local spread=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  2114. local MainPos=Hitbox.Position
  2115. local MainPos2=MMouse.Hit.p+spread
  2116. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  2117. local speed=0
  2118. local num=300
  2119. local dropspeed=0
  2120. coroutine.resume(coroutine.create(function()
  2121. repeat
  2122. fat.Event:wait()
  2123. local hit,pos = rayCast(MainPos,MouseLook.lookVector,speed,ShotTarget.Parent)
  2124. local mag=(MainPos-pos).magnitude
  2125. 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)
  2126. MainPos=MainPos+(MouseLook.lookVector*speed)
  2127. num=num-1
  2128. speed=speed+0.01
  2129. dropspeed=dropspeed-0.01
  2130. MouseLook=MouseLook*angles(math.rad(dropspeed),0,0)
  2131. if speed>=1 then
  2132. speed=1
  2133. end
  2134. if hit~=nil then
  2135. num=0
  2136. refpart=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  2137. refpart.Anchored=true
  2138. refpart.CFrame=cf(pos)
  2139. game:GetService("Debris"):AddItem(refpart,2)
  2140. so("http://roblox.com/asset/?id=114488148",refpart,0.5,math.random(120,140)/100)
  2141. so("http://roblox.com/asset/?id=340143964",refpart,0.5,math.random(120,140)/100)
  2142. so("http://roblox.com/asset/?id=340143970",refpart,0.5,math.random(120,140)/100)
  2143. Damagefunc(hit,4,8,10,"LaserShot",RootPart,0)
  2144. MagniDamage(refpart,2.5,2,4,5,"LaserShot")
  2145. for i=1,math.random(2,4) do
  2146. OrbEffect(TorsoColor,cf(refpart.Position),0.1,0.1,0.1,0.25,0.25,0.25,0.075)
  2147. BlockShockwave(TorsoColor,cf(refpart.Position),1,1,1,0.25,0.25,0.25,0.075)
  2148. end
  2149. end
  2150. if num<=0 then
  2151. refpart=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  2152. refpart.Anchored=true
  2153. refpart.CFrame=cf(MainPos)
  2154. game:GetService("Debris"):AddItem(refpart,2)
  2155. so("http://roblox.com/asset/?id=114488148",refpart,0.5,math.random(120,140)/100)
  2156. so("http://roblox.com/asset/?id=340143964",refpart,0.5,math.random(120,140)/100)
  2157. so("http://roblox.com/asset/?id=340143970",refpart,0.5,math.random(120,140)/100)
  2158. MagniDamage(refpart,2.5,2,4,5,"LaserShot")
  2159. for i=1,math.random(2,4) do
  2160. OrbEffect(TorsoColor,cf(refpart.Position),0.1,0.1,0.1,0.25,0.25,0.25,0.075)
  2161. BlockShockwave(TorsoColor,cf(refpart.Position),1,1,1,0.25,0.25,0.25,0.075)
  2162. end
  2163. end
  2164. until num<=0
  2165. end))
  2166. end
  2167. Humanoid.WalkSpeed = 8*speed.Value
  2168. BlockShockwave(TorsoColor,cf(Effect2Part.Position),0.1,0.1,0.1,0.5,0.5,0.5,0.1)
  2169. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(75)),0.3)
  2170. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),0.15)
  2171. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(75),math.rad(0),math.rad(-45)),0.3)
  2172. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(75),math.rad(0),math.rad(45)),0.3)
  2173. Handleweld.C0=clerp(Handleweld.C0,cf(-1,-0.6,0)*angles(math.rad(-90),math.rad(45),math.rad(90)),0.3)
  2174. end
  2175. end
  2176. gyro.Parent = nil
  2177. con1:disconnect()
  2178. Humanoid.WalkSpeed = 16*speed.Value
  2179. attack=false
  2180. end
  2181.  
  2182. function Ability2()
  2183. attack=true
  2184. Humanoid.Jump = true
  2185. for i=0,1,0.12 do
  2186. fat.Event:wait()
  2187. 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)
  2188. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  2189. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(165),math.rad(0),math.rad(-45)),0.3)
  2190. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(165),math.rad(0),math.rad(45)),0.3)
  2191. Handleweld.C0=clerp(Handleweld.C0,cf(0.5,-0.25,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),0.3)
  2192. end
  2193. Humanoid.WalkSpeed = 0*speed.Value
  2194. so("http://roblox.com/asset/?id=203691492",Hitbox,1,1.1)
  2195. canwalk=false
  2196. canidle=false
  2197. for i=0,1,0.24 do
  2198. fat.Event:wait()
  2199. Humanoid.WalkSpeed = 0*speed.Value
  2200. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),0.45)
  2201. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.45)
  2202. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(45),math.rad(0),math.rad(-45)),0.45)
  2203. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(45),math.rad(0),math.rad(45)),0.45)
  2204. 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)
  2205. 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)
  2206. Handleweld.C0=clerp(Handleweld.C0,cf(0.5,-0.25,-0.5)*angles(math.rad(-30),math.rad(30),math.rad(-45)),0.45)
  2207. end
  2208. hitfloor=nil
  2209. while hitfloor==nil do
  2210. local hit,pos=rayCast(Hitbox.Position,(CFrame.new(Hitbox.Position,Hitbox.Position - Vector3.new(0,1,0))).lookVector,5,Character)
  2211. for i=0,1,0.24 do
  2212. fat.Event:wait()
  2213. Humanoid.WalkSpeed = 0*speed.Value
  2214. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),0.45)
  2215. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.45)
  2216. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(45),math.rad(0),math.rad(-45)),0.45)
  2217. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(45),math.rad(0),math.rad(45)),0.45)
  2218. 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)
  2219. 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)
  2220. Handleweld.C0=clerp(Handleweld.C0,cf(0.5,-0.25,-0.5)*angles(math.rad(-30),math.rad(30),math.rad(-45)),0.45)
  2221. end
  2222. end
  2223. wait()
  2224. actualstartingrefpart=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  2225. actualstartingrefpart.Anchored=true
  2226. actualstartingrefpart.CFrame=RootPart.CFrame*cf(0,0,inc)
  2227. game:GetService("Debris"):AddItem(actualstartingrefpart,5)
  2228. local inc=-5
  2229. for i=1,5 do
  2230. Humanoid.WalkSpeed = 0*speed.Value
  2231. startingrefpart=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  2232. startingrefpart.Anchored=true
  2233. startingrefpart.CFrame=actualstartingrefpart.CFrame*cf(0,0,inc)
  2234. game:GetService("Debris"):AddItem(startingrefpart,3)
  2235. local hit,pos=rayCast(startingrefpart.Position,(CFrame.new(startingrefpart.Position,startingrefpart.Position - Vector3.new(0,1,0))).lookVector,200,Character)
  2236. if hit~=nil then
  2237. floor=true
  2238. local Color=hit.BrickColor
  2239. local Materials=hit.Material
  2240. refpart=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  2241. refpart.Anchored=true
  2242. refpart.CFrame=cf(pos)
  2243. game:GetService("Debris"):AddItem(refpart,3)
  2244. so("http://roblox.com/asset/?id=203691510",refpart,1,math.random(80,120)/100)
  2245. for i=1,10 do
  2246. 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))
  2247. actualgroundpart.Anchored=true
  2248. actualgroundpart.Material=Materials
  2249. actualgroundpart.CanCollide=true
  2250. actualgroundpart.Friction = 1
  2251. 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))
  2252. game:GetService("Debris"):AddItem(actualgroundpart,5.5)
  2253. coroutine.resume(coroutine.create(function()
  2254. wait(5)
  2255. while true do
  2256. swait()
  2257. actualgroundpart.Transparency=actualgroundpart.Transparency+0.05
  2258. end
  2259. actualgroundpart:Destroy()
  2260. end))
  2261. end
  2262. BlockShockwave(Color,cf(refpart.Position),1,1,1,1,1,1,0.05)
  2263. --SphereShockwave2(Color,cf(refpart.Position),0.1,0.1,0.1,0.1,1,0.1,0.015)
  2264. SphereShockwave(Color,cf(refpart.Position),0.1,0.1,0.1,0.5,1.5,0.5,0.025)
  2265. JumpEffect(Color,cf(refpart.Position),0.5,0.5,1,0.25,0.25,0.25,0.025)
  2266. MagniDamage(refpart,10,10,20,10,"Normal")
  2267. end
  2268. inc=inc-5
  2269. for i=0,1,15 do
  2270. fat.Event:wait()
  2271. Humanoid.WalkSpeed = 0*speed.Value
  2272. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),0.45)
  2273. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.45)
  2274. RW.C0=clerp(RW.C0,CFrame.new(1,0.5,-0.5)*angles(math.rad(45),math.rad(0),math.rad(-45)),0.45)
  2275. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,-0.5)*angles(math.rad(45),math.rad(0),math.rad(45)),0.45)
  2276. 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)
  2277. 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)
  2278. Handleweld.C0=clerp(Handleweld.C0,cf(0.5,-0.25,-0.5)*angles(math.rad(-30),math.rad(30),math.rad(-45)),0.45)
  2279. end
  2280. end
  2281. canwalk=true
  2282. canidle=true
  2283. Humanoid.WalkSpeed = 16*speed.Value
  2284. attack=false
  2285. end
  2286.  
  2287. function Ability3()
  2288. attack=true
  2289. so("http://roblox.com/asset/?id=200633077",Hitbox,1,1.2)
  2290. for i=0,1,0.12 do
  2291. fat.Event:wait()
  2292. Effect2Part.Transparency = 0+2*i
  2293. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1)*angles(math.rad(10),math.rad(0),math.rad(-15)),0.3)
  2294. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(15)),0.3)
  2295. 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)
  2296. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-15)),0.3)
  2297. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2298. end
  2299. gyro.Parent = RootPart
  2300. for i=1,5 do
  2301. so("http://roblox.com/asset/?id=378352088",Effect2Part,0.5,math.random(80,120)/100)
  2302. so("http://roblox.com/asset/?id=340143970",Effect2Part,0.5,math.random(80,120)/100)
  2303. local spread=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  2304. local MainPos=Effect2Part.Position
  2305. local MainPos2=MMouse.Hit.p+spread
  2306. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  2307. local speed=10
  2308. local num=30
  2309. coroutine.resume(coroutine.create(function()
  2310. repeat
  2311. fat.Event:wait()
  2312. local hit,pos = rayCast(MainPos,MouseLook.lookVector,speed,ShotTarget.Parent)
  2313. local mag=(MainPos-pos).magnitude
  2314. 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)
  2315. MainPos=MainPos+(MouseLook.lookVector*speed)
  2316. num=num-1
  2317. MouseLook=MouseLook*angles(math.rad(-1),0,0)
  2318. if hit~=nil then
  2319. num=0
  2320. refpart=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  2321. refpart.Anchored=true
  2322. refpart.CFrame=cf(pos)
  2323. game:GetService("Debris"):AddItem(refpart,2)
  2324. --so("http://roblox.com/asset/?id=169445602",refpart,0.5,math.random(80,120)/100)
  2325. --so("http://roblox.com/asset/?id=153092334",refpart,0.5,math.random(80,120)/100)
  2326. so("http://roblox.com/asset/?id=114488148",refpart,0.5,math.random(80,120)/100)
  2327. so("http://roblox.com/asset/?id=340143964",refpart,0.5,math.random(80,120)/100)
  2328. so("http://roblox.com/asset/?id=340143970",refpart,0.5,math.random(80,120)/100)
  2329. Damagefunc(hit,5,10,10,"LaserShot",RootPart,0)
  2330. MagniDamage(refpart,10,5,10,5,"LaserShot")
  2331. for i=1,math.random(2,4) do
  2332. OrbEffect(TorsoColor,cf(refpart.Position),0.1,0.1,0.1,1,1,1,0.075)
  2333. BlockShockwave(TorsoColor,cf(refpart.Position),1,1,1,1,1,1,0.075)
  2334. end
  2335. end
  2336. if num<=0 then
  2337. refpart=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  2338. refpart.Anchored=true
  2339. refpart.CFrame=cf(pos)
  2340. game:GetService("Debris"):AddItem(refpart,2)
  2341. --so("http://roblox.com/asset/?id=169445602",refpart,0.5,math.random(80,120)/100)
  2342. --so("http://roblox.com/asset/?id=153092334",refpart,0.5,math.random(80,120)/100)
  2343. so("http://roblox.com/asset/?id=114488148",refpart,0.5,math.random(80,120)/100)
  2344. so("http://roblox.com/asset/?id=340143964",refpart,0.5,math.random(80,120)/100)
  2345. so("http://roblox.com/asset/?id=340143970",refpart,0.5,math.random(80,120)/100)
  2346. MagniDamage(refpart,10,5,10,5,"LaserShot")
  2347. for i=1,math.random(2,4) do
  2348. OrbEffect(TorsoColor,cf(refpart.Position),0.1,0.1,0.1,1,1,1,0.075)
  2349. BlockShockwave(TorsoColor,cf(refpart.Position),1,1,1,1,1,1,0.075)
  2350. end
  2351. end
  2352. until num<=0
  2353. end))
  2354. for i=1,math.random(2,4) do
  2355. BlockShockwave(TorsoColor,cf(Effect2Part.Position),0.1,0.1,0.1,0.5,0.5,0.5,0.125)
  2356. end
  2357. for i=0,1,0.24 do
  2358. fat.Event:wait()
  2359. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1)*angles(math.rad(-10),math.rad(0),math.rad(15)),0.3)
  2360. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(-15)),0.3)
  2361. 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)
  2362. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,0)*angles(math.rad(105),math.rad(0),math.rad(15)),0.3)
  2363. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),0.3)
  2364. end
  2365. for i=0,1,0.24 do
  2366. fat.Event:wait()
  2367. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1)*angles(math.rad(10),math.rad(0),math.rad(-15)),0.3)
  2368. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(15)),0.3)
  2369. 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)
  2370. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-15)),0.3)
  2371. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2372. end
  2373. end
  2374. gyro.Parent = nil
  2375. so("http://roblox.com/asset/?id=200633029",Hitbox,1,1.2)
  2376. for i=0,1,0.12 do
  2377. fat.Event:wait()
  2378. Effect2Part.Transparency = 1-2*i
  2379. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1)*angles(math.rad(10),math.rad(0),math.rad(-15)),0.3)
  2380. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(15)),0.3)
  2381. 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)
  2382. LW.C0=clerp(LW.C0,CFrame.new(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-15)),0.3)
  2383. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2384. end
  2385. attack=false
  2386. end
  2387.  
  2388. mouse.Button1Down:connect(function()
  2389. if attack==false then
  2390. if attacktype==1 then
  2391. attacktype=2
  2392. if equipped==false then
  2393. unequipattackone()
  2394. elseif equipped==true then
  2395. equipattackone()
  2396. end
  2397. elseif attacktype==2 then
  2398. attacktype=3
  2399. if equipped==false then
  2400. unequipattacktwo()
  2401. elseif equipped==true then
  2402. equipattacktwo()
  2403. end
  2404. elseif attacktype==3 then
  2405. attacktype=4
  2406. if equipped==false then
  2407. unequipattackthree()
  2408. elseif equipped==true then
  2409. equipattackthree()
  2410. end
  2411. elseif attacktype==4 then
  2412. attacktype=1
  2413. if equipped==false then
  2414. unequipattackfour()
  2415. elseif equipped==true then
  2416. equipattackfour()
  2417. end
  2418. end
  2419. end
  2420. coroutine.resume(coroutine.create(function()
  2421. for i=1,50 do
  2422. if attack==false then
  2423. fat.Event:wait()
  2424. end
  2425. end
  2426. if attack==false then
  2427. attacktype=1
  2428. end
  2429. end))
  2430. end)
  2431.  
  2432. idletype = 1
  2433.  
  2434. mouse.KeyDown:connect(function(k)
  2435. k=k:lower()
  2436. if k=='q' and attack==false then
  2437. idle=300
  2438. idletype = math.random(1,2)
  2439. end
  2440. if k=='e' and attack==false then
  2441. EquiporUnequip()
  2442. end
  2443. if k=='z' and attack==false and equipped==true and cooldown1>=co1 and stamina>=skill1stam then
  2444. cooldown1=0
  2445. subtractstamina(skill1stam)
  2446. Ability1()
  2447. end
  2448. if k=='x' and attack==false and equipped==true and cooldown2>=co2 and stamina>=skill2stam then
  2449. cooldown2=0
  2450. subtractstamina(skill2stam)
  2451. Ability2()
  2452. end
  2453. if k=='c' and attack==false and equipped==true and cooldown3>=co3 and stamina>=skill3stam then
  2454. cooldown3=0
  2455. subtractstamina(skill3stam)
  2456. Ability3()
  2457. end
  2458. end)
  2459.  
  2460. mouse.KeyUp:connect(function(k)
  2461. k=k:lower()
  2462. if k=='z' and holdz==true then
  2463. holdz=false
  2464. end
  2465. end)
  2466.  
  2467. function updateskills()
  2468. if cooldown1 <= co1 then
  2469. cooldown1 = cooldown1 + 1 / 30
  2470. end
  2471. if cooldown2 <= co2 then
  2472. cooldown2 = cooldown2 + 1 / 30
  2473. end
  2474. if cooldown3 <= co3 then
  2475. cooldown3 = cooldown3 + 1 / 30
  2476. end
  2477. if cooldown4 <= co4 then
  2478. cooldown4 = cooldown4 + 1 / 30
  2479. end
  2480. if stamina<=skill1stam then
  2481. bar4.BackgroundColor3=c3(104/255,104/255,104/255)
  2482. else
  2483. bar4.BackgroundColor3=skillcolorscheme
  2484. end
  2485. if stamina<=skill2stam then
  2486. bar3.BackgroundColor3=c3(104/255,104/255,104/255)
  2487. else
  2488. bar3.BackgroundColor3=skillcolorscheme
  2489. end
  2490. if stamina<=skill3stam then
  2491. bar1.BackgroundColor3=c3(104/255,104/255,104/255)
  2492. else
  2493. bar1.BackgroundColor3=skillcolorscheme
  2494. end
  2495. if stamina<=skill4stam then
  2496. bar2.BackgroundColor3=c3(104/255,104/255,104/255)
  2497. else
  2498. bar2.BackgroundColor3=skillcolorscheme
  2499. end
  2500. if stamina <= maxstamina then
  2501. stamina = stamina + recovermana / 30
  2502. end
  2503. end
  2504.  
  2505. game:GetService'RunService'.Heartbeat:connect(function()
  2506. updateskills()
  2507. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5)
  2508. staminacover:TweenSize(ud(1 * (stamina / maxstamina), 0, 1, 0), 'Out', 'Quad', .5)
  2509. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
  2510. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
  2511. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
  2512. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
  2513. end)
  2514.  
  2515. local sine = 0
  2516. local change = 1
  2517. local val = 0
  2518.  
  2519. --[[local LastPoint=EffectReference.CFrame*CFrame.new(0,EffectReference.Size.Y/1.5,0)
  2520. local Point=EffectReference.CFrame*CFrame.new(0,EffectReference.Size.Y/1.5,0)
  2521. effect("Really black",0,LastPoint,Point)
  2522. LastPoint=Point]]--
  2523.  
  2524. fat.Event:connect(function()
  2525. gyro.CFrame = CFrame.new(Vector3.new(), (mouse.Hit.p - RootPart.CFrame.p).unit * 100)
  2526. sine = sine + change
  2527. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2528. local velderp=RootPart.Velocity.y
  2529. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2530. if equipped==true or equipped==false then
  2531. if Anim=="Idle" and attack==false then
  2532. idle=idle+1
  2533. else
  2534. idle=0
  2535. end
  2536. if idle==300 then
  2537. if attack==false then
  2538. idletype = math.random(1,2)
  2539. --Sheath()
  2540. end
  2541. end
  2542. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2543. Anim="Jump"
  2544. if attack==false and equipped==false then
  2545. fat.Event:wait()
  2546. Humanoid.WalkSpeed=16*speed.Value
  2547. change=2
  2548. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  2549. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),0.3)
  2550. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(15)),0.3)
  2551. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-15)),0.3)
  2552. 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)
  2553. 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)
  2554. Handleweld.C0=clerp(Handleweld.C0,cf(-1.5,0.5,0.75)*angles(math.rad(-90),math.rad(-45),math.rad(90)),0.15)
  2555. elseif attack==false and equipped==true then
  2556. fat.Event:wait()
  2557. Humanoid.WalkSpeed=16*speed.Value
  2558. change=2
  2559. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  2560. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  2561. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.225,0)*angles(math.rad(90),math.rad(15),math.rad(-30)),0.3)
  2562. LW.C0=clerp(LW.C0,CFrame.new(-1,0.225,-0.5)*angles(math.rad(-45),math.rad(-135),math.rad(-120)),0.3)
  2563. 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)
  2564. 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)
  2565. Handleweld.C0=clerp(Handleweld.C0,cf(1,-0.75,0)*angles(math.rad(15),math.rad(0),math.rad(-90)),0.3)
  2566. elseif attack==true then
  2567. fat.Event:wait()
  2568. Humanoid.WalkSpeed=16*speed.Value
  2569. change=2
  2570. 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)
  2571. 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)
  2572. end
  2573. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2574. Anim="Fall"
  2575. if attack==false and equipped==false then
  2576. fat.Event:wait()
  2577. Humanoid.WalkSpeed=16*speed.Value
  2578. change=2
  2579. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.3)
  2580. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  2581. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),0.3)
  2582. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),0.3)
  2583. 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)
  2584. 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)
  2585. Handleweld.C0=clerp(Handleweld.C0,cf(-1.5,0.5,0.75)*angles(math.rad(-90),math.rad(-45),math.rad(90)),0.15)
  2586. elseif attack==false and equipped==true then
  2587. fat.Event:wait()
  2588. Humanoid.WalkSpeed=16*speed.Value
  2589. change=2
  2590. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  2591. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  2592. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.225,0)*angles(math.rad(90),math.rad(15),math.rad(-30)),0.3)
  2593. LW.C0=clerp(LW.C0,CFrame.new(-1,0.225,-0.5)*angles(math.rad(-45),math.rad(-135),math.rad(-120)),0.3)
  2594. 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)
  2595. 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)
  2596. Handleweld.C0=clerp(Handleweld.C0,cf(1,-0.75,0)*angles(math.rad(15),math.rad(0),math.rad(-90)),0.3)
  2597. elseif attack==true then
  2598. fat.Event:wait()
  2599. Humanoid.WalkSpeed=16*speed.Value
  2600. change=2
  2601. 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)
  2602. 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)
  2603. end
  2604. elseif torvel<1 and hitfloor~=nil then
  2605. Anim="Idle"
  2606. if attack==false and equipped==true and idletype==1 and idle>=300 then
  2607. fat.Event:wait()
  2608. Humanoid.WalkSpeed=16*speed.Value
  2609. change=2
  2610. 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)
  2611. 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)
  2612. 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)
  2613. 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)
  2614. 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)
  2615. 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)
  2616. Handleweld.C0=clerp(Handleweld.C0,cf(0,-0.25,0.5)*angles(math.rad(75),math.rad(0),math.rad(0)),0.15)
  2617. elseif attack==false and equipped==true and idletype==2 and idle>=300 then
  2618. fat.Event:wait()
  2619. Humanoid.WalkSpeed=16*speed.Value
  2620. change=2
  2621. 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)
  2622. 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)
  2623. 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)
  2624. 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)
  2625. 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)
  2626. 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)
  2627. 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)
  2628. elseif attack==false and equipped==false and idletype==1 and idle>=300 then
  2629. fat.Event:wait()
  2630. Humanoid.WalkSpeed=16*speed.Value
  2631. change=2
  2632. 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)
  2633. 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)
  2634. 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)
  2635. 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)
  2636. 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)
  2637. 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)
  2638. Handleweld.C0=clerp(Handleweld.C0,cf(-1.5,0.5,0.75)*angles(math.rad(-90),math.rad(-45),math.rad(90)),0.15)
  2639. elseif attack==false and equipped==false and idletype==2 and idle>=300 then
  2640. fat.Event:wait()
  2641. Humanoid.WalkSpeed=16*speed.Value
  2642. change=2
  2643. 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)
  2644. 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)
  2645. 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)
  2646. 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)
  2647. 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)
  2648. 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)
  2649. Handleweld.C0=clerp(Handleweld.C0,cf(-1.5,0.5,0.75)*angles(math.rad(-90),math.rad(-45),math.rad(90)),0.15)
  2650. elseif attack==false and equipped==false then
  2651. fat.Event:wait()
  2652. Humanoid.WalkSpeed=16*speed.Value
  2653. change=2
  2654. 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)
  2655. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(-5),math.rad(-30)),0.3)
  2656. 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)
  2657. 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)
  2658. 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)
  2659. 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)
  2660. Handleweld.C0=clerp(Handleweld.C0,cf(-1.5,0.5,0.75)*angles(math.rad(-90),math.rad(-45),math.rad(90)),0.15)
  2661. elseif attack==false and equipped==true then
  2662. fat.Event:wait()
  2663. Humanoid.WalkSpeed=16*speed.Value
  2664. change=2
  2665. 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)
  2666. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5),math.rad(5),math.rad(45)),0.3)
  2667. 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)
  2668. 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)
  2669. 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)
  2670. 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)
  2671. Handleweld.C0=clerp(Handleweld.C0,cf(1,-0.75,0)*angles(math.rad(15),math.rad(0),math.rad(-90)),0.3)
  2672. elseif attack==true and canidle==true then
  2673. fat.Event:wait()
  2674. Humanoid.WalkSpeed=16*speed.Value
  2675. change=2
  2676. 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)
  2677. 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)
  2678. end
  2679. elseif torvel>2 and hitfloor~=nil then
  2680. Anim="Walk"
  2681. if attack==false and equipped==false then
  2682. fat.Event:wait()
  2683. Humanoid.WalkSpeed=16*speed.Value
  2684. change=2
  2685. 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)
  2686. 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)
  2687. 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)
  2688. 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)
  2689. 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)
  2690. 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)
  2691. Handleweld.C0=clerp(Handleweld.C0,cf(-1.5,0.5,0.75)*angles(math.rad(-90),math.rad(-45),math.rad(90)),0.15)
  2692. elseif attack==false and equipped==true then
  2693. fat.Event:wait()
  2694. Humanoid.WalkSpeed=16*speed.Value
  2695. change=2
  2696. 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)
  2697. 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)
  2698. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.225,0)*angles(math.rad(90),math.rad(15),math.rad(-30)),0.3)
  2699. LW.C0=clerp(LW.C0,CFrame.new(-1,0.225,-0.5)*angles(math.rad(-45),math.rad(-135),math.rad(-120)),0.3)
  2700. 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)
  2701. 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)
  2702. Handleweld.C0=clerp(Handleweld.C0,cf(1,-0.75,0)*angles(math.rad(15),math.rad(0),math.rad(-90)),0.3)
  2703. elseif attack==true and canwalk==true then
  2704. fat.Event:wait()
  2705. Humanoid.WalkSpeed=16*speed.Value
  2706. change=2
  2707. 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)
  2708. 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)
  2709. end
  2710. end
  2711. end
  2712. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement