Advertisement
memberhero

Hammer

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