Advertisement
memberhero

Sazchanic

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