WDGASTER132

Untitled

Aug 17th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.86 KB | None | 0 0
  1. --[[
  2. Cyber Bruiser Class Made by Fenrier.
  3. ]]
  4. Player=game:GetService("Players").LocalPlayer
  5. Character=Player.Character
  6. PlayerGui=Player.PlayerGui
  7. Backpack=Player.Backpack
  8. Torso=Character.Torso
  9. Head=Character.Head
  10. Humanoid=Character.Humanoid
  11. LeftArm=Character["Left Arm"]
  12. LeftLeg=Character["Left Leg"]
  13. RightArm=Character["Right Arm"]
  14. RightLeg=Character["Right Leg"]
  15. LS=Torso["Left Shoulder"]
  16. LH=Torso["Left Hip"]
  17. RS=Torso["Right Shoulder"]
  18. RH=Torso["Right Hip"]
  19. Neck=Torso.Neck
  20. it=Instance.new
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  28. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  29. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  30. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RootPart=Character.HumanoidRootPart
  32. RootJoint=RootPart.RootJoint
  33. RootCF=euler(-1.57,0,3.14)
  34. attack = false
  35. attackdebounce = false
  36. MMouse=nil
  37. combo=0
  38. mana=0
  39. local idle=0
  40. local Anim="Idle"
  41. local orbnum=0
  42. local Mode="Normal"
  43. --player
  44. player=nil
  45. --save shoulders
  46. RSH, LSH=nil, nil
  47. --welds
  48. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  49. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  50. LH=Torso["Left Hip"]
  51. RH=Torso["Right Hip"]
  52. Charge=0
  53. TorsoColor=Torso.BrickColor.Color
  54. Col1=1-Torso.Color.r
  55. Col2=1-Torso.Color.g
  56. Col3=1-Torso.Color.b
  57. InverseCol=BrickColor.new(Color3.new(Col1,Col2,Col3))
  58. upvel=Instance.new("BodyVelocity")
  59. local hitbeat=nil
  60.  
  61. function swait(num)
  62. if num==0 or num==nil then
  63. game:service'RunService'.RenderStepped:wait()
  64. else
  65. for i=0,num do
  66. game:service'RunService'.RenderStepped:wait()
  67. end
  68. end
  69. end
  70.  
  71. if Character:findFirstChild("Kaltos Arm",true) ~= nil then
  72. Character:findFirstChild("Kaltos Arm",true).Parent = nil
  73. end
  74. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  75. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  76. end
  77.  
  78.  
  79. function NoOutline(Part)
  80. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  81. end
  82.  
  83. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  84. local fp=it("Part")
  85. fp.formFactor=formfactor
  86. fp.Parent=parent
  87. fp.Reflectance=reflectance
  88. fp.Transparency=transparency
  89. fp.CanCollide=false
  90. fp.Locked=true
  91. fp.BrickColor=brickcolor
  92. fp.Name=name
  93. fp.Size=size
  94. fp.Position=Torso.Position
  95. NoOutline(fp)
  96. fp.Material="SmoothPlastic"
  97. fp:BreakJoints()
  98. return fp
  99. end
  100.  
  101. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  102. local mesh=it(Mesh)
  103. mesh.Parent=part
  104. if Mesh=="SpecialMesh" then
  105. mesh.MeshType=meshtype
  106. mesh.MeshId=meshid
  107. end
  108. mesh.Offset=offset
  109. mesh.Scale=scale
  110. return mesh
  111. end
  112.  
  113. function weld(parent,part0,part1,c0)
  114. local weld=it("Weld")
  115. weld.Parent=parent
  116. weld.Part0=part0
  117. weld.Part1=part1
  118. weld.C0=c0
  119. return weld
  120. end
  121.  
  122. local Color1=Torso.BrickColor
  123.  
  124. local fengui=it("GuiMain")
  125. fengui.Parent=Player.PlayerGui
  126. fengui.Name="WeaponGUI"
  127. local fenframe=it("Frame")
  128. fenframe.Parent=fengui
  129. fenframe.BackgroundColor3=Color3.new(255,255,255)
  130. fenframe.BackgroundTransparency=1
  131. fenframe.BorderColor3=Color3.new(17,17,17)
  132. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  133. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  134. local fenbarmana1=it("TextLabel")
  135. fenbarmana1.Parent=fenframe
  136. fenbarmana1.Text=" "
  137. fenbarmana1.BackgroundTransparency=0
  138. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  139. fenbarmana1.SizeConstraint="RelativeXY"
  140. fenbarmana1.TextXAlignment="Center"
  141. fenbarmana1.TextYAlignment="Center"
  142. fenbarmana1.Position=UDim2.new(0,0,0,0)
  143. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  144. local fenbarmana2=it("TextLabel")
  145. fenbarmana2.Parent=fenframe
  146. fenbarmana2.Text=" "
  147. fenbarmana2.BackgroundTransparency=0
  148. fenbarmana2.BackgroundColor3=Torso.Color
  149. fenbarmana2.SizeConstraint="RelativeXY"
  150. fenbarmana2.TextXAlignment="Center"
  151. fenbarmana2.TextYAlignment="Center"
  152. fenbarmana2.Position=UDim2.new(0,0,0,0)
  153. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  154. local fenbarmana3=it("TextLabel")
  155. fenbarmana3.Parent=fenframe
  156. fenbarmana3.Text=" "
  157. fenbarmana3.BackgroundTransparency=0
  158. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  159. fenbarmana3.SizeConstraint="RelativeXY"
  160. fenbarmana3.TextXAlignment="Center"
  161. fenbarmana3.TextYAlignment="Center"
  162. fenbarmana3.Position=UDim2.new(0,0,0,0)
  163. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  164. local fenbarmana4=it("TextLabel")
  165. fenbarmana4.Parent=fenframe
  166. fenbarmana4.Text="Energy("..mana..")"
  167. fenbarmana4.BackgroundTransparency=1
  168. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  169. fenbarmana4.SizeConstraint="RelativeXY"
  170. fenbarmana4.TextXAlignment="Center"
  171. fenbarmana4.TextYAlignment="Center"
  172. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  173. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  174. fenbarmana4.FontSize="Size9"
  175. fenbarmana4.TextStrokeTransparency=0
  176. fenbarmana4.TextColor=BrickColor.new("White")
  177.  
  178. local modelzorz=Instance.new("Model")
  179. modelzorz.Parent=Character
  180. modelzorz.Name="Kaltos Arm"
  181.  
  182. --local prt1=part(3,modelzorz,0,0,Torso.BrickColor,"Handle",vt())
  183. local prt1=part(3,modelzorz,0,0,BrickColor.new("Black"),"Handle",vt())
  184. local prt2=part(3,modelzorz,0,0,Torso.BrickColor,"Part2",vt())
  185. local prt3=part(3,modelzorz,0,0,Torso.BrickColor,"Part3",vt())
  186. local prt4=part(3,modelzorz,0,0,InverseCol,"Part4",vt())
  187. local prt5=part(3,modelzorz,0,0,InverseCol,"Part5",vt())
  188. local prt6=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part6",vt())
  189. local prt7=part(3,modelzorz,0,0,Torso.BrickColor,"Part7",vt())
  190. local prt10=part(3,modelzorz,0,0,Torso.BrickColor,"Part10",vt())
  191. local prt11=part(3,modelzorz,0,0,InverseCol,"Part11",vt())
  192. local prt12=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part12",vt())
  193. local prt13=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part13",vt())
  194. local prt14=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part14",vt())
  195. local prt15=part(3,modelzorz,0,0,Torso.BrickColor,"Part15",vt())
  196. local prt16=part(3,modelzorz,0,0.5,BrickColor.new("Really black"),"Part16",vt())
  197. local prt17=part(3,modelzorz,0,0.5,BrickColor.new("Really black"),"Part17",vt())
  198. local prt18=part(3,modelzorz,0,0.5,BrickColor.new("Really black"),"Part18",vt())
  199. local prt19=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part19",vt())
  200. local prt20=part(3,modelzorz,0,0,Torso.BrickColor,"Part20",vt())
  201. local prt21=part(3,modelzorz,0,0,Torso.BrickColor,"Part21",vt())
  202. local prt26=part(3,modelzorz,0,0,Torso.BrickColor,"Part26",vt())
  203. local prt27=part(3,modelzorz,0,0,Torso.BrickColor,"Part27",vt())
  204. local prt28=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part28",vt())
  205. local prt29=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part29",vt())
  206. local prt30=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part30",vt())
  207. local prt31=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part31",vt())
  208. local prt32=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part32",vt())
  209. local prt33=part(3,modelzorz,0,0,Torso.BrickColor,"Part33",vt())
  210. local prt34=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part34",vt())
  211. local prt35=part(3,modelzorz,0,0,InverseCol,"Part35",vt())
  212. local prt36=part(3,modelzorz,0,0.5,BrickColor.new("White"),"Part36",vt())
  213. local prt37=part(3,modelzorz,0,0,Torso.BrickColor,"Part37",vt())
  214. local prt38=part(3,modelzorz,0,0,InverseCol,"Part38",vt())
  215. local prt39=part(3,modelzorz,0,0.5,BrickColor.new("White"),"Part39",vt())
  216. local prt40=part(3,modelzorz,0,0,Torso.BrickColor,"Part40",vt())
  217. local prt41=part(3,modelzorz,0,0,InverseCol,"Part41",vt())
  218. local prt42=part(3,modelzorz,0,0.5,BrickColor.new("White"),"Part42",vt())
  219. local prt43=part(3,modelzorz,0,0,Torso.BrickColor,"Part43",vt())
  220. local prt44=part(3,modelzorz,0,0,InverseCol,"Part44",vt())
  221. local prt45=part(3,modelzorz,0,0.5,BrickColor.new("White"),"Part45",vt())
  222. local prt46=part(3,modelzorz,0,0,Torso.BrickColor,"Part46",vt())
  223. local prt47=part(3,modelzorz,0,0,InverseCol,"Part47",vt())
  224. local prt48=part(3,modelzorz,0,1,InverseCol,"Circle Orbs Part",vt())
  225.  
  226. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(5,3.5,3.5))
  227. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(8,3,3))
  228. local msh3=mesh("CylinderMesh",prt3,"","",vt(0,0,0),vt(3,5,3))
  229. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1,5.1,4))
  230. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(1,5.1,4))
  231. local msh6=mesh("CylinderMesh",prt6,"","",vt(0,0,0),vt(5,2.5,5))
  232. local msh7=mesh("CylinderMesh",prt7,"","",vt(0,0,0),vt(5.4,2.4,5.4))
  233. local msh10=mesh("SpecialMesh",prt10,"Sphere","",vt(0,0,0),vt(4,4,4))
  234. local msh11=mesh("BlockMesh",prt11,"","",vt(0,0,0),vt(1,4,4))
  235. local msh12=mesh("CylinderMesh",prt12,"","",vt(0,0,0),vt(3,6,3))
  236. local msh13=mesh("SpecialMesh",prt13,"Sphere","",vt(0,0,0),vt(4,4,4))
  237. local msh14=mesh("SpecialMesh",prt14,"Head","",vt(0,0,0),vt(4,9,4))
  238. local msh15=mesh("CylinderMesh",prt15,"","",vt(0,0,0),vt(7,3,7))
  239. local msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(3,7,3))
  240. local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(2,12,2))
  241. local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(3,3,3))
  242. local msh19=mesh("SpecialMesh",prt19,"Head","",vt(0,0,0),vt(6,5,6))
  243. local msh20=mesh("CylinderMesh",prt20,"","",vt(0,0,0),vt(4,5,4))
  244. local msh21=mesh("SpecialMesh",prt21,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(1.7,1.2,.8))
  245. local msh26=mesh("BlockMesh",prt26,"","",vt(0,0,0),vt(3.5,12,3.5))
  246. local msh27=mesh("SpecialMesh",prt27,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(1,1,1))
  247. local msh28=mesh("CylinderMesh",prt28,"","",vt(0,0,0),vt(3,4,3))
  248. local msh29=mesh("CylinderMesh",prt29,"","",vt(0,0,0),vt(3,4,3))
  249. local msh30=mesh("CylinderMesh",prt30,"","",vt(0,0,0),vt(3,4,3))
  250. local msh31=mesh("CylinderMesh",prt31,"","",vt(0,0,0),vt(3,4,3))
  251. local msh32=mesh("BlockMesh",prt32,"","",vt(0,0,0),vt(3.4,12,3.4))
  252. local msh33=mesh("BlockMesh",prt33,"","",vt(0,0,0),vt(3.5,4,5))
  253. local msh34=mesh("BlockMesh",prt34,"","",vt(0,0,0),vt(3.4,3.9,4.9))
  254. local msh35=mesh("CylinderMesh",prt35,"","",vt(0,0,0),vt(3,4,3))
  255. local msh36=mesh("BlockMesh",prt36,"","",vt(0,0,0),vt(1,1,1))
  256. local msh37=mesh("BlockMesh",prt37,"","",vt(0,0,0),vt(1.5,4,1.5))
  257. local msh38=mesh("SpecialMesh",prt38,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.3,0.8,0.3))
  258. local msh39=mesh("BlockMesh",prt39,"","",vt(0,0,0),vt(1,1,1))
  259. local msh40=mesh("BlockMesh",prt40,"","",vt(0,0,0),vt(1.5,4,1.5))
  260. local msh41=mesh("SpecialMesh",prt41,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.3,0.8,0.3))
  261. local msh42=mesh("BlockMesh",prt42,"","",vt(0,0,0),vt(1,1,1))
  262. local msh43=mesh("BlockMesh",prt43,"","",vt(0,0,0),vt(1.5,4,1.5))
  263. local msh44=mesh("SpecialMesh",prt44,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.3,0.8,0.3))
  264. local msh45=mesh("BlockMesh",prt45,"","",vt(0,0,0),vt(1,1,1))
  265. local msh46=mesh("BlockMesh",prt46,"","",vt(0,0,0),vt(1.5,4,1.5))
  266. local msh47=mesh("SpecialMesh",prt47,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.3,0.8,0.3))
  267. local msh48=mesh("BlockMesh",prt48,"","",vt(0,0,0),vt(8,8,8))
  268.  
  269. local wld1=weld(prt1,prt1,Torso,euler(0,0,0)*cf(0,-0.4,-.7))
  270. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  271. local wld3=weld(prt3,prt3,prt1,euler(1.57,0,0)*cf(0,0,0))
  272. local wld4=weld(prt4,prt4,prt3,euler(0,0.785,0)*cf(0,0,0))
  273. local wld5=weld(prt5,prt5,prt3,euler(0,-0.785,0)*cf(0,0,0))
  274. local wld6=weld(prt6,prt6,prt2,euler(1.57,0,0)*cf(-1,-0.5,0))
  275. local wld7=weld(prt7,prt7,prt6,euler(0,0,0)*cf(-.05,0,-.1))
  276. local wld10=weld(prt10,prt10,prt6,euler(0,0,0)*cf(0,0,0))
  277. local wld11=weld(prt11,prt11,prt10,euler(0,0.785,0)*cf(0,0,0))
  278. local wld12=weld(prt12,prt12,prt2,euler(0,0,1.57)*cf(.7,0.2,0)*euler(0,0,0.4))
  279. local wld13=weld(prt13,prt13,prt12,euler(0,0,0)*cf(0,.6,0)*euler(0,0,0))
  280. local wld14=weld(prt14,prt14,prt13,cf(0,.8,0)*euler(0,0,1))
  281. local wld15=weld(prt15,prt15,prt14,euler(1.5,-.7,0)*cf(0,1.2,0.2))
  282. local wld16=weld(prt16,prt16,prt15,cf(0,1.2,0)*euler(1.57,-.8,0))
  283. local wld17=weld(prt17,prt17,prt16,cf(0,1.2,0)*euler(0,0,0.5)*cf(0,.7,0))
  284. local wld18=weld(prt18,prt18,prt17,euler(0,0,0)*cf(0,1.6,0))
  285. local wld19=weld(prt19,prt19,prt15,euler(0,0,0)*cf(0,0,0))
  286. local wld20=weld(prt20,prt20,prt19,euler(0,0,0)*cf(0,0,0))
  287. local wld21=weld(prt21,prt21,prt15,cf(0.1,0,.5)*euler(0,0.8,0))
  288. local wld26=weld(prt26,prt26,prt17,cf(0,0,0)*euler(0,0,0))
  289. local wld27=weld(prt27,prt27,prt26,euler(0,0,0)*cf(0,-1.2,0))
  290. local wld28=weld(prt28,prt28,prt26,euler(0.7,0,0)*cf(0,-.1,0.3))
  291. local wld29=weld(prt29,prt29,prt26,euler(-0.7,0,0)*cf(0,-.1,-0.3))
  292. local wld30=weld(prt30,prt30,prt26,euler(0,0,-0.7)*cf(0.3,-.1,0))
  293. local wld31=weld(prt31,prt31,prt26,euler(0,0,0.7)*cf(-0.3,-.1,0))
  294. local wld32=weld(prt32,prt32,prt26,euler(0,0,0)*cf(0.1,0,0))
  295. local wld33=weld(prt33,prt33,prt18,euler(0,0,0)*cf(0,0,0))
  296. local wld34=weld(prt34,prt34,prt33,euler(0,0,0)*cf(0.1,0,0))
  297. local wld35=weld(prt35,prt35,prt33,euler(0,0,1.57)*cf(0.1,0,0))
  298. local wld36=weld(prt36,prt36,prt33,euler(0,0,0)*cf(0,-0.2,-0.5))
  299. local wld37=weld(prt37,prt37,prt36,cf(0,.3,0)*euler(.8,0,1))
  300. local wld38=weld(prt38,prt38,prt37,euler(-1,0,0)*cf(0,.4,0))
  301. local wld39=weld(prt39,prt39,prt33,euler(0,0,0)*cf(0,.4,-0.4))
  302. local wld40=weld(prt40,prt40,prt39,cf(0,.3,0)*euler(0,0,0.5))
  303. local wld41=weld(prt41,prt41,prt40,euler(0,0,.5)*cf(0,.4,0))
  304. local wld42=weld(prt42,prt42,prt33,euler(0,0,0)*cf(0,.4,0))
  305. local wld43=weld(prt43,prt43,prt42,cf(0,.3,0)*euler(0,0,0.5))
  306. local wld44=weld(prt44,prt44,prt43,euler(0,0,.5)*cf(0,.4,0))
  307. local wld45=weld(prt45,prt45,prt33,euler(0,0,0)*cf(0,.4,0.4))
  308. local wld46=weld(prt46,prt46,prt45,cf(0,.3,0)*euler(0,0,0.5))
  309. local wld47=weld(prt47,prt47,prt46,euler(0,0,.5)*cf(0,.4,0))
  310. local wld48=weld(prt48,prt48,prt33,euler(0,0,0)*cf(0,0,0))
  311.  
  312. for i=0,1.5,0.5 do
  313. local prt8=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part8",vt())
  314. local prt9=part(3,modelzorz,0,0,InverseCol,"Part9",vt())
  315. local msh8=mesh("CylinderMesh",prt8,"","",vt(0,0,0),vt(1,6,1))
  316. local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(1.5,1.5,1.5))
  317. local wld8=weld(prt8,prt8,prt7,cf(0,.6,0)*euler(1.57,-0.2-i,0))
  318. local wld9=weld(prt9,prt9,prt8,euler(0,0,0)*cf(0,.3,0))
  319. end
  320.  
  321. for i=0.25,-0.45,-0.35 do
  322. local prt22=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part22",vt())
  323. local prt23=part(3,modelzorz,0,0,InverseCol,"Part23",vt())
  324. local msh22=mesh("CylinderMesh",prt22,"","",vt(0,0,0),vt(2.5,9,2.5))
  325. local msh23=mesh("CylinderMesh",prt23,"","",vt(0,0,0),vt(2.6,2,2.6))
  326. local wld22=weld(prt22,prt22,prt15,euler(0,0,1.57)*cf(.8,0,i)*euler(0,0.6,0))
  327. local wld23=weld(prt23,prt23,prt22,cf(0,0.6,0))
  328. end
  329.  
  330. for i=0,6.28,2.093 do
  331. local prt24=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part24",vt())
  332. local prt25=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part25",vt())
  333. local msh24=mesh("CylinderMesh",prt24,"","",vt(0,0,0),vt(3,7,3))
  334. local msh25=mesh("SpecialMesh",prt25,"Head","",vt(0,0,0),vt(2.8,9,2.8))
  335. local wld24=weld(prt24,prt24,prt16,cf(.2,0,0)*euler(0,i,0))
  336. local wld25=weld(prt25,prt25,prt24,cf(0,0,0))
  337. end
  338.  
  339. Orbs={}
  340. ActiveOrbs={}
  341. for i=1.256,6.28,1.256 do
  342. local orb1=part(3,modelzorz,0,1,InverseCol,"Orb",vt())
  343. local omsh1=mesh("SpecialMesh",orb1,"Sphere","",vt(0,0,0),vt(3,3,3))
  344. local owld1=weld(orb1,orb1,prt48,cf(0,2,0)*euler(i,0,0))
  345. table.insert(Orbs,orb1)
  346. end
  347. print(#Orbs)
  348.  
  349. local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  350. hitbox.Anchored=false
  351.  
  352. if (script.Parent.className~="HopperBin") then
  353. Tool=Instance.new("HopperBin")
  354. Tool.Parent=Backpack
  355. Tool.Name="Kaltos Arm"
  356. script.Parent=Tool
  357. end
  358. Bin=script.Parent
  359.  
  360. local bodvel=Instance.new("BodyVelocity")
  361. local bg=Instance.new("BodyGyro")
  362.  
  363. so = function(id,par,vol,pit)
  364. coroutine.resume(coroutine.create(function()
  365. local sou = Instance.new("Sound",par or workspace)
  366. sou.Volume=vol
  367. sou.Pitch=pit or 1
  368. sou.SoundId=id
  369. swait()
  370. sou:play()
  371. game:GetService("Debris"):AddItem(sou,6)
  372. end))
  373. end
  374.  
  375. function clerp(a,b,t)
  376. local qa = {QuaternionFromCFrame(a)}
  377. local qb = {QuaternionFromCFrame(b)}
  378. local ax, ay, az = a.x, a.y, a.z
  379. local bx, by, bz = b.x, b.y, b.z
  380. local _t = 1-t
  381. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  382. end
  383.  
  384. function QuaternionFromCFrame(cf)
  385. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  386. local trace = m00 + m11 + m22
  387. if trace > 0 then
  388. local s = math.sqrt(1 + trace)
  389. local recip = 0.5/s
  390. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  391. else
  392. local i = 0
  393. if m11 > m00 then
  394. i = 1
  395. end
  396. if m22 > (i == 0 and m00 or m11) then
  397. i = 2
  398. end
  399. if i == 0 then
  400. local s = math.sqrt(m00-m11-m22+1)
  401. local recip = 0.5/s
  402. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  403. elseif i == 1 then
  404. local s = math.sqrt(m11-m22-m00+1)
  405. local recip = 0.5/s
  406. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  407. elseif i == 2 then
  408. local s = math.sqrt(m22-m00-m11+1)
  409. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  410. end
  411. end
  412. end
  413.  
  414. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  415. local xs, ys, zs = x + x, y + y, z + z
  416. local wx, wy, wz = w*xs, w*ys, w*zs
  417. local xx = x*xs
  418. local xy = x*ys
  419. local xz = x*zs
  420. local yy = y*ys
  421. local yz = y*zs
  422. local zz = z*zs
  423. 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))
  424. end
  425.  
  426. function QuaternionSlerp(a, b, t)
  427. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  428. local startInterp, finishInterp;
  429. if cosTheta >= 0.0001 then
  430. if (1 - cosTheta) > 0.0001 then
  431. local theta = math.acos(cosTheta)
  432. local invSinTheta = 1/math.sin(theta)
  433. startInterp = math.sin((1-t)*theta)*invSinTheta
  434. finishInterp = math.sin(t*theta)*invSinTheta
  435. else
  436. startInterp = 1-t
  437. finishInterp = t
  438. end
  439. else
  440. if (1+cosTheta) > 0.0001 then
  441. local theta = math.acos(-cosTheta)
  442. local invSinTheta = 1/math.sin(theta)
  443. startInterp = math.sin((t-1)*theta)*invSinTheta
  444. finishInterp = math.sin(t*theta)*invSinTheta
  445. else
  446. startInterp = t-1
  447. finishInterp = t
  448. end
  449. end
  450. 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
  451. end
  452.  
  453. function hideanim()
  454. equipped=false
  455. for i=0,1,0.1 do
  456. swait()
  457. wld37.C0=clerp(wld37.C0,cf(0,.3,0)*euler(0,0,1),.3)
  458. wld38.C0=clerp(wld38.C0,euler(-1.5,0,0)*cf(0,.4,0),.3)
  459. wld40.C0=clerp(wld40.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  460. wld41.C0=clerp(wld41.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  461. wld43.C0=clerp(wld43.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  462. wld44.C0=clerp(wld44.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  463. wld46.C0=clerp(wld46.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  464. wld47.C0=clerp(wld47.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  465. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,0,1),.3)
  466. wld15.C0=clerp(wld15.C0,euler(1.5,-.7,0)*cf(0,1.2,0.2),.3)
  467. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.3)
  468. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0.5)*cf(0,.7,0),.3)
  469. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  470. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  471. Torso.Neck.C1=clerp(Torso.Neck.C1,necko2*euler(0,0,0),.4)
  472. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  473. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  474. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  475. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  476. RH.C0=clerp(RH.C0,RHC0,.2)
  477. RH.C1=clerp(RH.C1,RHC1,.2)
  478. LH.C0=clerp(LH.C0,LHC0,.2)
  479. LH.C1=clerp(LH.C1,LHC1,.2)
  480. end
  481. end
  482.  
  483. function equipanim()
  484. equipped=true
  485. for i=0,1,0.1 do
  486. swait()
  487. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  488. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  489. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.1),.3)
  490. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  491. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.1),.3)
  492. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  493. end
  494. end
  495.  
  496. function attackone()
  497. attack=true
  498. for i=0,1,0.1 do
  499. swait()
  500. wld37.C0=clerp(wld37.C0,cf(0,.3,0)*euler(0,0,1),.3)
  501. wld38.C0=clerp(wld38.C0,euler(-1.5,0,0)*cf(0,.4,0),.3)
  502. wld40.C0=clerp(wld40.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  503. wld41.C0=clerp(wld41.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  504. wld43.C0=clerp(wld43.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  505. wld44.C0=clerp(wld44.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  506. wld46.C0=clerp(wld46.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  507. wld47.C0=clerp(wld47.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  508. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,0,0),.3)
  509. wld15.C0=clerp(wld15.C0,euler(1.4,-2.7,0.5)*cf(0,1.2,0.2),.3)
  510. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.3)
  511. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0.2)*cf(0,.7,0),.3)
  512. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1),.3)
  513. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1),.3)
  514. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.5),.3)
  515. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  516. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,0,1),.3)
  517. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  518. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  519. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  520. end
  521. swait(5)
  522. hitbox.Parent=modelzorz
  523. hitbox.Size=vt(2,5,2)
  524. hitbox.Transparency=1
  525. hitbox.CFrame=prt26.CFrame
  526. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,9,math.random(30,40),"Normal",RootPart,.5,1) end)
  527. so("http://roblox.com/asset/?id=169445092",prt26,1,.7)
  528. for i=0,1,0.05 do
  529. swait()
  530. hitbox.CFrame=prt26.CFrame
  531. wld15.C0=clerp(wld15.C0,euler(-1.4,3,-1.3)*cf(0,1.2,0.2),.2)
  532. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0)*cf(0,.7,0),.2)
  533. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.25)
  534. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.57),.25)
  535. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.3),.2)
  536. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  537. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57),.2)
  538. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  539. end
  540. con1:disconnect()
  541. hitbox.Parent=nil
  542. swait(5)
  543. attack=false
  544. end
  545.  
  546. function attacktwo()
  547. attack=true
  548. for i=0,1,0.1 do
  549. swait()
  550. wld37.C0=clerp(wld37.C0,cf(0,.3,0)*euler(0,0,1),.3)
  551. wld38.C0=clerp(wld38.C0,euler(-1.5,0,0)*cf(0,.4,0),.3)
  552. wld40.C0=clerp(wld40.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  553. wld41.C0=clerp(wld41.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  554. wld43.C0=clerp(wld43.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  555. wld44.C0=clerp(wld44.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  556. wld46.C0=clerp(wld46.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  557. wld47.C0=clerp(wld47.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  558. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(-.5,-.5,.5),.3)
  559. wld15.C0=clerp(wld15.C0,euler(3,-1,1)*cf(0,1.2,0.2),.3)
  560. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.3)
  561. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0.8)*cf(0,.7,0),.3)
  562. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.3),.3)
  563. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.3),.3)
  564. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.3),.3)
  565. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  566. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(0,-2.5,-1.57),.3)
  567. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  568. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  569. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  570. end
  571. swait(5)
  572. hitbox.Parent=modelzorz
  573. hitbox.Size=vt(2,5,2)
  574. hitbox.Transparency=1
  575. hitbox.CFrame=prt26.CFrame
  576. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,11,math.random(30,40),"Normal",RootPart,.5,1) end)
  577. so("http://roblox.com/asset/?id=169445073",prt26,1,.8)
  578. for i=0,1,0.07 do
  579. swait()
  580. hitbox.CFrame=prt26.CFrame
  581. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(-.5,-.5,-.5),.2)
  582. wld15.C0=clerp(wld15.C0,euler(2,.5,2)*cf(0,1.2,0.2),.2)
  583. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.2)
  584. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0.2)*cf(0,.7,0),.2)
  585. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.5),.2)
  586. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.5),.2)
  587. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,1,1.3),.2)
  588. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  589. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.2)
  590. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  591. end
  592. con1:disconnect()
  593. hitbox.Parent=nil
  594. swait(5)
  595. attack=false
  596. end
  597.  
  598. function attackthree()
  599. attack=true
  600. for i=0,1,0.08 do
  601. swait()
  602. wld37.C0=clerp(wld37.C0,cf(0,.3,0)*euler(0,0,1),.3)
  603. wld38.C0=clerp(wld38.C0,euler(-1.5,0,0)*cf(0,.4,0),.3)
  604. wld40.C0=clerp(wld40.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  605. wld41.C0=clerp(wld41.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  606. wld43.C0=clerp(wld43.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  607. wld44.C0=clerp(wld44.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  608. wld46.C0=clerp(wld46.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  609. wld47.C0=clerp(wld47.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  610. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,0,1),.25)
  611. wld15.C0=clerp(wld15.C0,euler(0,3,-1.5)*cf(0,1.2,0.2),.25)
  612. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.25)
  613. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0.2,-1.57,0)*cf(0,.7,0),.25)
  614. Neck.C0=clerp(Neck.C0,necko*euler(-0.4,0,.5),.25)
  615. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.25)
  616. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.5),.25)
  617. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.25)
  618. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.5,0,-.5),.25)
  619. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.25)
  620. end
  621. Humanoid.WalkSpeed=0
  622. hitbox.Parent=modelzorz
  623. hitbox.Size=vt(2,5,2)
  624. hitbox.Transparency=1
  625. hitbox.CFrame=prt26.CFrame
  626. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,12,16,math.random(30,40),"Normal",RootPart,.5,1) end)
  627. so("http://roblox.com/asset/?id=169445121",prt26,1,.8)
  628. for i=0,1,0.15 do
  629. swait()
  630. hitbox.CFrame=prt26.CFrame
  631. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(-1.5,0,1),.35)
  632. wld15.C0=clerp(wld15.C0,euler(0,-2.6,-1.5)*cf(0,1.2,0.2),.35)
  633. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.35)
  634. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(1,-1.57,0)*cf(0,.7,0),.35)
  635. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,.1),.35)
  636. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0,0,-0.1),.35)
  637. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.8),.35)
  638. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  639. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-.2),.35)
  640. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
  641. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.35)
  642. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.35)
  643. end
  644. con1:disconnect()
  645. hitbox.Parent=nil
  646. hit,pos=rayCast(prt33.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  647. if hit~=nil then
  648. local ref=part(3,workspace,0,1,hit.BrickColor,"Effect",vt())
  649. ref.Anchored=true
  650. ref.CFrame=cf(pos)
  651. game:GetService("Debris"):AddItem(ref,1)
  652. for i=1,5 do
  653. Col=hit.BrickColor
  654. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  655. groundpart.Anchored=true
  656. groundpart.Material=hit.Material
  657. groundpart.CanCollide=true
  658. groundpart.CFrame=cf(pos)*cf(math.random(-300,300)/100,0,math.random(-300,300)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  659. game:GetService("Debris"):AddItem(groundpart,3)
  660. end
  661. so("http://roblox.com/asset/?id=157878578",ref,.7,2)
  662. MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
  663. MagniDamage(ref,13,14,23,math.random(40,50),"Normal")
  664. end
  665. swait(10)
  666. Humanoid.WalkSpeed=16
  667. attack=false
  668. end
  669.  
  670. function KaltosBeat()
  671. attack=true
  672. for i=0,1,0.1 do
  673. swait()
  674. wld37.C0=clerp(wld37.C0,cf(0,.3,0)*euler(1,0,1),.3)
  675. wld38.C0=clerp(wld38.C0,euler(-1.5,0,0)*cf(0,.4,0),.3)
  676. wld40.C0=clerp(wld40.C0,cf(0,.3,0)*euler(.5,0,.7),.3)
  677. wld41.C0=clerp(wld41.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  678. wld43.C0=clerp(wld43.C0,cf(0,.3,0)*euler(0,0,.7),.3)
  679. wld44.C0=clerp(wld44.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  680. wld46.C0=clerp(wld46.C0,cf(0,.3,0)*euler(-.5,0,.7),.3)
  681. wld47.C0=clerp(wld47.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  682. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(1.5,0,1.5),.3)
  683. wld15.C0=clerp(wld15.C0,euler(1.57,0,.4)*cf(0,1.2,0.2),.3)
  684. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.3)
  685. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0.8)*cf(0,.7,0),.3)
  686. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(.2,0,.5),.3)
  687. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-.5),.4)
  688. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,.4),.4)
  689. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  690. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.2,0,-.8),.4)
  691. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  692. RH.C0=clerp(RH.C0,cf(1.1,-.4,-.1)*euler(0,1.57,0)*euler(-.1,-.5,.2),.3)
  693. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,-.5,.4),.3)
  694. end
  695. so("http://roblox.com/asset/?id=244482337",LeftArm,1,.8)
  696. local num=0
  697. while holdz==true do
  698. swait()
  699. if num<40 and mana>=num then
  700. fenbarmana3:TweenSize(UDim2.new(4*num/100,0,0.2,0),nil,1,0.4,true)
  701. num=num+.4
  702. end
  703. if num>=40 then
  704. holdz=false
  705. end
  706. Humanoid.WalkSpeed=5
  707. MagicBlock(InverseCol,prt35.CFrame*cf(0,-1,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,.5,.5,.5,.05,2)
  708. end
  709. if num>20 then
  710. print(num)
  711. mana=mana-math.floor(num)
  712. fenbarmana3:TweenSize(UDim2.new(4*0,0,0.2,0),nil,1,0.4,true)
  713. Humanoid.WalkSpeed=16
  714. upvel.Parent=Torso
  715. upvel.maxForce=Vector3.new(4e+005,4e+005,4e+005)*2
  716. if num>=40 then
  717. velcf=(Head.CFrame.lookVector*(num*2.5))+(vt(0,1,0)*(num*2.5))
  718. else
  719. velcf=(Head.CFrame.lookVector*(num*2.5))+(vt(0,1,0)*(num*1.5))
  720. end
  721. so("http://roblox.com/asset/?id=138210320",prt20,1,1)
  722. MagicBlock(InverseCol,prt15.CFrame,1,1,1,1.5,1.5,1.5,.02,1)
  723. MagicCircle(InverseCol,prt15.CFrame,1,1,1,8,8,8,.1)
  724. for i=0,1,0.05 do
  725. swait()
  726. upvel.velocity=velcf
  727. wld37.C0=clerp(wld37.C0,cf(0,.3,0)*euler(0,0,1),.3)
  728. wld38.C0=clerp(wld38.C0,euler(-1.5,0,0)*cf(0,.4,0),.3)
  729. wld40.C0=clerp(wld40.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  730. wld41.C0=clerp(wld41.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  731. wld43.C0=clerp(wld43.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  732. wld44.C0=clerp(wld44.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  733. wld46.C0=clerp(wld46.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  734. wld47.C0=clerp(wld47.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  735. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,0,1),.25)
  736. wld15.C0=clerp(wld15.C0,euler(0,3,-1.5)*cf(0,1.2,0.2),.25)
  737. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.25)
  738. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0.2,-1.57,0)*cf(0,.7,0),.25)
  739. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3),.25)
  740. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.3),.25)
  741. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.5),.25)
  742. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.25)
  743. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.5,0,-.5),.25)
  744. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.25)
  745. RH.C0=clerp(RH.C0,cf(1.1,-.4,-.1)*euler(0,1.57,0)*euler(-.1,0,.2),.3)
  746. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,0,.4),.3)
  747. end
  748. swait(10)
  749. upvel.Parent=nil
  750. upvel.velocity=vt(0,0,0)
  751. hitbeat=nil
  752. while hitbeat==nil do
  753. swait()
  754. hitbeat,posbeat=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  755. end
  756. print("end")
  757. Humanoid.WalkSpeed=0
  758. upvel.velocity=vt(0,0,0)
  759. upvel.Parent=nil
  760. for i=0,1,0.2 do
  761. swait()
  762. Torso.Velocity=RootPart.CFrame.lookVector*0
  763. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(-1.5,0,1),.5)
  764. wld15.C0=clerp(wld15.C0,euler(0,-2.6,-1.5)*cf(0,1.2,0.2),.5)
  765. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-1,0),.5)
  766. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(1,-1.57,0)*cf(0,.7,0),.5)
  767. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,.1),.5)
  768. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0,0,-0.1),.5)
  769. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.8),.5)
  770. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  771. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-.2),.5)
  772. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  773. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.5)
  774. LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.5)
  775. end
  776. hit,pos=rayCast(prt33.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  777. if hit~=nil then
  778. local ref=part(3,workspace,0,1,hit.BrickColor,"Effect",vt())
  779. ref.Anchored=true
  780. ref.CFrame=cf(pos)
  781. game:GetService("Debris"):AddItem(ref,1)
  782. for i=1,10 do
  783. Col=hit.BrickColor
  784. local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  785. groundpart.Anchored=true
  786. groundpart.Material=hit.Material
  787. groundpart.CanCollide=true
  788. groundpart.CFrame=cf(pos)*cf(math.random(-700,700)/100,0,math.random(-700,700)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  789. game:GetService("Debris"):AddItem(groundpart,3)
  790. end
  791. so("http://roblox.com/asset/?id=157878578",ref,.7,1)
  792. so("http://roblox.com/asset/?id=2760979",ref,1,.5)
  793. MagicWave(BrickColor.new("White"),cf(pos),1,1,1,1,1,1,0.04)
  794. MagicBlock(BrickColor.new("White"),cf(pos),1,1,1,4,4,4,0.05,1)
  795. MagicBlock(BrickColor.new("White"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2,2,2,0.02,2)
  796. if Mode=="Transcend" then
  797. Humanoid.Health=Humanoid.Health-math.random(5,15)
  798. num=#ActiveOrbs
  799. table.remove(ActiveOrbs,num)
  800. orbnum=orbnum-1
  801. so("http://roblox.com/asset/?id=138210320",prt20,1,.8)
  802. so("http://roblox.com/asset/?id=183763515",prt20,1,1)
  803. MagniDamage(ref,17,13,16,math.random(40,50),"Knockdown")
  804. MagicWave(InverseCol,cf(pos),1,1,1,.5,.5,.5,0.02)
  805. coroutine.resume(coroutine.create(function()
  806. for i=1,20 do
  807. swait(1)
  808. if i%4==0 then
  809. MagniDamage(ref,17,13,16,math.random(40,50),"Knockdown")
  810. end
  811. MagicBlock(InverseCol,cf(pos)*cf(math.random(-700,700)/100,math.random(-200,200)/100,math.random(-700,700)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,4,4,4,0.05,2)
  812. end
  813. end))
  814. else
  815. MagniDamage(ref,10,20,40,math.random(30,60),"Knockdown")
  816. end
  817. end
  818. n=0
  819. dis=.05
  820. for i=0,1.5,0.02 do
  821. swait()
  822. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-1-dis,0),1)
  823. n=n+1
  824. if n>=2 then
  825. n=0
  826. if dis==.05 then
  827. dis=0
  828. else
  829. dis=.05
  830. end
  831. end
  832. end
  833. end
  834. Humanoid.WalkSpeed=16
  835. fenbarmana3:TweenSize(UDim2.new(4*0,0,0.2,0),nil,1,.2,true)
  836. attack=false
  837. end
  838.  
  839. function EnergyTranscend()
  840. attack=true
  841. so("http://roblox.com/asset/?id=203691326",prt33,1,1)
  842. for i=0,1,0.1 do
  843. swait()
  844. MagicBlock(InverseCol,prt33.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),0,0,0,1,1,1,.05,2)
  845. wld37.C0=clerp(wld37.C0,cf(0,.3,0)*euler(0,0,1),.3)
  846. wld38.C0=clerp(wld38.C0,euler(-1.5,0,0)*cf(0,.4,0),.3)
  847. wld40.C0=clerp(wld40.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  848. wld41.C0=clerp(wld41.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  849. wld43.C0=clerp(wld43.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  850. wld44.C0=clerp(wld44.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  851. wld46.C0=clerp(wld46.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  852. wld47.C0=clerp(wld47.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  853. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,-1,0)*euler(-1.5,0,0),.2)
  854. wld15.C0=clerp(wld15.C0,euler(0,-1.5,0)*cf(0,1.2,0.4),.2)
  855. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.2)
  856. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,-1.57,-0.5)*cf(0,.7,0),.2)
  857. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0,0,1.2),.4)
  858. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-1.2),.4)
  859. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,0,.8),.4)
  860. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  861. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.6,0,-1),.4)
  862. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  863. RH.C0=clerp(RH.C0,cf(1,-.8,.5)*euler(0,1.57,0)*euler(.2,-1,0),.3)
  864. LH.C0=clerp(LH.C0,cf(-.8,-.8,-.5)*euler(0,-1.57,0)*euler(-.5,-1,0),.3)
  865. end
  866. for i=0,1,0.05 do
  867. swait()
  868. MagicBlock(InverseCol,prt33.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),0,0,0,1,1,1,.05,2)
  869. end
  870. Mode="Transcend"
  871. attack=false
  872. end
  873.  
  874. function TranscendAttack()
  875. attack=true
  876. num=#ActiveOrbs
  877. table.remove(ActiveOrbs,num)
  878. orbnum=orbnum-1
  879. so("http://roblox.com/asset/?id=138210320",prt20,.6,1.4)
  880. so("http://roblox.com/asset/?id=183763512",prt20,1,.8)
  881. MagicBlock(InverseCol,prt15.CFrame,1,1,1,1.5,1.5,1.5,.02,1)
  882. MagicCircle(InverseCol,prt15.CFrame,1,1,1,8,8,8,.1)
  883. so("http://roblox.com/asset/?id=169445092",prt26,1,.6)
  884. vel=Instance.new("BodyVelocity")
  885. vel.Parent=Torso
  886. vel.maxForce=Vector3.new(4e+005,4e+005,4e+005)*2
  887. vel.velocity=Head.CFrame.lookVector*150
  888. hitbox.Parent=modelzorz
  889. hitbox.Size=vt(2,5,2)
  890. hitbox.Transparency=1
  891. hitbox.CFrame=prt26.CFrame
  892. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,0,"Normal",RootPart,.5,1) end)
  893. for i=0,1,0.2 do
  894. swait()
  895. hitbox.CFrame=prt26.CFrame
  896. wld37.C0=clerp(wld37.C0,cf(0,.3,0)*euler(0,0,1),.4)
  897. wld38.C0=clerp(wld38.C0,euler(-1.5,0,0)*cf(0,.4,0),.4)
  898. wld40.C0=clerp(wld40.C0,cf(0,.3,0)*euler(0,0,1.5),.4)
  899. wld41.C0=clerp(wld41.C0,euler(0,0,1.5)*cf(0,.4,0),.4)
  900. wld43.C0=clerp(wld43.C0,cf(0,.3,0)*euler(0,0,1.5),.4)
  901. wld44.C0=clerp(wld44.C0,euler(0,0,1.5)*cf(0,.4,0),.4)
  902. wld46.C0=clerp(wld46.C0,cf(0,.3,0)*euler(0,0,1.5),.4)
  903. wld47.C0=clerp(wld47.C0,euler(0,0,1.5)*cf(0,.4,0),.4)
  904. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,0,0),.4)
  905. wld15.C0=clerp(wld15.C0,euler(-1.4,3,-1.3)*cf(0,1.2,0.2),.4)
  906. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.4)
  907. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0)*cf(0,.7,0),.4)
  908. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0,0,-1.57),.4)
  909. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.57),.4)
  910. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.4),.4)
  911. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  912. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57),.4)
  913. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  914. RH.C0=clerp(RH.C0,cf(.9,-.8,-.2)*euler(0,1.57,0)*euler(-.4,1,0),.3)
  915. LH.C0=clerp(LH.C0,cf(-1.3,-.8,.2)*euler(0,-1.57,0)*euler(.2,1,0),.3)
  916. end
  917. vel.Parent=nil
  918. for i=0,1,0.1 do
  919. swait()
  920. hitbox.CFrame=prt26.CFrame
  921. end
  922. hitbox.Parent=nil
  923. con1:disconnect()
  924. attack=false
  925. end
  926.  
  927. function NegConvert()
  928. attack=true
  929. so("http://roblox.com/asset/?id=203691378",LeftArm,1,1.4)
  930. for i=0,1,0.1 do
  931. swait()
  932. MagicBlock(InverseCol,LeftArm.CFrame*cf(0,-1,0),0,0,0,1,1,1,.1,1)
  933. wld37.C0=clerp(wld37.C0,cf(0,.3,0)*euler(1,0,1),.3)
  934. wld38.C0=clerp(wld38.C0,euler(-1.5,0,0)*cf(0,.4,0),.3)
  935. wld40.C0=clerp(wld40.C0,cf(0,.3,0)*euler(.5,0,.7),.3)
  936. wld41.C0=clerp(wld41.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  937. wld43.C0=clerp(wld43.C0,cf(0,.3,0)*euler(0,0,.7),.3)
  938. wld44.C0=clerp(wld44.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  939. wld46.C0=clerp(wld46.C0,cf(0,.3,0)*euler(-.5,0,.7),.3)
  940. wld47.C0=clerp(wld47.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  941. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(1,-1,0),.2)
  942. wld15.C0=clerp(wld15.C0,euler(2,0,.6)*cf(0,1.2,0),.2)
  943. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.2)
  944. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,1)*cf(0,.7,0),.2)
  945. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  946. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,.5),.4)
  947. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,.2),.4)
  948. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  949. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,-.3),.4)
  950. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  951. RH.C0=clerp(RH.C0,RHC0,.2)
  952. RH.C1=clerp(RH.C1,RHC1,.2)
  953. LH.C0=clerp(LH.C0,LHC0,.2)
  954. LH.C1=clerp(LH.C1,LHC1,.2)
  955. end
  956. for i=0,1,0.05 do
  957. swait()
  958. MagicBlock(InverseCol,LeftArm.CFrame*cf(0,-1,0),0,0,0,1,1,1,.1,1)
  959. end
  960. orbnum=orbnum+1
  961. table.insert(ActiveOrbs,Orbs[orbnum])
  962. so("http://roblox.com/asset/?id=183763493",prt33,1,1)
  963. MagicBlock(InverseCol,prt33.CFrame,0,0,0,2,2,2,.05,1)
  964. swait(10)
  965. attack=false
  966. end
  967.  
  968. function KaltosWave()
  969. attack=true
  970. for i=0,1,0.1 do
  971. swait()
  972. wld37.C0=clerp(wld37.C0,cf(0,.3,0)*euler(0,0,1),.3)
  973. wld38.C0=clerp(wld38.C0,euler(-1.5,0,0)*cf(0,.4,0),.3)
  974. wld40.C0=clerp(wld40.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  975. wld41.C0=clerp(wld41.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  976. wld43.C0=clerp(wld43.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  977. wld44.C0=clerp(wld44.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  978. wld46.C0=clerp(wld46.C0,cf(0,.3,0)*euler(0,0,1.5),.3)
  979. wld47.C0=clerp(wld47.C0,euler(0,0,1.5)*cf(0,.4,0),.3)
  980. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(.5,0,1),.3)
  981. wld15.C0=clerp(wld15.C0,euler(0,-2.3,-1.57)*cf(0,1.2,0.2),.3)
  982. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.3)
  983. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,1.2)*cf(0,.7,0),.3)
  984. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  985. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-.4,0,.4),.4)
  986. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.4),.4)
  987. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  988. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4),.4)
  989. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  990. RH.C0=clerp(RH.C0,RHC0,.2)
  991. RH.C1=clerp(RH.C1,RHC1,.2)
  992. LH.C0=clerp(LH.C0,LHC0,.2)
  993. LH.C1=clerp(LH.C1,LHC1,.2)
  994. end
  995. Humanoid.WalkSpeed=0
  996. so("http://roblox.com/asset/?id=169445092",prt26,1,1)
  997. for i=0,1,0.1 do
  998. swait()
  999. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(-.5,0,1),.3)
  1000. wld15.C0=clerp(wld15.C0,euler(0,-1.6,-1.57)*cf(0,1.2,0.2),.3)
  1001. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.3)
  1002. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0)*cf(0,.7,0),.3)
  1003. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(0,0,0),.4)
  1004. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(.4,0,.4),.4)
  1005. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.6),.4)
  1006. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1007. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.5),.4)
  1008. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1009. RH.C0=clerp(RH.C0,cf(1,-.6,-.4)*euler(0,1.57,0)*euler(-.1,0,-.2),.3)
  1010. LH.C0=clerp(LH.C0,cf(-1,-.9,-.2)*euler(0,-1.57,0)*euler(-.2,0,.8),.3)
  1011. end
  1012. mana=mana-50
  1013. if Mode=="Transcend" then
  1014. MagicBlock(InverseCol,prt33.CFrame,0,0,0,2,2,2,.05,1)
  1015. num=#ActiveOrbs
  1016. table.remove(ActiveOrbs,num)
  1017. orbnum=orbnum-1
  1018. so("http://roblox.com/asset/?id=138210320",prt20,1,.8)
  1019. end
  1020. num1,num2,num3=0,0,0
  1021. if Mode=="Normal" then
  1022. num1=-0.785
  1023. num2=0.785
  1024. num3=0.785
  1025. dammin=20
  1026. dammax=30
  1027. else
  1028. --[[num1=0
  1029. num2=5.495
  1030. num3=0.785]]
  1031. num1=-1.57
  1032. num2=2
  1033. num3=0.785
  1034. dammin=30
  1035. dammax=40
  1036. end
  1037. --0.785
  1038. for i=num1,num2,num3 do
  1039. coroutine.resume(coroutine.create(function(MagicCF)
  1040. for i=5,25,10 do
  1041. local CeEf=MagicCF*cf(0,0,-i)
  1042. local prt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1043. prt.Parent=nil
  1044. prt.Anchored=true
  1045. prt.CFrame=CeEf
  1046. hit,pos=rayCast(prt.Position,(CFrame.new(prt.Position,prt.Position - Vector3.new(0,1,0))).lookVector,500,Character)
  1047. if hit~=nil then
  1048. prt.CFrame=cf(pos)
  1049. prt.Parent=workspace
  1050. game:GetService("Debris"):AddItem(prt,2)
  1051. so("http://roblox.com/asset/?id=29504625",prt,.8,1)
  1052. so("http://roblox.com/asset/?id=183763487",prt,.8,1)
  1053. MagniDamage(prt,8,dammin,dammax,math.random(20,40),"Knockdown")
  1054. eul=euler(math.random(-50,50)/100,0,math.random(-50,50)/100)
  1055. MagicBlock(InverseCol,cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),0,0,0,.5,.5,.5,.01,2)
  1056. MagicCircle(InverseCol,cf(pos)*eul,0,0,0,1.5,4.5,1.5,.02)
  1057. MagicCircle(Torso.BrickColor,cf(pos)*eul,0,0,0,2,10,2,.05)
  1058. end
  1059. swait(10)
  1060. end
  1061. end),RootPart.CFrame*euler(0,i,0))
  1062. end
  1063. swait(100)
  1064. Humanoid.WalkSpeed=16
  1065. attack=false
  1066. end
  1067.  
  1068. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  1069. for _,c in pairs(workspace:children()) do
  1070. local hum=c:findFirstChild("Humanoid")
  1071. if hum~=nil then
  1072. local head=c:findFirstChild("Torso")
  1073. if head~=nil then
  1074. local targ=head.Position-Part.Position
  1075. local mag=targ.magnitude
  1076. if mag<=magni and c.Name~=Player.Name then
  1077. Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,3,1)
  1078. end
  1079. end
  1080. end
  1081. end
  1082. end
  1083.  
  1084. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1085. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1086. end
  1087.  
  1088. local Effects={}
  1089. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  1090. LastPoint=Point
  1091. function effect(Color,Ref,LP,P1,returnn)
  1092. local effectsmsh=Instance.new("CylinderMesh")
  1093. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1094. effectsmsh.Name="Mesh"
  1095. local effectsg=Instance.new("Part")
  1096. effectsg.formFactor=3
  1097. effectsg.CanCollide=false
  1098. effectsg.Name="Eff"
  1099. effectsg.Locked=true
  1100. effectsg.Anchored=true
  1101. effectsg.Size=Vector3.new(0.5,1,0.5)
  1102. effectsg.Parent=workspace
  1103. effectsmsh.Parent=effectsg
  1104. effectsg.BrickColor=Color1
  1105. effectsg.Reflectance=Ref
  1106. local point1=P1
  1107. local mg=(LP.p - point1.p).magnitude
  1108. effectsg.Size=Vector3.new(0.5,mg,0.5)
  1109. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1110. effectsmsh.Scale=Vector3.new(0.4,1,0.4)
  1111. game:GetService("Debris"):AddItem(effectsg,2)
  1112. if returnn then return effectsg end
  1113. if not returnn then
  1114. table.insert(Effects,{effectsg,"Cylinder",0.05,0.01,0,0.01})
  1115. end
  1116. end
  1117.  
  1118. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  1119. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1120. prt.Anchored=true
  1121. prt.CFrame=cframe
  1122. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1123. game:GetService("Debris"):AddItem(prt,5)
  1124. if Type==1 or Type==nil then
  1125. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  1126. elseif Type==2 then
  1127. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  1128. end
  1129. end
  1130.  
  1131. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1132. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1133. prt.Anchored=true
  1134. prt.CFrame=cframe
  1135. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1136. game:GetService("Debris"):AddItem(prt,2)
  1137. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1138. end
  1139.  
  1140. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1141. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1142. prt.Anchored=true
  1143. prt.CFrame=cframe
  1144. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1145. game:GetService("Debris"):AddItem(prt,5)
  1146. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1147. end
  1148.  
  1149. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1150. if hit.Parent==nil then
  1151. return
  1152. end
  1153. h=hit.Parent:FindFirstChild("Humanoid")
  1154. for _,v in pairs(hit.Parent:children()) do
  1155. if v:IsA("Humanoid") then
  1156. h=v
  1157. end
  1158. end
  1159. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1160. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1161. end
  1162. if hit.Parent.className=="Hat" then
  1163. hit=hit.Parent.Parent:findFirstChild("Head")
  1164. end
  1165. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1166. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1167. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1168. return
  1169. end]]
  1170. -- hs(hit,1.2)
  1171. c=Instance.new("ObjectValue")
  1172. c.Name="creator"
  1173. c.Value=game:service("Players").LocalPlayer
  1174. c.Parent=h
  1175. game:GetService("Debris"):AddItem(c,.5)
  1176. Damage=math.random(minim,maxim)
  1177. if math.random(1,5)==1 and Mode=="Normal" then
  1178. if orbnum<5 then
  1179. print("GAINED ORB")
  1180. Damage=h.Health*0.5
  1181. so("http://roblox.com/asset/?id=183763498",hit,1,1)
  1182. MagicBlock(InverseCol,cf(hit.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,0.05,1)
  1183. orbnum=orbnum+1
  1184. table.insert(ActiveOrbs,Orbs[orbnum])
  1185. end
  1186. end
  1187. -- h:TakeDamage(Damage)
  1188. blocked=false
  1189. block=hit.Parent:findFirstChild("Block")
  1190. if block~=nil then
  1191. print(block.className)
  1192. if block.className=="NumberValue" then
  1193. if block.Value>0 then
  1194. blocked=true
  1195. if decreaseblock~=nil then
  1196. block.Value=block.Value-decreaseblock
  1197. end
  1198. end
  1199. end
  1200. if block.className=="IntValue" then
  1201. if block.Value>0 then
  1202. blocked=true
  1203. if decreaseblock~=nil then
  1204. block.Value=block.Value-decreaseblock
  1205. end
  1206. end
  1207. end
  1208. end
  1209. if blocked==false then
  1210. -- h:TakeDamage(Damage)
  1211. h.Health=h.Health-Damage
  1212. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  1213. else
  1214. h.Health=h.Health-(Damage/2)
  1215. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1216. end
  1217. if Type=="Knockdown" then
  1218. hum=hit.Parent.Humanoid
  1219. hum.PlatformStand=true
  1220. coroutine.resume(coroutine.create(function(HHumanoid)
  1221. swait(1)
  1222. HHumanoid.PlatformStand=false
  1223. end),hum)
  1224. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1225. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1226. local bodvol=Instance.new("BodyVelocity")
  1227. bodvol.velocity=angle*knockback
  1228. bodvol.P=5000
  1229. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1230. bodvol.Parent=hit
  1231. rl=Instance.new("BodyAngularVelocity")
  1232. rl.P=3000
  1233. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1234. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1235. rl.Parent=hit
  1236. game:GetService("Debris"):AddItem(bodvol,.5)
  1237. game:GetService("Debris"):AddItem(rl,.5)
  1238. elseif Type=="Normal" then
  1239. vp=Instance.new("BodyVelocity")
  1240. vp.P=500
  1241. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1242. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1243. if KnockbackType==1 then
  1244. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1245. elseif KnockbackType==2 then
  1246. vp.velocity=Property.CFrame.lookVector*knockback
  1247. end
  1248. if knockback>0 then
  1249. vp.Parent=hit.Parent.Torso
  1250. end
  1251. game:GetService("Debris"):AddItem(vp,.5)
  1252. elseif Type=="Up" then
  1253. local bodyVelocity=Instance.new("BodyVelocity")
  1254. bodyVelocity.velocity=vt(0,30,0)
  1255. bodyVelocity.P=5000
  1256. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1257. bodyVelocity.Parent=hit
  1258. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1259. rl=Instance.new("BodyAngularVelocity")
  1260. rl.P=3000
  1261. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1262. rl.angularvelocity=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  1263. rl.Parent=hit
  1264. game:GetService("Debris"):AddItem(rl,.5)
  1265. elseif Type=="Snare" then
  1266. bp=Instance.new("BodyPosition")
  1267. bp.P=2000
  1268. bp.D=100
  1269. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1270. bp.position=hit.Parent.Torso.Position
  1271. bp.Parent=hit.Parent.Torso
  1272. game:GetService("Debris"):AddItem(bp,1)
  1273. end
  1274. debounce=Instance.new("BoolValue")
  1275. debounce.Name="DebounceHit"
  1276. debounce.Parent=hit.Parent
  1277. debounce.Value=true
  1278. game:GetService("Debris"):AddItem(debounce,Delay)
  1279. c=Instance.new("ObjectValue")
  1280. c.Name="creator"
  1281. c.Value=Player
  1282. c.Parent=h
  1283. game:GetService("Debris"):AddItem(c,.5)
  1284. CRIT=false
  1285. end
  1286. end
  1287.  
  1288. showDamage=function(Char,Dealt,du,Color)
  1289. m=Instance.new("Model")
  1290. m.Name=tostring(math.floor(Dealt))
  1291. h=Instance.new("Humanoid")
  1292. h.Health=0
  1293. h.MaxHealth=0
  1294. h.Parent=m
  1295. c=Instance.new("Part")
  1296. c.Transparency=0
  1297. c.BrickColor=Color
  1298. c.Name="Head"
  1299. c.TopSurface=0
  1300. c.BottomSurface=0
  1301. c.formFactor="Plate"
  1302. c.Size=Vector3.new(1,.4,1)
  1303. ms=Instance.new("CylinderMesh")
  1304. ms.Scale=Vector3.new(.8,.8,.8)
  1305. if CRIT==true then
  1306. ms.Scale=Vector3.new(1,1.25,1)
  1307. end
  1308. ms.Parent=c
  1309. c.Reflectance=0
  1310. Instance.new("BodyGyro").Parent=c
  1311. c.Parent=m
  1312. if Char:findFirstChild("Head")~=nil then
  1313. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1314. elseif Char.Parent:findFirstChild("Head")~=nil then
  1315. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1316. end
  1317. f=Instance.new("BodyPosition")
  1318. f.P=2000
  1319. f.D=100
  1320. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1321. f.position=c.Position+Vector3.new(0,3,0)
  1322. f.Parent=c
  1323. game:GetService("Debris"):AddItem(m,.5+du)
  1324. c.CanCollide=false
  1325. m.Parent=workspace
  1326. c.CanCollide=false
  1327. end
  1328.  
  1329. combo=0
  1330. function ob1d(mouse)
  1331. if attack==true or equipped==false then return end
  1332. hold=true
  1333. if Mode=="Normal" then
  1334. if combo==0 then
  1335. combo=1
  1336. attackone()
  1337. elseif combo==1 then
  1338. combo=2
  1339. attacktwo()
  1340. elseif combo==2 then
  1341. combo=0
  1342. attackthree()
  1343. end
  1344. else
  1345. TranscendAttack()
  1346. end
  1347. coroutine.resume(coroutine.create(function()
  1348. for i=1,50 do
  1349. if attack==false then
  1350. swait()
  1351. end
  1352. end
  1353. if attack==false then
  1354. combo=0
  1355. end
  1356. end))
  1357. end
  1358.  
  1359. function ob1u(mouse)
  1360. hold = false
  1361. end
  1362.  
  1363. buttonhold = false
  1364.  
  1365. eul=0
  1366. holdz=false
  1367. equipped=false
  1368. function key(key)
  1369. if key=="z" then
  1370. if attack==true and hitbeat==nil then
  1371. so("http://roblox.com/asset/?id=138210320",prt20,1,1.4)
  1372. MagicBlock(InverseCol,prt15.CFrame,1,1,1,1.5,1.5,1.5,.02,1)
  1373. MagicCircle(InverseCol,prt15.CFrame,1,1,1,8,8,8,.1)
  1374. upvel.Parent=Torso
  1375. velcf=(Head.CFrame.lookVector*60)+(vt(0,-1,0)*200)
  1376. upvel.velocity=velcf
  1377. end
  1378. holdz=true
  1379. end
  1380. if attack==true then return end
  1381. if key=="f" then
  1382. attack=true
  1383. if equipped==false then
  1384. equipped=true
  1385. RSH=ch.Torso["Right Shoulder"]
  1386. LSH=ch.Torso["Left Shoulder"]
  1387. --
  1388. RSH.Parent=nil
  1389. LSH.Parent=nil
  1390. --
  1391. RW.Name="Right Shoulder"
  1392. RW.Part0=ch.Torso
  1393. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1394. RW.C1=cf(0, 0.5, 0)
  1395. RW.Part1=ch["Right Arm"]
  1396. RW.Parent=ch.Torso
  1397. --
  1398. LW.Name="Left Shoulder"
  1399. LW.Part0=ch.Torso
  1400. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1401. LW.C1=cf(0, 0.5, 0)
  1402. LW.Part1=ch["Left Arm"]
  1403. LW.Parent=ch.Torso
  1404. --
  1405. equipanim()
  1406. else
  1407. equipped=false
  1408. hideanim()
  1409. swait(0)
  1410. RW.Parent=nil
  1411. LW.Parent=nil
  1412. RSH.Parent=player.Character.Torso
  1413. LSH.Parent=player.Character.Torso
  1414. end
  1415. attack=false
  1416. end
  1417. if equipped==false then return end
  1418. if key=="z" then
  1419. KaltosBeat()
  1420. end
  1421. if key=="x" and orbnum>0 then
  1422. if Mode=="Normal" then
  1423. EnergyTranscend()
  1424. else
  1425. Mode="Normal"
  1426. end
  1427. end
  1428. if key=="c" and orbnum<5 and mana>=40 and Mode=="Normal" then
  1429. mana=mana-40
  1430. NegConvert()
  1431. end
  1432. if key=="v" and mana>=50 then
  1433. KaltosWave()
  1434. end
  1435. --print(#ActiveOrbs)
  1436. if key=="h" then
  1437. mana=100
  1438. end
  1439. end
  1440.  
  1441. function key2(key)
  1442. if key=="z" then
  1443. holdz=false
  1444. end
  1445. end
  1446.  
  1447. function s(mouse)
  1448. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1449. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1450. mouse.KeyDown:connect(key)
  1451. mouse.KeyUp:connect(key2)
  1452.  
  1453. player=Player
  1454. ch=Character
  1455. MMouse=mouse
  1456. end
  1457.  
  1458. function ds(mouse)
  1459. end
  1460.  
  1461. Bin.Selected:connect(s)
  1462. Bin.Deselected:connect(ds)
  1463. print("Cyber Bruiser loaded.")
  1464.  
  1465. local mananum=0
  1466. local donum=0
  1467. local circlenum=0
  1468. local handidle=false
  1469. local orbeffect=1
  1470. local orbdelay=0
  1471. local effectdelay=0
  1472. while true do
  1473. swait()
  1474. if Mode=="Transcend" then
  1475. if orbnum<=0 then
  1476. Mode="Normal"
  1477. end
  1478. if effectdelay>4 then
  1479. effectdelay=0
  1480. MagicBlock(InverseCol,prt26.CFrame*cf(math.random(-150,150)/100,math.random(-300,300)/100,math.random(-150,150)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,-.4,-.4,-.4,.1,2)
  1481. end
  1482. effectdelay=effectdelay+1
  1483. end
  1484. --if orbdelay>=5 then
  1485. if #ActiveOrbs>0 then
  1486. local orbeffect2=#ActiveOrbs
  1487. if orbeffect<orbeffect2 then
  1488. orbeffect=orbeffect+1
  1489. elseif orbeffect>=orbeffect2 then
  1490. orbeffect=1
  1491. end
  1492. NewPart=Orbs[orbeffect]
  1493. MagicCircle(InverseCol,NewPart.CFrame,2,2,2,1,1,1,.5)
  1494. orbdelay=0
  1495. end
  1496. --end
  1497. --orbdelay=orbdelay+1
  1498. circlenum=circlenum+0.1
  1499. local mpos = prt48.CFrame
  1500. local cff = CFrame.new(mpos.p,mpos.p+vt(0,10,0)) * CFrame.Angles(math.pi/2,0,0)
  1501. local x,y,z = prt48.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1502. wld48.Part0=prt33
  1503. wld48.Part1=prt48
  1504. wld48.C0=clerp(wld48.C0,CFrame.Angles(x,y,z)*euler(circlenum,0,0),.3)
  1505. --wld48.C0=clerp(wld48.C0,CFrame.Angles(x,y,z),.3)
  1506. if donum>=.5 then
  1507. handidle=true
  1508. elseif donum<=0 then
  1509. handidle=false
  1510. end
  1511. if handidle==false then
  1512. donum=donum+0.003
  1513. else
  1514. donum=donum-0.003
  1515. end
  1516. if attack==false and equipped==true then
  1517. wld37.C0=clerp(wld37.C0,cf(0,.3,0)*euler(.8-donum,0,1),.3)
  1518. wld38.C0=clerp(wld38.C0,euler(-1-donum,0,0)*cf(0,.4,0),.3)
  1519. wld40.C0=clerp(wld40.C0,cf(0,.3,0)*euler(0,0,0.5+donum),.3)
  1520. wld41.C0=clerp(wld41.C0,euler(0,0,.5+donum)*cf(0,.4,0),.3)
  1521. wld43.C0=clerp(wld43.C0,cf(0,.3,0)*euler(0,0,0.5+donum),.3)
  1522. wld44.C0=clerp(wld44.C0,euler(0,0,.5+donum)*cf(0,.4,0),.3)
  1523. wld46.C0=clerp(wld46.C0,cf(0,.3,0)*euler(0,0,0.5+donum),.3)
  1524. wld47.C0=clerp(wld47.C0,euler(0,0,.5+donum)*cf(0,.4,0),.3)
  1525. end
  1526. --between prt16 and prt17
  1527. --local wld27=weld(prt27,prt27,prt26,euler(0,0,0)*cf(0,-1.2,0))
  1528. --[[local top=prt16r.CFrame
  1529. local bottom=prt17r.CFrame
  1530. oristrpos=CFrame.new((top.p+bottom.p)/2)
  1531. local mg1=(top.p-oristrpos.p).magnitude
  1532. local mg2=(bottom.p-oristrpos.p).magnitude
  1533. cff=CFrame.new(top*angles(1.57,0,0).p,prt17r.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
  1534. hit2=prt27
  1535. hit=prt17r
  1536. wld27.Parent=prt27
  1537. wld27.Part0=hit2
  1538. wld27.Part1=hit
  1539. HitPos=cff.p
  1540. local CJ = CFrame.new(HitPos)
  1541. local C0=cff:inverse() *CJ
  1542. local C1=hit.CFrame:inverse() * CJ
  1543. wld27.C0=clerp(wld27.C0,C0,.1)
  1544. wld27.C1=clerp(wld27.C1,C1,.1)]]
  1545. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1546. local velderp=RootPart.Velocity.y
  1547. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1548. if equipped==true then
  1549. if attack==false then
  1550. idle=idle+1
  1551. else
  1552. idle=0
  1553. end
  1554. if idle>=500 then
  1555. if attack==false then
  1556. --Sheath()
  1557. end
  1558. end
  1559. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1560. Anim="Jump"
  1561. if attack==false then
  1562. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(.5,0,1),.2)
  1563. wld15.C0=clerp(wld15.C0,euler(1,0,-.2)*cf(0,1.2,0.2),.2)
  1564. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.2)
  1565. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,1)*cf(0,.7,0),.2)
  1566. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1567. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1568. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1569. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  1570. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1571. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1572. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1573. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1574. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1575. end
  1576. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1577. Anim="Fall"
  1578. if attack==false then
  1579. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,0.5,.5),.2)
  1580. wld15.C0=clerp(wld15.C0,euler(1.8,0,.5)*cf(0,1.2,0.2),.2)
  1581. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,0,0)*euler(0,-1,0),.2)
  1582. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0)*cf(0,.7,0),.2)
  1583. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1584. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1585. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1586. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  1587. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1588. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1589. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1590. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1591. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1592. end
  1593. elseif torvel<1 and hitfloor~=nil then
  1594. Anim="Idle"
  1595. if attack==false then
  1596. if Mode=="Normal" then
  1597. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,0,1+(donum/2)),.2)
  1598. wld15.C0=clerp(wld15.C0,euler(1.5,-.7,0)*cf(0,1.2,0.2),.2)
  1599. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.2)
  1600. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0.5+(donum/1.5))*cf(0,.7,0),.2)
  1601. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1602. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1603. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1604. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.1-(donum/5)),.3)
  1605. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1606. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.1+(donum/5)),.3)
  1607. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1608. RH.C0=clerp(RH.C0,RHC0,.3)
  1609. RH.C1=clerp(RH.C1,RHC1,.3)
  1610. LH.C0=clerp(LH.C0,LHC0,.3)
  1611. LH.C1=clerp(LH.C1,LHC1,.3)
  1612. else
  1613. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,-.4+(donum/3),0)*euler(0,0,0),.2)
  1614. wld15.C0=clerp(wld15.C0,euler(1.5,-1.3,0)*cf(0,1.2,0.2),.2)
  1615. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.2)
  1616. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0.2-(donum/3),0,0)*cf(0,.7,0),.2)
  1617. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0,0,.4),.3)
  1618. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-.4),.3)
  1619. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,0,.4-(donum/4)),.3)
  1620. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1621. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.8+(donum/4)),.3)
  1622. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1623. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.1,-.5,-.4),.3)
  1624. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,-.5,.4),.3)
  1625. end
  1626. end
  1627. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1628. Anim="Walk"
  1629. if attack==false then
  1630. if Mode=="Normal" then
  1631. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,0.5,.5),.2)
  1632. wld15.C0=clerp(wld15.C0,euler(1.2,-.1,.2)*cf(0,1.2,0.2),.2)
  1633. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.5,0),.2)
  1634. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0)*cf(0,.7,0),.2)
  1635. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1636. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1637. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.3)
  1638. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.2,0,0.3),.3)
  1639. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1640. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.3),.3)
  1641. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1642. RH.C0=clerp(RH.C0,RHC0,.3)
  1643. LH.C0=clerp(LH.C0,LHC0,.3)
  1644. else
  1645. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,-.1,0),.2)
  1646. wld15.C0=clerp(wld15.C0,euler(1.5,-1.3,0)*cf(0,1.2,0.2),.2)
  1647. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.2)
  1648. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0.2,0,0)*cf(0,.7,0),.2)
  1649. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0.1,0,0),.3)
  1650. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  1651. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4),.3)
  1652. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1653. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.8),.3)
  1654. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1655. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.1,0,-.4),.3)
  1656. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,0,.4),.3)
  1657. end
  1658. end
  1659. elseif torvel>=22 and hitfloor~=nil then
  1660. Anim="Run"
  1661. if attack==false then
  1662. if Mode=="Normal" then
  1663. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,0.5,.5),.2)
  1664. wld15.C0=clerp(wld15.C0,euler(1.2,-.1,.2)*cf(0,1.2,0.2),.2)
  1665. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.5,0),.2)
  1666. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0,0,0)*cf(0,.7,0),.2)
  1667. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  1668. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1669. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.3,0,0),.3)
  1670. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.5,0,0.5),.3)
  1671. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1672. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.5,0,-0.5),.3)
  1673. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1674. else
  1675. wld14.C0=clerp(wld14.C0,cf(0,.8,0)*euler(0,-.1,0),.2)
  1676. wld15.C0=clerp(wld15.C0,euler(1.5,-1.3,0)*cf(0,1.2,0.2),.2)
  1677. wld16.C0=clerp(wld16.C0,cf(0,1.2,0)*euler(1.57,-.8,0),.2)
  1678. wld17.C0=clerp(wld17.C0,cf(0,1.2,0)*euler(0.2,0,0)*cf(0,.7,0),.2)
  1679. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0.1,0,0),.3)
  1680. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  1681. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4),.3)
  1682. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1683. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.8),.3)
  1684. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1685. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.1,0,-.4),.3)
  1686. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,0,.4),.3)
  1687. end
  1688. end
  1689. end
  1690. end
  1691. if #Effects>0 then
  1692. --table.insert(Effects,{prt,"Block1",delay})
  1693. for e=1,#Effects do
  1694. if Effects[e]~=nil then
  1695. --for j=1,#Effects[e] do
  1696. local Thing=Effects[e]
  1697. if Thing~=nil then
  1698. local Part=Thing[1]
  1699. local Mode=Thing[2]
  1700. local Delay=Thing[3]
  1701. local IncX=Thing[4]
  1702. local IncY=Thing[5]
  1703. local IncZ=Thing[6]
  1704. if Thing[1].Transparency<=1 then
  1705. if Thing[2]=="Block1" then
  1706. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1707. Mesh=Thing[1].Mesh
  1708. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1709. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1710. elseif Thing[2]=="Block2" then
  1711. Thing[1].CFrame=Thing[1].CFrame
  1712. Mesh=Thing[1].Mesh
  1713. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1714. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1715. elseif Thing[2]=="Cylinder" then
  1716. Mesh=Thing[7]
  1717. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1718. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1719. elseif Thing[2]=="Blood" then
  1720. Mesh=Thing[7]
  1721. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1722. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1723. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1724. elseif Thing[2]=="Elec" then
  1725. Mesh=Thing[1].Mesh
  1726. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1727. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1728. elseif Thing[2]=="Disappear" then
  1729. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1730. end
  1731. else
  1732. Part.Parent=nil
  1733. table.remove(Effects,e)
  1734. end
  1735. end
  1736. --end
  1737. end
  1738. end
  1739. end
  1740. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  1741. fenbarmana4.Text="Energy("..mana..")"
  1742. if mana>=100 then
  1743. mana=100
  1744. else
  1745. if mananum<=8 then
  1746. mananum=mananum+1
  1747. else
  1748. mananum=0
  1749. mana=mana+1
  1750. end
  1751. end
  1752. end
  1753. --[[
  1754. Copyrighted (C) Fenrier 2014
  1755. ]]
Add Comment
Please, Sign In to add comment