Advertisement
memberhero

test

Mar 24th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 153.71 KB | None | 0 0
  1. --[[
  2. Made by Fenrier.
  3. ]]
  4. ---Halfy Fixed by basstracker1970
  5. damagefunc = Instance.new("Script",game.Workspace)
  6. damagefunc.Name = "damageFunc"
  7. thing = Instance.new("LocalScript",game.Players.LocalPlayer.PlayerGui)
  8. thing.Name = "Pacemaker"
  9. heartbeat = Instance.new("BindableEvent",thing)
  10. heartbeat.Name = "Heartbeat"
  11. value = Instance.new("NumberValue",thing)
  12. value.Name = "Framerate"
  13. value = Instance.new("NumberValue",heartbeat)
  14. value.Name = "Event"
  15. wait(1)
  16. wait(2)
  17. bin = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  18. Player=game:GetService("Players").LocalPlayer
  19. Character=Player.Character
  20. PlayerGui=Player.PlayerGui
  21. Backpack=Player.Backpack
  22. Torso=Character.Torso
  23. Head=Character.Head
  24. Humanoid=Character.Humanoid
  25. Face=Head.face
  26. LeftArm=Character["Left Arm"]
  27. LeftLeg=Character["Left Leg"]
  28. RightArm=Character["Right Arm"]
  29. RightLeg=Character["Right Leg"]
  30. LS=Torso["Left Shoulder"]
  31. LH=Torso["Left Hip"]
  32. RS=Torso["Right Shoulder"]
  33. RH=Torso["Right Hip"]
  34. Neck=Torso.Neck
  35. it=Instance.new
  36. vt=Vector3.new
  37. cf=CFrame.new
  38. euler=CFrame.fromEulerAnglesXYZ
  39. angles=CFrame.Angles
  40. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  41. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  42. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  43. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  44. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  45. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  46. RootPart=Character.HumanoidRootPart
  47. RootJoint=RootPart.RootJoint
  48. RootCF=euler(-1.57,0,3.14)
  49. attack = false
  50. attackdebounce = false
  51. MMouse=nil
  52. combo=0
  53. local hitfloor,posfloor=nil,nil
  54. local idle=0
  55. local Anim="Idle"
  56. local Effects={}
  57. local decreaseatk=0
  58. local decreasedef=0
  59. local decreasemvmt=0
  60. local equipped=false
  61. local manainc=9
  62. local triangparent=workspace
  63. local dynamomove=true
  64. local Mode="Classic"
  65. local overload=0
  66. local defending=false
  67. local choosemode=false
  68. local move1="(Z)\
  69. [MORPH SHIELD]\
  70. Vital Stab"
  71. local move2="(X)\
  72. [DYNAMIC BLADE]\
  73. Kinetic Strike"
  74. local move3="(C)\
  75. [ENERGY REACTOR]\
  76. Laser Barrage"
  77. local move4="(V)\
  78. "
  79. local cooldowns={}
  80. local cooldown1=0 table.insert(cooldowns,cooldown1)
  81. local cooldown2=0 table.insert(cooldowns,cooldown2)
  82. local cooldown3=0 table.insert(cooldowns,cooldown3)
  83. local cooldown4=0 table.insert(cooldowns,cooldown4)
  84. local cooldownsadd={}
  85. local cooldownadd1=.48 table.insert(cooldownsadd,cooldownadd1)
  86. local cooldownadd2=.34 table.insert(cooldownsadd,cooldownadd2)
  87. local cooldownadd3=.45 table.insert(cooldownsadd,cooldownadd3)
  88. local cooldownadd4=.1 table.insert(cooldownsadd,cooldownadd4)
  89. local cooldownmax=100
  90. local damageFunc=workspace.damageFunc
  91. --player
  92. player=nil
  93. --save shoulders
  94. RSH, LSH=nil, nil
  95. --welds
  96. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  97. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  98. LH=Torso["Left Hip"]
  99. RH=Torso["Right Hip"]
  100. TorsoColor=Torso.BrickColor
  101. TorsoRed=TorsoColor.Color.r
  102. TorsoGreen=TorsoColor.Color.g
  103. TorsoBlue=TorsoColor.Color.b
  104. NewCol=BrickColor.new("Dark green").Color
  105. NewCol2=BrickColor.new("Bright blue").Color
  106. NewCol3=BrickColor.new("Bright blue").Color
  107. if Player:findFirstChild("Color1")~=nil then
  108. NewCol=Player.Color1.Value
  109. end
  110. if Player:findFirstChild("Color2")~=nil then
  111. NewCol2=Player.Color2.Value
  112. end
  113. print(BrickColor.new(NewCol))
  114. local mdec=Instance.new("NumberValue",Decrease)
  115. mdec.Name="DecreaseDef"
  116. mdec.Value=.4
  117. local mdec2=Instance.new("NumberValue",Decrease)
  118. mdec2.Name="DecreaseMvmt"
  119. mdec2.Value=.1
  120.  
  121. local Animate=Humanoid.Animator
  122. --[[local animation=Instance.new("Animation")
  123. animation.AnimationId="http://www.roblox.com/Asset?ID=180435571"
  124. local animTrack=Humanoid:LoadAnimation(animation)]]
  125. local canjump=true
  126.  
  127. function swait(num)
  128. if num==0 or num==nil then
  129. --if Stagger.Value==false or Stun.Value<=100 then
  130. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  131. --end
  132. else
  133. for i=0,num do
  134. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  135. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  136. break
  137. end]]
  138. end
  139. end
  140. end
  141.  
  142. if Character:findFirstChild("Permanence",true) ~= nil then
  143. Character:findFirstChild("Permanence",true).Parent = nil
  144. end
  145. if Character:findFirstChild("Dynamo",true) ~= nil then
  146. Character:findFirstChild("Dynamo",true).Parent = nil
  147. end
  148. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  149. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  150. end
  151. if Character:findFirstChild("Stats",true) ~= nil then
  152. Character:findFirstChild("Stats",true).Parent = nil
  153. end
  154. local Stats=Instance.new("BoolValue")
  155. Stats.Name="Stats"
  156. Stats.Parent=Character
  157. local Atk=Instance.new("NumberValue")
  158. Atk.Name="Damage"
  159. Atk.Parent=Stats
  160. Atk.Value=1
  161. local Def=Instance.new("NumberValue")
  162. Def.Name="Defense"
  163. Def.Parent=Stats
  164. Def.Value=1
  165. local Mvmt=Instance.new("NumberValue")
  166. Mvmt.Name="Movement"
  167. Mvmt.Parent=Stats
  168. Mvmt.Value=1
  169. local Block=Instance.new("BoolValue")
  170. Block.Name="Block"
  171. Block.Parent=Stats
  172. Block.Value=false
  173. local Stun=Instance.new("NumberValue")
  174. Stun.Name="Stun"
  175. Stun.Parent=Stats
  176. Stun.Value=0
  177. local StunT=Instance.new("NumberValue")
  178. StunT.Name="StunThreshold"
  179. StunT.Parent=Stats
  180. StunT.Value=100
  181. local Rooted=Instance.new("BoolValue")
  182. Rooted.Name="Rooted"
  183. Rooted.Parent=Stats
  184. Rooted.Value=false
  185. local Stunned=Instance.new("BoolValue")
  186. Stunned.Name="Stunned"
  187. Stunned.Parent=Stats
  188. Stunned.Value=false
  189. local Stagger=Instance.new("BoolValue")
  190. Stagger.Name="Stagger"
  191. Stagger.Parent=Stats
  192. Stagger.Value=false
  193. local StaggerHit=Instance.new("BoolValue")
  194. StaggerHit.Name="StaggerHit"
  195. StaggerHit.Parent=Stats
  196. StaggerHit.Value=false
  197. local RecentEnemy=Instance.new("ObjectValue")
  198. RecentEnemy.Name="RecentEnemy"
  199. RecentEnemy.Parent=Stats
  200. RecentEnemy.Value=nil
  201. local Decrease=Instance.new("BoolValue")
  202. Decrease.Name="Decrease"
  203. Decrease.Parent=Stats
  204. Decrease.Value=false
  205. local mana=Instance.new("NumberValue")
  206. mana.Name="Mana"
  207. mana.Parent=Stats
  208. mana.Value=0
  209. local passive1=Instance.new("NumberValue",Decrease)
  210. passive1.Name="DecreaseAtk"
  211. passive1.Value=0
  212. local passive2=Instance.new("NumberValue",Decrease)
  213. passive2.Name="DecreaseDef"
  214. passive2.Value=0
  215. local passive3=Instance.new("NumberValue",Decrease)
  216. passive3.Name="DecreaseMvmt"
  217. passive3.Value=0
  218. passive1.Value=.1
  219. passive2.Value=-.05
  220. passive3.Value=-.1
  221. local passive4=Instance.new("NumberValue",nil)
  222. passive4.Name="DecreaseDef"
  223. passive4.Value=-.4
  224. local passive5=Instance.new("NumberValue",nil)
  225. passive5.Name="DecreaseMvmt"
  226. passive5.Value=.6
  227.  
  228. function NoOutline(Part)
  229. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  230. end
  231.  
  232. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  233. local fp=it("Part")
  234. fp.formFactor=formfactor
  235. fp.Parent=parent
  236. fp.Reflectance=reflectance
  237. fp.Transparency=transparency
  238. fp.CanCollide=false
  239. fp.Locked=true
  240. fp.BrickColor=brickcolor
  241. fp.Name=name
  242. fp.Size=size
  243. fp.Position=Torso.Position
  244. NoOutline(fp)
  245. fp.Material="SmoothPlastic"
  246. fp:BreakJoints()
  247. return fp
  248. end
  249.  
  250. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  251. local mesh=it(Mesh)
  252. mesh.Parent=part
  253. if Mesh=="SpecialMesh" then
  254. mesh.MeshType=meshtype
  255. if meshid~="nil" then
  256. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  257. end
  258. end
  259. mesh.Offset=offset
  260. mesh.Scale=scale
  261. return mesh
  262. end
  263.  
  264. function weld(parent,part0,part1,c0)
  265. local weld=it("Motor")
  266. weld.Parent=parent
  267. weld.Part0=part0
  268. weld.Part1=part1
  269. weld.C0=c0
  270. return weld
  271. end
  272.  
  273. function gui(GuiType,parent,text,backtrans,backcol,pos,size)
  274. local gui=it(GuiType)
  275. gui.Parent=parent
  276. gui.Text=text
  277. gui.BackgroundTransparency=backtrans
  278. gui.BackgroundColor3=backcol
  279. gui.SizeConstraint="RelativeXY"
  280. gui.TextXAlignment="Center"
  281. gui.TextYAlignment="Center"
  282. gui.Position=pos
  283. gui.Size=size
  284. gui.Font="SourceSans"
  285. gui.FontSize="Size14"
  286. gui.TextWrapped=false
  287. gui.TextStrokeTransparency=0
  288. gui.TextColor=BrickColor.new("White")
  289. return gui
  290. end
  291.  
  292. local Color1=Torso.BrickColor
  293.  
  294. local fengui=it("GuiMain")
  295. fengui.Parent=Player.PlayerGui
  296. fengui.Name="WeaponGUI"
  297. local fenframe=it("Frame")
  298. fenframe.Parent=fengui
  299. fenframe.BackgroundColor3=Color3.new(255,255,255)
  300. fenframe.BackgroundTransparency=1
  301. fenframe.BorderColor3=Color3.new(17,17,17)
  302. fenframe.Size=UDim2.new(0.1,0,0.1,0)
  303. fenframe.Position=UDim2.new(0.95,0,0.7,0)
  304. local fenframe2=it("Frame")
  305. fenframe2.Parent=fengui
  306. fenframe2.BackgroundColor3=Color3.new(255,255,255)
  307. fenframe2.BackgroundTransparency=1
  308. fenframe2.BorderColor3=Color3.new(17,17,17)
  309. fenframe2.Size=UDim2.new(0.2,0,0.1,0)
  310. fenframe2.Position=UDim2.new(0.4,0,0.85,0)
  311. local fenframe3=it("Frame")
  312. fenframe3.Parent=fengui
  313. fenframe3.BackgroundColor3=Color3.new(255,255,255)
  314. fenframe3.BackgroundTransparency=1
  315. fenframe3.BorderColor3=Color3.new(17,17,17)
  316. fenframe3.Size=UDim2.new(0.2,0,0.2,0)
  317. fenframe3.Position=UDim2.new(0.8,0,0.8,0)
  318. fenframe3.Name="MoveFrame"
  319. local fenframe4=it("Frame")
  320. fenframe4.Parent=fengui
  321. fenframe4.BackgroundColor3=Color3.new(255,255,255)
  322. fenframe4.BackgroundTransparency=1
  323. fenframe4.BorderColor3=Color3.new(17,17,17)
  324. fenframe4.Size=UDim2.new(0.1,0,0.1,0)
  325. fenframe4.Position=UDim2.new(0,0,0.7,0)
  326. local pressedf=false
  327. local fenframe5=it("Frame")
  328. fenframe5.Parent=fengui
  329. --fenframe5.Parent=nil
  330. fenframe5.BackgroundColor3=Color3.new(0,0,0)
  331. fenframe5.BackgroundTransparency=1
  332. fenframe5.BorderColor3=Color3.new(0,0,0)
  333. fenframe5.Size=UDim2.new(1,0,1,0)
  334. fenframe5.Position=UDim2.new(0,0,0,0)
  335. fenframe5.ZIndex=2
  336. local tellbar=gui("TextLabel",fenframe5,"Press 'F' to equip your weapon.",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
  337. tellbar.Font="Arial"
  338. tellbar.TextScaled=true
  339. tellbar.TextTransparency=1
  340. tellbar.TextStrokeTransparency=1
  341. tellbar.ZIndex=2
  342. local fnumb=0
  343. local fenbarmana1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(.4,0,-4,0))
  344. local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
  345. local fenbarmana4=gui("TextLabel",fenframe,"Mana("..mana.Value..")",1,Color3.new(0,0,0),UDim2.new(0,0,.2,0),UDim2.new(.4,0,.2,0))
  346. local fenbarblock1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(-.7,0,0,0),UDim2.new(.4,0,-4,0))
  347. local fenbarblock2=gui("TextLabel",fenframe,"",0,BrickColor.new("White").Color,UDim2.new(-.7,0,0,0),UDim2.new(.4,0,0,0))
  348. local fenbarblock3=gui("TextLabel",fenframe,"Overload("..overload..")",1,Color3.new(0,0,0),UDim2.new(-.7,0,.2,0),UDim2.new(.4,0,.2,0))
  349. local fenbardamage=gui("TextLabel",fenframe2,"Damage",.55,Color3.new(155/255,0,0),UDim2.new(-.23,0,0,0),UDim2.new(.2,0,1,0))
  350. local fenbardef=gui("TextLabel",fenframe2,"Defense",0.55,Color3.new(0,0,155/255),UDim2.new(-.46,0,0,0),UDim2.new(.2,0,1,0))
  351. local fenbarmove=gui("TextLabel",fenframe2,"Walkspeed",0.55,Color3.new(0,155/255,0),UDim2.new(1.03,0,0,0),UDim2.new(.2,0,1,0))
  352. local fenbarhp1=gui("TextLabel",fenframe2,"",0,Color3.new(0,0,0),UDim2.new(-.46,0,1,0),UDim2.new(1.92,0,.4,0))
  353. local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  354. local fenbarhp3=gui("TextLabel",fenbarhp1,"(100)",1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  355. local fenbarstun1=gui("TextLabel",fenframe4,"",0,Color3.new(0,0,0),UDim2.new(.2,0,0,0),UDim2.new(.4,0,-4,0))
  356. local fenbarstun2=gui("TextLabel",fenframe4,"",0,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,0,0),UDim2.new(.4,0,0,0))
  357. local fenbarstun3=gui("TextLabel",fenframe4,"Stun("..Stun.Value..")",1,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,.2,0),UDim2.new(.4,0,.2,0))
  358. local fenbarmove1=gui("TextButton",fenframe3,move1,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.1,0),UDim2.new(.4,0,.4,0))
  359. fenbarmove1.ZIndex=2
  360. local fenbarmove1b=gui("TextLabel",fenbarmove1,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  361. local fenbarmove2=gui("TextButton",fenframe3,move2,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.1,0),UDim2.new(.4,0,.4,0))
  362. fenbarmove2.ZIndex=2
  363. local fenbarmove2b=gui("TextLabel",fenbarmove2,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  364. local fenbarmove3=gui("TextButton",fenframe3,move3,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.6,0),UDim2.new(.4,0,.4,0))
  365. fenbarmove3.ZIndex=2
  366. local fenbarmove3b=gui("TextLabel",fenbarmove3,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  367. local fenbarmove4=gui("TextButton",fenframe3,move4,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.6,0),UDim2.new(.4,0,.4,0))
  368. fenbarmove4.ZIndex=2
  369. local fenbarmove4b=gui("TextLabel",fenbarmove4,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  370.  
  371. local modelzorz=Instance.new("Model")
  372. modelzorz.Parent=Character
  373. modelzorz.Name="Permanence"
  374. local modelzorz2=Instance.new("Model")
  375. modelzorz2.Parent=Character
  376. modelzorz2.Name="Dynamo"
  377.  
  378. prt1=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part01",vt(0.2,0.2,0.2))
  379. prt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part02",vt(0.2,0.2,0.2))
  380. prt3=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part03",vt(0.2,0.2,0.2))
  381. prt4=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part04",vt(0.2,0.2,0.2))
  382. prt5=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part05",vt(0.2,0.2,0.2))
  383. prt6=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part06",vt(0.2,0.2,0.2))
  384. prt7=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part07",vt(0.2,0.2,0.2))
  385. prt8=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part08",vt(0.2,0.2,0.2))
  386. prt9=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part09",vt(0.2,0.2,0.2))
  387. prt10=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part10",vt(0.2,0.2,0.2))
  388. prt11=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part11",vt(0.2,0.2,0.2))
  389. prt13=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part13",vt(0.2,0.2,0.2))
  390. prt14=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part14",vt(0.2,0.2,0.2))
  391. prt15=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part15",vt(0.2,0.2,0.2))
  392. prt16=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part16",vt(0.2,0.2,0.2))
  393. prt17=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part17",vt(0.2,0.2,0.2))
  394. prt18=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part18",vt(0.2,0.2,0.2))
  395. prt19=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part19",vt(0.2,0.2,0.2))
  396. prt20=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part20",vt(0.2,0.2,0.2))
  397. prt21=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part21",vt(0.2,0.2,0.2))
  398. prt23=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part23",vt(0.2,0.2,0.2))
  399. prt29=part(3,modelzorz,.3,.05,BrickColor.new(NewCol2),"Part29",vt(0.2,0.2,0.2))
  400. prt31=part(3,modelzorz,.2,.5,BrickColor.new(NewCol2),"Part31",vt(0.2,0.2,0.2))
  401.  
  402. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,4.99,1))
  403. msh2=mesh("SpecialMesh",prt2,"Wedge","nil",vt(0,0,0),vt(1.1,2,1.1))
  404. msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(1.1,1,1.1))
  405. msh4=mesh("SpecialMesh",prt4,"Wedge","nil",vt(0,0,0),vt(1.1,1,1.1))
  406. msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(1.1,1,1.1))
  407. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(1.1,1,2))
  408. msh7=mesh("SpecialMesh",prt7,"Wedge","nil",vt(0,0,0),vt(.5,2,2))
  409. msh8=mesh("SpecialMesh",prt8,"Wedge","nil",vt(0,0,0),vt(.5,2,2))
  410. msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(3,2,3))
  411. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(2,4,2))
  412. msh11=mesh("CylinderMesh",prt11,"","",vt(0,0,0),vt(2,2,2))
  413. msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(2,2,2))
  414. msh14=mesh("CylinderMesh",prt14,"","",vt(0,0,0),vt(2,1.99,2))
  415. msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(.5,1,3))
  416. msh16=mesh("SpecialMesh",prt16,"Wedge","nil",vt(0,0,0),vt(.5,1,2))
  417. msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(.5,1,3))
  418. msh18=mesh("SpecialMesh",prt18,"Wedge","nil",vt(0,0,0),vt(.5,1,2))
  419. msh19=mesh("BlockMesh",prt19,"","",vt(0,0,0),vt(1.5,2,1.5))
  420. msh20=mesh("SpecialMesh",prt20,"FileMesh","1778999",vt(0,0,0),vt(.3,.3,.3))
  421. msh21=mesh("CylinderMesh",prt21,"","",vt(0,0,0),vt(2.5,3,2.5))
  422. msh23=mesh("SpecialMesh",prt23,"FileMesh","1778999",vt(0,0,0),vt(.375,.4,.375))
  423. msh29=mesh("BlockMesh",prt29,"","",vt(0,0,0),vt(.5,15,2))
  424. msh31=mesh("BlockMesh",prt31,"","",vt(0,0,0),vt(.2,16,3))
  425.  
  426. local wld1=weld(prt1,prt1,Torso,euler(-1.2,0,-.5)*euler(0,0,3.14)*cf(-.8,1,1.5))
  427. --local wld1=weld(prt1,prt1,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  428. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,.1,0))
  429. local wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,.3,0))
  430. local wld4=weld(prt4,prt4,prt1,euler(0,0,3.14)*cf(0,-.2,0))
  431. local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,.2,0))
  432. local wld6=weld(prt6,prt6,prt1,euler(0,0,0)*cf(0,-.6,0))
  433. local wld7=weld(prt7,prt7,prt6,euler(1.1,0,0)*cf(0,.08,.2))
  434. local wld8=weld(prt8,prt8,prt6,euler(1.1,0,0)*cf(0,.08,.2)*euler(0,3.14,0))
  435. local wld9=weld(prt9,prt9,prt6,euler(0,0,1.57)*cf(0,-.3,0))
  436. --local wld10=weld(prt10,prt10,prt9,euler(0,0,1.57)*cf(.4,0,0))
  437. local wld10=weld(prt10,prt10,prt9,euler(0,0,1.57)*cf(.6,0,0)*euler(0,-1.6,0))
  438. local wld11=weld(prt11,prt11,prt10,euler(0,0,1.57)*cf(0,.4,0))
  439. local wld13=weld(prt13,prt13,prt9,euler(0,0,1.57)*cf(.4,0,0)*euler(0,2.4,0))
  440. local wld14=weld(prt14,prt14,prt13,euler(0,0,1.57)*cf(0,.2,0))
  441. --local wld15=weld(prt15,prt15,prt13,euler(0,.1,1.57)*cf(.1,.2,.2))
  442. local wld15=weld(prt15,prt15,prt14,euler(0,0,1.57)*cf(0,.1,.4)*euler(0,1,0))
  443. local wld16=weld(prt16,prt16,prt15,euler(0,0,0)*cf(0,0,.5))
  444. local wld17=weld(prt17,prt17,prt14,euler(0,0,1.57)*cf(0,-.1,.4)*euler(0,1,0))
  445. local wld18=weld(prt18,prt18,prt17,euler(0,0,0)*cf(0,0,.5))
  446. local wld19=weld(prt19,prt19,prt9,euler(0,0,1.57)*cf(.3,0,0))
  447. local wld20=weld(prt20,prt20,prt19,euler(0,0,0)*cf(0,0,0))
  448. local wld21=weld(prt21,prt21,prt19,euler(0,0,0)*cf(0,.5,0))
  449. local wld23=weld(prt23,prt23,prt21,euler(3.14,0,0)*cf(0,.62,0))
  450. local wld29=weld(prt29,prt29,prt23,euler(0,0,0)*cf(0,-1.2,0))
  451. local wld31=weld(prt31,prt31,prt23,euler(0,0,0)*cf(0,-1.3,0))
  452.  
  453. for i=-.2,.2,.4 do
  454. local prt12=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part12",vt(0.2,0.2,0.2))
  455. msh12=mesh("SpecialMesh",prt12,"Wedge","nil",vt(0,0,0),vt(1,1,1))
  456. local wld12=weld(prt12,prt12,prt10,euler(0,0,0)*cf(0,i,.3))
  457. end
  458.  
  459. for i=1.57,6.28,1.57 do
  460. local prt22=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part22",vt(0.2,0.2,0.2))
  461. msh22=mesh("SpecialMesh",prt22,"Wedge","nil",vt(0,0,0),vt(.5,2,1))
  462. local wld22=weld(prt22,prt22,prt19,euler(.2,0,0)*cf(0,.1,.22)*euler(0,i,0))
  463. end
  464.  
  465. for i=0,3.14,3.14 do
  466. local prt24=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part24",vt(0.2,0.2,0.2))
  467. local prt25=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part25",vt(0.2,0.2,0.2))
  468. local prt26=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part26",vt(0.2,0.2,0.2))
  469. local prt27=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part27",vt(0.2,0.2,0.2))
  470. local prt28=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part28",vt(0.2,0.2,0.2))
  471. msh24=mesh("BlockMesh",prt24,"","",vt(0,0,0),vt(1,2,.5))
  472. msh25=mesh("BlockMesh",prt25,"","",vt(0,0,0),vt(1,7,.5))
  473. msh26=mesh("SpecialMesh",prt26,"Wedge","nil",vt(0,0,0),vt(1,1,1))
  474. msh27=mesh("SpecialMesh",prt27,"Wedge","nil",vt(0,0,0),vt(1,1,.5))
  475. msh28=mesh("SpecialMesh",prt28,"Wedge","nil",vt(0,0,0),vt(1,1,.5))
  476. local wld24=weld(prt24,prt24,prt21,euler(0,0,0)*cf(0,.1,.25)*euler(0,i,0))
  477. local wld25=weld(prt25,prt25,prt24,euler(0,0,0)*cf(0,.5,.1))
  478. local wld26=weld(prt26,prt26,prt24,euler(0,0,0)*cf(0,-.3,.05))
  479. local wld27=weld(prt27,prt27,prt24,euler(3.14,0,0)*cf(0,.3,0))
  480. local wld28=weld(prt28,prt28,prt25,euler(3.14,3.14,0)*cf(0,.8,0))
  481. end
  482.  
  483. local prt30=part(3,modelzorz,.3,.05,BrickColor.new(NewCol2),"Part30",vt(0.2,0.2,0.2))
  484. msh30=mesh("SpecialMesh",prt30,"Wedge","nil",vt(0,0,0),vt(.5,3,1))
  485. local wld30=weld(prt30,prt30,prt29,euler(0,0,0)*cf(0,-1.8,.1)*euler(0,0,0))
  486. local prt30b=part(3,modelzorz,.3,.05,BrickColor.new(NewCol2),"Part30B",vt(0.2,0.2,0.2))
  487. msh30b=mesh("SpecialMesh",prt30b,"Wedge","nil",vt(0,0,0),vt(.5,3,1))
  488. local wld30b=weld(prt30b,prt30b,prt29,euler(0,0,0)*cf(0,-1.8,.1)*euler(0,3.14,0))
  489.  
  490. local prt32=part(3,modelzorz,.2,.5,BrickColor.new(NewCol2),"Part32",vt(0.2,0.2,0.2))
  491. msh32=mesh("SpecialMesh",prt32,"Wedge","nil",vt(0,0,0),vt(.5,5,1.5))
  492. local wld32=weld(prt32,prt32,prt31,euler(0,0,0)*cf(0,-2.1,.15)*euler(0,0,0))
  493. local prt32b=part(3,modelzorz,.2,.5,BrickColor.new(NewCol2),"Part32B",vt(0.2,0.2,0.2))
  494. msh32b=mesh("SpecialMesh",prt32b,"Wedge","nil",vt(0,0,0),vt(.5,5,1.5))
  495. local wld32b=weld(prt32b,prt32b,prt31,euler(0,0,0)*cf(0,-2.1,.15)*euler(0,3.14,0))
  496.  
  497. local prt33=part(3,modelzorz,.3,1.1,BrickColor.new(NewCol2),"Part33",vt(0.2,0.2,0.2))
  498. local prt34=part(3,modelzorz,.3,1.1,BrickColor.new(NewCol2),"Part34",vt(0.2,0.2,0.2))
  499. local prt35=part(3,modelzorz,.3,1.1,BrickColor.new(NewCol2),"Part35",vt(0.2,0.2,0.2))
  500. local prt36=part(3,modelzorz,.5,1.5,BrickColor.new(NewCol2),"Part36",vt(0.2,0.2,0.2))
  501. local prt37=part(3,modelzorz,.5,1.5,BrickColor.new(NewCol2),"Part37",vt(0.2,0.2,0.2))
  502. local prt38=part(3,modelzorz,.5,1.5,BrickColor.new(NewCol2),"Part38",vt(0.2,0.2,0.2))
  503. local prt39=part(3,modelzorz,.5,1.5,BrickColor.new(NewCol2),"Part39",vt(0.2,0.2,0.2))
  504. msh33=mesh("BlockMesh",prt33,"","",vt(0,0,0),vt(.5,23,3))
  505. msh34=mesh("SpecialMesh",prt34,"Wedge","nil",vt(0,0,0),vt(.5,5,1.5))
  506. msh35=mesh("SpecialMesh",prt35,"Wedge","nil",vt(0,0,0),vt(.5,5,1.5))
  507. msh36=mesh("SpecialMesh",prt36,"Wedge","nil",vt(0,0,0),vt(.5,30,9))
  508. msh37=mesh("SpecialMesh",prt37,"Wedge","nil",vt(0,0,0),vt(.5,30,9))
  509. msh38=mesh("SpecialMesh",prt38,"Wedge","nil",vt(0,0,0),vt(.5,2,9))
  510. msh39=mesh("SpecialMesh",prt39,"Wedge","nil",vt(0,0,0),vt(.5,2,9))
  511. local wld33=weld(prt33,prt33,prt23,euler(0,0,0)*cf(0,-2,0))
  512. local wld34=weld(prt34,prt34,prt33,euler(0,0,0)*cf(0,-2.8,.15)*euler(0,0,0))
  513. local wld35=weld(prt35,prt35,prt33,euler(0,0,0)*cf(0,-2.8,.15)*euler(0,3.14,0))
  514. local wld36=weld(prt36,prt36,prt23,euler(0,0,0)*cf(0,-2.7,.9)*euler(0,0,0))
  515. local wld37=weld(prt37,prt37,prt23,euler(0,0,0)*cf(0,-2.7,.9)*euler(0,3.14,0))
  516. local wld38=weld(prt38,prt38,prt23,euler(0,0,3.14)*cf(0,.5,.9)*euler(0,0,0))
  517. local wld39=weld(prt39,prt39,prt23,euler(0,0,3.14)*cf(0,.5,.9)*euler(0,3.14,0))
  518.  
  519. --prt 29,30,30b,31,32,32b
  520. --dprt 4,5,16,17,18,19,20,21,22
  521. --dprtb 4,5,16,17,18,19,20,21,22
  522. handle=part(3,modelzorz2,0,1,BrickColor.new("Black"),"Handle",vt(0.2,0.2,0.2))
  523. dprt1=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part01",vt(0.2,0.2,0.2)) --
  524. dprt2=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part02",vt(0.2,0.2,0.2))
  525. dprt3=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part03",vt(0.2,0.2,0.2))
  526. dprt4=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"Part04",vt(0.2,0.2,0.2))
  527. dprt5=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"Part05",vt(0.2,0.2,0.2))
  528. dprt6=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part06",vt(0.2,0.2,0.2)) --
  529. dprt7=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part07",vt(0.2,0.2,0.2))
  530. dprt8=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part08",vt(0.2,0.2,0.2))
  531. dprt9=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part09",vt(0.2,0.2,0.2))
  532. dprt10=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part10",vt(0.2,0.2,0.2)) --
  533. dprt11=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part11",vt(0.2,0.2,0.2))
  534. dprt12=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part12",vt(0.2,0.2,0.2))
  535. dprt13=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part13",vt(0.2,0.2,0.2))
  536. dprt14=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part14",vt(0.2,0.2,0.2))
  537. dprt15=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"Part15",vt(0.2,0.2,0.2))
  538. dprt16=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"Part16",vt(0.2,0.2,0.2))
  539. dprt17=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"Part17",vt(0.2,0.2,0.2))
  540. dprt18=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"Part18",vt(0.2,0.2,0.2))
  541. dprt19=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"Part19",vt(0.2,0.2,0.2))
  542. dprt20=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"Part20",vt(0.2,0.2,0.2))
  543. dprt21=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"Part21",vt(0.2,0.2,0.2))
  544. dprt22=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"Part22",vt(0.2,0.2,0.2))
  545. dprtb1=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB01",vt(0.2,0.2,0.2)) --
  546. dprtb2=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB02",vt(0.2,0.2,0.2))
  547. dprtb3=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB03",vt(0.2,0.2,0.2))
  548. dprtb4=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"PartB04",vt(0.2,0.2,0.2))
  549. dprtb5=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"PartB05",vt(0.2,0.2,0.2))
  550. dprtb6=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB06",vt(0.2,0.2,0.2)) --
  551. dprtb7=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB07",vt(0.2,0.2,0.2))
  552. dprtb8=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB08",vt(0.2,0.2,0.2))
  553. dprtb9=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB09",vt(0.2,0.2,0.2))
  554. dprtb10=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB10",vt(0.2,0.2,0.2)) --
  555. dprtb11=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB11",vt(0.2,0.2,0.2))
  556. dprtb12=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB12",vt(0.2,0.2,0.2))
  557. dprtb13=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB13",vt(0.2,0.2,0.2))
  558. dprtb14=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB14",vt(0.2,0.2,0.2))
  559. dprtb15=part(3,modelzorz2,0,0,BrickColor.new(NewCol),"PartB15",vt(0.2,0.2,0.2))
  560. dprtb16=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"PartB16",vt(0.2,0.2,0.2))
  561. dprtb17=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"PartB17",vt(0.2,0.2,0.2))
  562. dprtb18=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"PartB18",vt(0.2,0.2,0.2))
  563. dprtb19=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"PartB19",vt(0.2,0.2,0.2))
  564. dprtb20=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"PartB20",vt(0.2,0.2,0.2))
  565. dprtb21=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"PartB21",vt(0.2,0.2,0.2))
  566. dprtb22=part(3,modelzorz2,.4,.5,BrickColor.new(NewCol2),"PartB22",vt(0.2,0.2,0.2))
  567.  
  568. dmsh1=mesh("BlockMesh",dprt1,"","",vt(0,0,0),vt(1.5,6,1))
  569. dmsh2=mesh("SpecialMesh",dprt2,"Wedge","nil",vt(0,0,0),vt(1,1.5,1))
  570. dmsh3=mesh("SpecialMesh",dprt3,"Wedge","nil",vt(0,0,0),vt(1,1,1.5))
  571. dmsh4=mesh("SpecialMesh",dprt4,"Wedge","nil",vt(0,0,0),vt(.5,10,3))
  572. dmsh5=mesh("SpecialMesh",dprt5,"Wedge","nil",vt(0,0,0),vt(.5,1.5,1.5))
  573. dmsh6=mesh("BlockMesh",dprt6,"","",vt(0,0,0),vt(1.5,3,1))
  574. dmsh7=mesh("SpecialMesh",dprt7,"Wedge","nil",vt(0,0,0),vt(1,1,1.5))
  575. dmsh8=mesh("SpecialMesh",dprt8,"Wedge","nil",vt(0,0,0),vt(1,1,1.5))
  576. dmsh9=mesh("SpecialMesh",dprt9,"Torso","nil",vt(0,0,0),vt(7,1,1))
  577. dmsh10=mesh("BlockMesh",dprt10,"","",vt(0,0,0),vt(2,4,1))
  578. dmsh11=mesh("SpecialMesh",dprt11,"Wedge","nil",vt(0,0,0),vt(1,1,1.5))
  579. dmsh12=mesh("SpecialMesh",dprt12,"Wedge","nil",vt(0,0,0),vt(1,1,.5))
  580. dmsh13=mesh("BlockMesh",dprt13,"","",vt(0,0,0),vt(1,4,1))
  581. dmsh14=mesh("SpecialMesh",dprt14,"Wedge","nil",vt(0,0,0),vt(1,1,1))
  582. dmsh15=mesh("SpecialMesh",dprt15,"Wedge","nil",vt(0,0,0),vt(1,4,1))
  583. dmsh16=mesh("BlockMesh",dprt16,"","",vt(0,0,0),vt(.5,7,3))
  584. dmsh17=mesh("SpecialMesh",dprt17,"Wedge","nil",vt(0,0,0),vt(.5,2.5,3))
  585. dmsh18=mesh("SpecialMesh",dprt18,"Wedge","nil",vt(0,0,0),vt(.5,12,3))
  586. dmsh19=mesh("BlockMesh",dprt19,"","",vt(0,0,0),vt(.5,5,1))
  587. dmsh20=mesh("SpecialMesh",dprt20,"Wedge","nil",vt(0,0,0),vt(.5,3,1))
  588. dmsh21=mesh("SpecialMesh",dprt21,"Wedge","nil",vt(0,0,0),vt(.5,1.5,1))
  589. dmsh22=mesh("SpecialMesh",dprt22,"Wedge","nil",vt(0,0,0),vt(.5,11,3))
  590. dmshb1=mesh("BlockMesh",dprtb1,"","",vt(0,0,0),vt(1.5,6,1))
  591. dmshb2=mesh("SpecialMesh",dprtb2,"Wedge","nil",vt(0,0,0),vt(1,1.5,1))
  592. dmshb3=mesh("SpecialMesh",dprtb3,"Wedge","nil",vt(0,0,0),vt(1,1,1.5))
  593. dmshb4=mesh("SpecialMesh",dprtb4,"Wedge","nil",vt(0,0,0),vt(.5,10,3))
  594. dmshb5=mesh("SpecialMesh",dprtb5,"Wedge","nil",vt(0,0,0),vt(.5,1.5,1.5))
  595. dmshb6=mesh("BlockMesh",dprtb6,"","",vt(0,0,0),vt(1.5,3,1))
  596. dmshb7=mesh("SpecialMesh",dprtb7,"Wedge","nil",vt(0,0,0),vt(1,1,1.5))
  597. dmshb8=mesh("SpecialMesh",dprtb8,"Wedge","nil",vt(0,0,0),vt(1,1,1.5))
  598. dmshb9=mesh("SpecialMesh",dprtb9,"Torso","nil",vt(0,0,0),vt(7,1,1))
  599. dmshb10=mesh("BlockMesh",dprtb10,"","",vt(0,0,0),vt(2,4,1))
  600. dmshb11=mesh("SpecialMesh",dprtb11,"Wedge","nil",vt(0,0,0),vt(1,1,1.5))
  601. dmshb12=mesh("SpecialMesh",dprtb12,"Wedge","nil",vt(0,0,0),vt(1,1,.5))
  602. dmshb13=mesh("BlockMesh",dprtb13,"","",vt(0,0,0),vt(1,4,1))
  603. dmshb14=mesh("SpecialMesh",dprtb14,"Wedge","nil",vt(0,0,0),vt(1,1,1))
  604. dmshb15=mesh("SpecialMesh",dprtb15,"Wedge","nil",vt(0,0,0),vt(1,4,1))
  605. dmshb16=mesh("BlockMesh",dprtb16,"","",vt(0,0,0),vt(.5,7,3))
  606. dmshb17=mesh("SpecialMesh",dprtb17,"Wedge","nil",vt(0,0,0),vt(.5,2.5,3))
  607. dmshb18=mesh("SpecialMesh",dprtb18,"Wedge","nil",vt(0,0,0),vt(.5,12,3))
  608. dmshb19=mesh("BlockMesh",dprtb19,"","",vt(0,0,0),vt(.5,5,1))
  609. dmshb20=mesh("SpecialMesh",dprtb20,"Wedge","nil",vt(0,0,0),vt(.5,3,1))
  610. dmshb21=mesh("SpecialMesh",dprtb21,"Wedge","nil",vt(0,0,0),vt(.5,1.5,1))
  611. dmshb22=mesh("SpecialMesh",dprtb22,"Wedge","nil",vt(0,0,0),vt(.5,11,3))
  612.  
  613. hwld=weld(handle,handle,RightArm,euler(0,0,0)*cf(0,0,0))
  614. dwld1=weld(dprt1,dprt1,handle,euler(0,1.57,0)*cf(-.6,-1.5,-.4))
  615. --dwld1=weld(dprt1,dprt1,handle,euler(0,1.57,0)*cf(-5,0,0))
  616. dwld2=weld(dprt2,dprt2,dprt1,euler(1.57,-1.57,0)*cf(0,.7,0))
  617. dwld3=weld(dprt3,dprt3,dprt1,euler(0,1.57,0)*cf(0,-.7,0))
  618. dwld4=weld(dprt4,dprt4,dprt1,euler(0,1.57,0)*cf(-.15,-.5,0))
  619. dwld5=weld(dprt5,dprt5,dprt1,euler(0,-1.57,3.14)*cf(-.3,.65,0))
  620. dwld6=weld(dprt6,dprt6,handle,euler(0,1.57,0)*cf(-.6,-.4,-.35))
  621. dwld7=weld(dprt7,dprt7,dprt6,euler(0,1.57,0)*cf(0,-.4,0))
  622. dwld8=weld(dprt8,dprt8,dprt6,euler(3.14,-1.57,0)*cf(0,.4,0))
  623. dwld9=weld(dprt9,dprt9,dprt6,euler(0,0,-1.57)*cf(.25,-.2,0))
  624. dwld10=weld(dprt10,dprt10,handle,euler(0,1.57,0)*cf(-.6,.5,-.45))
  625. dwld11=weld(dprt11,dprt11,dprt10,euler(0,-1.57,0)*cf(.05,-.5,0))
  626. dwld12=weld(dprt12,dprt12,dprt10,euler(0,1.57,0)*cf(-.15,-.5,0))
  627. dwld13=weld(dprt13,dprt13,dprt10,euler(0,0,0)*cf(.1,.8,0))
  628. dwld14=weld(dprt14,dprt14,dprt10,euler(3.14,-1.57,0)*cf(-.1,.5,0))
  629. dwld15=weld(dprt15,dprt15,dprt13,euler(3.14,-1.57,0)*cf(0,.8,0))
  630. dwld16=weld(dprt16,dprt16,dprt10,euler(0,1.57,0)*cf(-.1,-.3,0))
  631. dwld17=weld(dprt17,dprt17,dprt10,euler(0,-1.57,0)*cf(-.1,-1.25,0))
  632. dwld18=weld(dprt18,dprt18,dprt10,euler(0,-1.57,3.14)*cf(-.1,1.6,0))
  633. dwld19=weld(dprt19,dprt19,dprt16,euler(0,0,0)*cf(0,-.1,.4))
  634. dwld20=weld(dprt20,dprt20,dprt19,euler(0,0,0)*cf(0,-.8,0))
  635. dwld21=weld(dprt21,dprt21,dprt19,euler(0,0,3.14)*cf(0,.65,0))
  636. dwld22=weld(dprt22,dprt22,dprt9,euler(0,-1.57,1.57)*cf(-.4,-.2,0))
  637. dwldb1=weld(dprtb1,dprtb1,handle,euler(0,-1.57,0)*cf(-.6,-1.5,.4))
  638. dwldb2=weld(dprtb2,dprtb2,dprtb1,euler(1.57,-1.57,0)*cf(0,.7,0))
  639. dwldb3=weld(dprtb3,dprtb3,dprtb1,euler(0,1.57,0)*cf(0,-.7,0))
  640. dwldb4=weld(dprtb4,dprtb4,dprtb1,euler(0,1.57,0)*cf(-.15,-.5,0))
  641. dwldb5=weld(dprtb5,dprtb5,dprtb1,euler(0,-1.57,3.14)*cf(-.3,.65,0))
  642. dwldb6=weld(dprtb6,dprtb6,handle,euler(0,-1.57,0)*cf(-.6,-.4,.35))
  643. dwldb7=weld(dprtb7,dprtb7,dprtb6,euler(0,1.57,0)*cf(0,-.4,0))
  644. dwldb8=weld(dprtb8,dprtb8,dprtb6,euler(3.14,-1.57,0)*cf(0,.4,0))
  645. dwldb9=weld(dprtb9,dprtb9,dprtb6,euler(0,0,-1.57)*cf(.25,-.2,0))
  646. dwldb10=weld(dprtb10,dprtb10,handle,euler(0,-1.57,0)*cf(-.6,.5,.45))
  647. dwldb11=weld(dprtb11,dprtb11,dprtb10,euler(0,-1.57,0)*cf(.05,-.5,0))
  648. dwldb12=weld(dprtb12,dprtb12,dprtb10,euler(0,1.57,0)*cf(-.15,-.5,0))
  649. dwldb13=weld(dprtb13,dprtb13,dprtb10,euler(0,0,0)*cf(.1,.8,0))
  650. dwldb14=weld(dprtb14,dprtb14,dprtb10,euler(3.14,-1.57,0)*cf(-.1,.5,0))
  651. dwldb15=weld(dprtb15,dprtb15,dprtb13,euler(3.14,-1.57,0)*cf(0,.8,0))
  652. dwldb16=weld(dprtb16,dprtb16,dprtb10,euler(0,1.57,0)*cf(-.1,-.3,0))
  653. dwldb17=weld(dprtb17,dprtb17,dprtb10,euler(0,-1.57,0)*cf(-.1,-1.25,0))
  654. dwldb18=weld(dprtb18,dprtb18,dprtb10,euler(0,-1.57,3.14)*cf(-.1,1.6,0))
  655. dwldb19=weld(dprtb19,dprtb19,dprtb16,euler(0,0,0)*cf(0,-.1,.4))
  656. dwldb20=weld(dprtb20,dprtb20,dprtb19,euler(0,0,0)*cf(0,-.8,0))
  657. dwldb21=weld(dprtb21,dprtb21,dprtb19,euler(0,0,3.14)*cf(0,.65,0))
  658. dwldb22=weld(dprtb22,dprtb22,dprtb9,euler(0,-1.57,1.57)*cf(-.4,-.2,0))
  659.  
  660. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox2",vt(0.2,0.2,0.2))
  661. hitbox.Anchored=false
  662. local hbwld=weld(hitbox,hitbox,RootPart,euler(0,0,0)*cf(0,0,0))
  663. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  664. hitbox2.Anchored=true
  665. local hitboxCF=cf(0,0,0)
  666.  
  667. hboxpos=Instance.new("BodyPosition",nil)
  668. hboxpos.P=2000
  669. hboxpos.D=100
  670. hboxpos.maxForce=Vector3.new(545000,545000,545000)
  671.  
  672. local DemTable={}
  673. table.insert(DemTable,{prt29,.05})
  674. table.insert(DemTable,{prt30,.05})
  675. table.insert(DemTable,{prt30b,.05})
  676. table.insert(DemTable,{prt31,.5})
  677. table.insert(DemTable,{prt32,.5})
  678. table.insert(DemTable,{prt32b,.5})
  679.  
  680. table.insert(DemTable,{dprt4,.5})
  681. table.insert(DemTable,{dprt5,.5})
  682. table.insert(DemTable,{dprt16,.5})
  683. table.insert(DemTable,{dprt17,.5})
  684. table.insert(DemTable,{dprt18,.5})
  685. table.insert(DemTable,{dprt19,.5})
  686. table.insert(DemTable,{dprt20,.5})
  687. table.insert(DemTable,{dprt21,.5})
  688. table.insert(DemTable,{dprt22,.5})
  689. table.insert(DemTable,{dprtb4,.5})
  690. table.insert(DemTable,{dprtb5,.5})
  691. table.insert(DemTable,{dprtb16,.5})
  692. table.insert(DemTable,{dprtb17,.5})
  693. table.insert(DemTable,{dprtb18,.5})
  694. table.insert(DemTable,{dprtb19,.5})
  695. table.insert(DemTable,{dprtb20,.5})
  696. table.insert(DemTable,{dprtb21,.5})
  697. table.insert(DemTable,{dprtb22,.5})
  698. local DynamPrt={}
  699. table.insert(DynamPrt,dprt1)
  700. table.insert(DynamPrt,dprt6)
  701. table.insert(DynamPrt,dprt10)
  702. table.insert(DynamPrt,dprtb1)
  703. table.insert(DynamPrt,dprtb6)
  704. table.insert(DynamPrt,dprtb10)
  705.  
  706. function hitboxweld()
  707. hbwld.Parent=modelzorz
  708. hbwld.Part0=hitbox
  709. hbwld.Part1=prt6
  710. end
  711.  
  712. if (script.Parent.className~="HopperBin") then
  713. Tool=Instance.new("HopperBin")
  714. Tool.Parent=Backpack
  715. Tool.Name="Dynamo & Permanence"
  716. script.Parent=Tool
  717. end
  718. Bin=script.Parent
  719. if Bin.Name=="Dynamence" then
  720. Bin.Name="Dynamo & Permanence"
  721. end
  722.  
  723. local bodvel=Instance.new("BodyVelocity")
  724. local bg=Instance.new("BodyGyro")
  725.  
  726. so = function(id,par,vol,pit)
  727. local sou = Instance.new("Sound",par or workspace)
  728. sou.Volume=vol
  729. sou.Pitch=pit or 1
  730. sou.SoundId="http://www.roblox.com/asset/?id="..id
  731. coroutine.resume(coroutine.create(function(Sound)
  732. swait()
  733. Sound:play()
  734. end),sou)
  735. game:GetService("Debris"):AddItem(sou,6)
  736. end
  737.  
  738. so2 = function(id,par,vol,pit)
  739. local sou = Instance.new("Sound",par or workspace)
  740. sou.Volume=vol
  741. sou.Pitch=pit or 1
  742. sou.SoundId=id
  743. --swait()
  744. sou:play()
  745. game:GetService("Debris"):AddItem(sou,6)
  746. end
  747.  
  748. function clerp(a,b,t)
  749. local qa = {QuaternionFromCFrame(a)}
  750. local qb = {QuaternionFromCFrame(b)}
  751. local ax, ay, az = a.x, a.y, a.z
  752. local bx, by, bz = b.x, b.y, b.z
  753. local _t = 1-t
  754. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  755. end
  756.  
  757. function QuaternionFromCFrame(cf)
  758. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  759. local trace = m00 + m11 + m22
  760. if trace > 0 then
  761. local s = math.sqrt(1 + trace)
  762. local recip = 0.5/s
  763. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  764. else
  765. local i = 0
  766. if m11 > m00 then
  767. i = 1
  768. end
  769. if m22 > (i == 0 and m00 or m11) then
  770. i = 2
  771. end
  772. if i == 0 then
  773. local s = math.sqrt(m00-m11-m22+1)
  774. local recip = 0.5/s
  775. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  776. elseif i == 1 then
  777. local s = math.sqrt(m11-m22-m00+1)
  778. local recip = 0.5/s
  779. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  780. elseif i == 2 then
  781. local s = math.sqrt(m22-m00-m11+1)
  782. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  783. end
  784. end
  785. end
  786.  
  787. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  788. local xs, ys, zs = x + x, y + y, z + z
  789. local wx, wy, wz = w*xs, w*ys, w*zs
  790. local xx = x*xs
  791. local xy = x*ys
  792. local xz = x*zs
  793. local yy = y*ys
  794. local yz = y*zs
  795. local zz = z*zs
  796. 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))
  797. end
  798.  
  799. function QuaternionSlerp(a, b, t)
  800. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  801. local startInterp, finishInterp;
  802. if cosTheta >= 0.0001 then
  803. if (1 - cosTheta) > 0.0001 then
  804. local theta = math.acos(cosTheta)
  805. local invSinTheta = 1/math.sin(theta)
  806. startInterp = math.sin((1-t)*theta)*invSinTheta
  807. finishInterp = math.sin(t*theta)*invSinTheta
  808. else
  809. startInterp = 1-t
  810. finishInterp = t
  811. end
  812. else
  813. if (1+cosTheta) > 0.0001 then
  814. local theta = math.acos(-cosTheta)
  815. local invSinTheta = 1/math.sin(theta)
  816. startInterp = math.sin((t-1)*theta)*invSinTheta
  817. finishInterp = math.sin(t*theta)*invSinTheta
  818. else
  819. startInterp = t-1
  820. finishInterp = t
  821. end
  822. end
  823. 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
  824. end
  825.  
  826. function hideanim()
  827. equipped=false
  828. for i=0,1,0.2 do
  829. swait()
  830. if Mode=="Classic" then
  831. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.4)
  832. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(-.6,-1.5,-.4),.4)
  833. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(-.6,-.4,-.35),.4)
  834. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.5,-.45),.4)
  835. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(-.6,-1.5,.4),.4)
  836. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(-.6,-.4,.35),.4)
  837. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.5,.45),.4)
  838. elseif Mode=="Dynamic Blade" then
  839. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(.2,-2.5,-.4),.4)
  840. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(.2,-1.4,-.35),.4)
  841. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(.2,-.5,-.45),.4)
  842. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(.2,-2.5,.4),.4)
  843. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(.2,-1.4,.35),.4)
  844. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(.2,-.5,.45),.4)
  845. elseif Mode=="Energy Reactor" then
  846. hwld.Part1=Torso
  847. hwld.C0=clerp(hwld.C0,euler(0,1.57,1)*cf(0,0,0),.4)
  848. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(-.6,-1.5,-.4),.4)
  849. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(-.6,-.4,-.35),.4)
  850. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.5,-.45),.4)
  851. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(-.6,-1.5,.4),.4)
  852. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(-.6,-.4,.35),.4)
  853. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.5,.45),.4)
  854. end
  855. wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.5)
  856. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.5)
  857. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
  858. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.5)
  859. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  860. LW.C0=clerp(LW.C0,cf(0,0.2,-1)*euler(.2,0,.6)*euler(0,-3,0),.5)
  861. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  862. RH.C0=clerp(RH.C0,RHC0,.4)
  863. RH.C1=clerp(RH.C1,RHC1,.4)
  864. LH.C0=clerp(LH.C0,LHC0,.4)
  865. LH.C1=clerp(LH.C1,LHC1,.4)
  866. end
  867. --wld1=weld(prt1,prt1,Torso,euler(-1.2,0,-.5)*euler(0,0,3.14)*cf(-.8,1,1.5))
  868. wld1.Part1=Torso
  869. wld1.C0=euler(-1.2,0,-.5)*euler(0,0,3.14)*cf(-.8,1,1.5)
  870. mdec2.Parent=nil
  871. mdec.Parent=Decrease
  872. for i=0,1,0.1 do
  873. swait()
  874. if Mode=="Classic" then
  875. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(-.6,-1.5,-.4),.4)
  876. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(-.6,-.4,-.35),.4)
  877. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.5,-.45),.4)
  878. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(-.6,-1.5,.4),.4)
  879. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(-.6,-.4,.35),.4)
  880. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.5,.45),.4)
  881. elseif Mode=="Dynamic Blade" then
  882. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(.2,-2.5,-.4),.4)
  883. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(.2,-1.4,-.35),.4)
  884. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(.2,-.5,-.45),.4)
  885. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(.2,-2.5,.4),.4)
  886. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(.2,-1.4,.35),.4)
  887. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(.2,-.5,.45),.4)
  888. elseif Mode=="Energy Reactor" then
  889. hwld.C0=clerp(hwld.C0,euler(0,1.57,1)*cf(0,0,0),.4)
  890. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(-.6,-1.5,-.4),.4)
  891. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(-.6,-.4,-.35),.4)
  892. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.5,-.45),.4)
  893. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(-.6,-1.5,.4),.4)
  894. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(-.6,-.4,.35),.4)
  895. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.5,.45),.4)
  896. end
  897. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  898. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  899. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  900. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  901. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  902. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  903. end
  904. end
  905.  
  906. mdec.Parent=Decrease
  907. function equipanim()
  908. equipped=true
  909. mdec.Parent=nil
  910. for i=0,1,0.2 do
  911. swait()
  912. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.5)
  913. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
  914. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.5)
  915. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  916. LW.C0=clerp(LW.C0,cf(0,0.2,-1)*euler(.2,0,.6)*euler(0,-3,0),.5)
  917. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  918. end
  919. --local wld1=weld(prt1,prt1,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  920. wld1.Part1=LeftArm
  921. wld1.C0=euler(1.7,0,0)*cf(0,1,0)
  922. mdec2.Parent=Decrease
  923. end
  924.  
  925. function StaggerAnim()
  926. attack=true
  927. for i=1,math.random(2,4) do
  928. ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  929. end
  930. for i=0,1,0.35 do
  931. swait()
  932. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  933. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
  934. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.4),.3)
  935. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.3)
  936. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  937. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  938. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  939. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.3)
  940. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  941. if Stun.Value>=StunT.Value then
  942. break
  943. end
  944. end
  945. for i=0,1,0.2 do
  946. swait()
  947. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  948. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  949. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(-.5,0,-.4),.4)
  950. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.4)
  951. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  952. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.4)
  953. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  954. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.4)
  955. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.5),.4)
  956. if Stun.Value>=StunT.Value then
  957. break
  958. end
  959. end
  960. for i=0,1,0.1 do
  961. swait()
  962. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.5,0,0),.3)
  963. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,-.4),.3)
  964. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.4)*euler(0,-.4,0),.3)
  965. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  966. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.2)*euler(0,.4,0),.3)
  967. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  968. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,1.2),.3)
  969. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  970. if Stun.Value>=StunT.Value then
  971. break
  972. end
  973. end
  974. for i=1,50 do
  975. swait()
  976. if Stun.Value>=StunT.Value then
  977. break
  978. end
  979. end
  980. combo=0
  981. attack=false
  982. end
  983.  
  984. function StaggerHitt() end
  985.  
  986. function StunAnim()
  987. attack=true
  988. Stunned.Value=true
  989. showDamage(Character,"Stunned","Interrupt")
  990. local dec=Instance.new("NumberValue",Decrease)
  991. dec.Name="DecreaseMvmt"
  992. dec.Value=10
  993. for i=0,1,0.3 do
  994. swait()
  995. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  996. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  997. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  998. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  999. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  1000. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1001. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  1002. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  1003. end
  1004. for i=0,1,0.3 do
  1005. swait()
  1006. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  1007. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  1008. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  1009. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1010. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  1011. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1012. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  1013. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  1014. end
  1015. for i=0,1,0.3 do
  1016. swait()
  1017. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  1018. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  1019. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  1020. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1021. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  1022. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1023. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  1024. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  1025. end
  1026. local gairost=Instance.new("BodyGyro")
  1027. gairost.Parent=RootPart
  1028. gairost.maxTorque=Vector3.new(2000,0,2000)
  1029. gairost.P=2000
  1030. gairost.cframe=cf(0,0,0)
  1031. for i=0,1,0.1 do
  1032. swait()
  1033. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  1034. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  1035. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  1036. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1037. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  1038. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1039. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  1040. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  1041. end
  1042. for i=1,70 do
  1043. swait()
  1044. gairost.cframe=RootPart.CFrame
  1045. end
  1046. for i=0,1,0.2 do
  1047. swait()
  1048. Stun.Value=0
  1049. gairost.cframe=RootPart.CFrame
  1050. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1051. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  1052. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  1053. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1054. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  1055. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1056. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  1057. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  1058. end
  1059. dynamove=true
  1060. gairost.Parent=nil
  1061. dec.Parent=nil
  1062. Stun.Value=0
  1063. combo=0
  1064. Stunned.Value=false
  1065. attack=false
  1066. for i=1,10 do
  1067. swait()
  1068. Stun.Value=0
  1069. end
  1070. end
  1071.  
  1072. function attackone()
  1073. attack=true
  1074. for i=0,1,0.15 do
  1075. swait()
  1076. if Mode=="Classic" then
  1077. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.5)
  1078. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(-.6,-1.5,-.4),.5)
  1079. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(-.6,-.4,-.35),.5)
  1080. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.5,-.45),.5)
  1081. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(-.6,-1.5,.4),.5)
  1082. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(-.6,-.4,.35),.5)
  1083. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.5,.45),.5)
  1084. end
  1085. if Mode=="Dynamic Blade" then
  1086. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.6)
  1087. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-6.5,-.15),.6)
  1088. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-5,-.4),.6)
  1089. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*cf(0,-4,-.5),.6)
  1090. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-6.5,.15),.6)
  1091. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-5,.4),.6)
  1092. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,-1.57,0)*cf(0,-4,.5),.6)
  1093. end
  1094. wld1.C0=clerp(wld1.C0,euler(1,0,0)*cf(0,1,0),.2)
  1095. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.3)
  1096. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  1097. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2),.3)
  1098. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1099. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.5)*euler(2,0,1)*euler(0,-1,0),.3)
  1100. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1101. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.3)
  1102. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.3)
  1103. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1104. break
  1105. end
  1106. end
  1107. num=1
  1108. dam1=6
  1109. dam2=8
  1110. knock=math.random(5,10)
  1111. stun=math.random(5,7)
  1112. typ="Normal"
  1113. if Mode=="Dynamic Blade" then
  1114. num=2
  1115. dam1=7
  1116. dam2=9
  1117. knock=math.random(10,15)
  1118. stun=math.random(6,8)
  1119. typ="Normal"
  1120. end
  1121. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,dam1,dam2,knock,typ,RootPart,.5,num,stun,nil,true) end)
  1122. hbwld.Parent=nil
  1123. hboxpos.Parent=hitbox
  1124. hitbox.Parent=modelzorz
  1125. hitbox.Size=vt(.5,5.4,1)
  1126. local size=5
  1127. if Mode=="Dynamic Blade" then
  1128. hitbox.Size=vt(1,8,2)
  1129. size=7
  1130. end
  1131. hitboxCF=prt31.CFrame*cf(0,0,0)
  1132. hitbox.CFrame=hitboxCF
  1133. blcf=nil
  1134. scfr=nil
  1135. so("200633281",prt31,1,.9)
  1136. for i=0,1,0.1 do
  1137. swait()
  1138. --[[local blcf = prt31.CFrame*cf(0,0,0)
  1139. if scfr and (prt31.Position-scfr.p).magnitude > .1 then
  1140. local h = 5
  1141. if Mode=="Dynamic Blade" then
  1142. h=8
  1143. blcf = prt31.CFrame*cf(0,1,0)
  1144. end
  1145. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1146. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1147. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1148. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1149. scfr = blcf
  1150. elseif not scfr then
  1151. scfr = blcf
  1152. end]]
  1153. hitboxCF=prt31.CFrame*cf(0,0,0)
  1154. hitbox.CFrame=hitboxCF
  1155. MagniDamage(hitbox,size,dam1,dam2,knock,typ,RootPart,.5,num,stun,nil,true)
  1156. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*cf(0,1,0),.2)
  1157. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.8)*euler(.2,0,0),.5)
  1158. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.5)
  1159. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4),.5)
  1160. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1161. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.5,0,-1)*euler(0,-.6,0),.5)
  1162. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1163. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.5)
  1164. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.5)
  1165. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1166. break
  1167. end
  1168. end
  1169. --con1:disconnect()
  1170. hitbox.Parent=modelzorz
  1171. hitbox.Size=vt()
  1172. hitboxweld()
  1173. hboxpos.Parent=nil
  1174. attack=false
  1175. end
  1176.  
  1177. function attacktwo()
  1178. attack=true
  1179. --[[Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.2)
  1180. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.2)
  1181. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,.4)*euler(0,0,0),.2)
  1182. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1183. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.6,0,-.2)*euler(0,-.5,0),.2)
  1184. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1185. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.4),.2)
  1186. LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.2)]]
  1187. if Mode=="Classic" then
  1188. for i=0,1,0.1 do
  1189. swait()
  1190. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.8),.2)
  1191. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.7),.2)
  1192. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.4)*euler(0,0,0),.2)
  1193. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1194. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.4)*euler(0,0,0),.2)
  1195. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1196. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.7,0)*euler(0,0,-.4),.2)
  1197. LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,.7,0)*euler(0,0,.1),.2)
  1198. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(.24,3.14,0)*cf(-.6,0,.3),.3)
  1199. dwld6.C0=clerp(dwld6.C0,euler(3.14,1.57,0)*euler(-.24,0,0)*cf(-.6,1.4,.3),.3)
  1200. dwld10.C0=clerp(dwld10.C0,euler(0,-1.57,0)*euler(2.9,0,0)*cf(-.6,.6,-.1),.3)
  1201. dwldb1.C0=clerp(dwldb1.C0,euler(0,1.57,0)*euler(.24,3.14,0)*cf(-.9,0,.3),.3)
  1202. dwldb6.C0=clerp(dwldb6.C0,euler(3.14,1.57,0)*euler(-.24,0,0)*cf(-.9,1.4,.3),.3)
  1203. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*euler(2.9,0,0)*cf(-.9,.6,-.1),.3)
  1204. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1205. break
  1206. end
  1207. end
  1208. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,6,math.random(5,10),"Normal",RootPart,.5,1,math.random(10,12),nil,true) end)
  1209. hbwld.Parent=nil
  1210. hboxpos.Parent=hitbox
  1211. hitbox.Parent=modelzorz
  1212. hitbox.Size=vt(.8,5.4,1.3)
  1213. size=5
  1214. hitboxCF=handle.CFrame*euler(.14,0,0)*cf(.75,-1,0)
  1215. hitbox.CFrame=hitboxCF
  1216. blcf=nil
  1217. scfr=nil
  1218. so("200633108",handle,1,1.1)
  1219. so("200633148",handle,1,1.1)
  1220. for i=0,1,0.1 do
  1221. swait()
  1222. --[[local blcf = handle.CFrame*euler(.14,0,0)*cf(.75,-1,0)
  1223. if scfr and (prt31.Position-scfr.p).magnitude > .1 then
  1224. local h = 6
  1225. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1226. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1227. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1228. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1229. scfr = blcf
  1230. elseif not scfr then
  1231. scfr = blcf
  1232. end]]
  1233. hitboxCF=handle.CFrame*euler(.14,0,0)*cf(.75,-1,0)
  1234. hitbox.CFrame=hitboxCF
  1235. MagniDamage(hitbox,size,5,6,math.random(5,10),"Normal",RootPart,.5,1,math.random(10,12),nil,true)
  1236. wld1.C0=clerp(wld1.C0,euler(1,0,0)*cf(0,1,0),.4)
  1237. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-.7),.4)
  1238. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,.7),.4)
  1239. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.4,0,-.6)*euler(0,1.6,0),.4)
  1240. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1241. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.6)*euler(0,0,0),.4)
  1242. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1243. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.7,0)*euler(0,0,0),.4)
  1244. LH.C0=clerp(LH.C0,cf(-.9,-1,-.1)*euler(0,-1.57,0)*euler(0,-.7,0)*euler(0,0,.2),.4)
  1245. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(.24,3.14,0)*cf(-.6,.4,.3),.6)
  1246. dwld6.C0=clerp(dwld6.C0,euler(3.14,1.57,0)*euler(-.24,0,0)*cf(-.6,1.8,.3),.6)
  1247. dwld10.C0=clerp(dwld10.C0,euler(0,-1.57,0)*euler(2.9,0,0)*cf(-.6,1,-.1),.6)
  1248. dwldb1.C0=clerp(dwldb1.C0,euler(0,1.57,0)*euler(.24,3.14,0)*cf(-.9,.4,.3),.6)
  1249. dwldb6.C0=clerp(dwldb6.C0,euler(3.14,1.57,0)*euler(-.24,0,0)*cf(-.9,1.8,.3),.6)
  1250. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*euler(2.9,0,0)*cf(-.9,1,-.1),.6)
  1251. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1252. break
  1253. end
  1254. end
  1255. --con1:disconnect()
  1256. hitbox.Parent=modelzorz
  1257. hitbox.Size=vt()
  1258. hitboxweld()
  1259. hboxpos.Parent=nil
  1260. else
  1261.  
  1262. for i=0,1,0.15 do
  1263. swait()
  1264. if Mode=="Dynamic Blade" then
  1265. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.6)
  1266. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(0,-5.5,-.2),.6)
  1267. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*euler(-.5-3.14,0,0)*cf(0,-3.4,-.7),.6)
  1268. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*euler(.2,0,0)*cf(0,-5,-.8),.6)
  1269. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(0,-5.5,.2),.6)
  1270. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*euler(.5+3.14,0,0)*cf(0,-3.4,.7),.6)
  1271. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,-1.57,0)*euler(-.2,0,0)*cf(0,-5,.8),.6)
  1272. end
  1273. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3),.4)
  1274. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
  1275. RW.C0=clerp(RW.C0,cf(-.5,0.7,-.5)*euler(2.2,0,-1),.4)
  1276. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1277. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,-.4)*euler(0,1,0),.4)
  1278. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1279. RH.C0=clerp(RH.C0,cf(.9,-1,.2)*euler(0,1.57,0)*euler(0,-.8,0),.4)
  1280. LH.C0=clerp(LH.C0,cf(-.9,-1,-.2)*euler(0,-1.57,0)*euler(0,-.8,0),.4)
  1281. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1282. break
  1283. end
  1284. end
  1285. --swait(100)
  1286. num=1
  1287. dam1=6
  1288. dam2=8
  1289. knock=math.random(5,10)
  1290. stun=math.random(5,7)
  1291. typ="Normal"
  1292. if Mode=="Dynamic Blade" then
  1293. num=2
  1294. dam1=7
  1295. dam2=9
  1296. knock=math.random(15,20)
  1297. stun=math.random(6,8)
  1298. typ="Normal"
  1299. end
  1300. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,dam1,dam2,knock,typ,RootPart,.5,num,stun,nil,true) end)
  1301. hbwld.Parent=nil
  1302. hboxpos.Parent=hitbox
  1303. hitbox.Parent=modelzorz
  1304. hitbox.Size=vt(.5,5.4,1)
  1305. size=5
  1306. so("200633148",prt31,1,.9)
  1307. if Mode=="Dynamic Blade" then
  1308. hitbox.Size=vt(1,8,2)
  1309. size=7
  1310. end
  1311. hitboxCF=prt31.CFrame*cf(0,0,0)
  1312. hitbox.CFrame=hitboxCF
  1313. blcf=nil
  1314. scfr=nil
  1315. for i=0,1,0.1 do
  1316. swait()
  1317. --[[local blcf = prt31.CFrame*cf(0,0,0)
  1318. if scfr and (prt31.Position-scfr.p).magnitude > .1 then
  1319. local h = 5
  1320. if Mode=="Dynamic Blade" then
  1321. h=6
  1322. blcf = prt31.CFrame*cf(0,1,0)
  1323. end
  1324. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1325. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1326. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1327. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1328. scfr = blcf
  1329. elseif not scfr then
  1330. scfr = blcf
  1331. end]]
  1332. hitboxCF=prt31.CFrame*cf(0,0,0)
  1333. hitbox.CFrame=hitboxCF
  1334. MagniDamage(hitbox,size,dam1,dam2,knock,typ,RootPart,.5,num,stun,nil,true)
  1335. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,0),.4)
  1336. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3)*euler(.2,0,0),.4)
  1337. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.8),.4)
  1338. RW.C0=clerp(RW.C0,cf(0.5,0.3,-0.2)*euler(.2,0,-.3),.4)
  1339. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1340. LW.C0=clerp(LW.C0,cf(-0.8,0.5,-0.2)*euler(.3,0,.5)*euler(0,.5,0),.4)
  1341. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1342. RH.C0=clerp(RH.C0,cf(.9,-1,-.3)*euler(0,1.57,0)*euler(0,.8,0),.4)
  1343. LH.C0=clerp(LH.C0,cf(-.9,-1,.3)*euler(0,-1.57,0)*euler(0,.8,0),.4)
  1344. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1345. break
  1346. end
  1347. end
  1348. --con1:disconnect()
  1349. hitbox.Parent=modelzorz
  1350. hitbox.Size=vt()
  1351. hitboxweld()
  1352. hboxpos.Parent=nil
  1353.  
  1354. end
  1355. attack=false
  1356. end
  1357.  
  1358. --[[dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(.1,0,0)*cf(0,-5.5,-.3),.6)
  1359. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-4,-.65),.6)
  1360. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*cf(0,-3,-.5),.6)
  1361. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*euler(-.1,0,0)*cf(0,-5.5,.3),.6)
  1362. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-4,.65),.6)
  1363. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,-1.57,0)*cf(0,-3,.5),.6)]]
  1364.  
  1365. function attackthree()
  1366. attack=true
  1367. if Mode=="Energy Reactor" then
  1368. dynamomove=false
  1369. for i=0,1,0.15 do
  1370. swait()
  1371. hwld.Part1=RootPart
  1372. wld1.C0=clerp(wld1.C0,euler(1.4,0,0)*cf(0,1,0),.3)
  1373. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,-.5),.3)
  1374. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.3)
  1375. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(1.5,0,.5)*euler(0,1.57,0),.3)
  1376. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1377. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.6)*euler(0,0,0),.3)
  1378. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1379. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(0,-.3,0)*euler(0,0,-.1),.3)
  1380. LH.C0=clerp(LH.C0,cf(-.9,-1,-.1)*euler(0,-1.57,0)*euler(0,-.3,0)*euler(0,0,.4),.3)
  1381. hwld.C0=clerp(hwld.C0,euler(0,0,-2.5)*cf(0,0,2),.6)
  1382. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,.5)*cf(2,-1,0)*euler(0,1.046*0,0)*euler(1.57,0,0),.6)
  1383. dwld6.C0=clerp(dwld6.C0,euler(0,3.14+1.57,.5)*cf(2,-1,0)*euler(0,1.046*1,0)*euler(1.57,0,0),.6)
  1384. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,.5)*cf(2,-1,0)*euler(0,1.046*2,0)*euler(1.57,0,0),.6)
  1385. dwldb1.C0=clerp(dwldb1.C0,euler(0,1.57,.5)*cf(2,-1,0)*euler(0,1.046*3,0)*euler(1.57,0,0),.6)
  1386. dwldb6.C0=clerp(dwldb6.C0,euler(0,3.14+1.57,.5)*cf(2,-1,0)*euler(0,1.046*4,0)*euler(1.57,0,0),.6)
  1387. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,1.57,.5)*cf(2,-1,0)*euler(0,1.046*5,0)*euler(1.57,0,0),.6)
  1388. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1389. break
  1390. end
  1391. end
  1392. eulmov=0
  1393. damov=-2
  1394. ai=4
  1395. for i=0,1,0.1 do
  1396. swait()
  1397. CF=handle.CFrame*cf(0,0,damov)
  1398. damov=damov-3
  1399. if ai%4==0 then
  1400. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1401. ref.Anchored=true
  1402. ref.CFrame=CF
  1403. game:GetService("Debris"):AddItem(ref,1)
  1404. so("300916105",ref,1,2)
  1405. MagicCircle(BrickColor.new(NewCol2),CF,5,5,5,2,2,2,.1)
  1406. MagicCircle(BrickColor.new(NewCol2),CF,1,1,1,3,3,3,.05)
  1407. MagicRing(BrickColor.new(NewCol2),CF,1,1,1,.8,.8,.2,.03)
  1408. MagniDamage(ref,8,5,7,0,"Normal",RootPart,0,1,math.random(3,5),nil,true,true)
  1409. end
  1410. ai=ai+1
  1411. eulmov=eulmov-.4
  1412. wld1.C0=clerp(wld1.C0,euler(1.4,0,0)*cf(0,1,0),.3)
  1413. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,-.5),.3)
  1414. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.3)
  1415. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(1.5,0,.5)*euler(0,1.57,0),.3)
  1416. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1417. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.6)*euler(0,0,0),.3)
  1418. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1419. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(0,-.3,0)*euler(0,0,-.1),.3)
  1420. LH.C0=clerp(LH.C0,cf(-.9,-1,-.1)*euler(0,-1.57,0)*euler(0,-.3,0)*euler(0,0,.4),.3)
  1421. hwld.C0=clerp(hwld.C0,euler(0,0,-2.5-eulmov)*cf(0,0,0),.3)
  1422. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,.5)*cf(3,-1,0)*euler(0,1.046*0,0)*euler(1.57,0,0),.2)
  1423. dwld6.C0=clerp(dwld6.C0,euler(0,3.14+1.57,.2)*cf(3,-1.5,0)*euler(0,1.046*1,0)*euler(1.57,0,0),.2)
  1424. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,.2)*cf(3,-1.5,0)*euler(0,1.046*2,0)*euler(1.57,0,0),.2)
  1425. dwldb1.C0=clerp(dwldb1.C0,euler(0,1.57,.2)*cf(3,-1.5,0)*euler(0,1.046*3,0)*euler(1.57,0,0),.2)
  1426. dwldb6.C0=clerp(dwldb6.C0,euler(0,3.14+1.57,.2)*cf(3,-1.5,0)*euler(0,1.046*4,0)*euler(1.57,0,0),.2)
  1427. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,1.57,.2)*cf(3,-1.5,0)*euler(0,1.046*5,0)*euler(1.57,0,0),.2)
  1428. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1429. break
  1430. end
  1431. end
  1432. dynamomove=true
  1433. else
  1434. for i=0,1,0.15 do
  1435. swait()
  1436. if Mode=="Classic" then
  1437. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.5)
  1438. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(-.6,-1.5,-.4),.5)
  1439. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(-.6,-.4,-.35),.5)
  1440. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.5,-.45),.5)
  1441. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(-.6,-1.5,.4),.5)
  1442. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(-.6,-.4,.35),.5)
  1443. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.5,.45),.5)
  1444. end
  1445. if Mode=="Dynamic Blade" then
  1446. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.6)
  1447. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-6.5,-.15),.6)
  1448. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-5,-.4),.6)
  1449. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*cf(0,-4,-.5),.6)
  1450. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-6.5,.15),.6)
  1451. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-5,.4),.6)
  1452. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,-1.57,0)*cf(0,-4,.5),.6)
  1453. end
  1454. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.3)
  1455. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  1456. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1457. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.2),.3)
  1458. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1459. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.5)*euler(1.57,0,1)*euler(0,-1.57,0),.3)
  1460. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1461. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,-.4),.3)
  1462. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,.1),.3)
  1463. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1464. break
  1465. end
  1466. end
  1467. num=1
  1468. dam1=4
  1469. dam2=6
  1470. knock=math.random(5,10)
  1471. stun=math.random(5,7)
  1472. typ="Normal"
  1473. if Mode=="Dynamic Blade" then
  1474. num=2
  1475. dam1=5
  1476. dam2=7
  1477. knock=math.random(10,15)
  1478. stun=math.random(6,8)
  1479. typ="Normal"
  1480. end
  1481. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,dam1,dam2,knock,typ,RootPart,.2,num,stun,nil,true) end)
  1482. hbwld.Parent=nil
  1483. hboxpos.Parent=hitbox
  1484. hitbox.Parent=modelzorz
  1485. hitbox.Size=vt(.5,5.4,1)
  1486. size=5
  1487. so("200633108",prt31,1,1.1)
  1488. if Mode=="Dynamic Blade" then
  1489. hitbox.Size=vt(1,8,2)
  1490. size=7
  1491. end
  1492. hitboxCF=prt31.CFrame*cf(0,0,0)
  1493. hitbox.CFrame=hitboxCF
  1494. blcf=nil
  1495. scfr=nil
  1496. for i=0,1,0.15 do
  1497. swait()
  1498. --[[local blcf = prt31.CFrame*cf(0,0,0)
  1499. if scfr and (prt31.Position-scfr.p).magnitude > .1 then
  1500. local h = 5
  1501. if Mode=="Dynamic Blade" then
  1502. h=8
  1503. blcf = prt31.CFrame*cf(0,1,0)
  1504. end
  1505. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1506. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1507. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1508. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1509. scfr = blcf
  1510. elseif not scfr then
  1511. scfr = blcf
  1512. end]]
  1513. hitboxCF=prt31.CFrame*cf(0,0,0)
  1514. hitbox.CFrame=hitboxCF
  1515. MagniDamage(hitbox,size,dam1,dam2,knock,typ,RootPart,.2,num,stun,nil,true)
  1516. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*cf(0,1,0),.3)
  1517. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1518. RootJoint.C0=RootCF*euler(0,0,-.5+6.28*i)
  1519. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,1),.3)
  1520. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1521. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-1.57,0),.3)
  1522. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1523. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1524. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1525. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1526. break
  1527. end
  1528. end
  1529. for i=0,1,0.2 do
  1530. swait()
  1531. --[[local blcf = prt31.CFrame*cf(0,0,0)
  1532. if scfr and (prt31.Position-scfr.p).magnitude > .1 then
  1533. local h = 5
  1534. if Mode=="Dynamic Blade" then
  1535. h=8
  1536. blcf = prt31.CFrame*cf(0,1,0)
  1537. end
  1538. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1539. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1540. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1541. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1542. scfr = blcf
  1543. elseif not scfr then
  1544. scfr = blcf
  1545. end]]
  1546. hitboxCF=prt31.CFrame*cf(0,0,0)
  1547. hitbox.CFrame=hitboxCF
  1548. MagniDamage(hitbox,size,dam1,dam2,knock,typ,RootPart,.2,num,stun,nil,true)
  1549. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1550. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.4),.3)
  1551. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*cf(0,1,0),.3)
  1552. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,1),.3)
  1553. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1554. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.3,0,-1.57)*euler(0,-1.2,0),.3)
  1555. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1556. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1557. break
  1558. end
  1559. end
  1560. --con1:disconnect()
  1561. hitbox.Parent=modelzorz
  1562. hitbox.Size=vt()
  1563. hitboxweld()
  1564. hboxpos.Parent=nil
  1565. end
  1566. attack=false
  1567. end
  1568.  
  1569. function attackfour()
  1570. attack=true
  1571. if Mode=="Energy Reactor" then
  1572. dynamomove=false
  1573. for i=0,1,0.1 do
  1574. swait()
  1575. hwld.Part1=RootPart
  1576. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1577. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(-.6,0,0),.3)
  1578. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.3)
  1579. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(1.5,0,.5)*euler(0,1.57,0)*euler(0,0,1),.3)
  1580. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1581. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.6)*euler(0,0,0),.3)
  1582. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1583. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(0,-.3,0)*euler(0,0,-.1),.3)
  1584. LH.C0=clerp(LH.C0,cf(-.9,-1,-.1)*euler(0,-1.57,0)*euler(0,-.3,0)*euler(0,0,.4),.3)
  1585. hwld.C0=clerp(hwld.C0,euler(0,0,1)*euler(1.2,0,0)*cf(0,-8,0),.3)
  1586. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,-1)*cf(1,-.5,0)*euler(0,1.046*0,0)*euler(1.57,0,0),.3)
  1587. dwld6.C0=clerp(dwld6.C0,euler(0,3.14+1.57,-1)*cf(1,-.5,0)*euler(0,1.046*1,0)*euler(1.57,0,0),.3)
  1588. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,-1)*cf(1,-.5,0)*euler(0,1.046*2,0)*euler(1.57,0,0),.3)
  1589. dwldb1.C0=clerp(dwldb1.C0,euler(0,1.57,-1)*cf(1,-.5,0)*euler(0,1.046*3,0)*euler(1.57,0,0),.3)
  1590. dwldb6.C0=clerp(dwldb6.C0,euler(0,3.14+1.57,-1)*cf(1,-.5,0)*euler(0,1.046*4,0)*euler(1.57,0,0),.3)
  1591. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,1.57,-1)*cf(1,-.5,0)*euler(0,1.046*5,0)*euler(1.57,0,0),.3)
  1592. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1593. break
  1594. end
  1595. end
  1596. eul=0
  1597. dov=0
  1598. doi=0
  1599. for i=0,1,0.05 do
  1600. swait()
  1601. eul=eul+.4
  1602. dov=dov+.05
  1603. doi=doi+1
  1604. hwld.Part1=RootPart
  1605. if doi%2==0 then
  1606. lhit,lpos=rayCast(handle.Position,handle.CFrame.lookVector,100,Character)
  1607. local mag=(handle.Position-lpos).magnitude
  1608. MagicHead2(BrickColor.new(NewCol2),CFrame.new((handle.Position+lpos)/2,lpos)*angles(1.57,0,0),12,mag*5,12,.4,1,.4,.2)
  1609. if lhit~=nil then
  1610. so("301031757",handle,.6,1.5)
  1611. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1612. ref.Anchored=true
  1613. ref.CFrame=cf(lpos)
  1614. game:GetService("Debris"):AddItem(ref,1)
  1615. MagniDamage(ref,8,4,6,0,"Normal",RootPart,.4,1,math.random(3,5),nil,true,true)
  1616. MagicRing(BrickColor.new(NewCol2),cf(lpos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),5,5,1,.8,.8,.2,.1)
  1617. MagicCircle(BrickColor.new(NewCol2),cf(lpos),20,20,20,3,3,3,.1)
  1618. end
  1619. end
  1620. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1621. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(0,0,0),.3)
  1622. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.3)
  1623. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(1.5,0,.5)*euler(0,1.57,0),.3)
  1624. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1625. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.6)*euler(0,0,0),.3)
  1626. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1627. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(0,-.3,0)*euler(0,0,-.1),.3)
  1628. LH.C0=clerp(LH.C0,cf(-.9,-1,-.1)*euler(0,-1.57,0)*euler(0,-.3,0)*euler(0,0,.4),.3)
  1629. hwld.C0=clerp(hwld.C0,euler(1.2-dov,0,0)*cf(0,-8,eul)*euler(0,0,0),.3)
  1630. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,-1)*cf(1,-.5,0)*euler(0,(1.046*0)+eul,0)*euler(1.57,0,0),.3)
  1631. dwld6.C0=clerp(dwld6.C0,euler(0,3.14+1.57,-1)*cf(1,-.5,0)*euler(0,(1.046*1)+eul,0)*euler(1.57,0,0),.3)
  1632. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,-1)*cf(1,-.5,0)*euler(0,(1.046*2)+eul,0)*euler(1.57,0,0),.3)
  1633. dwldb1.C0=clerp(dwldb1.C0,euler(0,1.57,-1)*cf(1,-.5,0)*euler(0,(1.046*3)+eul,0)*euler(1.57,0,0),.3)
  1634. dwldb6.C0=clerp(dwldb6.C0,euler(0,3.14+1.57,-1)*cf(1,-.5,0)*euler(0,(1.046*4)+eul,0)*euler(1.57,0,0),.3)
  1635. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,1.57,-1)*cf(1,-.5,0)*euler(0,(1.046*5)+eul,0)*euler(1.57,0,0),.3)
  1636. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1637. break
  1638. end
  1639. end
  1640. dynamomove=true
  1641. else
  1642. if Mode=="Classic" then
  1643. for i=0,1,0.1 do
  1644. swait()
  1645. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.5),.2)
  1646. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.3),.2)
  1647. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,0,.4)*euler(0,0,0),.2)
  1648. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1649. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.2)*euler(0,0,0),.2)
  1650. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1651. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,0)*euler(0,0,-.4),.2)
  1652. LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,.3,0)*euler(0,0,.1),.2)
  1653. dwld1.C0=clerp(dwld1.C0,euler(3.14,1.57,0)*euler(-.23,0,0)*cf(-.6,2.1,-.5),.4)
  1654. --dwld6.C0=clerp(dwld6.C0,euler(3.14,-1.57,0)*euler(-.23,0,0)*cf(-.6,0,-1),.6)
  1655. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(-1,0,0)*cf(-.6,.8,-1.1),.4)
  1656. --dwld6.C0=clerp(dwld6.C0,euler(3.14,-1.57,0)*euler(-.53,0,0)*cf(-.6,1.2,-1.2),.6)
  1657. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.6,-.2),.4)
  1658. dwldb1.C0=clerp(dwldb1.C0,euler(3.14,-1.57,0)*euler(.23,0,0)*cf(-.6,2.1,.5),.4)
  1659. --dwldb6.C0=clerp(dwldb6.C0,euler(3.14,1.57,0)*euler(.23,0,0)*cf(-.6,0,1),.6)
  1660. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(1,0,0)*cf(-.6,.8,1.1),.4)
  1661. --dwldb6.C0=clerp(dwldb6.C0,euler(3.14,1.57,0)*euler(.53,0,0)*cf(-.6,1.2,1.2),.6)
  1662. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.6,.2),.4)
  1663. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1664. break
  1665. end
  1666. end
  1667. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,7,8,math.random(10,20),"Normal",RootPart,.5,1,math.random(10,12),nil,true) end)
  1668. hbwld.Parent=nil
  1669. hboxpos.Parent=hitbox
  1670. hitbox.Parent=modelzorz
  1671. hitbox.Size=vt(.8,4.5,2.5)
  1672. hitboxCF=handle.CFrame*cf(.75,-1.9,0)
  1673. hitbox.CFrame=hitboxCF
  1674. blcf=nil
  1675. scfr=nil
  1676. so("200633196",handle,1,.8)
  1677. for i=0,1,0.1 do
  1678. swait()
  1679. --[[local blcf = handle.CFrame*cf(.75,-1.5,0)
  1680. if scfr and (prt31.Position-scfr.p).magnitude > .1 then
  1681. local h = 5
  1682. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1683. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1684. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1685. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1686. scfr = blcf
  1687. elseif not scfr then
  1688. scfr = blcf
  1689. end]]
  1690. hitboxCF=handle.CFrame*cf(.75,-1.9,0)
  1691. hitbox.CFrame=hitboxCF
  1692. MagniDamage(hitbox,4,7,8,math.random(10,20),"Normal",RootPart,.5,1,math.random(10,12),nil,true)
  1693. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,-.5),.4)
  1694. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.4)
  1695. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(1.5,0,-.2)*euler(0,1,0),.4)
  1696. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1697. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.6)*euler(0,0,0),.4)
  1698. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1699. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(0,-.3,0)*euler(0,0,-.1),.4)
  1700. LH.C0=clerp(LH.C0,cf(-.9,-1,-.1)*euler(0,-1.57,0)*euler(0,-.3,0)*euler(0,0,.4),.4)
  1701. dwld1.C0=clerp(dwld1.C0,euler(3.14,1.57,0)*euler(-.23,0,0)*cf(-.6,2.5,-.5),.4)
  1702. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(-1,0,0)*cf(-.6,1.2,-1.1),.4)
  1703. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,1,-.2),.4)
  1704. dwldb1.C0=clerp(dwldb1.C0,euler(3.14,-1.57,0)*euler(.23,0,0)*cf(-.6,2.5,.5),.4)
  1705. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(1,0,0)*cf(-.6,1.2,1.1),.4)
  1706. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,1,.2),.4)
  1707. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1708. break
  1709. end
  1710. end
  1711. --con1:disconnect()
  1712. hitbox.Parent=modelzorz
  1713. hitbox.Size=vt()
  1714. hitboxweld()
  1715. hboxpos.Parent=nil
  1716. else
  1717.  
  1718. for i=0,1,0.15 do
  1719. swait()
  1720. if Mode=="Dynamic Blade" then
  1721. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.6)
  1722. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-4.5,-.45),.3)
  1723. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-2.2,-.55),.3)
  1724. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*cf(0,-7.2,-.2),.3)
  1725. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-4.5,.45),.3)
  1726. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-2.2,.55),.3)
  1727. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,-1.57,0)*cf(0,-7.2,.2),.3)
  1728. end
  1729. wld1.C0=clerp(wld1.C0,euler(1.57,0,.8)*cf(0,1,0),.3)
  1730. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,0),.3)
  1731. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1732. RW.C0=clerp(RW.C0,cf(1,1,-.5)*euler(2.8,0,-.8)*euler(0,0,0),.3)
  1733. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1734. LW.C0=clerp(LW.C0,cf(-1,1,-.5)*euler(2.8,0,.8),.3)
  1735. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1736. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1737. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1738. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1739. break
  1740. end
  1741. end
  1742. num=1
  1743. dam1=6
  1744. dam2=8
  1745. knock=math.random(5,10)
  1746. stun=math.random(5,7)
  1747. typ="Normal"
  1748. if Mode=="Dynamic Blade" then
  1749. num=2
  1750. dam1=7
  1751. dam2=9
  1752. knock=math.random(15,20)
  1753. stun=math.random(6,8)
  1754. typ="Normal"
  1755. end
  1756. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,dam1,dam2,knock,typ,RootPart,.5,num,stun,nil,true) end)
  1757. hbwld.Parent=nil
  1758. hboxpos.Parent=hitbox
  1759. hitbox.Parent=modelzorz
  1760. hitbox.Size=vt(.5,5.4,1)
  1761. size=5
  1762. if Mode=="Dynamic Blade" then
  1763. hitbox.Size=vt(1,10,3)
  1764. size=8
  1765. end
  1766. hitboxCF=prt31.CFrame*cf(0,0,0)
  1767. hitbox.CFrame=hitboxCF
  1768. blcf=nil
  1769. scfr=nil
  1770. so("200633196",prt31,1,1)
  1771. for i=0,1,0.1 do
  1772. swait()
  1773. --[[local blcf = prt31.CFrame*cf(0,0,0)
  1774. if scfr and (prt31.Position-scfr.p).magnitude > .1 then
  1775. local h = 5
  1776. if Mode=="Dynamic Blade" then
  1777. h=9
  1778. blcf = prt31.CFrame*cf(0,2,0)
  1779. end
  1780. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1781. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1782. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1783. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1784. scfr = blcf
  1785. elseif not scfr then
  1786. scfr = blcf
  1787. end]]
  1788. if Mode=="Dynamic Blade" then
  1789. hitboxCF=prt31.CFrame*cf(0,1,0)
  1790. hitbox.CFrame=hitboxCF
  1791. else
  1792. hitboxCF=prt31.CFrame*cf(0,1,0)
  1793. hitbox.CFrame=hitboxCF
  1794. end
  1795. MagniDamage(hitbox,size,dam1,dam2,knock,typ,RootPart,.5,num,stun,nil,true)
  1796. if Mode=="Dynamic Blade" then
  1797. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.6)
  1798. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-4.5,-.45),.3)
  1799. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-2.2,-.55),.3)
  1800. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*cf(0,-7.2,-.2),.3)
  1801. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-4.5,.45),.3)
  1802. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-2.2,.55),.3)
  1803. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,-1.57,0)*cf(0,-7.2,.2),.3)
  1804. end
  1805. wld1.C0=clerp(wld1.C0,euler(2,0,.8)*cf(0,1,0),.6)
  1806. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0),.4)
  1807. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1808. RW.C0=clerp(RW.C0,cf(1,0.1,-.5)*euler(.2,0,-.8)*euler(0,0,0),.4)
  1809. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1810. LW.C0=clerp(LW.C0,cf(-1,0.1,-.5)*euler(.2,0,.8),.4)
  1811. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1812. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.4)
  1813. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.4)
  1814. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1815. break
  1816. end
  1817. end
  1818. --con1:disconnect()
  1819. hitbox.Parent=modelzorz
  1820. hitbox.Size=vt()
  1821. hitboxweld()
  1822. hboxpos.Parent=nil
  1823. end
  1824. end
  1825. attack=false
  1826. if Mode=="Classic" then
  1827. for i=0,1,0.1 do
  1828. swait()
  1829. dwld1.C0=clerp(dwld1.C0,euler(3.14,1.57,0)*euler(-.23,0,0)*cf(-.6,1.6,-.5),.4)
  1830. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(-1,0,0)*cf(-.6,.3,-1.1),.4)
  1831. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.1,-.2),.4)
  1832. dwldb1.C0=clerp(dwldb1.C0,euler(3.14,-1.57,0)*euler(.23,0,0)*cf(-.6,1.6,.5),.4)
  1833. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(1,0,0)*cf(-.6,.3,1.1),.4)
  1834. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.1,.2),.4)
  1835. if Mode~="Classic" then
  1836. break
  1837. end
  1838. end
  1839. end
  1840. end
  1841.  
  1842. function ModeChange()
  1843. attack=true
  1844. Mode="Changing"
  1845. passive1.Value=0
  1846. passive2.Value=0
  1847. passive3.Value=0
  1848. hwld.Part1=RootPart
  1849. if Mode=="Classic" then
  1850. hwld.C0=euler(0,0,0)*cf(-2,0,0)
  1851. elseif Mode=="Dynamic Blade" then
  1852. hwld.C0=euler(1.57,0,0)*cf(2,0,0)
  1853. --swait(100)
  1854. end
  1855. randangle=math.random(-50,50)
  1856. for i=0,1,0.1 do
  1857. swait()
  1858. hwld.C0=clerp(hwld.C0,euler(0,randangle,0)*cf(0,0,0),.3)
  1859. dwld1.C0=clerp(dwld1.C0,euler(0,0,-.5)*cf(4,1.5,0)*euler(0,1.046*0,0),.3)
  1860. dwld6.C0=clerp(dwld6.C0,euler(0,3.14,-.5)*cf(4,1.5,0)*euler(0,1.046*1,0),.3)
  1861. dwld10.C0=clerp(dwld10.C0,euler(3.14,0,-.5)*cf(4,1.5,0)*euler(0,1.046*2,0),.3)
  1862. dwldb1.C0=clerp(dwldb1.C0,euler(0,0,-.5)*cf(4,1.5,0)*euler(0,1.046*3,0),.3)
  1863. dwldb6.C0=clerp(dwldb6.C0,euler(0,3.14,-.5)*cf(4,1.5,0)*euler(0,1.046*4,0),.3)
  1864. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,0,-.5)*cf(4,1.5,0)*euler(0,1.046*5,0),.3)
  1865. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.3)
  1866. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1867. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57)*euler(0,0,0),.3)
  1868. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1869. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57)*euler(0,0,0),.3)
  1870. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1871. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1872. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1873. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1874. break
  1875. end
  1876. end
  1877. round=0
  1878. choosemode=true
  1879. while choosemode==true do
  1880. swait()
  1881. hwld.C0=euler(0,randangle,0)*euler(0,round,0)
  1882. dwld1.C0=clerp(dwld1.C0,euler(0,0,-.5)*cf(4,1.5,0)*euler(0,1.046*0,0),.3)
  1883. dwld6.C0=clerp(dwld6.C0,euler(0,3.14,-.5)*cf(4,1.5,0)*euler(0,1.046*1,0),.3)
  1884. dwld10.C0=clerp(dwld10.C0,euler(3.14,0,-.5)*cf(4,1.5,0)*euler(0,1.046*2,0),.3)
  1885. dwldb1.C0=clerp(dwldb1.C0,euler(0,0,-.5)*cf(4,1.5,0)*euler(0,1.046*3,0),.3)
  1886. dwldb6.C0=clerp(dwldb6.C0,euler(0,3.14,-.5)*cf(4,1.5,0)*euler(0,1.046*4,0),.3)
  1887. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,0,-.5)*cf(4,1.5,0)*euler(0,1.046*5,0),.3)
  1888. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.3)
  1889. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1890. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57)*euler(0,0,0),.3)
  1891. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1892. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57)*euler(0,0,0),.3)
  1893. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1894. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1895. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1896. round=round+.01
  1897. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1898. choosemode=false
  1899. dynamove=false
  1900. Mode="Classic"
  1901. break
  1902. end
  1903. end
  1904. attack=false
  1905. end
  1906.  
  1907. --idle
  1908. --[[
  1909. if Mode=="Dynamic Blade" then
  1910. wld1.C0=clerp(wld1.C0,euler(1.6,0,0)*cf(0,1.1,.2),.3)
  1911. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-.5),.3)
  1912. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.3)
  1913. RW.C0=clerp(RW.C0,cf(.6,0.5,-.6)*euler(1.2,0,-.6)*euler(0,-1,0),.3)
  1914. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1915. LW.C0=clerp(LW.C0,cf(-.8,0.5,-.5)*euler(1,0,.4)*euler(0,-.8,0),.3)
  1916. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1917. RH.C0=clerp(RH.C0,cf(1.1,-.8,.1)*euler(0,1.57,0)*euler(0,-.5,0)*euler(0,0,.1),.3)
  1918. LH.C0=clerp(LH.C0,cf(-.9,-1,0)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.2),.3)
  1919. else
  1920. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1921. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.3)
  1922. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.3)
  1923. if Mode=="Classic" then
  1924. RW.C0=clerp(RW.C0,cf(1.1,0.45,.3)*euler(1,0,.6)*euler(0,.5,0),.3)
  1925. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1926. else
  1927. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,.4)*euler(0,0,0),.3)
  1928. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1929. end
  1930. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.6,0,-.2)*euler(0,-.5,0),.3)
  1931. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1932. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.4),.3)
  1933. LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.3)
  1934. "classic"
  1935. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.3)
  1936. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(-.6,-1.5,-.4),.3)
  1937. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(-.6,-.4,-.35),.3)
  1938. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.5,-.45),.3)
  1939. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(-.6,-1.5,.4),.3)
  1940. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(-.6,-.4,.35),.3)
  1941. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.5,.45),.3)
  1942. "dynamic blade"
  1943. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.3)
  1944.  
  1945. dwld1.C0=clerp(dwld1.C0,euler(3.14,1.57,0)*euler(-.23,0,0)*cf(-.6,2.1,-.5),.2)
  1946. dwld6.C0=clerp(dwld6.C0,euler(3.14,-1.57,0)*euler(-.53,0,0)*cf(-.6,1.2,-1.2),.2)
  1947. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.6,-.2),.2)
  1948. dwldb1.C0=clerp(dwldb1.C0,euler(3.14,-1.57,0)*euler(.23,0,0)*cf(-.6,2.1,.5),.2)
  1949. dwldb6.C0=clerp(dwldb6.C0,euler(3.14,1.57,0)*euler(.53,0,0)*cf(-.6,1.2,1.2),.2)
  1950. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.6,.2),.2)
  1951.  
  1952. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(.1,0,0)*cf(0,-5.5,-.3),.3)
  1953. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-4,-.65),.3)
  1954. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*cf(0,-3,-.5),.3)
  1955. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*euler(-.1,0,0)*cf(0,-5.5,.3),.3)
  1956. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-4,.65),.3)
  1957. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,-1.57,0)*cf(0,-3,.5),.3)
  1958. ]]
  1959.  
  1960. function Defend()
  1961. attack=true
  1962. defending=true
  1963. passive4.Parent=Decrease
  1964. passive5.Parent=Decrease
  1965. local eulmove=0
  1966. while defending==true do
  1967. swait()
  1968. if Mode=="Classic" then
  1969. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,0,0),.3)
  1970. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(-.6,1,-.15),.3)
  1971. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(2.2,0,0)*cf(-.6,0,1.2),.3)
  1972. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*euler(0,3.14,0)*cf(-.6,-.8,-.6),.3)
  1973. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(-.6,1,.15),.3)
  1974. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(-2.2,0,0)*cf(-.6,0,-1.2),.3)
  1975. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*euler(0,3.14,0)*cf(-.6,-.8,.6),.3)
  1976. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1977. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0)*euler(0,0,-.2),.3)
  1978. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.8),.3)
  1979. RW.C0=clerp(RW.C0,cf(1,0.45,-.5)*euler(1.57,0,-.8)*euler(0,0,0),.3)
  1980. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1981. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.6)*euler(0,-.2,0),.3)
  1982. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1983. RH.C0=clerp(RH.C0,cf(1.2,-1,.2)*euler(0,1.57,0)*euler(0,-.8,0)*euler(0,0,-.1),.3)
  1984. LH.C0=clerp(LH.C0,cf(-.9,-1,-.4)*euler(0,-1.57,0)*euler(0,-.5,0)*euler(0,0,.6),.3)
  1985. elseif Mode=="Dynamic Blade" then
  1986. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.3)
  1987. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(0,-4.5,-.45),.3)
  1988. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*euler(-.2-3.14,0,0)*cf(0,-3.2,-.6),.3)
  1989. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*euler(.3,0,0)*cf(0,-4.8,-.85),.3)
  1990. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(0,-4.5,.45),.3)
  1991. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*euler(.2+3.14,0,0)*cf(0,-3.2,.6),.3)
  1992. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,-1.57,0)*euler(-.3,0,0)*cf(0,-4.8,.85),.3)
  1993. wld1.C0=clerp(wld1.C0,euler(1.57,0,-1.57)*euler(-.8,0,0)*euler(0,0,-.4)*cf(0,1.2,-.2),.3)
  1994. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0)*euler(0,0,-.2),.3)
  1995. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.8),.3)
  1996. RW.C0=clerp(RW.C0,cf(.5,0.6,-.5)*euler(0,0,-2.2)*euler(.2,0,0),.3)
  1997. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1998. LW.C0=clerp(LW.C0,cf(-1,0.6,-.5)*euler(2.5,0,.2)*euler(0,0,-.5)*euler(0,-2.2,0),.3)
  1999. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2000. RH.C0=clerp(RH.C0,cf(1.2,-1,.2)*euler(0,1.57,0)*euler(0,-.8,0)*euler(0,0,-.1),.3)
  2001. LH.C0=clerp(LH.C0,cf(-.9,-1,-.4)*euler(0,-1.57,0)*euler(0,-.5,0)*euler(0,0,.6),.3)
  2002. elseif Mode=="Energy Reactor" then
  2003. eulmove=eulmove+.2
  2004. dynamomove=false
  2005. hwld.Part1=RootPart
  2006. wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,0),.3)
  2007. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.4,0,0),.3)
  2008. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.3)
  2009. RW.C0=clerp(RW.C0,cf(.5,0.5,-.5)*euler(1.4,0,0)*euler(0,0,-1.3),.3)
  2010. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2011. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.5)*euler(2,0,0)*euler(0,0,1.3)*euler(0,-1.5,0),.3)
  2012. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2013. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(0,0,-.1),.3)
  2014. LH.C0=clerp(LH.C0,cf(-.9,-1,-.1)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.4),.3)
  2015. hwld.C0=clerp(hwld.C0,euler(0,0,-2.5-eulmove)*cf(0,-.5,1),.3)
  2016. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,1.4)*cf(2,-1,0)*euler(0,1.046*0,0)*euler(1.57,0,0),.3)
  2017. dwld6.C0=clerp(dwld6.C0,euler(0,3.14+1.57,1.4)*cf(2,-1,0)*euler(0,1.046*1,0)*euler(1.57,0,0),.3)
  2018. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,1.4)*cf(2,-1,0)*euler(0,1.046*2,0)*euler(1.57,0,0),.3)
  2019. dwldb1.C0=clerp(dwldb1.C0,euler(0,1.57,1.4)*cf(2,-1,0)*euler(0,1.046*3,0)*euler(1.57,0,0),.3)
  2020. dwldb6.C0=clerp(dwldb6.C0,euler(0,3.14+1.57,1.4)*cf(2,-1,0)*euler(0,1.046*4,0)*euler(1.57,0,0),.3)
  2021. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,1.57,1.4)*cf(2,-1,0)*euler(0,1.046*5,0)*euler(1.57,0,0),.3)
  2022. end
  2023. end
  2024. defending=false
  2025. dynamomove=true
  2026. passive4.Parent=nil
  2027. passive5.Parent=nil
  2028. attack=false
  2029. end
  2030.  
  2031. function do1()
  2032. if attack==true then return end
  2033. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  2034. if cooldowns[1]>=cooldownmax and mana.Value>=15 then
  2035. --if true then
  2036. attack=true
  2037. Mode="Classic"
  2038. manainc=13
  2039. choosemode=false
  2040. passive1.Value=.1
  2041. passive2.Value=-.05
  2042. passive3.Value=-.1
  2043. cooldowns[1]=0
  2044. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2045. ref.Anchored=true
  2046. ref.CFrame=RightArm.CFrame*cf(.6,1,0)
  2047. game:GetService("Debris"):AddItem(ref,10)
  2048. dul=0
  2049. dulinc=0
  2050. so("203691326",handle,.6,1.8)
  2051. for i=0,1,0.1 do
  2052. swait()
  2053. dul=dul+dulinc
  2054. dulinc=dulinc+.08
  2055. ref.CFrame=RightArm.CFrame*cf(.6,-1-(dulinc*2),0)
  2056. hwld.Part1=RightArm
  2057. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.5)
  2058. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(0,1.57,-3.14)*cf(-1.5,.5,0)*euler(0,dul,0)*cf(-.6,0,0),.5)
  2059. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*euler(0,0,3.14)*cf(0,.5,1.5)*euler(0,dul,0)*cf(-.6,0,0),.5)
  2060. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,0,-.2),.5)
  2061. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*euler(0,1.57,-3.14)*cf(1.5,.5,0)*euler(0,dul,0)*cf(-.6,0,0),.5)
  2062. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*euler(0,0,3.14)*cf(0,.5,-1.5)*euler(0,dul,0)*cf(-.6,0,0),.5)
  2063. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,0,.2),.5)
  2064. wld1.C0=clerp(wld1.C0,euler(1.4,0,0)*cf(0,1,0),.3)
  2065. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,-.4),.2)
  2066. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.2),.2)
  2067. RW.C0=clerp(RW.C0,cf(1.3,0.45,.2)*euler(1.4,0,.8)*euler(0,1,0),.2)
  2068. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2069. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2)*euler(0,.5,0),.2)
  2070. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2071. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(0,-.2,0)*euler(0,0,.1),.2)
  2072. LH.C0=clerp(LH.C0,cf(-1,-1,.1)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.3),.2)
  2073. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2074. break
  2075. end
  2076. end
  2077. mana.Value=mana.Value-15
  2078. RecentEnemy.Value=nil
  2079. da=0
  2080. so("200633281",handle,.6,1.2)
  2081. so("200633108",handle,.6,1)
  2082. for i=0,1,0.1 do
  2083. swait()
  2084. dul=dul+.5
  2085. if i<=.5 then
  2086. da=da+.9
  2087. end
  2088. ref.CFrame=RightArm.CFrame*cf(.6,-1-da,0)
  2089. MagniDamage(ref,5,6,8,math.random(40,60),"Knockdown2",RootPart,.6,1,math.random(6,8),nil,true,false,"Damage",.4,300)
  2090. hwld.Part1=RightArm
  2091. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.5)
  2092. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(0,1.57,-3.14+.3)*cf(-1,6,0)*euler(0,dul,0)*cf(-.6,0,0),.3)
  2093. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*euler(-.3,0,3.14)*cf(0,6,1)*euler(0,dul,0)*cf(-.6,0,0),.3)
  2094. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,0,-.35),.3)
  2095. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*euler(0,1.57,-3.14-.3)*cf(1,6,0)*euler(0,dul,0)*cf(-.6,0,0),.3)
  2096. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*euler(.3,0,3.14)*cf(0,6,-1)*euler(0,dul,0)*cf(-.6,0,0),.3)
  2097. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,0,.35),.3)
  2098. wld1.C0=clerp(wld1.C0,euler(1.4,0,0)*cf(0,1,0),.5)
  2099. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,-.6),.5)
  2100. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.6),.5)
  2101. RW.C0=clerp(RW.C0,cf(1,0.45,-.6)*euler(1.4,0,.4)*euler(0,1,0),.5)
  2102. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2103. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.4)*euler(0,.5,0),.5)
  2104. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2105. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.4,0)*euler(0,0,-.1),.5)
  2106. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.6,0)*euler(0,0,.3),.5)
  2107. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2108. break
  2109. end
  2110. end
  2111. if overload>=50 and RecentEnemy.Value~=nil then
  2112. for i=0,1,0.1 do
  2113. swait()
  2114. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.4)
  2115. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(-.6,-1.5,-.4),.4)
  2116. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(-.6,-.4,-.35),.4)
  2117. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.5,-.45),.4)
  2118. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(-.6,-1.5,.4),.4)
  2119. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(-.6,-.4,.35),.4)
  2120. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.5,.45),.4)
  2121. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  2122. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.4,0,0),.3)
  2123. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.3)
  2124. RW.C0=clerp(RW.C0,cf(.5,0.5,-.5)*euler(1.4,0,0)*euler(0,0,-1.3)*euler(0,1.5,0),.3)
  2125. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2126. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.5)*euler(1.2,0,0)*euler(0,0,1)*euler(0,-1.5,0),.3)
  2127. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2128. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(0,0,0)*euler(0,0,-.1),.3)
  2129. LH.C0=clerp(LH.C0,cf(-.9,-1,-.1)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.4),.3)
  2130. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2131. break
  2132. end
  2133. end
  2134. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2135. else
  2136. overload=overload-50
  2137. MagicWave(BrickColor.new(NewCol2),cf(RootPart.Position)*cf(0,-2,0),1,5,1,1,-.2,1,.07)
  2138. dec=Stats:findFirstChild("Decrease")
  2139. if dec~=nil then
  2140. for _,c in pairs(dec:children()) do
  2141. if c.className=="NumberValue" then
  2142. if c.Value>0 and c:findFirstChild("Duration")~=nil then
  2143. c.Parent=nil
  2144. end
  2145. end
  2146. end
  2147. end
  2148. DecreaseStat(Character,"Damage",-.4,350)
  2149. DecreaseStat(Character,"Defense",-.4,350)
  2150. end
  2151. for i=0,1,0.1 do
  2152. swait()
  2153. hwld.C0=clerp(hwld.C0,euler(-.5,0,0)*cf(0,1,0),.4)
  2154. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(-.6,-1.5,-.4),.4)
  2155. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(-.6,-.4,-.35),.4)
  2156. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.5,-.45),.4)
  2157. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(-.6,-1.5,.4),.4)
  2158. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(-.6,-.4,.35),.4)
  2159. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.5,.45),.4)
  2160. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  2161. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.5,0,0),.3)
  2162. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.3)
  2163. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57)*euler(0,1.5,0),.3)
  2164. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2165. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-1.5,0),.3)
  2166. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2167. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0)*euler(0,0,0),.3)
  2168. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,0),.3)
  2169. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2170. break
  2171. end
  2172. end
  2173. end
  2174. attack=false
  2175. end
  2176. end
  2177.  
  2178. function do2()
  2179. if attack==true then return end
  2180. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  2181. if cooldowns[2]>=cooldownmax and mana.Value>=20 then
  2182. --if true then
  2183. attack=true
  2184. Mode="Dynamic Blade"
  2185. manainc=18
  2186. choosemode=false
  2187. passive1.Value=-.1
  2188. passive2.Value=.1
  2189. passive3.Value=.1
  2190.  
  2191. --[[
  2192. dwld1.C0=clerp(dwld1.C0,euler(3.14,1.57,0)*euler(-.23,0,0)*cf(-.6,2.1,-.5),.4)
  2193. --dwld6.C0=clerp(dwld6.C0,euler(3.14,-1.57,0)*euler(-.23,0,0)*cf(-.6,0,-1),.6)
  2194. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(-1,0,0)*cf(-.6,.8,-1.1),.4)
  2195. --dwld6.C0=clerp(dwld6.C0,euler(3.14,-1.57,0)*euler(-.53,0,0)*cf(-.6,1.2,-1.2),.6)
  2196. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.6,-.2),.4)
  2197. dwldb1.C0=clerp(dwldb1.C0,euler(3.14,-1.57,0)*euler(.23,0,0)*cf(-.6,2.1,.5),.4)
  2198. --dwldb6.C0=clerp(dwldb6.C0,euler(3.14,1.57,0)*euler(.23,0,0)*cf(-.6,0,1),.6)
  2199. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(1,0,0)*cf(-.6,.8,1.1),.4)
  2200. --dwldb6.C0=clerp(dwldb6.C0,euler(3.14,1.57,0)*euler(.53,0,0)*cf(-.6,1.2,1.2),.6)
  2201. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.6,.2),.4)
  2202. ]]
  2203.  
  2204. cooldowns[2]=0
  2205. for i=0,1,0.2 do
  2206. swait()
  2207. hwld.Part1=prt1
  2208. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),.5)
  2209. dwld1.C0=clerp(dwld1.C0,euler(3.14,1.57,0)*euler(-.28,0,0)*euler(0,0,3.14)*cf(0,-6,-.6),.7)
  2210. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(.4,0,0)*euler(0,0,0)*cf(0,-5,-1.2),.7)
  2211. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*euler(0,0,3.14)*cf(0,-4,-.5),.7)
  2212. dwldb1.C0=clerp(dwldb1.C0,euler(3.14,-1.57,0)*euler(.28,0,0)*euler(0,0,3.14)*cf(0,-6,.6),.7)
  2213. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(-.4,0,0)*euler(0,0,0)*cf(0,-5,1.2),.7)
  2214. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*euler(0,0,3.14)*cf(0,-4,.5),.7)
  2215. wld1.C0=clerp(wld1.C0,euler(.6,0,0)*cf(0,1.1,.2),.7)
  2216. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,-.8),.5)
  2217. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.5)
  2218. RW.C0=clerp(RW.C0,cf(-.1,0.5,-.5)*euler(1.5,0,-1)*euler(0,-1.5,0),.5)
  2219. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2220. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.5)*euler(1.57,0,-1.7)*euler(0,-1.57,0),.5)
  2221. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2222. RH.C0=clerp(RH.C0,cf(.9,-1,.2)*euler(0,1.57,0)*euler(0,-.8,0),.5)
  2223. LH.C0=clerp(LH.C0,cf(-.9,-1,-.2)*euler(0,-1.57,0)*euler(0,-.8,0),.5)
  2224. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2225. break
  2226. end
  2227. end
  2228. MagicWave(BrickColor.new(NewCol2),handle.CFrame*euler(3.14,0,0)*cf(0,-6,0),.5,.5,.5,.5,.5,.5,.05)
  2229. mana.Value=mana.Value-20
  2230. hbwld.Parent=nil
  2231. hboxpos.Parent=hitbox
  2232. hitbox.Parent=modelzorz
  2233. hitbox.Size=vt(1,8,2)
  2234. RecentEnemy.Value=nil
  2235. da=0
  2236. so("200633148",handle,1,.8)
  2237. so("199145327",handle,.6,1)
  2238. for i=0,1,0.1 do
  2239. swait()
  2240. da=da+1
  2241. if da%3==0 then
  2242. MagicWave(BrickColor.new(NewCol2),handle.CFrame*euler(3.14,math.random(-50,50),0)*cf(0,-6,0),1,1,1,.5,.5,.5,.2)
  2243. end
  2244. hitboxCF=prt31.CFrame*cf(0,0,0)
  2245. hitbox.CFrame=hitboxCF
  2246. MagniDamage(hitbox,6,5,7,math.random(20,30),"Normal",RootPart,.2,2,math.random(4,7),nil,true)
  2247. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*80 end
  2248. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*euler(0,0,.2)*cf(0,1,-.2),.5)
  2249. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,-.4),.5)
  2250. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.4),.5)
  2251. RW.C0=clerp(RW.C0,cf(0,0.4,-.5)*euler(1.45,0,-.6)*euler(0,-1.5,0),.5)
  2252. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2253. LW.C0=clerp(LW.C0,cf(-1,0.5,-.2)*euler(1.4,0,.1)*euler(0,-1.4,0),.5)
  2254. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2255. RH.C0=clerp(RH.C0,cf(.9,-1,.2)*euler(0,1.57,0)*euler(0,-.8,0),.5)
  2256. LH.C0=clerp(LH.C0,cf(-.9,-1,-.2)*euler(0,-1.57,0)*euler(0,-.8,0),.5)
  2257. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or RecentEnemy.Value~=nil then
  2258. break
  2259. end
  2260. end
  2261. if RecentEnemy.Value~=nil and hitfloor~=nil then
  2262. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*120 end
  2263. end
  2264. if overload>=50 and RecentEnemy.Value~=nil then
  2265. for i=0,1,0.15 do
  2266. swait()
  2267. hwld.C0=clerp(hwld.C0,euler(1.57,0,0)*cf(0,0,0),.6)
  2268. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(2.34,0,0)*cf(0,1.8,-4),.6)
  2269. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(2.94,3.14,0)*cf(0,1.2,-5.4),.6)
  2270. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*euler(4.64,0,0)*cf(0,.5,-4),.6)
  2271. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*euler(.8,0,0)*cf(0,-1.8,-4),.6)
  2272. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(.2,3.14,0)*cf(0,-1.2,-5.4),.6)
  2273. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,-1.57,0)*euler(-1.5,0,0)*cf(0,-.5,-4),.6)
  2274. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.3)
  2275. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  2276. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  2277. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,0,-.4),.3)
  2278. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2279. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.5)*euler(1.57,0,1)*euler(0,-1.57,0),.3)
  2280. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2281. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,-.4),.3)
  2282. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,.1),.3)
  2283. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2284. break
  2285. end
  2286. end
  2287. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2288. else
  2289. overload=overload-50
  2290. end
  2291. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2292. ref.Anchored=true
  2293. game:GetService("Debris"):AddItem(ref,1)
  2294. for i=0,1,0.15 do
  2295. swait()
  2296. for i=1,2 do
  2297. so("300916014",prt31,.5,1)
  2298. end
  2299. for i=1,3 do
  2300. MagicBlock(BrickColor.new(NewCol2),prt31.CFrame*cf(math.random(-500,500)/100,6+math.random(-500,500)/100,math.random(-500,500)/100),1,1,1,1,1,1,.08,1,workspace)
  2301. end
  2302. for i=2,6,2 do
  2303. MagicCircle(BrickColor.new(NewCol2),prt31.CFrame*cf(0,6,0),3,3,3,i,i,i,.1)
  2304. end
  2305. ref.CFrame=prt31.CFrame*cf(0,6,0)
  2306. MagniDamage(ref,6,6,8,math.random(-60,-40),"Knockdown2",RootPart,.5,2,math.random(5,8),nil,true,true)
  2307. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*cf(0,1,0),.3)
  2308. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  2309. RootJoint.C0=RootCF*euler(0,0,-.2+6.28*i)
  2310. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,1),.3)
  2311. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2312. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-1.57,0),.3)
  2313. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2314. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  2315. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  2316. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2317. break
  2318. end
  2319. end
  2320. ref.Parent=nil
  2321. for i=0,1,0.1 do
  2322. swait()
  2323. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  2324. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.4),.3)
  2325. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*cf(0,1,0),.3)
  2326. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,1),.3)
  2327. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2328. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.3,0,-1.57)*euler(0,-1.2,0),.3)
  2329. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2330. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2331. break
  2332. end
  2333. end
  2334. end
  2335. hitbox.Parent=modelzorz
  2336. hitbox.Size=vt()
  2337. hitboxweld()
  2338. hboxpos.Parent=nil
  2339. attack=false
  2340. end
  2341. end
  2342.  
  2343. function do3()
  2344. if attack==true then return end
  2345. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  2346. if cooldowns[3]>=cooldownmax and mana.Value>=15 then
  2347. --if true then
  2348. attack=true
  2349. doextra=false
  2350. da=0
  2351. if overload>=50 then
  2352. doextra=true
  2353. end
  2354. Mode="Energy Reactor"
  2355. manainc=10
  2356. choosemode=false
  2357. passive1.Value=.1
  2358. passive2.Value=-.15
  2359. passive3.Value=.05
  2360. if Mode=="Classic" then
  2361. for i=0,1,0.2 do
  2362. swait()
  2363. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.5)
  2364. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,-.5),.5)
  2365. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.5)
  2366. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(1.5,0,.5)*euler(0,1.57,0),.5)
  2367. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2368. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.6)*euler(0,0,0),.5)
  2369. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2370. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(0,-.3,0)*euler(0,0,-.1),.5)
  2371. LH.C0=clerp(LH.C0,cf(-.9,-1,-.1)*euler(0,-1.57,0)*euler(0,-.3,0)*euler(0,0,.4),.5)
  2372. dwld1.C0=clerp(dwld1.C0,euler(3.14,1.57,0)*euler(0,0,0)*cf(-1,1,-1),.5)
  2373. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(3.14,0,0)*cf(.3,.7,-1.5),.5)
  2374. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.5,.5,-.4),.5)
  2375. dwldb1.C0=clerp(dwldb1.C0,euler(3.14,-1.57,0)*euler(0,0,0)*cf(-1,1,1),.5)
  2376. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(3.14,0,0)*cf(.3,.7,1.5),.5)
  2377. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.5,.5,.4),.5)
  2378. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2379. break
  2380. end
  2381. end
  2382. elseif Mode=="Dynamic Blade" then
  2383. for i=0,1,0.2 do
  2384. swait()
  2385. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(1,-4.5,-1),.6)
  2386. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-3.4,-1),.6)
  2387. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*euler(0,0,0)*cf(-1,-3,-1.5),.6)
  2388. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(1,-4.5,1),.6)
  2389. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-3.4,1),.6)
  2390. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,-1.57,0)*euler(0,0,0)*cf(-1,-3,1.5),.6)
  2391. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,-.8),.5)
  2392. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.5)
  2393. RW.C0=clerp(RW.C0,cf(-.8,0.5,-.5)*euler(1.8,0,-1)*euler(0,1,0),.5)
  2394. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2395. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-.8)*euler(0,-1.57,0),.5)
  2396. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2397. RH.C0=clerp(RH.C0,cf(.9,-1,.2)*euler(0,1.57,0)*euler(0,-.8,0),.5)
  2398. LH.C0=clerp(LH.C0,cf(-.9,-1,-.2)*euler(0,-1.57,0)*euler(0,-.8,0),.5)
  2399. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2400. break
  2401. end
  2402. end
  2403. elseif Mode=="Energy Reactor" then
  2404. dynamomove=false
  2405. for i=0,1,0.1 do
  2406. swait()
  2407. if doextra==true then
  2408. da=da+.3
  2409. end
  2410. bb=-4
  2411. if doextra==true then
  2412. bb=-6
  2413. end
  2414. hwld.Part1=RootPart
  2415. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.5)
  2416. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,-.5),.5)
  2417. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.5)
  2418. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(1.5,0,.5)*euler(0,1.57,0),.5)
  2419. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2420. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.6)*euler(0,0,0),.5)
  2421. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2422. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(0,-.3,0)*euler(0,0,-.1),.5)
  2423. LH.C0=clerp(LH.C0,cf(-.9,-1,-.1)*euler(0,-1.57,0)*euler(0,-.3,0)*euler(0,0,.4),.5)
  2424. hwld.C0=clerp(hwld.C0,euler(0,0,-2)*euler(0,0,-da)*cf(0,bb,0),.6)
  2425. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(2,-1,0)*euler(0,1.046*0,0)*euler(1.57,0,0),.6)
  2426. dwld6.C0=clerp(dwld6.C0,euler(0,3.14+1.57,0)*cf(2,-1,0)*euler(0,1.046*1,0)*euler(1.57,0,0),.6)
  2427. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*cf(2,-1,0)*euler(0,1.046*2,0)*euler(1.57,0,0),.6)
  2428. dwldb1.C0=clerp(dwldb1.C0,euler(0,1.57,0)*cf(2,-1,0)*euler(0,1.046*3,0)*euler(1.57,0,0),.6)
  2429. dwldb6.C0=clerp(dwldb6.C0,euler(0,3.14+1.57,0)*cf(2,-1,0)*euler(0,1.046*4,0)*euler(1.57,0,0),.6)
  2430. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,1.57,0)*cf(2,-1,0)*euler(0,1.046*5,0)*euler(1.57,0,0),.6)
  2431. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2432. break
  2433. end
  2434. end
  2435. end
  2436. mana.Value=mana.Value-15
  2437. cooldowns[3]=0
  2438. for i=1,#DynamPrt do
  2439. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2440. break
  2441. end
  2442. for d=1,2 do
  2443. swait()
  2444. da=da+.6
  2445. if doextra==true then
  2446. MagicCircle(BrickColor.new(NewCol2),handle.CFrame*cf(0,0,-3),1,1,1,3,3,3,.1)
  2447. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,.5)*cf(3,-1,0)*euler(0,1.046*0,0)*euler(1.57,0,0),.2)
  2448. dwld6.C0=clerp(dwld6.C0,euler(0,3.14+1.57,.5)*cf(3,-1,0)*euler(0,1.046*1,0)*euler(1.57,0,0),.2)
  2449. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,.5)*cf(3,-1,0)*euler(0,1.046*2,0)*euler(1.57,0,0),.2)
  2450. dwldb1.C0=clerp(dwldb1.C0,euler(0,1.57,.5)*cf(3,-1,0)*euler(0,1.046*3,0)*euler(1.57,0,0),.2)
  2451. dwldb6.C0=clerp(dwldb6.C0,euler(0,3.14+1.57,.5)*cf(3,-1,0)*euler(0,1.046*4,0)*euler(1.57,0,0),.2)
  2452. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,1.57,.5)*cf(3,-1,0)*euler(0,1.046*5,0)*euler(1.57,0,0),.2)
  2453. hwld.C0=clerp(hwld.C0,euler(0,0,-2)*euler(0,0,-da)*cf(0,-6,0),.6)
  2454. end
  2455. end
  2456. so("300916038",DynamPrt[i],1,2)
  2457. Shoot(DynamPrt[i].Position)
  2458. end
  2459. if doextra==true then
  2460. overload=overload-50
  2461. so("300916038",handle,1,1.5)
  2462. Shoot2(handle.Position)
  2463. end
  2464. --swait(100)
  2465. attack=false
  2466. end
  2467. end
  2468.  
  2469. function do4()
  2470. if attack==true then return end
  2471. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  2472. --if cooldowns[4]>=cooldownmax and mana.Value>=50 then
  2473. if true then
  2474.  
  2475. end
  2476. end
  2477.  
  2478. function DecreaseStat(Model,Stat,Amount,Duration)
  2479. if Model:findFirstChild("Stats")~=nil then
  2480. if Model.Stats[Stat]~=nil then
  2481. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  2482. d=Instance.new("NumberValue",Model.Stats.Decrease)
  2483. dur=Instance.new("NumberValue",d)
  2484. dur.Name="Duration"
  2485. dur.Value=Duration
  2486. game:GetService("Debris"):AddItem(d,20)
  2487. if Stat=="Damage" then
  2488. d.Name="DecreaseAtk"
  2489. elseif Stat=="Defense" then
  2490. d.Name="DecreaseDef"
  2491. elseif Stat=="Movement" then
  2492. d.Name="DecreaseMvmt"
  2493. end
  2494. if Model:findFirstChild("Torso")~=nil then
  2495. display=""
  2496. if Stat=="Damage" then
  2497. if Amount>0 then
  2498. display="-Damage"
  2499. else
  2500. display="+Damage"
  2501. end
  2502. elseif Stat=="Defense" then
  2503. if Amount>0 then
  2504. display="-Defense"
  2505. else
  2506. display="+Defense"
  2507. end
  2508. elseif Stat=="Movement" then
  2509. if Amount>0 then
  2510. display="-Movement"
  2511. else
  2512. display="+Movement"
  2513. end
  2514. end
  2515. showDamage(Model,display,"Debuff")
  2516. end
  2517. d.Value=Amount
  2518. end
  2519. end
  2520. end
  2521.  
  2522. function GetDist(Part1,Part2,magni)
  2523. local targ=Part1.Position-Part2.Position
  2524. local mag=targ.magnitude
  2525. if mag<=magni then
  2526. return true
  2527. else
  2528. return false
  2529. end
  2530. end
  2531.  
  2532. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2533. for _,c in pairs(workspace:children()) do
  2534. local hum=c:findFirstChild("Humanoid")
  2535. if hum~=nil then
  2536. local head=nil
  2537. for _,d in pairs(c:children()) do
  2538. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  2539. if d.className=="Model" and ranged~=true then
  2540. head=d:findFirstChild("Hitbox")
  2541. if d.Parent==Character then break end
  2542. if head~=nil then
  2543. local targ=head.Position-Part.Position
  2544. local mag=targ.magnitude
  2545. if mag<=magni and c.Name~=Player.Name then
  2546. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2547. ref.Anchored=true
  2548. ref.CFrame=cf(head.Position)
  2549. game:GetService("Debris"):AddItem(ref,1)
  2550. hitnum=math.random(1,5)
  2551. if hitnum==1 then so("199148971",ref,1,1)
  2552. elseif hitnum==2 then so("199149025",ref,1,1)
  2553. elseif hitnum==3 then so("199149072",ref,1,1)
  2554. elseif hitnum==4 then so("199149109",ref,1,1)
  2555. elseif hitnum==5 then so("199149119",ref,1,1)
  2556. end
  2557. StaggerHit.Value=true
  2558. end
  2559. end
  2560. end
  2561. if d.className=="Part" then
  2562. head=d
  2563. if head~=nil then
  2564. local targ=head.Position-Part.Position
  2565. local mag=targ.magnitude
  2566. if mag<=magni and c.Name~=Player.Name then
  2567. if stun==nil then
  2568. stun=math.random(5,10)
  2569. end
  2570. local Rang=nil
  2571. if Ranged==false then
  2572. Rang=true
  2573. end
  2574. local stag=nil
  2575. if shbash==true then
  2576. stag=true
  2577. end
  2578. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2579. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  2580. end
  2581. end
  2582. end
  2583. end
  2584. end
  2585. end
  2586. end
  2587.  
  2588. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2589. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2590. end
  2591.  
  2592. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  2593. LastPoint=Point
  2594. function effect(Color,Ref,LP,P1,returnn)
  2595. if LP==nil or P1==nil then return end
  2596. local effectsmsh=Instance.new("CylinderMesh")
  2597. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2598. effectsmsh.Name="Mesh"
  2599. local effectsg=Instance.new("Part")
  2600. NoOutline(effectsg)
  2601. effectsg.formFactor=3
  2602. effectsg.CanCollide=false
  2603. effectsg.Name="Eff"
  2604. effectsg.Locked=true
  2605. effectsg.Anchored=true
  2606. effectsg.Size=Vector3.new(0.5,1,0.5)
  2607. effectsg.Parent=workspace
  2608. effectsmsh.Parent=effectsg
  2609. effectsg.BrickColor=BrickColor.new(Color)
  2610. effectsg.Reflectance=Ref
  2611. local point1=P1
  2612. local mg=(LP.p - point1.p).magnitude
  2613. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2614. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2615. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2616. game:GetService("Debris"):AddItem(effectsg,2)
  2617. if returnn then return effectsg end
  2618. if not returnn then
  2619. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  2620. end
  2621. end
  2622.  
  2623. local function CFrameFromTopBack(at, top, back)
  2624. local right = top:Cross(back)
  2625. return CFrame.new(at.x, at.y, at.z,
  2626. right.x, top.x, back.x,
  2627. right.y, top.y, back.y,
  2628. right.z, top.z, back.z)
  2629. end
  2630.  
  2631. function Triangle(a, b, c)
  2632. local edg1 = (c-a):Dot((b-a).unit)
  2633. local edg2 = (a-b):Dot((c-b).unit)
  2634. local edg3 = (b-c):Dot((a-c).unit)
  2635. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2636. a, b, c = a, b, c
  2637. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2638. a, b, c = b, c, a
  2639. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2640. a, b, c = c, a, b
  2641. else
  2642. assert(false, "unreachable")
  2643. end
  2644.  
  2645. local len1 = (c-a):Dot((b-a).unit)
  2646. local len2 = (b-a).magnitude - len1
  2647. local width = (a + (b-a).unit*len1 - c).magnitude
  2648.  
  2649. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2650.  
  2651. local list = {}
  2652.  
  2653. if len1 > 0.01 then
  2654. local w1 = Instance.new('WedgePart', m)
  2655. game:GetService("Debris"):AddItem(w1,5)
  2656. w1.Material = "SmoothPlastic"
  2657. w1.FormFactor = 'Custom'
  2658. w1.BrickColor = BrickColor.new(NewCol2)
  2659. w1.Transparency = 0
  2660. w1.Reflectance = 0
  2661. w1.Material = "SmoothPlastic"
  2662. w1.CanCollide = false
  2663. NoOutline(w1)
  2664. local sz = Vector3.new(0.2, width, len1)
  2665. w1.Size = sz
  2666. local sp = Instance.new("SpecialMesh",w1)
  2667. sp.MeshType = "Wedge"
  2668. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2669. w1:BreakJoints()
  2670. w1.Anchored = true
  2671. w1.Parent = triangparent
  2672. w1.Transparency = 0.7
  2673. table.insert(Effects,{w1,"Disappear",.05})
  2674. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2675. table.insert(list,w1)
  2676. end
  2677.  
  2678. if len2 > 0.01 then
  2679. local w2 = Instance.new('WedgePart', m)
  2680. game:GetService("Debris"):AddItem(w2,5)
  2681. w2.Material = "SmoothPlastic"
  2682. w2.FormFactor = 'Custom'
  2683. w2.BrickColor = BrickColor.new(NewCol2)
  2684. w2.Transparency = 0
  2685. w2.Reflectance = 0
  2686. w2.Material = "SmoothPlastic"
  2687. w2.CanCollide = false
  2688. NoOutline(w2)
  2689. local sz = Vector3.new(0.2, width, len2)
  2690. w2.Size = sz
  2691. local sp = Instance.new("SpecialMesh",w2)
  2692. sp.MeshType = "Wedge"
  2693. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2694. w2:BreakJoints()
  2695. w2.Anchored = true
  2696. w2.Parent = triangparent
  2697. w2.Transparency = 0.7
  2698. table.insert(Effects,{w2,"Disappear",.05})
  2699. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2700. table.insert(list,w2)
  2701. end
  2702. return unpack(list)
  2703. end
  2704.  
  2705. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent,prt2)
  2706. local prt=part(3,parent,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2707. local wld=nil
  2708. prt.CFrame=cframe
  2709. if Type~=3 then
  2710. prt.Anchored=true
  2711. else
  2712. prt.Anchored=false
  2713. wld=weld(prt,prt,prt2,cframe)
  2714. end
  2715. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2716. game:GetService("Debris"):AddItem(prt,10)
  2717. if Type==1 or Type==nil then
  2718. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  2719. elseif Type==2 then
  2720. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  2721. elseif Type==3 then
  2722. table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,wld,cframe})
  2723. end
  2724. end
  2725.  
  2726. function MagicSkull(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,goe)
  2727. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2728. prt.Anchored=true
  2729. prt.CFrame=cframe
  2730. msh=mesh("SpecialMesh",prt,"FileMesh","4770583",vt(0,0,0),vt(x1,y1,z1))
  2731. game:GetService("Debris"):AddItem(prt,10)
  2732. table.insert(Effects,{prt,"Skull",delay,x3,y3,z3,msh,goe})
  2733. end
  2734.  
  2735. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2736. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2737. prt.Anchored=true
  2738. prt.CFrame=cframe
  2739. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  2740. game:GetService("Debris"):AddItem(prt,10)
  2741. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2742. end
  2743.  
  2744. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2745. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2746. prt.Anchored=true
  2747. prt.CFrame=cframe
  2748. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2749. game:GetService("Debris"):AddItem(prt,10)
  2750. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2751. end
  2752.  
  2753. function MagicCylinder3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2754. local prt=part(3,modelzorz,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2755. prt.Anchored=true
  2756. prt.CFrame=cframe
  2757. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  2758. game:GetService("Debris"):AddItem(prt,10)
  2759. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2760. end
  2761.  
  2762. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,goe)
  2763. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2764. prt.Anchored=true
  2765. prt.CFrame=cframe
  2766. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2767. game:GetService("Debris"):AddItem(prt,10)
  2768. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh,goe})
  2769. end
  2770.  
  2771. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2772. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2773. prt.Anchored=true
  2774. prt.CFrame=cframe
  2775. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  2776. game:GetService("Debris"):AddItem(prt,10)
  2777. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2778. end
  2779.  
  2780. function MagicHead2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2781. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2782. prt.Anchored=true
  2783. prt.CFrame=cframe
  2784. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  2785. game:GetService("Debris"):AddItem(prt,10)
  2786. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2787. end
  2788.  
  2789. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  2790. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2791. prt.Anchored=true
  2792. prt.CFrame=cframe
  2793. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  2794. game:GetService("Debris"):AddItem(prt,10)
  2795. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  2796. end
  2797.  
  2798. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2799. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2800. prt.Anchored=true
  2801. prt.CFrame=cframe
  2802. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  2803. game:GetService("Debris"):AddItem(prt,10)
  2804. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2805. end
  2806.  
  2807. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2808. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2809. prt.Anchored=true
  2810. prt.CFrame=cframe*cf(x2,y2,z2)
  2811. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  2812. game:GetService("Debris"):AddItem(prt,10)
  2813. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2814. end
  2815.  
  2816. function MagicRing2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,prt2)
  2817. local prt=part(3,modelzorz,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2818. prt.Anchored=false
  2819. wld=weld(prt,prt,prt2,cframe)
  2820. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  2821. game:GetService("Debris"):AddItem(prt,10)
  2822. table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,wld,cframe})
  2823. end
  2824.  
  2825. function ElecEffect(cff,x,y,z)
  2826. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
  2827. prt.Anchored=true
  2828. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2829. prt.CFrame=cf(prt.Position)
  2830. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2831. game:GetService("Debris"):AddItem(prt,10)
  2832. xval=math.random()/3
  2833. yval=math.random()/3
  2834. zval=math.random()/3
  2835. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  2836. Effects[#Effects+1]={prt,"Elec",0.2,x,y,z,xval,yval,zval,msh} --part, type, delay
  2837. end
  2838.  
  2839. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  2840. --[[p0=pos1
  2841. p1=pos2
  2842. tym=times
  2843. ofs=offset
  2844. col=color
  2845. th=size
  2846. tra=transparency
  2847. last=lastingtime]]
  2848. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  2849. for i=1,tym do
  2850. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  2851. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  2852. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  2853. if tym == i then
  2854. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  2855. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  2856. else
  2857. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  2858. end
  2859. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,10)
  2860. table.insert(Effects,{li,"Disappear",last})
  2861. end
  2862. end
  2863.  
  2864. function Shoot(orgpos)
  2865. --numb=(1-(accuracy*.01))*5
  2866. --spread=vt((math.random(-1,0)+math.random())*numb,(math.random(-1,0)+math.random())*numb,(math.random(-1,0)+math.random())*numb)*(gunpart.Position-MMouse.Hit.p).magnitude/100
  2867. --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spread)
  2868. rand=1.5
  2869. if Mode=="Energy Reactor" then
  2870. rand=0
  2871. elseif Mode=="Dynamic Blade" then
  2872. rand=2
  2873. end
  2874. spread=vt((math.random(-1,0)+math.random())*rand,(math.random(-1,0)+math.random())*rand,(math.random(-1,0)+math.random())*rand)*(orgpos-MMouse.Hit.p).magnitude/100
  2875. local MouseLook=cf((orgpos+MMouse.Hit.p)/2,MMouse.Hit.p+spread)
  2876. MagicCircle(BrickColor.new(NewCol2),cf(orgpos),5,5,5,1,1,1,0.1)
  2877. table.insert(Effects,{MouseLook.lookVector,"Shoot",50,orgpos,5,7,0,1,2})
  2878. end
  2879.  
  2880. function Shoot2(orgpos)
  2881. --numb=(1-(accuracy*.01))*5
  2882. --spread=vt((math.random(-1,0)+math.random())*numb,(math.random(-1,0)+math.random())*numb,(math.random(-1,0)+math.random())*numb)*(gunpart.Position-MMouse.Hit.p).magnitude/100
  2883. --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spread)
  2884. local MouseLook=cf((orgpos+MMouse.Hit.p)/2,MMouse.Hit.p)
  2885. MagicCircle(BrickColor.new(NewCol2),cf(orgpos),5,5,5,3,3,3,0.1)
  2886. table.insert(Effects,{MouseLook.lookVector,"Shoot2",50,orgpos,5,7,0,1,2})
  2887. end
  2888.  
  2889. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2890. if hit.Parent==nil then
  2891. return
  2892. end
  2893. if hit==MovePart then
  2894. Fly=false
  2895. end
  2896. if hit.Name=="Hitbox" and hit.Parent~=modelzorz and ranged~=true then
  2897. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2898. ref.Anchored=true
  2899. ref.CFrame=cf(hit.Position)
  2900. game:GetService("Debris"):AddItem(ref,1)
  2901. hitnum=math.random(1,5)
  2902. if hitnum==1 then so("199148971",ref,1,1)
  2903. elseif hitnum==2 then so("199149025",ref,1,1)
  2904. elseif hitnum==3 then so("199149072",ref,1,1)
  2905. elseif hitnum==4 then so("199149109",ref,1,1)
  2906. elseif hitnum==5 then so("199149119",ref,1,1)
  2907. end
  2908. StaggerHit.Value=true
  2909. end
  2910. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2911. hit=hit.Parent.Parent:findFirstChild("Torso")
  2912. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2913. end
  2914. if hit.Parent.className=="Hat" then
  2915. hit=hit.Parent.Parent:findFirstChild("Head")
  2916. end
  2917. h=hit.Parent:FindFirstChild("Humanoid")
  2918. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2919. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2920. if Player.Neutral==false then
  2921. if hit.Parent:findFirstChild("Alignment")~=nil then
  2922. if hit.Parent.Alignment.Value==Player.TeamColor.Color then return end
  2923. end
  2924. if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2925. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  2926. end
  2927. end
  2928. c=Instance.new("ObjectValue")
  2929. c.Name="creator"
  2930. c.Value=game:service("Players").LocalPlayer
  2931. c.Parent=h
  2932. RecentEnemy.Value=hit.Parent
  2933. game:GetService("Debris"):AddItem(c,.5)
  2934. minim=minim*Atk.Value
  2935. maxim=maxim*Atk.Value
  2936. Damage=0
  2937. if minim==maxim then
  2938. Damage=maxim
  2939. else
  2940. Damage=math.random(minim,maxim)
  2941. end
  2942. blocked=false
  2943. enblock=nil
  2944. Stats=hit.Parent:findFirstChild("Stats")
  2945. if Stats~=nil then
  2946. enblock=Stats:findFirstChild("Block")
  2947. if enblock~=nil then
  2948. if enblock.Value==true then
  2949. blocked=true
  2950. end
  2951. end
  2952. if Stats:findFirstChild("Defense")~=nil then
  2953. Damage=Damage/(Stats.Defense.Value)
  2954. if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
  2955. hitnum=math.random(1,5)
  2956. if hitnum==1 then so("199149321",hit,1,1)
  2957. elseif hitnum==2 then so("199149338",hit,1,1)
  2958. elseif hitnum==3 then so("199149367",hit,1,1)
  2959. elseif hitnum==4 then so("199149409",hit,1,1)
  2960. elseif hitnum==5 then so("199149452",hit,1,1)
  2961. end
  2962. elseif ranged==false or ranged==nil and blocked~=true then
  2963. hitnum=math.random(1,6)
  2964. if hitnum==1 then so("199149137",hit,1,1)
  2965. elseif hitnum==2 then so("199149186",hit,1,1)
  2966. elseif hitnum==3 then so("199149221",hit,1,1)
  2967. elseif hitnum==4 then so("199149235",hit,1,1)
  2968. elseif hitnum==5 then so("199149269",hit,1,1)
  2969. elseif hitnum==6 then so("199149297",hit,1,1)
  2970. end
  2971. end
  2972. if Damage<=3 and staghit==true then
  2973. if ranged~=true then
  2974. StaggerHit.Value=true
  2975. end
  2976. end
  2977. end
  2978. if Stats:findFirstChild("Stun")~=nil then
  2979. if blocked==true then
  2980. incstun=incstun/2
  2981. end
  2982. if Stats.Stun.Value<Stats.StunThreshold.Value then
  2983. Stats.Stun.Value=Stats.Stun.Value+incstun
  2984. end
  2985. end
  2986. if Stats:findFirstChild("Stagger")~=nil then
  2987. if stagger==true then
  2988. Stats.Stagger.Value=true
  2989. end
  2990. end
  2991. end
  2992. if blocked==true then
  2993. showDamage(hit.Parent,"Block","Damage")
  2994. if ranged~=true then
  2995. enblock.Value=false
  2996. Stagger.Value=true
  2997. hitnum=math.random(1,2)
  2998. if hitnum==1 then so("199148933",hit,1,1)
  2999. elseif hitnum==2 then so("199148947",hit,1,1)
  3000. end
  3001. end
  3002. else
  3003. Damage=math.floor(Damage)
  3004. coroutine.resume(coroutine.create(function(Hum,Dam)
  3005. damageFunc:InvokeServer(h,Damage)
  3006. end),h,Damage)
  3007. showDamage(hit.Parent,Damage,"Damage")
  3008. if prechit==true then
  3009. eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3010. MagicCircle(BrickColor.new("White"),cf(hit.Position)*eul,5,5,5,-.1,5,-.1,.02)
  3011. MagicCircle(BrickColor.new("White"),cf(hit.Position)*eul*euler(1.57,0,0),5,5,5,-.1,5,-.1,.02)
  3012. end
  3013. if DecreaseState~=nil then
  3014. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  3015. end
  3016. if Type=="Knockdown" then
  3017. hum=hit.Parent.Humanoid
  3018. hum.PlatformStand=true
  3019. coroutine.resume(coroutine.create(function(HHumanoid)
  3020. swait(1)
  3021. HHumanoid.PlatformStand=false
  3022. end),hum)
  3023. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3024. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  3025. local bodvol=Instance.new("BodyVelocity")
  3026. bodvol.velocity=angle*knockback
  3027. bodvol.P=5000
  3028. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  3029. bodvol.Parent=hit
  3030. rl=Instance.new("BodyAngularVelocity")
  3031. rl.P=3000
  3032. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  3033. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  3034. rl.Parent=hit
  3035. game:GetService("Debris"):AddItem(bodvol,.5)
  3036. game:GetService("Debris"):AddItem(rl,.5)
  3037. elseif Type=="Knockdown2" then
  3038. hum=hit.Parent.Humanoid
  3039. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3040. local bodvol=Instance.new("BodyVelocity")
  3041. bodvol.velocity=angle*knockback
  3042. bodvol.P=5000
  3043. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  3044. bodvol.Parent=hit
  3045. game:GetService("Debris"):AddItem(bodvol,.5)
  3046. elseif Type=="Normal" or Type=="NormalDecreaseMvmt1" then
  3047. vp=Instance.new("BodyVelocity")
  3048. vp.P=500
  3049. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  3050. if KnockbackType==1 then
  3051. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  3052. elseif KnockbackType==2 then
  3053. vp.velocity=Property.CFrame.lookVector*knockback
  3054. end
  3055. game:GetService("Debris"):AddItem(vp,.5)
  3056. if knockback>0 then
  3057. vp.Parent=hit.Parent.Torso
  3058. end
  3059. end
  3060. end
  3061. debounce=Instance.new("BoolValue")
  3062. debounce.Name="DebounceHit"
  3063. debounce.Parent=hit.Parent
  3064. debounce.Value=true
  3065. game:GetService("Debris"):AddItem(debounce,Delay)
  3066. c=Instance.new("ObjectValue")
  3067. c.Name="creator"
  3068. c.Value=Player
  3069. c.Parent=h
  3070. game:GetService("Debris"):AddItem(c,.5)
  3071. CRIT=false
  3072. end
  3073. end
  3074.  
  3075. showDamage=function(Char,Dealt,Type)
  3076. m=Instance.new("Model")
  3077. m.Name="Effect"
  3078. c=Instance.new("Part")
  3079. c.Transparency=1
  3080. c.Name="Head"
  3081. c.TopSurface=0
  3082. c.BottomSurface=0
  3083. c.formFactor="Plate"
  3084. c.Size=Vector3.new(1,.4,1)
  3085. b=Instance.new("BillboardGui",c)
  3086. b.Size=UDim2.new(5,0,5,0)
  3087. b.AlwaysOnTop=true
  3088. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  3089. if Type=="Damage" then
  3090. damgui.Font="SourceSans"
  3091. if Dealt=="Block" then
  3092. damgui.TextColor3=BrickColor.new("Bright blue").Color
  3093. elseif Dealt<3 then
  3094. damgui.TextColor3=BrickColor.new("White").Color
  3095. elseif Dealt>=3 and Dealt<20 then
  3096. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  3097. else
  3098. damgui.TextColor3=BrickColor.new("Really red").Color
  3099. damgui.Font="SourceSansBold"
  3100. end
  3101. elseif Type=="Debuff" then
  3102. damgui.TextColor3=BrickColor.new("White").Color
  3103. elseif Type=="Interrupt" then
  3104. damgui.TextColor3=BrickColor.new("New Yeller").Color
  3105. end
  3106. --damgui.FontSize="Size48"
  3107. damgui.TextScaled=true
  3108. ms=Instance.new("CylinderMesh")
  3109. ms.Scale=Vector3.new(.8,.8,.8)
  3110. ms.Parent=c
  3111. c.Reflectance=0
  3112. Instance.new("BodyGyro").Parent=c
  3113. c.Parent=m
  3114. if Char:findFirstChild("Head")~=nil then
  3115. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3116. elseif Char.Parent:findFirstChild("Head")~=nil then
  3117. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3118. end
  3119. f=Instance.new("BodyPosition")
  3120. f.P=2000
  3121. f.D=100
  3122. f.maxForce=Vector3.new(545000,545000,545000)
  3123. if Type=="Damage" then
  3124. f.position=c.Position+Vector3.new(0,3,0)
  3125. elseif Type=="Debuff" or Type=="Interrupt" then
  3126. f.position=c.Position+Vector3.new(0,5,0)
  3127. end
  3128. f.Parent=c
  3129. game:GetService("Debris"):AddItem(m,5)
  3130. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  3131. c.CanCollide=false
  3132. m.Parent=workspace
  3133. c.CanCollide=false
  3134. end
  3135.  
  3136. combo=0
  3137. function ob1d(mouse)
  3138. if attack==true or equipped==false then return end
  3139. hold=true
  3140. dynamomove=false
  3141. if Mode=="Energy Reactor" then
  3142. dynamomove=true
  3143. end
  3144. if combo==0 then
  3145. combo=1
  3146. attackone()
  3147. elseif combo==1 then
  3148. combo=2
  3149. attacktwo()
  3150. elseif combo==2 then
  3151. combo=3
  3152. attackthree()
  3153. elseif combo==3 then
  3154. combo=0
  3155. attackfour()
  3156. end
  3157. coroutine.resume(coroutine.create(function()
  3158. for i=1,50 do
  3159. if attack==false then
  3160. swait()
  3161. end
  3162. end
  3163. if attack==false then
  3164. dynamomove=true
  3165. combo=0
  3166. end
  3167. end))
  3168. end
  3169.  
  3170. function ob1u(mouse)
  3171. hold = false
  3172. end
  3173.  
  3174. buttonhold = false
  3175.  
  3176. fenbarmove1.MouseButton1Click:connect(do1)
  3177. fenbarmove2.MouseButton1Click:connect(do2)
  3178. fenbarmove3.MouseButton1Click:connect(do3)
  3179. fenbarmove4.MouseButton1Click:connect(do4)
  3180. eul=0
  3181. equipped=false
  3182. function key(key)
  3183. --[[if key=="t" then
  3184. Humanoid:TakeDamage(1)
  3185. end
  3186. if key=="q" then
  3187. overload=0
  3188. end
  3189. if key=="r" then
  3190. overload=100
  3191. end]]
  3192. if key=="e" and defending==true then
  3193. defending=false
  3194. end
  3195. if key=="z" and choosemode==true then
  3196. Mode="Classic"
  3197. manainc=9
  3198. choosemode=false
  3199. passive1.Value=.1
  3200. passive2.Value=-.05
  3201. passive3.Value=-.1
  3202. elseif key=="x" and choosemode==true then
  3203. Mode="Dynamic Blade"
  3204. manainc=15
  3205. choosemode=false
  3206. passive1.Value=-.1
  3207. passive2.Value=.1
  3208. passive3.Value=.1
  3209. elseif key=="c" and choosemode==true then
  3210. Mode="Energy Reactor"
  3211. manainc=5
  3212. choosemode=false
  3213. passive1.Value=.1
  3214. passive2.Value=-.15
  3215. passive3.Value=.05
  3216. end
  3217. if attack==true then return end
  3218. if key=="f" then
  3219. pressedf=true
  3220. fnumb=0
  3221. attack=true
  3222. if equipped==false then
  3223. equipped=true
  3224. RSH=ch.Torso["Right Shoulder"]
  3225. LSH=ch.Torso["Left Shoulder"]
  3226. --
  3227. RSH.Parent=nil
  3228. LSH.Parent=nil
  3229. --
  3230. RW.Name="Right Shoulder"
  3231. RW.Part0=ch.Torso
  3232. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  3233. RW.C1=cf(0, 0.5, 0)
  3234. RW.Part1=ch["Right Arm"]
  3235. RW.Parent=ch.Torso
  3236. --
  3237. LW.Name="Left Shoulder"
  3238. LW.Part0=ch.Torso
  3239. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  3240. LW.C1=cf(0, 0.5, 0)
  3241. LW.Part1=ch["Left Arm"]
  3242. LW.Parent=ch.Torso
  3243. --
  3244. Animate.Parent=nil
  3245. equipanim()
  3246. else
  3247. equipped=false
  3248. hideanim()
  3249. LH.C1=LHC1
  3250. RH.C1=RHC1
  3251. Animate.Parent=Humanoid
  3252. swait(0)
  3253. RW.Parent=nil
  3254. LW.Parent=nil
  3255. RSH.Parent=player.Character.Torso
  3256. LSH.Parent=player.Character.Torso
  3257. end
  3258. attack=false
  3259. end
  3260. if equipped==false then return end
  3261. --[[if key=="q" and Mode=="Classic" then
  3262. attack=true
  3263. for i=0,1,0.05 do
  3264. swait()
  3265. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,-.5),.4)
  3266. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.4)
  3267. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(1.5,0,.2)*euler(0,1,0),.4)
  3268. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  3269. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.6)*euler(0,0,0),.4)
  3270. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  3271. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(0,-.3,0)*euler(0,0,-.1),.4)
  3272. LH.C0=clerp(LH.C0,cf(-.9,-1,-.1)*euler(0,-1.57,0)*euler(0,-.3,0)*euler(0,0,.4),.4)
  3273. dwld1.C0=clerp(dwld1.C0,euler(3.14,1.57,0)*euler(-.23,0,0)*cf(-.6,2.5,-.5),.4)
  3274. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(-1,0,0)*cf(-.6,1.2,-1.1),.4)
  3275. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,1,-.2),.4)
  3276. dwldb1.C0=clerp(dwldb1.C0,euler(3.14,-1.57,0)*euler(.23,0,0)*cf(-.6,2.5,.5),.4)
  3277. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(1,0,0)*cf(-.6,1.2,1.1),.4)
  3278. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,1,.2),.4)
  3279. end
  3280. swait(100)
  3281. attack=false
  3282. end]]
  3283. if key=="e" then
  3284. Defend()
  3285. end
  3286. if key=="z" then
  3287. do1()
  3288. end
  3289. if key=="x" then
  3290. do2()
  3291. end
  3292. if key=="c" then
  3293. do3()
  3294. end
  3295. if key=="v" then
  3296. do4()
  3297. end
  3298. if key=="e" or key=="z" or key=="x" or key=="c" or key=="v" then
  3299. dynamomove=true
  3300. end
  3301. end
  3302.  
  3303. function key2(key)
  3304.  
  3305.  
  3306. end
  3307.  
  3308. function s(mouse)
  3309. mouse.Button1Down:connect(function() ob1d(mouse) end)
  3310. mouse.Button1Up:connect(function() ob1u(mouse) end)
  3311. mouse.KeyDown:connect(key)
  3312. mouse.KeyUp:connect(key2)
  3313.  
  3314. player=Player
  3315. ch=Character
  3316. MMouse=mouse
  3317. end
  3318.  
  3319. function ds(mouse)
  3320. end
  3321.  
  3322. Bin.Selected:connect(s)
  3323. Bin.Deselected:connect(ds)
  3324. print("Dynamo & Permanence loaded.")
  3325.  
  3326. local mananum=0
  3327. local donum=0
  3328. local stunnum=0
  3329. local staggeranim=false
  3330. local stunanim=false
  3331. local Point=nil
  3332. local LastPoint=nil
  3333. local handef=0
  3334. local flick=0
  3335. local reactlightn=0
  3336. local walk=0
  3337. local walkforw=true
  3338. local ovloadn=0
  3339. local oldhealth=Humanoid.Health
  3340. local oldstun=Stun.Value
  3341. while true do
  3342. swait()
  3343. if fnumb<21 then
  3344. fnumb=fnumb+1
  3345. if pressedf==false then
  3346. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
  3347. tellbar.TextTransparency=tellbar.TextTransparency-.05
  3348. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
  3349. else
  3350. if fnumb==20 then
  3351. fenframe5.Parent=nil
  3352. print("daigui")
  3353. end
  3354. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
  3355. tellbar.TextTransparency=tellbar.TextTransparency+.05
  3356. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
  3357. end
  3358. end
  3359. hitbox2.Parent=hitbox.Parent
  3360. hitbox2.Size=hitbox.Size
  3361. hitbox2.CFrame=hitboxCF
  3362. hboxpos.position=hitbox2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  3363. if mdec2.Parent==nil then
  3364. for i=1,#DemTable do
  3365. if DemTable[i][1].Transparency<1 then
  3366. DemTable[i][1].Transparency=DemTable[i][1].Transparency+.1
  3367. end
  3368. end
  3369. else
  3370. for i=1,#DemTable do
  3371. if DemTable[i][1].Transparency>DemTable[i][2] then
  3372. DemTable[i][1].Transparency=DemTable[i][1].Transparency-.05
  3373. end
  3374. if flick>=4 then
  3375. DemTable[i][1].Transparency=DemTable[i][1].Transparency+.1
  3376. end
  3377. end
  3378. end
  3379. if flick>=4 then
  3380. flick=0
  3381. end
  3382. flick=flick+1
  3383. --[[if equipped==false then
  3384. if prt29.Transparency<1 then
  3385. prt29.Transparency=prt29.Transparency+.1
  3386. end
  3387. if prt30.Transparency<1 then
  3388. prt30.Transparency=prt30.Transparency+.1
  3389. end
  3390. if prt30b.Transparency<1 then
  3391. prt30b.Transparency=prt30b.Transparency+.1
  3392. end
  3393. if prt31.Transparency<1 then
  3394. prt31.Transparency=prt31.Transparency+.1
  3395. end
  3396. if prt32.Transparency<1 then
  3397. prt32.Transparency=prt32.Transparency+.1
  3398. end
  3399. if prt32b.Transparency<1 then
  3400. prt32b.Transparency=prt32b.Transparency+.1
  3401. end
  3402. elseif equipped==true then
  3403. if prt29.Transparency>.05 then
  3404. prt29.Transparency=prt29.Transparency-.05
  3405. end
  3406. if prt30.Transparency>.05 then
  3407. prt30.Transparency=prt30.Transparency-.05
  3408. end
  3409. if prt30b.Transparency>.05 then
  3410. prt30b.Transparency=prt30b.Transparency-.05
  3411. end
  3412. if prt31.Transparency>.5 then
  3413. prt31.Transparency=prt31.Transparency-.05
  3414. end
  3415. if prt32.Transparency>.5 then
  3416. prt32.Transparency=prt32.Transparency-.05
  3417. end
  3418. if prt32b.Transparency>.5 then
  3419. prt32b.Transparency=prt32b.Transparency-.05
  3420. end
  3421. end]]
  3422. ovloadn=ovloadn+1
  3423. if ovloadn>=20 then
  3424. ovloadn=0
  3425. if overload<100 then
  3426. overload=overload+1
  3427. end
  3428. end
  3429. if overload>=100 then
  3430. overload=100
  3431. end
  3432. --prt 29,30,30b,31,32,32b
  3433. --dprt 4,5,16,17,18,19,20,21,22
  3434. --dprtb 4,5,16,17,18,19,20,21,22
  3435. if overload>=50 then
  3436. prt29.Material="Neon"
  3437. prt30.Material="Neon"
  3438. prt30b.Material="Neon"
  3439. prt31.Material="Neon"
  3440. prt32.Material="Neon"
  3441. prt32b.Material="Neon"
  3442. dprt4.Material="Neon"
  3443. dprt5.Material="Neon"
  3444. dprt16.Material="Neon"
  3445. dprt17.Material="Neon"
  3446. dprt18.Material="Neon"
  3447. dprt19.Material="Neon"
  3448. dprt20.Material="Neon"
  3449. dprt21.Material="Neon"
  3450. dprt22.Material="Neon"
  3451. dprtb4.Material="Neon"
  3452. dprtb5.Material="Neon"
  3453. dprtb16.Material="Neon"
  3454. dprtb17.Material="Neon"
  3455. dprtb18.Material="Neon"
  3456. dprtb19.Material="Neon"
  3457. dprtb20.Material="Neon"
  3458. dprtb21.Material="Neon"
  3459. dprtb22.Material="Neon"
  3460. else
  3461. prt29.Material="SmoothPlastic"
  3462. prt30.Material="SmoothPlastic"
  3463. prt30b.Material="SmoothPlastic"
  3464. prt31.Material="SmoothPlastic"
  3465. prt32.Material="SmoothPlastic"
  3466. prt32b.Material="SmoothPlastic"
  3467. dprt4.Material="SmoothPlastic"
  3468. dprt5.Material="SmoothPlastic"
  3469. dprt16.Material="SmoothPlastic"
  3470. dprt17.Material="SmoothPlastic"
  3471. dprt18.Material="SmoothPlastic"
  3472. dprt19.Material="SmoothPlastic"
  3473. dprt20.Material="SmoothPlastic"
  3474. dprt21.Material="SmoothPlastic"
  3475. dprt22.Material="SmoothPlastic"
  3476. dprtb4.Material="SmoothPlastic"
  3477. dprtb5.Material="SmoothPlastic"
  3478. dprtb16.Material="SmoothPlastic"
  3479. dprtb17.Material="SmoothPlastic"
  3480. dprtb18.Material="SmoothPlastic"
  3481. dprtb19.Material="SmoothPlastic"
  3482. dprtb20.Material="SmoothPlastic"
  3483. dprtb21.Material="SmoothPlastic"
  3484. dprtb22.Material="SmoothPlastic"
  3485. end
  3486. if defending==true and oldhealth>Humanoid.Health then
  3487. overload=overload+(oldhealth-Humanoid.Health)
  3488. if Mode=="Classic" then
  3489. MagicCircle(BrickColor.new(NewCol2),handle.CFrame*cf(.6,math.random(-100,100)/100,math.random(-100,100)/100),1,1,1,0,5,5,.1)
  3490. elseif Mode=="Dynamic Blade" then
  3491. MagicCircle(BrickColor.new(NewCol2),prt31.CFrame*cf(0,math.random(-200,200)/100,math.random(-90,90)/100),1,1,1,0,5,5,.1)
  3492. elseif Mode=="Energy Reactor" then
  3493. MagicCircle(BrickColor.new(NewCol2),handle.CFrame*cf(math.random(-100,100)/100,math.random(-100,100)/100,-1),1,1,1,5,5,0,.1)
  3494. end
  3495. end
  3496. if Stagger.Value==true and staggeranim==false and defending==false then
  3497. coroutine.resume(coroutine.create(function()
  3498. staggeranim=true
  3499. while attack==true do
  3500. swait()
  3501. end
  3502. StaggerAnim()
  3503. StaggerHit.Value=false
  3504. Stagger.Value=false
  3505. staggeranim=false
  3506. end))
  3507. end
  3508. if StaggerHit.Value==true and staggeranim==false and defending==false then
  3509. coroutine.resume(coroutine.create(function()
  3510. staggeranim=true
  3511. while attack==true do
  3512. swait()
  3513. end
  3514. StaggerHitt()
  3515. StaggerHit.Value=false
  3516. Stagger.Value=false
  3517. staggeranim=false
  3518. end))
  3519. end
  3520. oldhealth=Humanoid.Health
  3521. if defending==true then
  3522. if oldstun<=60 and Stun.Value>=StunT.Value then
  3523. Stun.Value=60
  3524. defending=false
  3525. if Mode=="Classic" then
  3526. MagicCircle(BrickColor.new(NewCol2),handle.CFrame*cf(.6,0,0),1,1,1,0,5,5,.05)
  3527. elseif Mode=="Dynamic Blade" then
  3528. MagicCircle(BrickColor.new(NewCol2),prt31.CFrame,1,1,1,0,5,5,.05)
  3529. elseif Mode=="Energy Reactor" then
  3530. MagicCircle(BrickColor.new(NewCol2),handle.CFrame*cf(0,0,-1),1,1,1,5,5,0,.05)
  3531. end
  3532. elseif Stun.Value>=StunT.Value then
  3533. Stun.Value=99
  3534. defending=false
  3535. end
  3536. oldstun=tonumber(Stun.Value)
  3537. if Stagger.Value==true then
  3538. Stagger.Value=false
  3539. if Mode=="Classic" then
  3540. MagicCircle(BrickColor.new(NewCol2),handle.CFrame*cf(.6,0,0),1,1,1,0,5,5,.05)
  3541. elseif Mode=="Dynamic Blade" then
  3542. MagicCircle(BrickColor.new(NewCol2),prt31.CFrame,1,1,1,0,5,5,.05)
  3543. elseif Mode=="Energy Reactor" then
  3544. MagicCircle(BrickColor.new(NewCol2),handle.CFrame*cf(0,0,-1),1,1,1,5,5,0,.05)
  3545. end
  3546. end
  3547. if StaggerHit.Value==true then
  3548. StaggerHit.Value=false
  3549. end
  3550. end
  3551. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true then
  3552. Humanoid.WalkSpeed=0
  3553. else
  3554. Humanoid.WalkSpeed=16*Mvmt.Value
  3555. end
  3556. if Stun.Value>=StunT.Value and stunanim==false and defending==false then
  3557. coroutine.resume(coroutine.create(function()
  3558. stunanim=true
  3559. while attack==true do
  3560. swait()
  3561. end
  3562. StunAnim()
  3563. Stun.Value=0
  3564. stunanim=false
  3565. end))
  3566. end
  3567. local stunnum2=30
  3568. if stunnum>=stunnum2 then
  3569. if Stun.Value>0 then
  3570. Stun.Value=Stun.Value-1
  3571. end
  3572. stunnum=0
  3573. end
  3574. stunnum=stunnum+1
  3575. if donum>=.5 then
  3576. handidle=true
  3577. elseif donum<=0 then
  3578. handidle=false
  3579. end
  3580. if handidle==false then
  3581. donum=donum+0.003
  3582. else
  3583. donum=donum-0.003
  3584. end
  3585. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3586. local velderp=RootPart.Velocity.y
  3587. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3588. if equipped==true then
  3589. if attack==false then
  3590. idle=idle+1
  3591. else
  3592. idle=0
  3593. end
  3594. if idle>=500 then
  3595. if attack==false then
  3596. --Sheath()
  3597. end
  3598. end
  3599.  
  3600. if Anim=="Walk" then
  3601. if walkforw==true then
  3602. RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  3603. LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  3604. else
  3605. RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  3606. LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  3607. end
  3608. else
  3609. RH.C1=clerp(RH.C1,RHC1,.2)
  3610. LH.C1=clerp(LH.C1,LHC1,.2)
  3611. end
  3612. --if attack==false and dynamomove==true then
  3613. if Mode=="Classic" and attack==false and dynamomove==true then
  3614. hwld.Part1=RightArm
  3615. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),math.random(30,200)/1000)
  3616. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*cf(-.6,-1.5,-.4),math.random(30,200)/1000)
  3617. dwld6.C0=clerp(dwld6.C0,euler(0,1.57,0)*cf(-.6,-.4,-.35),math.random(30,200)/1000)
  3618. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.5,-.45),math.random(30,200)/1000)
  3619. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*cf(-.6,-1.5,.4),math.random(30,200)/1000)
  3620. dwldb6.C0=clerp(dwldb6.C0,euler(0,-1.57,0)*cf(-.6,-.4,.35),math.random(30,200)/1000)
  3621. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.5,.45),math.random(30,200)/1000)
  3622. elseif Mode=="Dynamic Blade" and attack==false and dynamomove==true then
  3623. hwld.Part1=prt1
  3624. hwld.C0=clerp(hwld.C0,euler(0,0,0)*cf(0,0,0),math.random(30,200)/1000)
  3625. --[[dwld1.C0=clerp(dwld1.C0,euler(3.14,1.57,0)*euler(-.23,0,0)*cf(-.6,2.1,-.5),.2)
  3626. dwld6.C0=clerp(dwld6.C0,euler(3.14,-1.57,0)*euler(-.53,0,0)*cf(-.6,1.2,-1.2),.2)
  3627. dwld10.C0=clerp(dwld10.C0,euler(0,1.57,0)*cf(-.6,.6,-.2),.2)
  3628. dwldb1.C0=clerp(dwldb1.C0,euler(3.14,-1.57,0)*euler(.23,0,0)*cf(-.6,2.1,.5),.2)
  3629. dwldb6.C0=clerp(dwldb6.C0,euler(3.14,1.57,0)*euler(.53,0,0)*cf(-.6,1.2,1.2),.2)
  3630. dwldb10.C0=clerp(dwldb10.C0,euler(0,-1.57,0)*cf(-.6,.6,.2),.2)]]
  3631. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,0)*euler(.1,0,0)*cf(0,-5.5,-.3),math.random(30,200)/1000)
  3632. dwld6.C0=clerp(dwld6.C0,euler(0,-1.57,0)*euler(0,0,0)*cf(0,-4,-.65),math.random(30,200)/1000)
  3633. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,0)*cf(0,-3,-.5),math.random(30,200)/1000)
  3634. dwldb1.C0=clerp(dwldb1.C0,euler(0,-1.57,0)*euler(-.1,0,0)*cf(0,-5.5,.3),math.random(30,200)/1000)
  3635. dwldb6.C0=clerp(dwldb6.C0,euler(0,1.57,0)*euler(0,0,0)*cf(0,-4,.65),math.random(30,200)/1000)
  3636. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,-1.57,0)*cf(0,-3,.5),math.random(30,200)/1000)
  3637. elseif Mode=="Energy Reactor" and dynamomove==true then
  3638. hwld.Part1=RootPart
  3639. hwld.C0=clerp(hwld.C0,euler(0,0,-.5)*cf(0,-2,0),math.random(30,200)/1000)
  3640. dwld1.C0=clerp(dwld1.C0,euler(0,1.57,-1.57)*cf(3,3,0)*euler(0,1.046*0,0)*euler(1.57,0,0),math.random(30,200)/1000)
  3641. dwld6.C0=clerp(dwld6.C0,euler(0,3.14+1.57,-1.57)*cf(3,3,0)*euler(0,1.046*1,0)*euler(1.57,0,0),math.random(30,200)/1000)
  3642. dwld10.C0=clerp(dwld10.C0,euler(3.14,1.57,-1.57)*cf(3,3,0)*euler(0,1.046*2,0)*euler(1.57,0,0),math.random(30,200)/1000)
  3643. dwldb1.C0=clerp(dwldb1.C0,euler(0,1.57,-1.57)*cf(3,3,0)*euler(0,1.046*3,0)*euler(1.57,0,0),math.random(30,200)/1000)
  3644. dwldb6.C0=clerp(dwldb6.C0,euler(0,3.14+1.57,-1.57)*cf(3,3,0)*euler(0,1.046*4,0)*euler(1.57,0,0),math.random(30,200)/1000)
  3645. dwldb10.C0=clerp(dwldb10.C0,euler(3.14,1.57,-1.57)*cf(3,3,0)*euler(0,1.046*5,0)*euler(1.57,0,0),math.random(30,200)/1000)
  3646. end
  3647. --end
  3648.  
  3649. if Mode=="Energy Reactor" and reactlightn>=8 then
  3650. reactlightn=0
  3651. num=math.random(1,3)
  3652. efprt1=dprt1
  3653. efprt2=dprtb1
  3654. if num==2 then
  3655. efprt1=dprt6
  3656. efprt2=dprtb6
  3657. elseif num==3 then
  3658. efprt1=dprt10
  3659. efprt2=dprtb10
  3660. end
  3661. Lightning(efprt1.Position,efprt2.Position,5,1,NewCol2,.01,.5,.2)
  3662. --[[p0=pos1
  3663. p1=pos2
  3664. tym=times
  3665. ofs=offset
  3666. col=color
  3667. th=size
  3668. tra=transparency
  3669. last=lastingtime]]
  3670. end
  3671. reactlightn=reactlightn+1
  3672.  
  3673. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3674. Anim="Jump"
  3675. if attack==false then
  3676. if Mode=="Dynamic Blade" then
  3677. wld1.C0=clerp(wld1.C0,euler(1.6,0,0)*cf(0,1.1,.2),.2)
  3678. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  3679. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3680. RW.C0=clerp(RW.C0,cf(.6,0.4,-.6)*euler(.3+(donum/4),0,-.4-(donum/4))*euler(0,-1,0),.2)
  3681. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3682. LW.C0=clerp(LW.C0,cf(-.8,0.4,-.5)*euler(.4+(donum/4),0,.3-(donum/4))*euler(0,-1.3,0),.2)
  3683. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3684. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  3685. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  3686. else
  3687. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  3688. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  3689. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3690. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.4)*euler(0,0,0),.2)
  3691. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3692. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-.2),.2)
  3693. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3694. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  3695. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  3696. end
  3697. end
  3698. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3699. Anim="Fall"
  3700. if attack==false then
  3701. if Mode=="Dynamic Blade" then
  3702. wld1.C0=clerp(wld1.C0,euler(1.6,0,0)*cf(0,1.1,.2),.2)
  3703. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  3704. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3705. RW.C0=clerp(RW.C0,cf(.6,0.4,-.6)*euler(.3+(donum/4),0,-.4-(donum/4))*euler(0,-1,0),.2)
  3706. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3707. LW.C0=clerp(LW.C0,cf(-.8,0.4,-.5)*euler(.4+(donum/4),0,.3-(donum/4))*euler(0,-1.3,0),.2)
  3708. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3709. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3710. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3711. else
  3712. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  3713. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  3714. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3715. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.4)*euler(0,0,0),.2)
  3716. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3717. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.3,0,-0.2),.2)
  3718. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3719. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3720. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3721. end
  3722. end
  3723. elseif torvel<1 and hitfloor~=nil then
  3724. Anim="Idle"
  3725. if attack==false then
  3726. if Mode=="Dynamic Blade" then
  3727. wld1.C0=clerp(wld1.C0,euler(1.6,0,0)*cf(0,1.1,.2),.2)
  3728. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-.5),.2)
  3729. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.2)
  3730. RW.C0=clerp(RW.C0,cf(.6,0.5,-.6)*euler(1.2+(donum/4),0,-.6-(donum/4))*euler(0,-1,0),.2)
  3731. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3732. LW.C0=clerp(LW.C0,cf(-.8,0.5,-.5)*euler(1+(donum/4),0,.4-(donum/4))*euler(0,-.8,0),.2)
  3733. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3734. RH.C0=clerp(RH.C0,cf(1.1,-.8,.1)*euler(0,1.57,0)*euler(0,-.5,0)*euler(0,0,.1),.2)
  3735. LH.C0=clerp(LH.C0,cf(-.9,-1,0)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.2),.2)
  3736. else
  3737. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  3738. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.2)
  3739. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.2)
  3740. if Mode=="Classic" then
  3741. RW.C0=clerp(RW.C0,cf(1.1,0.45,.3)*euler(1-(donum/4),0,.6-(donum/4))*euler(0,.5,0),.2)
  3742. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3743. else
  3744. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2+(donum/4),0,.4+(donum/4))*euler(0,0,0),.2)
  3745. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3746. end
  3747. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.6+(donum/4),0,-.2-(donum/4))*euler(0,-.5,0),.2)
  3748. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3749. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.4),.2)
  3750. LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.2)
  3751. end
  3752. end
  3753. elseif torvel>2 and torvel<30 and hitfloor~=nil then
  3754. Anim="Walk"
  3755. walk=walk+1
  3756. if walk>=15-(5*Mvmt.Value) then
  3757. walk=0
  3758. if walkforw==true then
  3759. walkforw=false
  3760. elseif walkforw==false then
  3761. walkforw=true
  3762. end
  3763. end
  3764. if attack==false then
  3765. if Mode=="Dynamic Blade" then
  3766. wld1.C0=clerp(wld1.C0,euler(1.6,0,0)*cf(0,1.1,.2),.2)
  3767. Neck.C0=clerp(Neck.C0,necko*euler(.2-(donum/5),0,0)*euler(0,0,0),.2)
  3768. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.2)
  3769. RW.C0=clerp(RW.C0,cf(.6,0.4,-.6)*euler(.5+(donum/4),0,-.4-(donum/4))*euler(0,-1,0),.2)
  3770. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3771. LW.C0=clerp(LW.C0,cf(-.8,0.4,-.5)*euler(.6+(donum/4),0,.3-(donum/4))*euler(0,-1.3,0),.2)
  3772. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3773. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
  3774. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
  3775. else
  3776. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  3777. Neck.C0=clerp(Neck.C0,necko*euler(.2-(donum/5),0,0),.2)
  3778. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3779. if Mode=="Classic" then
  3780. RW.C0=clerp(RW.C0,cf(1.45,0.5,.2)*euler(.8-(donum/4),0,.2-(donum/4))*euler(0,0,0),.2)
  3781. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3782. else
  3783. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2+(donum/5),0,.2)*euler(0,0,0),.2)
  3784. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3785. end
  3786. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4+(donum/3),0,-.4+(donum/3)),.2)
  3787. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3788. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
  3789. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
  3790. end
  3791. end
  3792. elseif torvel>=30 and hitfloor~=nil then
  3793. Anim="Run"
  3794. if attack==false then
  3795. if Mode=="Dynamic Blade" then
  3796. wld1.C0=clerp(wld1.C0,euler(1.6,0,0)*cf(0,1.1,.2),.2)
  3797. Neck.C0=clerp(Neck.C0,necko*euler(.2-(donum/5),0,0)*euler(0,0,0),.2)
  3798. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.2)
  3799. RW.C0=clerp(RW.C0,cf(.6,0.4,-.6)*euler(.5+(donum/4),0,-.4-(donum/4))*euler(0,-1,0),.2)
  3800. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3801. LW.C0=clerp(LW.C0,cf(-.8,0.4,-.5)*euler(.6+(donum/4),0,.3-(donum/4))*euler(0,-1.3,0),.2)
  3802. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3803. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
  3804. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
  3805. else
  3806. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  3807. Neck.C0=clerp(Neck.C0,necko*euler(.2-(donum/5),0,0),.2)
  3808. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3809. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2+(donum/3),0,.5-(donum/3)),.2)
  3810. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3811. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4+(donum/3),0,-.4+(donum/3)),.2)
  3812. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3813. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
  3814. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
  3815. end
  3816. end
  3817. end
  3818. end
  3819. if #Effects>0 then
  3820. --table.insert(Effects,{prt,"Block1",delay})
  3821. for e=1,#Effects do
  3822. if Effects[e]~=nil then
  3823. --for j=1,#Effects[e] do
  3824. local Thing=Effects[e]
  3825. if Thing~=nil then
  3826. local Part=Thing[1]
  3827. local Mode=Thing[2]
  3828. local Delay=Thing[3]
  3829. local IncX=Thing[4]
  3830. local IncY=Thing[5]
  3831. local IncZ=Thing[6]
  3832. if Thing[2]=="Shoot" then
  3833. local Look=Thing[1]
  3834. local hit,pos = rayCast(Thing[4],Look,15,Character)
  3835. local mag=(Thing[4]-pos).magnitude
  3836. Thing[9]=Thing[9]+.5
  3837. Thing[5]=Thing[5]+.2
  3838. Thing[6]=Thing[6]+.2
  3839. MagicHead(BrickColor.new(NewCol2),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),Thing[9],mag*5,Thing[9],-.2,0,-.2,.1)
  3840. Thing[4]=Thing[4]+(Look*15)
  3841. Thing[3]=Thing[3]-1
  3842. if hit~=nil then
  3843. Thing[3]=0
  3844. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(1,5),nil,nil,true)
  3845. ref=part(3,workspace,0,1,BrickColor.new("Really red"),"Reference",vt())
  3846. ref.Anchored=true
  3847. ref.CFrame=cf(pos)
  3848. MagicCircle(BrickColor.new(NewCol2),cf(pos),5,5,5,1,1,1,0.07)
  3849. so("300916057",ref,1,2)
  3850. game:GetService("Debris"):AddItem(ref,1)
  3851. end
  3852. if Thing[3]<=0 then
  3853. table.remove(Effects,e)
  3854. end
  3855. end
  3856. if Thing[2]=="Shoot2" then
  3857. local Look=Thing[1]
  3858. local hit,pos = rayCast(Thing[4],Look,3,Character)
  3859. local mag=(Thing[4]-pos).magnitude
  3860. Thing[9]=Thing[9]+.5
  3861. Thing[5]=Thing[5]+.2
  3862. Thing[6]=Thing[6]+.2
  3863. --MagicHead(BrickColor.new(NewCol2),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),Thing[9],mag*5,Thing[9],-.2,0,-.2,.1)
  3864. MagicCircle(BrickColor.new(NewCol2),CFrame.new((Thing[4]+pos)/2,pos),25,25,25,-5,-5,-5,.2)
  3865. Thing[4]=Thing[4]+(Look*3)
  3866. Thing[3]=Thing[3]-1
  3867. if hit~=nil then
  3868. Thing[3]=0
  3869. ref=part(3,workspace,0,1,BrickColor.new("Really red"),"Reference",vt())
  3870. ref.Anchored=true
  3871. ref.CFrame=cf(pos)
  3872. MagniDamage(ref,10,6,8,math.random(15,20),"Knockdown2",ref,0,1,math.random(4,6),nil,nil,true)
  3873. MagicCircle(BrickColor.new(NewCol2),cf(pos),25,25,25,5,5,5,.1)
  3874. MagicCircle(BrickColor.new(NewCol2),cf(pos),10,10,10,15,15,15,.08)
  3875. so("300916057",ref,1,1.5)
  3876. game:GetService("Debris"):AddItem(ref,1)
  3877. end
  3878. if Thing[3]<=0 then
  3879. table.remove(Effects,e)
  3880. end
  3881. end
  3882. if Thing[2]=="CylinderClang" then
  3883. if Thing[3]<=1 then
  3884. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  3885. Thing[7]=Thing[1].CFrame
  3886. effect("New Yeller",0,Thing[8],Thing[7])
  3887. Thing[8]=Thing[7]
  3888. Thing[3]=Thing[3]+Thing[4]
  3889. else
  3890. Part.Parent=nil
  3891. table.remove(Effects,e)
  3892. end
  3893. --[[Mesh=Thing[7]
  3894. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3895. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  3896. end
  3897. if Thing[2]=="showDamage" then
  3898. if Thing[6]<Thing[5] then
  3899. Thing[6]=Thing[6]+1
  3900. elseif Thing[6]<Thing[7] then
  3901. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  3902. Thing[6]=Thing[6]+1
  3903. elseif Thing[6]<Thing[8] then
  3904. Thing[6]=Thing[6]+1
  3905. elseif Thing[6]<Thing[9] then
  3906. Thing[6]=Thing[6]+1
  3907. Thing[4].position=Thing[4].position+vt(0,.2,0)
  3908. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  3909. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  3910. else
  3911. Thing[1].Parent=nil
  3912. table.remove(Effects,e)
  3913. end
  3914. end
  3915. if Thing[2]~="Shoot" and Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="Shoot2" then
  3916. if Thing[1].Transparency<=1 then
  3917. if Thing[2]=="Block1" then
  3918. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3919. Mesh=Thing[7]
  3920. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3921. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3922. elseif Thing[2]=="Block2" then
  3923. Thing[1].CFrame=Thing[1].CFrame
  3924. Mesh=Thing[7]
  3925. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3926. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3927. elseif Thing[2]=="Block3" then
  3928. --Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3929. Thing[8].C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*Thing[9]
  3930. Mesh=Thing[7]
  3931. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3932. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3933. elseif Thing[2]=="Cylinder" then
  3934. Mesh=Thing[7]
  3935. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3936. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3937. elseif Thing[2]=="Cylinder2" then
  3938. Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
  3939. Mesh=Thing[7]
  3940. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3941. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3942. elseif Thing[2]=="Blood" then
  3943. Mesh=Thing[7]
  3944. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3945. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3946. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3947. elseif Thing[2]=="Elec" then
  3948. Mesh=Thing[10]
  3949. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3950. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3951. elseif Thing[2]=="Disappear" then
  3952. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3953. end
  3954. else
  3955. Part.Parent=nil
  3956. table.remove(Effects,e)
  3957. end
  3958. end
  3959. end
  3960. --end
  3961. end
  3962. end
  3963. end
  3964. fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
  3965. fenbarmana4.Text="Mana("..mana.Value..")"
  3966. fenbarhp2.BackgroundColor3=Color3.new(Humanoid.Health/Humanoid.MaxHealth,0,0)
  3967. fenbarhp2:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0),nil,1,0.4,true)
  3968. fenbarhp3.Text="("..math.floor(Humanoid.Health)..")"
  3969. fenbarblock2:TweenSize(UDim2.new(.4,0,-4*overload/100,0),nil,1,0.4,true)
  3970. fenbarblock3.Text="Overload("..overload..")"
  3971. fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
  3972. fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
  3973. fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
  3974. fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
  3975. for _,c in pairs(Decrease:children()) do
  3976. if c:findFirstChild("Duration")~=nil then
  3977. c.Duration.Value=c.Duration.Value-1
  3978. if c.Duration.Value<=0 then
  3979. c.Parent=nil
  3980. end
  3981. end
  3982. if c.Name=="DecreaseAtk" then
  3983. decreaseatk=decreaseatk+c.Value
  3984. elseif c.Name=="DecreaseDef" then
  3985. decreasedef=decreasedef+c.Value
  3986. elseif c.Name=="DecreaseMvmt" then
  3987. decreasemvmt=decreasemvmt+c.Value
  3988. end
  3989. end
  3990. Atk.Value=1-decreaseatk
  3991. if Atk.Value<=0 then
  3992. Atk.Value=0
  3993. end
  3994. Def.Value=1-decreasedef
  3995. if Def.Value<=0 then
  3996. Def.Value=0.01
  3997. end
  3998. Mvmt.Value=1-decreasemvmt
  3999. if Mvmt.Value<=0 then
  4000. Mvmt.Value=0
  4001. end
  4002. decreaseatk=0
  4003. decreasedef=0
  4004. decreasemvmt=0
  4005. AtkVal=Atk.Value*100
  4006. AtkVal=math.floor(AtkVal)
  4007. AtkVal=AtkVal/100
  4008. fenbardamage.Text="Damage\
  4009. ("..(AtkVal)..")"
  4010. DefVal=Def.Value*100
  4011. DefVal=math.floor(DefVal)
  4012. DefVal=DefVal/100
  4013. fenbardef.Text="Defense\
  4014. ("..(DefVal)..")"
  4015. MvmtVal=Mvmt.Value*100
  4016. MvmtVal=math.floor(MvmtVal)
  4017. MvmtVal=MvmtVal/100
  4018. if Rooted.Value==true then MvmtVal=0 end
  4019. fenbarmove.Text="Walkspeed\
  4020. ("..(MvmtVal)..")"
  4021. if Stun.Value>=StunT.Value then
  4022. fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
  4023. else
  4024. fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/StunT.Value,0),nil,1,0.4,true)
  4025. end
  4026. fenbarstun3.Text="Stun("..Stun.Value..")"
  4027. if mana.Value>=100 then
  4028. mana.Value=100
  4029. else
  4030. if mananum<=manainc then
  4031. mananum=mananum+1
  4032. else
  4033. mananum=0
  4034. mana.Value=mana.Value+1
  4035. end
  4036. end
  4037. for i=1,#cooldowns do
  4038. if cooldowns[i]>=cooldownmax then
  4039. cooldowns[i]=cooldownmax
  4040. else
  4041. cooldowns[i]=cooldowns[i]+cooldownsadd[i]
  4042. end
  4043. end
  4044. end
  4045.  
  4046.  
  4047. --[[
  4048. Copyrighted (C) Fenrier 2015
  4049. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement