Advertisement
memberhero

Vanta Script V3

Jan 1st, 2018
2,792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 153.34 KB | None | 0 0
  1. bin = Instance.new("HopperBin")
  2. bin.Name = "Select"
  3. bin.Parent = game.Players.LocalPlayer.Backpack
  4. de=true
  5. boss = Instance.new("Sound",game.Players.LocalPlayer.Character)
  6. boss.Looped = true
  7. boss.SoundId = "rbxassetid://190845741"
  8. boss:Play()
  9. ---press b to transform
  10. Player=game:GetService("Players").LocalPlayer
  11. Character=Player.Character
  12. PlayerGui=Player.PlayerGui
  13. Backpack=Player.Backpack
  14. Torso=Character.Torso
  15. Head=Character.Head
  16. Humanoid=Character.Humanoid
  17. moose = Player:GetMouse()
  18. LeftArm=Character["Left Arm"]
  19. LeftLeg=Character["Left Leg"]
  20. RightArm=Character["Right Arm"]
  21. RightLeg=Character["Right Leg"]
  22. LS=Torso["Left Shoulder"]
  23. LH=Torso["Left Hip"]
  24. RS=Torso["Right Shoulder"]
  25. RH=Torso["Right Hip"]
  26. Neck=Torso.Neck
  27. it=Instance.new
  28. vt=Vector3.new
  29. cf=CFrame.new
  30. euler=CFrame.fromEulerAnglesXYZ
  31. angles=CFrame.Angles
  32. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  33. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  34. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  35. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  36. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  37. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  38. RootPart=Character.HumanoidRootPart
  39. RootJoint=RootPart.RootJoint
  40. RootCF=euler(-1.57,0,3.14)
  41. attack = false
  42. attackdebounce = false
  43. MMouse=nil
  44. combo=0
  45. mana=0
  46. local idle=0
  47. local Anim="Idle"
  48. local orbnum=0
  49. local Mode="Normal"
  50. --player
  51. player=nil
  52. --save shoulders
  53. RSH, LSH=nil, nil
  54. --welds
  55. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  56. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  57. LH=Torso["Left Hip"]
  58. RH=Torso["Right Hip"]
  59. Charge=0
  60. TorsoColor=Torso.BrickColor.Color
  61. Col1=1-Torso.Color.r
  62. Col2=1-Torso.Color.g
  63. Col3=1-Torso.Color.b
  64. InverseCol=BrickColor.new(Color3.new(Col1,Col2,Col3))
  65. upvel=Instance.new("BodyVelocity")
  66. local hitbeat=nil
  67.  
  68. function swait(num)
  69. if num==0 or num==nil then
  70. game:service'RunService'.RenderStepped:wait()
  71. else
  72. for i=0,num do
  73. game:service'RunService'.RenderStepped:wait()
  74. end
  75. end
  76. end
  77.  
  78. CV1="Really black"
  79. CV2 = BrickColor == BrickColor.new(CV1)
  80.  
  81. local txt = Instance.new("BillboardGui", Character)
  82. txt.Adornee = Character.Head
  83. txt.Name = "_status"
  84. txt.Size = UDim2.new(2, 0, 1.2, 0)
  85. txt.StudsOffset = Vector3.new(-9, 8, 0)
  86. local text = Instance.new("TextLabel", txt)
  87. text.Size = UDim2.new(10, 0, 7, 0)
  88. text.FontSize = "Size24"
  89. text.TextScaled = true
  90. text.TextTransparency = 0
  91. text.BackgroundTransparency = 1
  92. text.TextTransparency = 0
  93. text.TextStrokeTransparency = 0
  94. text.Font = "SciFi"
  95. text.TextStrokeColor3 = Color3.new(0,0,0)
  96.  
  97. v=Instance.new("Part")
  98. v.Name = "ColorBrick"
  99. v.Parent=Player.Character
  100. v.FormFactor="Symmetric"
  101. v.Anchored=true
  102. v.CanCollide=false
  103. v.BottomSurface="Smooth"
  104. v.TopSurface="Smooth"
  105. v.Size=Vector3.new(10,5,3)
  106. v.Transparency=1
  107. v.CFrame=Character.Torso.CFrame
  108. v.BrickColor=BrickColor.new(CV1)
  109. v.Transparency=1
  110. text.TextColor3 = BrickColor.new("Really black").Color
  111. v.Shape="Block"
  112. text.Text = "Vanta"
  113.  
  114.  
  115.  
  116.  
  117. if Character:findFirstChild("Vanta",true) ~= nil then
  118. Character:findFirstChild("Vanta",true).Parent = nil
  119. end
  120. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  121. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  122. end
  123.  
  124.  
  125. function NoOutline(Part)
  126. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  127. end
  128.  
  129. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  130. local fp=it("Part")
  131. fp.formFactor=formfactor
  132. fp.Parent=parent
  133. fp.Reflectance=reflectance
  134. fp.Transparency=transparency
  135. fp.CanCollide=false
  136. fp.Locked=true
  137. fp.BrickColor=brickcolor
  138. fp.Name=name
  139. fp.Size=size
  140. fp.Position=Torso.Position
  141. NoOutline(fp)
  142. fp.Material="SmoothPlastic"
  143. fp:BreakJoints()
  144. return fp
  145. end
  146.  
  147. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  148. local mesh=it(Mesh)
  149. mesh.Parent=part
  150. if Mesh=="SpecialMesh" then
  151. mesh.MeshType=meshtype
  152. mesh.MeshId=meshid
  153. end
  154. mesh.Offset=offset
  155. mesh.Scale=scale
  156. return mesh
  157. end
  158.  
  159. function weld(parent,part0,part1,c0)
  160. local weld=it("Weld")
  161. weld.Parent=parent
  162. weld.Part0=part0
  163. weld.Part1=part1
  164. weld.C0=c0
  165. return weld
  166. end
  167.  
  168. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  169. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  170. prt.Anchored=true
  171. prt.CFrame=cframe
  172. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  173. game:GetService("Debris"):AddItem(prt,5)
  174. coroutine.resume(coroutine.create(function(Part,Mesh)
  175. for i=0,1,delay do
  176. wait()
  177. Part.CFrame=Part.CFrame
  178. Part.Transparency=i
  179. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  180. end
  181. Part.Parent=nil
  182. end),prt,msh)
  183. end
  184.  
  185. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  186. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  187. prt.Anchored=true
  188. prt.CFrame=cframe
  189. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  190. game:GetService("Debris"):AddItem(prt,5)
  191. coroutine.resume(coroutine.create(function(Part,Mesh)
  192. for i=0,1,delay do
  193. wait()
  194. Part.CFrame=Part.CFrame
  195. Part.Transparency=i
  196. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  197. end
  198. Part.Parent=nil
  199. end),prt,msh)
  200. end
  201.  
  202. local Color1=Torso.BrickColor
  203.  
  204. local fengui=it("GuiMain")
  205. fengui.Parent=Player.PlayerGui
  206. fengui.Name="WeaponGUI"
  207. local fenframe=it("Frame")
  208. fenframe.Parent=fengui
  209. fenframe.BackgroundColor3=Color3.new(255,255,255)
  210. fenframe.BackgroundTransparency=1
  211. fenframe.BorderColor3=Color3.new(17,17,17)
  212. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  213. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  214. fenframe.Visible=false
  215. local fenbarmana1=it("TextLabel")
  216. fenbarmana1.Parent=fenframe
  217. fenbarmana1.Text=" "
  218. fenbarmana1.BackgroundTransparency=0
  219. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  220. fenbarmana1.SizeConstraint="RelativeXY"
  221. fenbarmana1.TextXAlignment="Center"
  222. fenbarmana1.TextYAlignment="Center"
  223. fenbarmana1.Position=UDim2.new(0,0,0,0)
  224. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  225. local fenbarmana2=it("TextLabel")
  226. fenbarmana2.Parent=fenframe
  227. fenbarmana2.Text=" "
  228. fenbarmana2.BackgroundTransparency=0
  229. fenbarmana2.BackgroundColor3=Torso.Color
  230. fenbarmana2.SizeConstraint="RelativeXY"
  231. fenbarmana2.TextXAlignment="Center"
  232. fenbarmana2.TextYAlignment="Center"
  233. fenbarmana2.Position=UDim2.new(0,0,0,0)
  234. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  235. local fenbarmana3=it("TextLabel")
  236. fenbarmana3.Parent=fenframe
  237. fenbarmana3.Text=" "
  238. fenbarmana3.BackgroundTransparency=0
  239. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  240. fenbarmana3.SizeConstraint="RelativeXY"
  241. fenbarmana3.TextXAlignment="Center"
  242. fenbarmana3.TextYAlignment="Center"
  243. fenbarmana3.Position=UDim2.new(0,0,0,0)
  244. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  245. local fenbarmana4=it("TextLabel")
  246. fenbarmana4.Parent=fenframe
  247. fenbarmana4.Text="Energy("..mana..")"
  248. fenbarmana4.BackgroundTransparency=1
  249. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  250. fenbarmana4.SizeConstraint="RelativeXY"
  251. fenbarmana4.TextXAlignment="Center"
  252. fenbarmana4.TextYAlignment="Center"
  253. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  254. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  255. fenbarmana4.FontSize="Size9"
  256. fenbarmana4.TextStrokeTransparency=0
  257. fenbarmana4.TextColor=BrickColor.new("White")
  258.  
  259. local modelzorz=Instance.new("Model")
  260. modelzorz.Parent=Character
  261. modelzorz.Name="Vanta"
  262.  
  263. local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  264. hitbox.Anchored=false
  265.  
  266. if (script.Parent.className~="HopperBin") then
  267. Tool=Instance.new("HopperBin")
  268. Tool.Parent=Backpack
  269. Tool.Name="Vanta"
  270. wait()
  271. script.Parent=Tool
  272. end
  273. Bin=Tool
  274.  
  275. local bodvel=Instance.new("BodyVelocity")
  276. local bg=Instance.new("BodyGyro")
  277.  
  278. so = function(id,par,vol,pit)
  279. coroutine.resume(coroutine.create(function()
  280. local sou = Instance.new("Sound",par or workspace)
  281. sou.Volume=vol
  282. sou.Pitch=pit or 1
  283. sou.SoundId=id
  284. swait()
  285. sou:play()
  286. game:GetService("Debris"):AddItem(sou,6)
  287. end))
  288. end
  289.  
  290. function clerp(a,b,t)
  291. local qa = {QuaternionFromCFrame(a)}
  292. local qb = {QuaternionFromCFrame(b)}
  293. local ax, ay, az = a.x, a.y, a.z
  294. local bx, by, bz = b.x, b.y, b.z
  295. local _t = 1-t
  296. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  297. end
  298.  
  299. function QuaternionFromCFrame(cf)
  300. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  301. local trace = m00 + m11 + m22
  302. if trace > 0 then
  303. local s = math.sqrt(1 + trace)
  304. local recip = 0.5/s
  305. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  306. else
  307. local i = 0
  308. if m11 > m00 then
  309. i = 1
  310. end
  311. if m22 > (i == 0 and m00 or m11) then
  312. i = 2
  313. end
  314. if i == 0 then
  315. local s = math.sqrt(m00-m11-m22+1)
  316. local recip = 0.5/s
  317. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  318. elseif i == 1 then
  319. local s = math.sqrt(m11-m22-m00+1)
  320. local recip = 0.5/s
  321. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  322. elseif i == 2 then
  323. local s = math.sqrt(m22-m00-m11+1)
  324. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  325. end
  326. end
  327. end
  328.  
  329. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  330. local xs, ys, zs = x + x, y + y, z + z
  331. local wx, wy, wz = w*xs, w*ys, w*zs
  332. local xx = x*xs
  333. local xy = x*ys
  334. local xz = x*zs
  335. local yy = y*ys
  336. local yz = y*zs
  337. local zz = z*zs
  338. 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))
  339. end
  340.  
  341. function QuaternionSlerp(a, b, t)
  342. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  343. local startInterp, finishInterp;
  344. if cosTheta >= 0.0001 then
  345. if (1 - cosTheta) > 0.0001 then
  346. local theta = math.acos(cosTheta)
  347. local invSinTheta = 1/math.sin(theta)
  348. startInterp = math.sin((1-t)*theta)*invSinTheta
  349. finishInterp = math.sin(t*theta)*invSinTheta
  350. else
  351. startInterp = 1-t
  352. finishInterp = t
  353. end
  354. else
  355. if (1+cosTheta) > 0.0001 then
  356. local theta = math.acos(-cosTheta)
  357. local invSinTheta = 1/math.sin(theta)
  358. startInterp = math.sin((t-1)*theta)*invSinTheta
  359. finishInterp = math.sin(t*theta)*invSinTheta
  360. else
  361. startInterp = t-1
  362. finishInterp = t
  363. end
  364. end
  365. 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
  366. end
  367.  
  368. function hideanim()
  369. equipped=false
  370. for i=0,1,0.1 do
  371. swait()
  372. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  373. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  374. Torso.Neck.C1=clerp(Torso.Neck.C1,necko2*euler(0,0,0),.4)
  375. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  376. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  377. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  378. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  379. RH.C0=clerp(RH.C0,RHC0,.2)
  380. RH.C1=clerp(RH.C1,RHC1,.2)
  381. LH.C0=clerp(LH.C0,LHC0,.2)
  382. LH.C1=clerp(LH.C1,LHC1,.2)
  383. end
  384. end
  385.  
  386. function equipanim()
  387. equipped=true
  388. for i=0,1,0.1 do
  389. swait()
  390. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  391. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  392. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.1),.3)
  393. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  394. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.1),.3)
  395. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  396. end
  397. end
  398.  
  399. function attackone()
  400.  
  401. end
  402.  
  403. function attacktwo()
  404. end
  405.  
  406. function attackthree()
  407.  
  408. end
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428. function Nocturn(mouse)
  429. if de==true then
  430. de=false
  431. local n=2
  432. --[[for i=0,1,0.1 do
  433. wait()
  434. Neck.C0=cf(0,1,0)*euler(-0.2+0.6*i*n,0,0)
  435. RW.C0=cf(1.5,0.5,0)*euler(3.14*i*n,0,0.3-0.9*i*n)
  436. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  437. LW.C0=cf(-1.5,0.5,0)*euler(3.14*i*n,0,-0.3+0.9*i*n)
  438. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  439. n=n-0.1
  440. end]]
  441. local orb=part(3,Character,0,1,BrickColor.new("Really black"),"Orb",vt())
  442. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
  443. local owld=weld(orb,orb,Torso,cf(0,-10,0))
  444. so("http://roblox.com/asset/?id=137463716",orb,1,0.6)
  445. for i=1,0.3,-0.01 do
  446. wait()
  447. orb.Transparency=i
  448. omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
  449. MagicBlock(BrickColor.new("Really black"),orb.CFrame,15,15,15,2,2,2,0.1)
  450. local ef=part(3,workspace,0,0,BrickColor.new("Really black"),"Effect",vt())
  451. ef.Anchored=true
  452. local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
  453. local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0)
  454. ef.CFrame=orb.CFrame*ceef
  455. game:GetService("Debris"):AddItem(ef,2)
  456. coroutine.resume(coroutine.create(function(Part,Mesh)
  457. for i=0,1,0.1 do
  458. wait()
  459. Part.Transparency=i
  460. Part.CFrame=Part.CFrame*cf(0,-1,0)
  461. end
  462. Part.Parent=nil
  463. end),ef,emsh)
  464. end
  465. local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector
  466. wait(.5)
  467. orb.Parent=nil
  468. local hit,pos = rayCast(orb.Position,Pos,999,Character)
  469. local mag=(orb.Position-pos).magnitude
  470. MagicCircle(BrickColor.new("Really black"),cf(pos),15,15,15,8,8,8,0.02)
  471. MagicBlock(BrickColor.new("Really black"),cf(pos),15,15,15,8,8,8,0.02)
  472. MagicCylinder(BrickColor.new("Really black"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  473. for i=1,2 do
  474. MagicRing(BrickColor.new("Really black"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,1,1,1,0.04)
  475. end
  476. for i=1,5 do
  477. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  478. MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  479. end
  480. for i=0,5 do
  481. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  482. MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  483. end
  484. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  485. ref.CFrame=cf(pos)
  486. so("http://roblox.com/asset/?id=183763506",Torso,1,0.6)
  487. so("http://roblox.com/asset/?id=178452221",Torso,1,0.6)
  488. so("http://www.roblox.com/Asset?ID=87767777",Torso,1,1)
  489. so("http://roblox.com/asset/?id=183763506",ref,1,0.6)
  490. so("http://roblox.com/asset/?id=178452221",ref,1,0.6)
  491. so("http://www.roblox.com/Asset?ID=87767777",ref,1,1)
  492. coroutine.resume(coroutine.create(function(Part)
  493. wait(1)
  494. Part.Parent=nil
  495. end),ref)
  496. MagniDamage(ref,20,10,30,40,"Knockdown",ref)
  497. if hit~=nil then
  498. Damagefunc(hit,30,70,50,"Knockdown",RootPart,0)
  499. end
  500. wait(1)
  501. local n=2
  502. --[[for i=0,1,0.1 do
  503. wait()
  504. Neck.C0=cf(0,1,0)*euler(0.4-0.6*i*n,0,0)
  505. RW.C0=cf(1.5,0.5,0)*euler(3.14-3.14*i*n,0,-0.6+0.9*i*n)
  506. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  507. LW.C0=cf(-1.5,0.5,0)*euler(3.14-3.14*i*n,0,0.6-0.9*i*n)
  508. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  509. n=n-0.1
  510. end]]
  511. de=true
  512. end
  513. end
  514.  
  515. function Darkrain()
  516. if de==true then
  517. de=false
  518. local n=2
  519. for i=0,1,0.1 do
  520. wait()
  521. --[[Neck.C0=cf(0,1,0)*euler(-0.2+0.6*i*n,0,0)
  522. RW.C0=cf(1.5,0.5,0)*euler(3.14*i*n,0,0.3-0.3*i*n)
  523. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  524. LW.C0=cf(-1.5,0.5,0)*euler(-0.2*i*n,0,-0.3)
  525. LW.C1=cf(0,0.5,0)*euler(0,0,0)]]
  526. n=n-0.1
  527. end
  528. for i=1,math.random(20,40) do
  529. wait(.05)
  530. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1)
  531. local orb=part(3,Character,0,0.5,BrickColor.new("Really black"),"Orb",vt())
  532. orb.Anchored=true
  533. so("http://roblox.com/asset/?id=183763498",orb,1,1.2)
  534. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(10,10,10))
  535. orb.CFrame=cf(Player:GetMouse().Hit.p+vt(math.random(-10,10),math.random(50,100),math.random(-10,10)))
  536. MagicCircle(BrickColor.new("Really black"),orb.CFrame,10,10,10,1,1,1,0.1)
  537. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  538. wait(1)
  539. Part.Parent=nil
  540. local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(Part.Position-(Part.Position+vt(0,-1,0))).magnitude/100
  541. local TheHit=Part.Position+vt(0,-1,0)
  542. local MouseLook=cf((Part.Position+TheHit)/2,TheHit+spread)
  543. local hit,pos = rayCast(Part.Position,MouseLook.lookVector,999,Character)
  544. local mag=(Part.Position-pos).magnitude
  545. MagicCylinder(BrickColor.new("Really black"),CFrame.new((Part.Position+pos)/2,pos)*angles(1.57,0,0) ,1,mag*5,1,0.5,0,0.5,0.05)
  546. MagicBlock(BrickColor.new("Really black"),Part.CFrame,8,8,8,0.5,0.5,0.5,0.1)
  547. MagicBlock(BrickColor.new("Really black"),cf(pos),15,15,15,6,6,6,0.1)
  548. MagicRing(BrickColor.new("Really black"),cf(pos)*euler(1.57,math.random(-100,100)/100,math.random(-100,100)/100),1,1,1,2,2,2,0.05)
  549. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  550. ref.CFrame=cf(pos)
  551. so("http://roblox.com/asset/?id=183763487",ref,1,1)
  552. coroutine.resume(coroutine.create(function(Part)
  553. wait(1)
  554. Part.Parent=nil
  555. end),ref)
  556. MagniDamage(ref,15,5,10,0,"Normal",RootPart)
  557. if hit~=nil then
  558. Damagefunc(hit,20,40,1,"Knockdown",RootPart,0)
  559. end
  560. end),orb,omsh)
  561. end
  562. wait(0.5)
  563. local n=2
  564. for i=0,1,0.1 do
  565. wait()
  566. --[[Neck.C0=cf(0,1,0)*euler(0.4-0.6*i*n,0,0)
  567. RW.C0=cf(1.5,0.5,0)*euler(3.14-3.14*i*n,0,0.3*i*n)
  568. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  569. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i*n,0,-0.3)
  570. LW.C1=cf(0,0.5,0)*euler(0,0,0)]]
  571. n=n-0.1
  572. end
  573. de=true
  574. end
  575. end
  576.  
  577. function Terrorblast()
  578. if de==true then
  579. de=false
  580. local n=2
  581. --[[for i=0,1,0.1 do
  582. wait()
  583. Neck.C0=cf(0,1,0)*euler(-0.2-0.2*i*n,0,0)
  584. RW.C0=cf(1.5-0.5*i*n,0.5,-0.5*i*n)*euler(1.4*i*n,0,0.2-1.4*i*n)
  585. LW.C0=cf(-1.5+0.5*i*n,0.5,-0.5*i*n)*euler(1.6*i*n,0,-0.2+1.6*i*n)
  586. n=n-0.1
  587. end]]
  588. so("http://roblox.com/asset/?id=160772554",Torso,1,0.6)
  589. so("http://roblox.com/asset/?id=161006069",Torso,1,0.6)
  590. local charging=true
  591. for _,c in pairs(game.Workspace:GetChildren()) do
  592. if c.className=="Model" then
  593. if c:findFirstChild("Torso")~=nil and c:findFirstChild("Humanoid")~=nil and c.Name~=Player.Name then
  594. print(c)
  595. local Tors=c:findFirstChild("Torso")
  596. coroutine.resume(coroutine.create(function(Part)
  597. local ef=part(3,Character,0,0.5,BrickColor.new("Really black"),"Effect",vt(0.2,0.2,0.2))
  598. ef.Anchored=true
  599. local emsh=mesh("SpecialMesh",ef,"Head","",vt(0,0,0),vt(1,1,1))
  600. game:GetService("Debris"):AddItem(ef,5)
  601. while charging==true do
  602. wait()
  603. local TheHit=Part.Position
  604. local MouseLook=cf((Torso.Position+TheHit)/2,TheHit)
  605. local hit,pos = rayCast(Torso.Position,MouseLook.lookVector,999,Character)
  606. local mag=(Torso.Position-pos).magnitude
  607. ef.CFrame=CFrame.new((Torso.Position+pos)/2,pos)*euler(1.57,0,0)
  608. emsh.Scale=vt(1,mag*5,1)
  609. end
  610. ef.Parent=nil
  611. local TheHit=Part.Position
  612. local MouseLook=cf((Torso.Position+TheHit)/2,TheHit)
  613. wait()
  614. local hit,pos = rayCast(Torso.Position,MouseLook.lookVector,999,Character)
  615. local mag=(Torso.Position-pos).magnitude
  616. if hit~=nil then
  617. Damagefunc(hit,20,40,50,"Knockdown",RootPart,0)
  618. MagicCircle(BrickColor.new("Really black"),cf(pos),5,5,5,6,6,6,0.02)
  619. MagicBlock(BrickColor.new("Really black"),cf(pos),5,5,5,7,7,7,0.02)
  620. MagicCylinder(BrickColor.new("Really black"),CFrame.new((Torso.Position+pos)/2,pos)*euler(1.57,0,0),5,mag*5,5,0.5,0,0.5,0.01)
  621. so("http://roblox.com/asset/?id=183763515",hit,1,1)
  622. so("http://roblox.com/asset/?id=183763512",hit,1,1)
  623. end
  624. end),Tors)
  625. end
  626. end
  627. end
  628. wait(1)
  629. n=2
  630. --[[for i=0,1,0.2 do
  631. wait()
  632. Neck.C0=cf(0,1,0)*euler(-0.4+0.2*i*n,0,0)
  633. RW.C0=cf(1+0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.4+0.17*i*n,0,-1.2+2.77*i*n)
  634. LW.C0=cf(-1-0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.6-0.03*i*n,0,1.4-2.97*i*n)
  635. n=n-0.2
  636. end]]
  637. charging=false
  638. wait(1)
  639. n=2
  640. --[[for i=0,1,0.1 do
  641. wait()
  642. Neck.C0=cf(0,1,0)*euler(-0.2,0,0)
  643. RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i*n,0,1.57-1.37*i*n)
  644. LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i*n,0,-1.57+1.37*i*n)
  645. n=n-0.1
  646. end]]
  647. wait(6)
  648. de=true
  649. end
  650. end
  651.  
  652. function Titanfall()
  653. if de==true then
  654. de=false
  655. Humanoid.WalkSpeed=0
  656. local n=2
  657. for i=0,1,0.05 do
  658. wait()
  659. --[[cf4=6-2*i*n
  660. cf5=2+2*i*n
  661. cf6=-2*i*n
  662. cf7=-6+2*i*n
  663. cf8=2+2*i*n
  664. cf9=-2*i*n
  665. Neck.C0=cf(0,1,0)*euler(-0.2+0.8*i*n,0,0)
  666. RW.C0=cf(1.5-0.5*i*n,0.5+0.5*i*n,-0.5*i*n)*euler(3.14*i*n,0,0.3-0.9*i*n)
  667. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  668. LW.C0=cf(-1.5+0.5*i*n,0.5+0.5*i*n,-0.5*i*n)*euler(3.14*i*n,0,-0.3+0.9*i*n)
  669. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  670. n=n-0.05]]
  671. end
  672. so("http://www.roblox.com/asset/?id=169445121",Torso,1,0.6)
  673. n=2
  674. for i=0,1,0.2 do
  675. wait()
  676. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1)
  677. MagicBlock(BrickColor.new("Really black"),LeftArm.CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1)
  678. --cf11=-4+2*i*n
  679. --cf12=-2*i*n
  680. --cf5=4-4*i*n
  681. --cf8=4-4*i*n
  682. --RootJoint.C0=cf(0,-14.5+3*i*n,0)*euler(0,0,0)
  683. --[[Neck.C0=cf(0,1,0)*euler(0.6-1*i*n,0,0)
  684. RW.C0=cf(1,1-1*i*n,-0.5)*euler(3.14-2.64*i*n,0,-0.6)
  685. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  686. LW.C0=cf(-1,1-1*i*n,-0.5)*euler(3.14-2.64*i*n,0,0.6)
  687. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  688. RH.C0=cf(0.5,-1+0.5*i*n,-0.5*i*n)*euler(-0.1*i*n,0,0)
  689. RH.C1=cf(0,1,0)
  690. LH.C0=cf(-0.5,-1,0)*euler(-0.6*i*n,0,0)
  691. LH.C1=cf(0,1,0)]]
  692. n=n-0.2
  693. end
  694. local cf2=RootPart.CFrame*cf(0,500,-20)
  695. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  696. ref.CFrame=cf2
  697. ref.Anchored=true
  698. local TheHit=ref.Position+vt(0,-1,0)
  699. local MouseLook=cf((ref.Position+TheHit)/2,TheHit)
  700. local hit,pos = rayCast(ref.Position,MouseLook.lookVector,999,Character)
  701. local ref2=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  702. ref2.CFrame=cf(pos)
  703. ref2.Anchored=true
  704. local mag=(ref.Position-pos).magnitude
  705. MagicCylinder(BrickColor.new("Really black"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),5,mag*5,5,1,0,1,0.05)
  706. MagicCircle(BrickColor.new("Really black"),ref2.CFrame,15,15,15,8,8,8,0.02)
  707. MagicBlock(BrickColor.new("Really black"),ref2.CFrame,15,15,15,3,3,3,0.02)
  708. WaveEffect2(BrickColor.new("Really black"),ref2.CFrame,5,5,5,2,3,2,0.05)
  709. MagicRing(BrickColor.new("Really black"),cf(ref2.Position)*euler(1.57,0,0),5,5,5,4,4,4,0.05)
  710. MagniDamage(ref2,25,20,50,math.random(10,30),"Knockdown",ref2)
  711. --so("http://roblox.com/asset/?id=144844438",ref2,1,0.8)
  712. so("http://roblox.com/asset/?id=87784452",ref2,1,0.8)
  713. so("http://roblox.com/asset/?id=183763515",ref2,1,0.8)
  714. game:GetService("Debris"):AddItem(ref,2)
  715. game:GetService("Debris"):AddItem(ref2,2)
  716. n=2
  717. for i=0,1,0.1 do
  718. wait()
  719. --[[cf4=4+2*i*n
  720. cf5=2*i*n
  721. cf6=-2+2*i*n
  722. cf7=-4-2*i*n
  723. cf8=2*i*n
  724. cf9=-2+2*i*n
  725. cf11=-4+2-2*i*n
  726. cf12=-2+2*i*n
  727. RootJoint.C0=cf(0,-14.5+3-3*i*n,0)*euler(0,0,0)
  728. Neck.C0=cf(0,1,0)*euler(-0.4+0.2*i*n,0,0)
  729. RW.C0=cf(1+0.5*i*n,0.5*i*n,-0.5+0.5*i*n)*euler(0.5-0.5*i*n,0,-0.6+0.9*i*n)
  730. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  731. LW.C0=cf(-1-0.5*i*n,0.5*i*n,-0.5+0.5*i*n)*euler(0.5-0.5*i*n,0,0.6-0.9*i*n)
  732. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  733. RH.C0=cf(0.5,-0.5-0.5*i*n,-0.5+0.5*i*n)*euler(-0.1+0.1*i*n,0,0)
  734. RH.C1=cf(0,1,0)
  735. LH.C0=cf(-0.5,-1,0)*euler(-0.6+0.6*i*n,0,0)
  736. LH.C1=cf(0,1,0)]]
  737. n=n-0.1
  738. end
  739. Humanoid.WalkSpeed=16
  740. de=true
  741. end
  742. end
  743.  
  744. function Darkstomp()
  745. if de==true then
  746. de=false
  747. Humanoid.WalkSpeed=0
  748. local n=2
  749. for i=0,1,0.1 do
  750. --[[wait()
  751. cf11=-4+2*i*n
  752. cf12=-2*i*n
  753. --cf13=-2
  754. --cf14=-4
  755. --cf15=0
  756. RootJoint.C0=cf(0,-14.5,0)*euler(0.2*i*n,0,0)
  757. Neck.C0=cf(0,1,0)*euler(-0.2-0.4*i*n,0,0)
  758. RW.C0=cf(1.5,0.5,0)*euler(-0.2*i*n,0,0.3)
  759. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  760. LW.C0=cf(-1.5,0.5,0)*euler(-0.2*i*n,0,-0.3)
  761. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  762. RH.C0=cf(0.5,-1+0.5*i*n,-0.5*i*n)*euler(0.2*i*n,0,0)
  763. RH.C1=cf(0,1,0)
  764. LH.C0=cf(-0.5,-1,0)*euler(-0.2*i*n,0,0)
  765. LH.C1=cf(0,1,0)]]
  766. n=n-0.1
  767. end
  768. so("http://www.roblox.com/asset/?id=169445046",RightLeg,1,0.6)
  769. local n=2
  770. for i=0,1,0.2 do
  771. wait()
  772. --cf11=-2-2*i*n
  773. --RH.C0=cf(0.5,-0.5-0.5*i*n,-0.5)*euler(0.2+0.1*i*n,0,0)
  774. --RH.C1=cf(0,1,0)
  775. n=n-0.2
  776. end
  777. MagicCylinder(BrickColor.new("Really black"),cf(RightLeg.Position+vt(0,-4,0)),10,4,10,5,3,5,0.05)
  778. local numb=-8
  779. local basecf=RootPart.CFrame
  780. for i=1,4 do
  781. local cf2=basecf*cf(0,0,numb)
  782. local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  783. ref.CFrame=cf2
  784. ref.Anchored=true
  785. local TheHit=ref.Position+vt(0,-1,0)
  786. local MouseLook=cf((ref.Position+TheHit)/2,TheHit)
  787. local hit,pos = rayCast(ref.Position,MouseLook.lookVector,999,Character)
  788. local ref2=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
  789. ref2.CFrame=cf(pos)
  790. ref2.Anchored=true
  791. MagicCircle(BrickColor.new("Really black"),ref2.CFrame,15,15,15,8,8,8,0.02)
  792. MagicWaveThing(BrickColor.new("Really black"),ref2.CFrame,5,5,5,2,2,2,0.05)
  793. MagniDamage(ref2,20,20,30,math.random(5,20),"Normal",RootPart)
  794. so("http://www.roblox.com/asset/?id=161006093",ref2,1,0.6)
  795. game:GetService("Debris"):AddItem(ref,2)
  796. game:GetService("Debris"):AddItem(ref2,2)
  797. numb=numb-15
  798. wait(0.4)
  799. end
  800. --wait(1)
  801. local n=2
  802. for i=0,1,0.1 do
  803. wait()
  804. --[[cf12=-2+2*i*n
  805. RootJoint.C0=cf(0,-14.5,0)*euler(0.2-0.2*i*n,0,0)
  806. Neck.C0=cf(0,1,0)*euler(-0.6+0.4*i*n,0,0)
  807. RW.C0=cf(1.5,0.5,0)*euler(-0.2+0.2*i*n,0,0.3)
  808. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  809. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i*n,0,-0.3)
  810. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  811. RH.C0=cf(0.5,-1,-0.5+0.5*i*n)*euler(0.3-0.3*i*n,0,0)
  812. RH.C1=cf(0,1,0)
  813. LH.C0=cf(-0.5,-1,0)*euler(-0.2+0.2*i*n,0,0)
  814. LH.C1=cf(0,1,0)]]
  815. n=n-0.1
  816. end
  817. Humanoid.WalkSpeed=16
  818. de=true
  819. end
  820. end
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837. function KaltosBeat()
  838.  
  839. end
  840.  
  841. function EnergyTranscend()
  842.  
  843. end
  844.  
  845. function TranscendAttack()
  846.  
  847. end
  848.  
  849. function NegConvert()
  850.  
  851. end
  852.  
  853. function KaltosWave()
  854.  
  855. end
  856.  
  857. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  858. for _,c in pairs(workspace:children()) do
  859. local hum=c:findFirstChild("Humanoid")
  860. if hum~=nil then
  861. local head=c:findFirstChild("Torso")
  862. if head~=nil then
  863. local targ=head.Position-Part.Position
  864. local mag=targ.magnitude
  865. if mag<=magni and c.Name~=Player.Name then
  866. Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,3,1)
  867. end
  868. end
  869. end
  870. end
  871. end
  872.  
  873. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  874. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  875. end
  876.  
  877. local Effects={}
  878. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  879. LastPoint=Point
  880. function effect(Color,Ref,LP,P1,returnn)
  881. local effectsmsh=Instance.new("CylinderMesh")
  882. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  883. effectsmsh.Name="Mesh"
  884. local effectsg=Instance.new("Part")
  885. effectsg.formFactor=3
  886. effectsg.CanCollide=false
  887. effectsg.Name="Eff"
  888. effectsg.Locked=true
  889. effectsg.Anchored=true
  890. effectsg.Size=Vector3.new(0.5,1,0.5)
  891. effectsg.Parent=workspace
  892. effectsmsh.Parent=effectsg
  893. effectsg.BrickColor=Color1
  894. effectsg.Reflectance=Ref
  895. local point1=P1
  896. local mg=(LP.p - point1.p).magnitude
  897. effectsg.Size=Vector3.new(0.5,mg,0.5)
  898. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  899. effectsmsh.Scale=Vector3.new(0.4,1,0.4)
  900. game:GetService("Debris"):AddItem(effectsg,2)
  901. if returnn then return effectsg end
  902. if not returnn then
  903. table.insert(Effects,{effectsg,"Cylinder",0.05,0.01,0,0.01})
  904. end
  905. end
  906.  
  907. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  908. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  909. prt.Anchored=true
  910. prt.CFrame=cframe
  911. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  912. game:GetService("Debris"):AddItem(prt,5)
  913. coroutine.resume(coroutine.create(function(Part,Mesh)
  914. for i=0,1,delay do
  915. wait()
  916. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  917. Part.Transparency=i
  918. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  919. end
  920. Part.Parent=nil
  921. end),prt,msh)
  922. end
  923.  
  924. function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  925. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  926. prt.Anchored=true
  927. prt.CFrame=cframe
  928. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1323306",vt(0,0,0),vt(x1,y1,z1))
  929. game:GetService("Debris"):AddItem(prt,2)
  930. coroutine.resume(coroutine.create(function(Part,Mesh)
  931. for i=0,1,delay do
  932. wait()
  933. Part.CFrame=Part.CFrame
  934. Part.Transparency=i
  935. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  936. end
  937. Part.Parent=nil
  938. end),prt,msh)
  939. end
  940.  
  941. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  942. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  943. prt.Anchored=true
  944. prt.CFrame=cframe
  945. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  946. game:GetService("Debris"):AddItem(prt,5)
  947. if Type==1 or Type==nil then
  948. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  949. elseif Type==2 then
  950. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  951. end
  952. end
  953.  
  954. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  955. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  956. prt.Anchored=true
  957. prt.CFrame=cframe
  958. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  959. game:GetService("Debris"):AddItem(prt,2)
  960. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  961. end
  962.  
  963. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  964. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  965. prt.Anchored=true
  966. prt.CFrame=cframe
  967. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  968. game:GetService("Debris"):AddItem(prt,5)
  969. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  970. end
  971.  
  972. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  973. if hit.Parent==nil then
  974. return
  975. end
  976. h=hit.Parent:FindFirstChild("Humanoid")
  977. for _,v in pairs(hit.Parent:children()) do
  978. if v:IsA("Humanoid") then
  979. h=v
  980. end
  981. end
  982. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  983. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  984. end
  985. if hit.Parent.className=="Hat" then
  986. hit=hit.Parent.Parent:findFirstChild("Head")
  987. end
  988. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  989. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  990. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  991. return
  992. end]]
  993. -- hs(hit,1.2)
  994. c=Instance.new("ObjectValue")
  995. c.Name="creator"
  996. c.Value=game:service("Players").LocalPlayer
  997. c.Parent=h
  998. game:GetService("Debris"):AddItem(c,.5)
  999. Damage=math.random(minim,maxim)
  1000. -- h:TakeDamage(Damage)
  1001. blocked=false
  1002. block=hit.Parent:findFirstChild("Block")
  1003. if block~=nil then
  1004. print(block.className)
  1005. if block.className=="NumberValue" then
  1006. if block.Value>0 then
  1007. blocked=true
  1008. if decreaseblock~=nil then
  1009. block.Value=block.Value-decreaseblock
  1010. end
  1011. end
  1012. end
  1013. if block.className=="IntValue" then
  1014. if block.Value>0 then
  1015. blocked=true
  1016. if decreaseblock~=nil then
  1017. block.Value=block.Value-decreaseblock
  1018. end
  1019. end
  1020. end
  1021. end
  1022. if blocked==false then
  1023. -- h:TakeDamage(Damage)
  1024. h.Health=h.Health-Damage
  1025. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  1026. else
  1027. h.Health=h.Health-(Damage/2)
  1028. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1029. end
  1030. if Type=="Knockdown" then
  1031. hum=hit.Parent.Humanoid
  1032. hum.PlatformStand=true
  1033. coroutine.resume(coroutine.create(function(HHumanoid)
  1034. swait(1)
  1035. HHumanoid.PlatformStand=false
  1036. end),hum)
  1037. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1038. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1039. local bodvol=Instance.new("BodyVelocity")
  1040. bodvol.velocity=angle*knockback
  1041. bodvol.P=5000
  1042. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1043. bodvol.Parent=hit
  1044. rl=Instance.new("BodyAngularVelocity")
  1045. rl.P=3000
  1046. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1047. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1048. rl.Parent=hit
  1049. game:GetService("Debris"):AddItem(bodvol,.5)
  1050. game:GetService("Debris"):AddItem(rl,.5)
  1051. elseif Type=="Normal" then
  1052. vp=Instance.new("BodyVelocity")
  1053. vp.P=500
  1054. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1055. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1056. if KnockbackType==1 then
  1057. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1058. elseif KnockbackType==2 then
  1059. vp.velocity=Property.CFrame.lookVector*knockback
  1060. end
  1061. if knockback>0 then
  1062. vp.Parent=hit.Parent.Torso
  1063. end
  1064. game:GetService("Debris"):AddItem(vp,.5)
  1065. elseif Type=="Up" then
  1066. local bodyVelocity=Instance.new("BodyVelocity")
  1067. bodyVelocity.velocity=vt(0,30,0)
  1068. bodyVelocity.P=5000
  1069. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1070. bodyVelocity.Parent=hit
  1071. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1072. rl=Instance.new("BodyAngularVelocity")
  1073. rl.P=3000
  1074. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1075. rl.angularvelocity=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  1076. rl.Parent=hit
  1077. game:GetService("Debris"):AddItem(rl,.5)
  1078. elseif Type=="Snare" then
  1079. bp=Instance.new("BodyPosition")
  1080. bp.P=2000
  1081. bp.D=100
  1082. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1083. bp.position=hit.Parent.Torso.Position
  1084. bp.Parent=hit.Parent.Torso
  1085. game:GetService("Debris"):AddItem(bp,1)
  1086. end
  1087. debounce=Instance.new("BoolValue")
  1088. debounce.Name="DebounceHit"
  1089. debounce.Parent=hit.Parent
  1090. debounce.Value=true
  1091. game:GetService("Debris"):AddItem(debounce,Delay)
  1092. c=Instance.new("ObjectValue")
  1093. c.Name="creator"
  1094. c.Value=Player
  1095. c.Parent=h
  1096. game:GetService("Debris"):AddItem(c,.5)
  1097. CRIT=false
  1098. end
  1099. end
  1100.  
  1101. showDamage=function(Char,Dealt,du,Color)
  1102. m=Instance.new("Model")
  1103. m.Name=tostring(math.floor(Dealt))
  1104. h=Instance.new("Humanoid")
  1105. h.Health=0
  1106. h.MaxHealth=0
  1107. h.Parent=m
  1108. c=Instance.new("Part")
  1109. c.Transparency=0
  1110. c.BrickColor=Color
  1111. c.Name="Head"
  1112. c.TopSurface=0
  1113. c.BottomSurface=0
  1114. c.formFactor="Plate"
  1115. c.Size=Vector3.new(1,.4,1)
  1116. ms=Instance.new("CylinderMesh")
  1117. ms.Scale=Vector3.new(.8,.8,.8)
  1118. if CRIT==true then
  1119. ms.Scale=Vector3.new(1,1.25,1)
  1120. end
  1121. ms.Parent=c
  1122. c.Reflectance=0
  1123. Instance.new("BodyGyro").Parent=c
  1124. c.Parent=m
  1125. if Char:findFirstChild("Head")~=nil then
  1126. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1127. elseif Char.Parent:findFirstChild("Head")~=nil then
  1128. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1129. end
  1130. f=Instance.new("BodyPosition")
  1131. f.P=2000
  1132. f.D=100
  1133. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1134. f.position=c.Position+Vector3.new(0,3,0)
  1135. f.Parent=c
  1136. game:GetService("Debris"):AddItem(m,.5+du)
  1137. c.CanCollide=false
  1138. m.Parent=workspace
  1139. c.CanCollide=false
  1140. end
  1141. function transform()
  1142. text.Text = "Vantas True Form"
  1143. --------------------------This is an Official script from Duelist--------------------------
  1144. ---{-------------------- -------------------}---
  1145. ---{-------------------- / \ -------------------}---
  1146. ---{-------------------- II -------------------}---
  1147. ---{-------------------- II -------------------}---
  1148. ---{-------------------- II -------------------}---
  1149. ---{-------------------- A========A -------------------}---
  1150. ---{-------------------- II -------------------}---
  1151. ---{-------------------- II -------------------}---
  1152. ---{-------------------- W -------------------}---
  1153. -------------------------------------------------------------------------------------------------------------
  1154. wait(0.016666666666666666)
  1155. Player = game:GetService("Players").LocalPlayer
  1156. Character = Player.Character
  1157. PlayerGui = Player.PlayerGui
  1158. Backpack = Player.Backpack
  1159. Torso = Character.Torso
  1160. Head = Character.Head
  1161. Humanoid = Character.Humanoid
  1162. LeftArm = Character["Left Arm"]
  1163. LeftLeg = Character["Left Leg"]
  1164. RightArm = Character["Right Arm"]
  1165. RightLeg = Character["Right Leg"]
  1166. LS = Torso["Left Shoulder"]
  1167. LH = Torso["Left Hip"]
  1168. RS = Torso["Right Shoulder"]
  1169. RH = Torso["Right Hip"]
  1170. Face = Head.face
  1171. Neck = Torso.Neck
  1172. it = Instance.new
  1173. attacktype = 1
  1174. vt = Vector3.new
  1175. cf = CFrame.new
  1176. euler = CFrame.fromEulerAnglesXYZ
  1177. angles = CFrame.Angles
  1178. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1179. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1180. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1181. RootPart = Character.HumanoidRootPart
  1182. RootJoint = RootPart.RootJoint
  1183. RootCF = euler(-1.57, 0, 3.14)
  1184. attack = false
  1185. equipped = false
  1186. Mouse = Player:GetMouse()
  1187. mana = 0
  1188. local idle = 0
  1189. local Anim = "Idle"
  1190. local ShotTarget = RootPart
  1191. player = nil
  1192. local Stats = Instance.new("Folder", Character)
  1193. Stats.Name = "Stats"
  1194. local Defense = Instance.new("NumberValue", Stats)
  1195. Defense.Name = "Defense"
  1196. Defense.Value = 0.6
  1197. local Speed = Instance.new("NumberValue", Stats)
  1198. Speed.Name = "Speed"
  1199. Speed.Value = 1.6625
  1200. local Damage = Instance.new("NumberValue", Stats)
  1201. Damage.Name = "Damage"
  1202. Damage.Value = 1
  1203. local BlockValue = Instance.new("BoolValue", Stats)
  1204. BlockValue.Name = "BlockValue"
  1205. BlockValue.Value = false
  1206. local StaggerHitAnim = Instance.new("BoolValue", Stats)
  1207. StaggerHitAnim.Name = "StaggerHitAnim"
  1208. StaggerHitAnim.Value = false
  1209. local staghitanim = false
  1210. local StaggerAnim = Instance.new("BoolValue", Stats)
  1211. StaggerAnim.Name = "StaggerAnim"
  1212. StaggerAnim.Value = false
  1213. local staganim = false
  1214. local StunAnim = Instance.new("BoolValue", Stats)
  1215. StunAnim.Name = "StunAnim"
  1216. StunAnim.Value = false
  1217. local stunanim = false
  1218. local StunValue = Instance.new("NumberValue", Stats)
  1219. StunValue.Name = "StunValue"
  1220. StunValue.Value = 0
  1221. local cooldown1 = 0
  1222. local cooldown2 = 0
  1223. local cooldown3 = 0
  1224. local cooldown4 = 0
  1225. local mana = 0
  1226. CustomColor = BrickColor.new("Really black")
  1227. Colorpart1 = CustomColor.r
  1228. Colorpart2 = CustomColor.g
  1229. Colorpart3 = CustomColor.b
  1230. local scrn = Instance.new("ScreenGui", PlayerGui)
  1231. local ud = UDim2.new
  1232. local c3 = Color3.new
  1233. local skillcolorscheme = c3(1, 1, 1)
  1234. local co1 = 0
  1235. local co2 = 0
  1236. local co3 = 0
  1237. local co4 = 0
  1238. local maxmana = 0
  1239. local maxstun = 1
  1240. local recovermana = 0
  1241. local losestun = 0
  1242. local stunwait = 0
  1243. local manawait = 0
  1244. local skill1mana = 0
  1245. local skill2mana = 0
  1246. local skill3mana = 0
  1247. local skill4mana = 0
  1248. local menuupdatespeed = 0
  1249. local constantupdate = false
  1250. local showstats = false
  1251. local showstunbar = false
  1252. function makeframe(par, trans, pos, size, color, name)
  1253. local frame = Instance.new("Frame")
  1254. frame.Parent = par
  1255. frame.BackgroundTransparency = trans
  1256. frame.BorderSizePixel = 0
  1257. frame.Position = pos
  1258. frame.Size = size
  1259. frame.BackgroundColor3 = color
  1260. frame.Name = name
  1261. return frame
  1262. end
  1263. function makelabel(par, text, trans, stroketrans, name)
  1264. local label = Instance.new("TextLabel")
  1265. label.Parent = par
  1266. label.BackgroundTransparency = 1
  1267. label.Size = ud(1, 0, 1, 0)
  1268. label.Position = ud(0, 0, 0, 0)
  1269. label.TextColor3 = c3(255, 255, 255)
  1270. label.TextStrokeTransparency = stroketrans
  1271. label.TextTransparency = trans
  1272. label.FontSize = Enum.FontSize.Size32
  1273. label.Font = Enum.Font.Legacy
  1274. label.BorderSizePixel = 0
  1275. label.TextScaled = true
  1276. label.Text = text
  1277. label.Name = name
  1278. return label
  1279. end
  1280. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 1")
  1281. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 2")
  1282. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 3")
  1283. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 4")
  1284. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 1")
  1285. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 2")
  1286. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 3")
  1287. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 4")
  1288. text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
  1289. text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
  1290. text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
  1291. text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
  1292. manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
  1293. manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
  1294. manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
  1295. healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Bar")
  1296. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover")
  1297. healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
  1298. if showstunbar == true then
  1299. stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137254902), "Stun Frame")
  1300. stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar")
  1301. stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
  1302. end
  1303. if showstats == true then
  1304. defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 0.39215686274509803, 1), "Defense Frame")
  1305. damageframe = makeframe(scrn, 0.5, ud(0.322, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.39215686274509803, 0.39215686274509803), "Damage Frame")
  1306. speedframe = makeframe(scrn, 0.5, ud(0.4145, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 1, 0.39215686274509803), "Speed Frame")
  1307. defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
  1308. damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
  1309. speedtext = makelabel(speedframe, "Speed: " .. Speed.Value, 1, 1, "Speed Text")
  1310. end
  1311. function NoOutline(Part)
  1312. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  1313. end
  1314. local weldBetween = function(a, b)
  1315. local weldd = Instance.new("ManualWeld")
  1316. weldd.Part0 = a
  1317. weldd.Part1 = b
  1318. weldd.C0 = CFrame.new()
  1319. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1320. weldd.Parent = a
  1321. return weldd
  1322. end
  1323. ArtificialHeartbeat = Instance.new("BindableEvent", script)
  1324. ArtificialHeartbeat.Name = "ArtificialHeartbeat"
  1325. script:WaitForChild("ArtificialHeartbeat")
  1326. frame = 0.016666666666666666
  1327. tf = 0
  1328. allowframeloss = false
  1329. tossremainder = false
  1330. lastframe = tick()
  1331. script.ArtificialHeartbeat:Fire()
  1332. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1333. tf = tf + s
  1334. if tf >= frame then
  1335. if allowframeloss then
  1336. script.ArtificialHeartbeat:Fire()
  1337. lastframe = tick()
  1338. else
  1339. for i = 1, math.floor(tf / frame) do
  1340. script.ArtificialHeartbeat:Fire()
  1341. end
  1342. lastframe = tick()
  1343. end
  1344. if tossremainder then
  1345. tf = 0
  1346. else
  1347. tf = tf - frame * math.floor(tf / frame)
  1348. end
  1349. end
  1350. end)
  1351. function nooutline(part)
  1352. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1353. end
  1354. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  1355. local fp = it("Part")
  1356. fp.formFactor = formfactor
  1357. fp.Parent = parent
  1358. fp.Reflectance = reflectance
  1359. fp.Transparency = transparency
  1360. fp.CanCollide = false
  1361. fp.Locked = true
  1362. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  1363. fp.Name = name
  1364. fp.Size = size
  1365. fp.Position = Character.Torso.Position
  1366. nooutline(fp)
  1367. fp.Material = material
  1368. fp:BreakJoints()
  1369. return fp
  1370. end
  1371. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  1372. local mesh = it(Mesh)
  1373. mesh.Parent = part
  1374. if Mesh == "SpecialMesh" then
  1375. mesh.MeshType = meshtype
  1376. mesh.MeshId = meshid
  1377. end
  1378. mesh.Offset = offset
  1379. mesh.Scale = scale
  1380. return mesh
  1381. end
  1382. function weld(parent, part0, part1, c0, c1)
  1383. local weld = it("Weld")
  1384. weld.Parent = parent
  1385. weld.Part0 = part0
  1386. weld.Part1 = part1
  1387. weld.C0 = c0
  1388. weld.C1 = c1
  1389. return weld
  1390. end
  1391. Humanoid.CameraOffset = vt(0, 12, 0)
  1392. Humanoid.JumpPower = Humanoid.JumpPower * 2
  1393. coroutine.resume(coroutine.create(function()
  1394. Humanoid.MaxHealth = 5100
  1395. wait(0.1)
  1396. Humanoid.Health = Humanoid.MaxHealth
  1397. end))
  1398. m = Instance.new("Model", Character)
  1399. m.Name = "Outer Being"
  1400. healthscript = Character:FindFirstChild("Health")
  1401. if healthscript ~= nil then
  1402. healthscript:Destroy()
  1403. end
  1404. Effects = Instance.new("Folder", m)
  1405. Effects.Name = "Effects"
  1406. local outerbeingtransparency = 1
  1407. local head2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "Head2", vt(0, 0, 0))
  1408. local head2mesh = mesh("SpecialMesh", head2, "Head", "", vt(0, 0, 0), vt(62.5, 31.25, 31.25))
  1409. local torso2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "Torso2", vt(0, 0, 0))
  1410. local torso2mesh = mesh("BlockMesh", torso2, "", "", vt(0, 0, 0), vt(50, 50, 25))
  1411. local leftarm2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "LeftArm2", vt(0, 0, 0))
  1412. local leftarm2mesh = mesh("BlockMesh", leftarm2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  1413. local rightarm2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "RightArm2", vt(0, 0, 0))
  1414. local rightarm2mesh = mesh("BlockMesh", rightarm2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  1415. local leftleg2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "LeftLeg2", vt(0, 0, 0))
  1416. local leftleg2mesh = mesh("BlockMesh", leftleg2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  1417. local rightleg2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "RightLeg2", vt(0, 0, 0))
  1418. local rightleg2mesh = mesh("BlockMesh", rightleg2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  1419. head2.CFrame = Head.CFrame
  1420. torso2.CFrame = Head.CFrame
  1421. leftarm2.CFrame = Head.CFrame
  1422. rightarm2.CFrame = Head.CFrame
  1423. leftleg2.CFrame = Head.CFrame
  1424. rightleg2.CFrame = Head.CFrame
  1425. local head2weld = weld(m, Torso, head2, cf(0, 0, 0), cf(0, 0, 0))
  1426. local torso2weld = weld(m, Torso, torso2, cf(0, 0, 0), cf(0, 0, 0))
  1427. local leftarm2weld = weld(m, Torso, leftarm2, cf(0, 0, 0), cf(0, 0, 0))
  1428. local rightarm2weld = weld(m, Torso, rightarm2, cf(0, 0, 0), cf(0, 0, 0))
  1429. local leftleg2weld = weld(m, Torso, leftleg2, cf(0, 0, 0), cf(0, 0, 0))
  1430. local rightleg2weld = weld(m, Torso, rightleg2, cf(0, 0, 0), cf(0, 0, 0))
  1431. head2weld.C1 = cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0)
  1432. torso2weld.C1 = cf(0, 0, 0)
  1433. rightarm2weld.C1 = cf(0, 2.5, -0.5)
  1434. leftarm2weld.C1 = cf(0, 2.5, -0.5)
  1435. rightleg2weld.C1 = cf(0, 5, 0)
  1436. leftleg2weld.C1 = cf(0, 5, 0)
  1437. coroutine.resume(coroutine.create(function()
  1438. while Humanoid.Health ~= 0 do
  1439. ArtificialHeartbeat.Event:wait()
  1440. head2weld.C0 = cf(0, 4, 0) * Neck.C0
  1441. torso2weld.C0 = cf(0, 0, 0)
  1442. rightarm2weld.C0 = cf(6, 2, 0) * RW.C0
  1443. leftarm2weld.C0 = cf(-6, 2, 0) * LW.C0
  1444. rightleg2weld.C0 = cf(1.5, -4, 0) * RH.C0
  1445. leftleg2weld.C0 = cf(-1.5, -4, 0) * LH.C0
  1446. head2.Transparency = outerbeingtransparency
  1447. torso2.Transparency = outerbeingtransparency
  1448. leftarm2.Transparency = outerbeingtransparency
  1449. rightarm2.Transparency = outerbeingtransparency
  1450. leftleg2.Transparency = outerbeingtransparency
  1451. rightleg2.Transparency = outerbeingtransparency
  1452. end
  1453. end))
  1454. Humanoid.Died:connect(function()
  1455. end)
  1456. for i, v in pairs(Character:GetChildren()) do
  1457. if v:IsA("Model") then
  1458. for _, c in pairs(v:GetChildren()) do
  1459. if c:IsA("Part") then
  1460. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1461. end
  1462. end
  1463. end
  1464. end
  1465. print([[
  1466. Vanta loaded.
  1467. Unleash your power on your enemies.]])
  1468. function so(id, par, vol, pit)
  1469. coroutine.resume(coroutine.create(function()
  1470. local sou = Instance.new("Sound", par or workspace)
  1471. sou.Volume = vol
  1472. sou.Pitch = pit or 1
  1473. sou.SoundId = id
  1474. ArtificialHeartbeat.Event:wait()
  1475. sou:play()
  1476. game:GetService("Debris"):AddItem(sou, 6)
  1477. end))
  1478. end
  1479. function clerp(a, b, t)
  1480. local qa = {
  1481. QuaternionFromCFrame(a)
  1482. }
  1483. local qb = {
  1484. QuaternionFromCFrame(b)
  1485. }
  1486. local ax, ay, az = a.x, a.y, a.z
  1487. local bx, by, bz = b.x, b.y, b.z
  1488. local _t = 1 - t
  1489. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1490. end
  1491. function QuaternionFromCFrame(cf)
  1492. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1493. local trace = m00 + m11 + m22
  1494. if trace > 0 then
  1495. local s = math.sqrt(1 + trace)
  1496. local recip = 0.5 / s
  1497. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1498. else
  1499. local i = 0
  1500. if m00 < m11 then
  1501. i = 1
  1502. end
  1503. if m22 > (i == 0 and m00 or m11) then
  1504. i = 2
  1505. end
  1506. if i == 0 then
  1507. local s = math.sqrt(m00 - m11 - m22 + 1)
  1508. local recip = 0.5 / s
  1509. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1510. elseif i == 1 then
  1511. local s = math.sqrt(m11 - m22 - m00 + 1)
  1512. local recip = 0.5 / s
  1513. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1514. elseif i == 2 then
  1515. local s = math.sqrt(m22 - m00 - m11 + 1)
  1516. local recip = 0.5 / s
  1517. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1518. end
  1519. end
  1520. end
  1521. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1522. local xs, ys, zs = x + x, y + y, z + z
  1523. local wx, wy, wz = w * xs, w * ys, w * zs
  1524. local xx = x * xs
  1525. local xy = x * ys
  1526. local xz = x * zs
  1527. local yy = y * ys
  1528. local yz = y * zs
  1529. local zz = z * zs
  1530. 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))
  1531. end
  1532. function QuaternionSlerp(a, b, t)
  1533. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1534. local startInterp, finishInterp
  1535. if cosTheta >= 1.0E-4 then
  1536. if 1 - cosTheta > 1.0E-4 then
  1537. local theta = math.acos(cosTheta)
  1538. local invSinTheta = 1 / math.sin(theta)
  1539. startInterp = math.sin((1 - t) * theta) * invSinTheta
  1540. finishInterp = math.sin(t * theta) * invSinTheta
  1541. else
  1542. startInterp = 1 - t
  1543. finishInterp = t
  1544. end
  1545. elseif 1 + cosTheta > 1.0E-4 then
  1546. local theta = math.acos(-cosTheta)
  1547. local invSinTheta = 1 / math.sin(theta)
  1548. startInterp = math.sin((t - 1) * theta) * invSinTheta
  1549. finishInterp = math.sin(t * theta) * invSinTheta
  1550. else
  1551. startInterp = t - 1
  1552. finishInterp = t
  1553. end
  1554. 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
  1555. end
  1556. function rayCast(Pos, Dir, Max, Ignore)
  1557. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1558. end
  1559. function makegui(cframe, text, color)
  1560. local c = Instance.new("Part")
  1561. c.Size = vt(0.2, 0.2, 0.2)
  1562. c.Transparency = 1
  1563. Instance.new("BodyGyro").Parent = c
  1564. c.Parent = Effects
  1565. c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
  1566. local f = Instance.new("BodyPosition")
  1567. f.P = 2000
  1568. f.D = 100
  1569. f.maxForce = vt(math.huge, math.huge, math.huge)
  1570. f.position = c.Position + vt(0, 6, 0)
  1571. f.Parent = c
  1572. game:GetService("Debris"):AddItem(c, 5)
  1573. c.CanCollide = false
  1574. c.Parent = workspace
  1575. c.CanCollide = false
  1576. local bg = Instance.new("BillboardGui", c)
  1577. bg.Adornee = c
  1578. bg.Size = UDim2.new(2.5, 0, 2.5, 0)
  1579. bg.StudsOffset = vt(-2, 2, 0)
  1580. bg.AlwaysOnTop = false
  1581. local tl = Instance.new("TextLabel", bg)
  1582. tl.BackgroundTransparency = 1
  1583. tl.Size = UDim2.new(2.5, 0, 2.5, 0)
  1584. tl.Text = text
  1585. tl.Font = Enum.Font.SourceSans
  1586. tl.FontSize = Enum.FontSize.Size42
  1587. tl.TextColor3 = color
  1588. tl.TextScaled = false
  1589. tl.TextStrokeTransparency = 0
  1590. tl.TextScaled = true
  1591. tl.TextWrapped = true
  1592. f.Parent = c
  1593. coroutine.resume(coroutine.create(function()
  1594. wait(0.25)
  1595. for i = 1, 5 do
  1596. ArtificialHeartbeat.Event:wait()
  1597. f.position = c.Position - vt(0, 0.5, 0)
  1598. end
  1599. end))
  1600. coroutine.resume(coroutine.create(function()
  1601. wait(2)
  1602. for i = 1, 10 do
  1603. ArtificialHeartbeat.Event:wait()
  1604. tl.TextTransparency = tl.TextTransparency + 0.1
  1605. tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
  1606. f.position = c.Position + vt(0, 0.5, 0)
  1607. end
  1608. c.Parent = nil
  1609. end))
  1610. end
  1611. local CritChance = Instance.new("NumberValue", Stats)
  1612. CritChance.Name = "CritChance"
  1613. CritChance.Value = 1
  1614. local critchancenumber = 50
  1615. local cancrit = false
  1616. local canpenetratearmor = false
  1617. local cancollidewithhitbox = false
  1618. local sethitblockvaluetofalse = true
  1619. local antiteamkill = false
  1620. local HitPlayerSounds = {
  1621. 199149137,
  1622. 199149186,
  1623. 199149221,
  1624. 199149235,
  1625. 199149269,
  1626. 199149297
  1627. }
  1628. local HitArmorSounds = {
  1629. 199149321,
  1630. 199149338,
  1631. 199149367,
  1632. 199149409,
  1633. 199149452
  1634. }
  1635. local HitWeaponSounds = {
  1636. 199148971,
  1637. 199149025,
  1638. 199149072,
  1639. 199149109,
  1640. 199149119
  1641. }
  1642. local HitBlockSounds = {199148933, 199148947}
  1643. function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  1644. if hit.Parent == nil then
  1645. return
  1646. end
  1647. h = hit.Parent:FindFirstChild("Humanoid")
  1648. for _, v in pairs(hit.Parent:children()) do
  1649. if v:IsA("Humanoid") then
  1650. h = v
  1651. end
  1652. end
  1653. if antiteamkill == true then
  1654. if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
  1655. opponent = game.Players:FindFirstChild(hit.Parent.Name)
  1656. end
  1657. if opponent ~= nil and opponent.TeamColor == Player.TeamColor then
  1658. return
  1659. end
  1660. end
  1661. if hit.Name == "Hitbox" and hit:FindFirstChild("TouchInterest") ~= nil then
  1662. StaggerHitAnim.Value = true
  1663. so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
  1664. return
  1665. end
  1666. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  1667. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  1668. end
  1669. if hit.Parent.className == "Hat" then
  1670. hit = hit.Parent.Parent:findFirstChild("Head")
  1671. end
  1672. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1673. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1674. return
  1675. end
  1676. if hit.Parent:findFirstChild("Stats") ~= nil then
  1677. if hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
  1678. hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
  1679. end
  1680. elseif hit.Parent:findFirstChild("StunValue") ~= nil then
  1681. hit.Parent:findFirstChild("StunValue").Value = hit.Parent:findFirstChild("StunValue").Value + incstun
  1682. end
  1683. if hit.Parent:findFirstChild("StaggerAnim") ~= nil and stagger == true then
  1684. hit.Parent:findFirstChild("StaggerAnim").Value = true
  1685. end
  1686. if hit.Parent:findFirstChild("Stats") ~= nil then
  1687. if hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
  1688. makegui(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
  1689. so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  1690. if ranged ~= true then
  1691. if sethitblockvaluetofalse == true then
  1692. hit.Parent.Stats:findFirstChild("BlockValue").Value = false
  1693. end
  1694. StaggerAnim.Value = true
  1695. end
  1696. return
  1697. end
  1698. elseif hit.Parent:findFirstChild("BlockValue") ~= nil and hit.Parent:findFirstChild("BlockValue").Value == true then
  1699. makegui(Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
  1700. so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  1701. if ranged ~= true then
  1702. if sethitblockvaluetofalse == true then
  1703. hit.Parent:findFirstChild("BlockValue").Value = false
  1704. end
  1705. StaggerAnim.Value = true
  1706. end
  1707. return
  1708. end
  1709. local D = math.random(minim, maxim) * Damage.Value
  1710. if hit.Parent:FindFirstChild("Stats") ~= nil then
  1711. if hit.Parent.Stats:FindFirstChild("Defense") then
  1712. if canpenetratearmor == true then
  1713. else
  1714. D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
  1715. end
  1716. elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then
  1717. end
  1718. elseif hit.Parent:FindFirstChild("Defense") then
  1719. if canpenetratearmor == true then
  1720. else
  1721. D = D / hit.Parent:FindFirstChild("Defense").Value
  1722. end
  1723. elseif hit.Parent:FindFirstChild("Defense") == nil then
  1724. end
  1725. if cancrit == true then
  1726. CritChance.Value = math.random(1, critchancenumber)
  1727. if CritChance.Value == critchancenumber then
  1728. D = D * 2
  1729. end
  1730. end
  1731. h.Health = h.Health - D
  1732. if D <= 3 and staghit == true then
  1733. if ranged ~= true then
  1734. StaggerHitAnim.Value = true
  1735. end
  1736. so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
  1737. elseif D > 3 and ranged ~= true then
  1738. so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
  1739. end
  1740. if D > 2 and D < 20 then
  1741. if CritChance.Value == critchancenumber then
  1742. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  1743. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  1744. else
  1745. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0.8627450980392157, 0))
  1746. end
  1747. elseif D >= 20 then
  1748. if CritChance.Value == critchancenumber then
  1749. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  1750. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  1751. else
  1752. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0))
  1753. end
  1754. else
  1755. if D <= 2 then
  1756. if CritChance.Value == critchancenumber then
  1757. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  1758. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  1759. else
  1760. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706))
  1761. end
  1762. else
  1763. end
  1764. end
  1765. if Type == "Normal" then
  1766. vp = Instance.new("BodyVelocity")
  1767. vp.P = 500
  1768. vp.maxForce = vt(math.huge, 0, math.huge)
  1769. if KnockbackType == 1 then
  1770. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1771. elseif KnockbackType == 2 then
  1772. vp.velocity = Property.CFrame.lookVector * knockback
  1773. end
  1774. if knockback > 0 then
  1775. vp.Parent = hit.Parent.Torso
  1776. end
  1777. game:GetService("Debris"):AddItem(vp, 0.5)
  1778. end
  1779. debounce = Instance.new("BoolValue")
  1780. debounce.Name = "DebounceHit"
  1781. debounce.Parent = hit.Parent
  1782. debounce.Value = true
  1783. game:GetService("Debris"):AddItem(debounce, Delay)
  1784. c = Instance.new("ObjectValue")
  1785. c.Name = "creator"
  1786. c.Value = Player
  1787. c.Parent = h
  1788. game:GetService("Debris"):AddItem(c, 0.5)
  1789. end
  1790. end
  1791. function DecreaseStat(Location, CFrame, Stat, Amount, Duration, ShowDebuff)
  1792. if Location[Stat] ~= nil then
  1793. Location[Stat].Value = Location[Stat].Value - Amount
  1794. if ShowDebuff == true then
  1795. if Location[Stat].Name == "Defense" then
  1796. makegui(CFrame, "-Defense", c3(1, 1, 1))
  1797. elseif Location[Stat].Name == "Damage" then
  1798. makegui(CFrame, "-Damage", c3(1, 1, 1))
  1799. elseif Location[Stat].Name == "Speed" then
  1800. makegui(CFrame, "-Movement", c3(1, 1, 1))
  1801. end
  1802. end
  1803. coroutine.resume(coroutine.create(function()
  1804. wait(Duration)
  1805. Location[Stat].Value = Location[Stat].Value + Amount
  1806. end))
  1807. end
  1808. end
  1809. function IncreaseStat(Location, CFrame, Stat, Amount, Duration, ShowBuff)
  1810. if Location[Stat] ~= nil then
  1811. Location[Stat].Value = Location[Stat].Value + Amount
  1812. if ShowBuff == true then
  1813. if Location[Stat].Name == "Defense" then
  1814. makegui(CFrame, "+Defense", c3(1, 1, 1))
  1815. elseif Location[Stat].Name == "Damage" then
  1816. makegui(CFrame, "+Damage", c3(1, 1, 1))
  1817. elseif Location[Stat].Name == "Speed" then
  1818. makegui(CFrame, "+Movement", c3(1, 1, 1))
  1819. end
  1820. end
  1821. coroutine.resume(coroutine.create(function()
  1822. wait(Duration)
  1823. Location[Stat].Value = Location[Stat].Value - Amount
  1824. end))
  1825. end
  1826. end
  1827. function GetDist(Part1, Part2, magni)
  1828. local targ = Part1.Position - Part2.Position
  1829. local mag = targ.magnitude
  1830. if magni >= mag then
  1831. return true
  1832. else
  1833. return false
  1834. end
  1835. end
  1836. function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  1837. for _, c in pairs(workspace:children()) do
  1838. local hum = c:findFirstChild("Humanoid")
  1839. if hum ~= nil then
  1840. local head = c:findFirstChild("Torso")
  1841. if head ~= nil then
  1842. local targ = head.Position - Part.Position
  1843. local mag = targ.magnitude
  1844. if magni >= mag and c.Name ~= Player.Name then
  1845. Damagefunc(head, mindam, maxdam, knock, Type, RootPart, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  1846. end
  1847. end
  1848. end
  1849. end
  1850. end
  1851. function Lightning(p0, p1, tym, ofs, brickcolor, th, tra, last)
  1852. local magz = (p0 - p1).magnitude
  1853. local curpos = p0
  1854. local trz = {
  1855. -ofs,
  1856. ofs
  1857. }
  1858. for i = 1, tym do
  1859. do
  1860. local li = Instance.new("Part", workspace)
  1861. li.TopSurface = 0
  1862. li.BottomSurface = 0
  1863. li.Anchored = true
  1864. li.Transparency = tra or 0.4
  1865. li.BrickColor = brickcolor
  1866. li.formFactor = "Custom"
  1867. li.CanCollide = false
  1868. li.Size = vt(th, th, magz / tym)
  1869. local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1870. local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
  1871. if tym == i then
  1872. local magz2 = (curpos - p1).magnitude
  1873. li.Size = vt(th, th, magz2)
  1874. li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
  1875. else
  1876. li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
  1877. end
  1878. curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
  1879. game.Debris:AddItem(li, last)
  1880. coroutine.resume(coroutine.create(function()
  1881. while li.Transparency ~= 1 do
  1882. for i = 0, 1, last do
  1883. ArtificialHeartbeat.Event:wait()
  1884. li.Transparency = li.Transparency + 0.1 / last
  1885. end
  1886. end
  1887. end))
  1888. end
  1889. end
  1890. end
  1891. function MagicRing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1892. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1893. prt.Anchored = true
  1894. prt.CFrame = cframe
  1895. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1896. game:GetService("Debris"):AddItem(prt, 10)
  1897. coroutine.resume(coroutine.create(function(Part, Mesh)
  1898. for i = 0, 1, delay do
  1899. ArtificialHeartbeat.Event:wait()
  1900. Part.CFrame = Part.CFrame
  1901. Part.Transparency = i
  1902. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1903. end
  1904. Part.Parent = nil
  1905. end), prt, msh)
  1906. end
  1907. function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1908. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1909. prt.Anchored = true
  1910. prt.CFrame = cframe
  1911. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1912. game:GetService("Debris"):AddItem(prt, 10)
  1913. coroutine.resume(coroutine.create(function(Part, Mesh)
  1914. for i = 0, 1, delay do
  1915. ArtificialHeartbeat.Event:wait()
  1916. Part.CFrame = Part.CFrame
  1917. Part.Transparency = i
  1918. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1919. end
  1920. Part.Parent = nil
  1921. end), prt, msh)
  1922. end
  1923. function MagicBlock(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  1924. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1925. prt.Anchored = true
  1926. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1927. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1928. game:GetService("Debris"):AddItem(prt, 10)
  1929. coroutine.resume(coroutine.create(function(Part, Mesh)
  1930. for i = 0, 1, delay do
  1931. ArtificialHeartbeat.Event:wait()
  1932. if rotate == true then
  1933. Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1934. else
  1935. end
  1936. Part.Transparency = i
  1937. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1938. end
  1939. Part.Parent = nil
  1940. end), prt, msh)
  1941. end
  1942. function MagicBlock2(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  1943. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1944. prt.Anchored = true
  1945. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1946. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1947. game:GetService("Debris"):AddItem(prt, 10)
  1948. CF = prt.CFrame
  1949. num = math.random(5, 20)
  1950. coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
  1951. for i = 0, 1, delay do
  1952. ArtificialHeartbeat.Event:wait()
  1953. if rotate == true then
  1954. Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1955. else
  1956. Part.CFrame = CF2 * cf(0, i * Num, 0)
  1957. end
  1958. Part.Transparency = i
  1959. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1960. end
  1961. Part.Parent = nil
  1962. end), prt, msh, CF, num)
  1963. end
  1964. function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1965. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1966. prt.Anchored = true
  1967. prt.CFrame = cframe
  1968. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1969. game:GetService("Debris"):AddItem(prt, 10)
  1970. coroutine.resume(coroutine.create(function(Part, Mesh)
  1971. for i = 0, 1, delay do
  1972. ArtificialHeartbeat.Event:wait()
  1973. Part.Transparency = i
  1974. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1975. end
  1976. Part.Parent = nil
  1977. end), prt, msh)
  1978. end
  1979. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1980. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1981. prt.Anchored = true
  1982. prt.CFrame = cframe
  1983. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1984. game:GetService("Debris"):AddItem(prt, 10)
  1985. coroutine.resume(coroutine.create(function(Part, Mesh)
  1986. for i = 0, 1, delay do
  1987. ArtificialHeartbeat.Event:wait()
  1988. Part.Transparency = i
  1989. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1990. end
  1991. Part.Parent = nil
  1992. end), prt, msh)
  1993. end
  1994. function BreakEffect(brickcolor, rotate, cframe, x1, y1, z1, delay)
  1995. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1996. prt.Anchored = true
  1997. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1998. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1999. game:GetService("Debris"):AddItem(prt, 10)
  2000. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  2001. CF = Part.CFrame
  2002. Numbb = 0
  2003. randnumb = math.random() - math.random()
  2004. for i = 0, 1, delay do
  2005. ArtificialHeartbeat.Event:wait()
  2006. CF = CF * cf(0, 1, 0)
  2007. if rotate == true then
  2008. Part.CFrame = CF * angles(Numbb, 0, 0)
  2009. elseif rotate == false then
  2010. Part.CFrame = CF
  2011. end
  2012. Part.Transparency = i
  2013. Numbb = Numbb + randnumb
  2014. end
  2015. Part.Parent = nil
  2016. end), prt, CF, Numbb, randnumb)
  2017. end
  2018. function ElecEffect(brickcolor, cf, x, y, z, delay)
  2019. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  2020. prt.Anchored = true
  2021. prt.CFrame = cf
  2022. xval = math.random()
  2023. yval = math.random()
  2024. zval = math.random()
  2025. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
  2026. game:GetService("Debris"):AddItem(prt, 10)
  2027. coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
  2028. for i = 0, 1, delay do
  2029. ArtificialHeartbeat.Event:wait()
  2030. Part.CFrame = Part.CFrame
  2031. xvaal = xvaal - 0.1 * (delay * 10)
  2032. yvaal = yvaal - 0.1 * (delay * 10)
  2033. zvaal = zvaal - 0.1 * (delay * 10)
  2034. Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
  2035. Part.Transparency = i
  2036. end
  2037. Part.Parent = nil
  2038. end), prt, msh, xval, yval, zval)
  2039. end
  2040. function subtractmana(k)
  2041. if k <= mana then
  2042. mana = mana - k
  2043. end
  2044. end
  2045. local idleangle = 0
  2046. local idlen = 0
  2047. local donum = 0
  2048. local sine = 0
  2049. local change = 1
  2050. local val = 0
  2051. local walkinganim = false
  2052. local handidle = false
  2053. local walk = 0
  2054. local someangle = 0
  2055. local change2 = 1
  2056. local stundelay = 0
  2057. local manadelay = 0
  2058. local dieanim = false
  2059. local robloxidleanimation = Instance.new("Animation", Torso)
  2060. robloxidleanimation.Name = "robloxidleanimation"
  2061. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  2062. Animator = Humanoid:findFirstChild("Animator")
  2063. Animate = Character:findFirstChild("Animate")
  2064. Running = Head:FindFirstChild("Running")
  2065. if Running ~= nil then
  2066. Running.Volume = 0
  2067. end
  2068. local startequipped = false
  2069. local startequippedwithequipanimation = true
  2070. local disableanimator = true
  2071. local disableanimate = false
  2072. local alternatewalk = false
  2073. local customwalk = false
  2074. local hidemenu = false
  2075. local allowmenutofunction = false
  2076. local allowabilitestofunction = false
  2077. local canunequiporequip = false
  2078. local allowidle = false
  2079. local allowwalking = false
  2080. local disablemovingarms = false
  2081. local usemotorsinsteadofwelds = false
  2082. local leftarm = false
  2083. local rightarm = false
  2084. local allowhopperbin = false
  2085. local allowstunbar = false
  2086. local walkspeeddependsonspeedvalue = true
  2087. local alternatemanaregensystem = false
  2088. local showhealthmanaandstunnumbers = false
  2089. local changebarcolorsifnotenoughmana = false
  2090. local disablejumpifstaggeredorstunned = false
  2091. if hidemenu == true then
  2092. for _, v in pairs(scrn:children()) do
  2093. if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
  2094. v.Visible = false
  2095. end
  2096. end
  2097. end
  2098. if disablejumpifstaggeredorstunned == true then
  2099. Humanoid.Changed:connect(function(Jump)
  2100. if Jump == "Jump" and (StaggerAnim.Value == true or StunAnim.Value == true) then
  2101. Humanoid.Jump = false
  2102. end
  2103. end)
  2104. end
  2105. if allowmenutofunction == true then
  2106. for _, v in pairs(scrn:GetChildren()) do
  2107. if v.ClassName == "Frame" then
  2108. for _, b in pairs(v:GetChildren()) do
  2109. if b.ClassName == "TextLabel" and b.Name ~= "Text 1" and b.Name ~= "Text 2" and b.Name ~= "Text 3" and b.Name ~= "Text 4" then
  2110. coroutine.resume(coroutine.create(function(TheTextLabel)
  2111. wait(menuupdatespeed)
  2112. for i = 1, 0, -0.1 do
  2113. ArtificialHeartbeat.Event:wait()
  2114. TheTextLabel.TextTransparency = i
  2115. TheTextLabel.TextStrokeTransparency = i
  2116. end
  2117. TheTextLabel.TextTransparency = 0
  2118. TheTextLabel.TextStrokeTransparency = 0
  2119. end), b)
  2120. end
  2121. end
  2122. end
  2123. end
  2124. end
  2125. if allowmenutofunction == true and allowabilitestofunction == true then
  2126. for _, v in pairs(scrn:GetChildren()) do
  2127. if v.ClassName == "Frame" then
  2128. for _, b in pairs(v:GetChildren()) do
  2129. if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then
  2130. coroutine.resume(coroutine.create(function(TheTextLabel)
  2131. wait(menuupdatespeed)
  2132. for i = 1, 0, -0.1 do
  2133. ArtificialHeartbeat.Event:wait()
  2134. TheTextLabel.TextTransparency = i
  2135. TheTextLabel.TextStrokeTransparency = i
  2136. end
  2137. TheTextLabel.TextTransparency = 0
  2138. TheTextLabel.TextStrokeTransparency = 0
  2139. end), b)
  2140. end
  2141. end
  2142. end
  2143. end
  2144. end
  2145. if allowhopperbin == true then
  2146. if script.Parent.className ~= "HopperBin" then
  2147. Tool = Instance.new("HopperBin")
  2148. Tool.Parent = Backpack
  2149. Tool.Name = "Weapon Name"
  2150. script.Parent = Tool
  2151. end
  2152. Bin = script.Parent
  2153. end
  2154. if disablemovingarms == true then
  2155. RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  2156. LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  2157. RSH, LSH = nil, nil
  2158. if usemotorsinsteadofwelds == true then
  2159. RW = Instance.new("Motor")
  2160. LW = Instance.new("Motor")
  2161. else
  2162. RW = Instance.new("Weld")
  2163. LW = Instance.new("Weld")
  2164. end
  2165. RW.Name = "Right Shoulder"
  2166. LW.Name = "Left Shoulder"
  2167. RSH = Torso["Right Shoulder"]
  2168. LSH = Torso["Left Shoulder"]
  2169. RSH.Parent = Torso
  2170. LSH.Parent = Torso
  2171. RW.Name = "Right Shoulder"
  2172. RW.Part0 = Torso
  2173. RW.C0 = cf(1.5, 0.5, 0)
  2174. RW.C1 = cf(0, 0.5, 0)
  2175. RW.Part1 = Character["Right Arm"]
  2176. RW.Parent = nil
  2177. LW.Name = "Left Shoulder"
  2178. LW.Part0 = Torso
  2179. LW.C0 = cf(-1.5, 0.5, 0)
  2180. LW.C1 = cf(0, 0.5, 0)
  2181. LW.Part1 = Character["Left Arm"]
  2182. LW.Parent = nil
  2183. else
  2184. RW = Torso["Right Shoulder"]
  2185. LW = Torso["Left Shoulder"]
  2186. LH = Torso["Left Hip"]
  2187. RH = Torso["Right Hip"]
  2188. RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0))
  2189. LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0))
  2190. end
  2191. if allowidle == true then
  2192. coroutine.resume(coroutine.create(function()
  2193. while true do
  2194. for i = 0, 1, 0.08 do
  2195. wait()
  2196. idleangle = idleangle + 0.005 * idlen
  2197. idlen = idlen - 0.1
  2198. end
  2199. idlen = 0
  2200. for i = 0, 1, 0.08 do
  2201. wait()
  2202. idleangle = idleangle - 0.005 * idlen
  2203. idlen = idlen - 0.1
  2204. end
  2205. idlen = 0
  2206. idleangle = 0
  2207. end
  2208. end))
  2209. end
  2210. function equipanim()
  2211. attack = true
  2212. local equipvelocity = Instance.new("BodyVelocity", Torso)
  2213. equipvelocity.P = 500
  2214. equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
  2215. equipvelocity.Velocity = Vector3.new(0, 10, 0)
  2216. for i = 0, 1, 0.02 do
  2217. ArtificialHeartbeat.Event:wait()
  2218. MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  2219. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2220. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  2221. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
  2222. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
  2223. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  2224. LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
  2225. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2226. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2227. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
  2228. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
  2229. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  2230. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
  2231. end
  2232. coroutine.resume(coroutine.create(function()
  2233. for i = 0, 1, 0.1 do
  2234. wait()
  2235. outerbeingtransparency = outerbeingtransparency - 0.05
  2236. end
  2237. outerbeingtransparency = 0.5
  2238. end))
  2239. equipvelocity.Velocity = Vector3.new(0, 0, 0)
  2240. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
  2241. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
  2242. so("http://roblox.com/asset/?id=203691510", Torso, 1, 1)
  2243. so("http://roblox.com/asset/?id=203691653", Torso, 1, 1)
  2244. so("http://roblox.com/asset/?id=203691562", Torso, 1, 1)
  2245. so("http://roblox.com/asset/?id=160740121", Torso, 1, 1.5)
  2246. for i = 0, 1, 0.02 do
  2247. ArtificialHeartbeat.Event:wait()
  2248. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2249. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2250. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(90)) * RWC0, 0.15)
  2251. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)) * LWC0, 0.15)
  2252. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2253. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2254. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2255. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2256. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2257. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2258. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2259. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2260. end
  2261. equipvelocity:Destroy()
  2262. Speed.Value = Speed.Value - 0.1
  2263. Defense.Value = Defense.Value + 0.4
  2264. attack = false
  2265. end
  2266. function unequipanim()
  2267. attack = true
  2268. coroutine.resume(coroutine.create(function()
  2269. Humanoid.MaxHealth = math.huge
  2270. wait(0.1)
  2271. Humanoid.Health = Humanoid.MaxHealth
  2272. end))
  2273. local equipvelocity = Instance.new("BodyVelocity", Torso)
  2274. equipvelocity.P = 500
  2275. equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
  2276. equipvelocity.Velocity = Vector3.new(0, 1, 0)
  2277. so("http://roblox.com/asset/?id=183763515", Torso, 1, 0.4)
  2278. for i = 0, 1, 0.005 do
  2279. ArtificialHeartbeat.Event:wait()
  2280. MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
  2281. BreakEffect(CustomColor, false, Torso.CFrame, 1, 25, 1, 0.05)
  2282. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20 + math.random(-10, 10)), math.rad(0), math.rad(0 + math.random(-10, 10))), 0.15)
  2283. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  2284. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
  2285. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
  2286. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  2287. LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
  2288. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2289. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2290. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
  2291. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
  2292. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  2293. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
  2294. end
  2295. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
  2296. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
  2297. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
  2298. so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.6)
  2299. so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.6)
  2300. for i = 1, 2 do
  2301. so("http://roblox.com/asset/?id=160867463", Torso, 1, 0.8)
  2302. so("http://roblox.com/asset/?id=297472596", Torso, 1, 0.8)
  2303. end
  2304. coroutine.resume(coroutine.create(function()
  2305. for i = 0, 1, 0.01 do
  2306. wait()
  2307. outerbeingtransparency = outerbeingtransparency + 0.005
  2308. end
  2309. outerbeingtransparency = 1
  2310. end))
  2311. Face.Transparency = 1
  2312. for _, v in pairs(Character:children()) do
  2313. if v:IsA("Part") and v.ClassName ~= "Model" then
  2314. coroutine.resume(coroutine.create(function(Part)
  2315. for i = 0, 1, 0.01 do
  2316. wait()
  2317. Part.Transparency = Part.Transparency + 0.01
  2318. end
  2319. Part.Anchored = true
  2320. Part.Transparency = 1
  2321. end), v)
  2322. elseif v:IsA("Hat") then
  2323. coroutine.resume(coroutine.create(function(Hat)
  2324. for i = 0, 1, 0.01 do
  2325. wait()
  2326. Hat.Transparency = Hat.Transparency + 0.01
  2327. end
  2328. Hat.Anchored = true
  2329. Hat.Transparency = 1
  2330. end), v.Handle)
  2331. end
  2332. end
  2333. local deathnum = 0
  2334. for i = 0, 1, 0.005 do
  2335. ArtificialHeartbeat.Event:wait()
  2336. if deathnum >= 10 then
  2337. deathnum = 0
  2338. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2339. refpart.CFrame = Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))
  2340. refpart.Anchored = true
  2341. game:GetService("Debris"):AddItem(refpart, 1)
  2342. MagicBlock(CustomColor, true, refpart.CFrame, 30, 30, 30, 0.5, 0.5, 0.5, 0.01)
  2343. MagicSphere(CustomColor, refpart.CFrame, 60, 60, 60, 1, 1, 1, 0.01)
  2344. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
  2345. end
  2346. BreakEffect(CustomColor, false, Torso.CFrame, 1, 50, 1, 0.05)
  2347. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(0 + math.random(-40, 40))), 0.15)
  2348. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40))), 0.15)
  2349. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))) * RWC0, 0.15)
  2350. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))) * LWC0, 0.15)
  2351. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))), 0.15)
  2352. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))), 0.15)
  2353. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2354. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2355. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2356. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2357. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2358. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2359. deathnum = deathnum + 1
  2360. end
  2361. Humanoid.MaxHealth = 0
  2362. Humanoid.Health = 0
  2363. equipvelocity.Velocity = Vector3.new(0, 0, 0)
  2364. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.008)
  2365. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.008)
  2366. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.4)
  2367. so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.4)
  2368. so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.4)
  2369. so("http://roblox.com/asset/?id=160867463", Torso, 1, 1.2)
  2370. attack = false
  2371. end
  2372. if startequipped == true then
  2373. equipped = true
  2374. if disableanimate == true then
  2375. Animate.Disabled = true
  2376. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2377. idleanimation:Play()
  2378. end
  2379. if disableanimator == true then
  2380. Animator.Parent = nil
  2381. end
  2382. if disablemovingarms == true then
  2383. RW.Parent = Torso
  2384. LW.Parent = Torso
  2385. RSH.Parent = nil
  2386. LSH.Parent = nil
  2387. end
  2388. Speed.Value = Speed.Value - 0.1
  2389. Defense.Value = Defense.Value + 0.4
  2390. elseif startequippedwithequipanimation == true then
  2391. equipped = true
  2392. if disableanimate == true then
  2393. Animate.Disabled = true
  2394. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2395. idleanimation:Play()
  2396. end
  2397. if disableanimator == true then
  2398. Animator.Parent = nil
  2399. end
  2400. if disablemovingarms == true then
  2401. RW.Parent = Torso
  2402. LW.Parent = Torso
  2403. RSH.Parent = nil
  2404. LSH.Parent = nil
  2405. end
  2406. equipanim()
  2407. end
  2408. function StaggerHit()
  2409. attack = true
  2410. attack = false
  2411. end
  2412. function Stagger()
  2413. attack = true
  2414. attack = false
  2415. end
  2416. function Stun()
  2417. attack = true
  2418. attack = false
  2419. end
  2420. function EAbility()
  2421. attack = true
  2422. attack = false
  2423. end
  2424. function attackone()
  2425. attack = true
  2426. attack = false
  2427. end
  2428. function attacktwo()
  2429. attack = true
  2430. attack = false
  2431. end
  2432. function attackthree()
  2433. attack = true
  2434. attack = false
  2435. end
  2436. function attackfour()
  2437. attack = true
  2438. attack = false
  2439. end
  2440. function Move1()
  2441. attack = true
  2442. for i = 0, 1, 0.25 do
  2443. ArtificialHeartbeat.Event:wait()
  2444. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2445. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2446. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15)
  2447. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2448. if Anim ~= "Walk" then
  2449. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2450. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2451. elseif Anim == "Walk" then
  2452. if walkinganim == true then
  2453. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2454. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2455. else
  2456. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2457. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2458. end
  2459. end
  2460. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2461. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2462. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2463. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2464. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2465. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2466. end
  2467. for i = 0, 1, 0.04 do
  2468. ArtificialHeartbeat.Event:wait()
  2469. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2470. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2471. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15)
  2472. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2473. if Anim ~= "Walk" then
  2474. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2475. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2476. elseif Anim == "Walk" then
  2477. if walkinganim == true then
  2478. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2479. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2480. else
  2481. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2482. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2483. end
  2484. end
  2485. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2486. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2487. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2488. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2489. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2490. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2491. end
  2492. local orbnumber = math.random(20, 40)
  2493. coroutine.resume(coroutine.create(function()
  2494. for i = 1, orbnumber do
  2495. wait()
  2496. local orbblastpart = part(3, Effects, "SmoothPlastic", 0, 0.5, CustomColor, "Effect", vt())
  2497. local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10))
  2498. orbblastpart.Anchored = true
  2499. game:GetService("Debris"):AddItem(orbblastpart, 5)
  2500. orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(50, 100), math.random(-10, 10)))
  2501. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
  2502. MagicSphere(CustomColor, orbblastpart.CFrame, 10, 10, 10, 0.5, 0.5, 0.5, 0.05)
  2503. so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
  2504. coroutine.resume(coroutine.create(function(Part)
  2505. wait(1)
  2506. local spread = vt(math.random(-16, 16), math.random(-16, 16), math.random(-16, 16)) * (Part.Position - (Part.Position + vt(0, -1, 0))).magnitude / 100
  2507. local TheHit = Part.Position + vt(0, -1, 0)
  2508. local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
  2509. local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
  2510. local mag = (Part.Position - pos).magnitude
  2511. MagicCylinder(CustomColor, cf((Part.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 1, mag * 5, 1, 0.25, 0, 0.25, 0.025)
  2512. MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
  2513. Part.Parent = nil
  2514. if hit ~= nil then
  2515. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2516. refpart.CFrame = cf(pos)
  2517. refpart.Anchored = true
  2518. game:GetService("Debris"):AddItem(refpart, 1)
  2519. MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
  2520. MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 3, 3, 3, 0.05)
  2521. MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 1, 1, 1, 1, 0.025)
  2522. so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
  2523. Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true)
  2524. MagniDamage(refpart, 15, 5, 10, 0, "Normal", 0, 1, 0, nil, true, true)
  2525. end
  2526. end), orbblastpart)
  2527. end
  2528. end))
  2529. for i = 0, 1, (0.015 + orbnumber / 10000) / 2 do
  2530. ArtificialHeartbeat.Event:wait()
  2531. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2532. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2533. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15)
  2534. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2535. if Anim ~= "Walk" then
  2536. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2537. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2538. elseif Anim == "Walk" then
  2539. if walkinganim == true then
  2540. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2541. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2542. else
  2543. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2544. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2545. end
  2546. end
  2547. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2548. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2549. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2550. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2551. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2552. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2553. end
  2554. for i = 0, 1, 0.25 do
  2555. ArtificialHeartbeat.Event:wait()
  2556. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2557. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2558. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15)
  2559. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2560. if Anim ~= "Walk" then
  2561. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2562. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2563. elseif Anim == "Walk" then
  2564. if walkinganim == true then
  2565. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2566. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2567. else
  2568. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2569. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2570. end
  2571. end
  2572. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2573. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2574. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2575. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2576. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2577. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2578. end
  2579. attack = false
  2580. end
  2581. function Move2()
  2582. attack = true
  2583. local oldspeedvalue = Speed.Value
  2584. Speed.Value = 0
  2585. for i = 0, 1, 0.25 do
  2586. ArtificialHeartbeat.Event:wait()
  2587. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2588. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2589. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2590. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2591. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2592. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2593. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2594. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2595. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
  2596. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
  2597. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2598. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2599. end
  2600. for i = 0, 1, 0.015 do
  2601. ArtificialHeartbeat.Event:wait()
  2602. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2603. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2604. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2605. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2606. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2607. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2608. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2609. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2610. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
  2611. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
  2612. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2613. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2614. end
  2615. so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
  2616. for i = 0, 1, 0.25 do
  2617. ArtificialHeartbeat.Event:wait()
  2618. MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
  2619. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
  2620. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2621. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2622. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2623. LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2624. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  2625. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15)
  2626. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2627. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2628. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2629. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2630. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
  2631. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2632. end
  2633. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2634. refpart.CFrame = RootPart.CFrame * cf(0, 500, -20)
  2635. refpart.Anchored = true
  2636. game:GetService("Debris"):AddItem(refpart, 1)
  2637. local TheHit = refpart.Position + vt(0, -1, 0)
  2638. local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit)
  2639. local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character)
  2640. local mag = (refpart.Position - pos).magnitude
  2641. local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2642. refpart2.CFrame = cf(pos)
  2643. refpart2.Anchored = true
  2644. game:GetService("Debris"):AddItem(refpart2, 1)
  2645. MagicCylinder(CustomColor, cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, 0.1, 0, 0.1, 0.025)
  2646. if hit ~= nil then
  2647. MagicBlock(CustomColor, true, refpart2.CFrame, 15, 15, 15, 1.5, 1.5, 1.5, 0.01)
  2648. MagicSphere(CustomColor, refpart2.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  2649. MagicWave(CustomColor, refpart2.CFrame, 5, 5, 5, 1, 1.5, 1, 0.025)
  2650. MagicRing(CustomColor, refpart2.CFrame * angles(math.rad(90), 0, 0), 2.5, 2.5, 2.5, 2, 2, 2, 0.025)
  2651. so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
  2652. so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
  2653. MagniDamage(refpart2, 25, 20, 50, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true)
  2654. end
  2655. for i = 0, 1, 0.02 do
  2656. ArtificialHeartbeat.Event:wait()
  2657. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2658. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2659. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2660. LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2661. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  2662. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15)
  2663. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2664. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2665. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2666. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2667. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
  2668. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2669. end
  2670. Speed.Value = Speed.Value + oldspeedvalue
  2671. attack = false
  2672. end
  2673. function Move3()
  2674. attack = true
  2675. local oldspeedvalue = Speed.Value
  2676. Speed.Value = 0
  2677. so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
  2678. for i = 0, 1, 0.05 do
  2679. ArtificialHeartbeat.Event:wait()
  2680. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  2681. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
  2682. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
  2683. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2684. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.15)
  2685. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  2686. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2687. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2688. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2689. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2690. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  2691. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2692. end
  2693. for i = 0, 1, 0.05 do
  2694. ArtificialHeartbeat.Event:wait()
  2695. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  2696. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
  2697. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
  2698. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
  2699. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  2700. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
  2701. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2702. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2703. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2704. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2705. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.15)
  2706. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2707. end
  2708. MagicSphere(CustomColor, RootPart.CFrame * cf(2.5, -3, -2), 10, 4, 10, 2.5, 1.5, 2.5, 0.025)
  2709. local num = 0
  2710. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2711. refpart.CFrame = RootPart.CFrame * cf(2.5, 0, -6)
  2712. refpart.Anchored = true
  2713. game:GetService("Debris"):AddItem(refpart, 3)
  2714. for i = 1, 4 do
  2715. local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2716. refpart2.CFrame = refpart.CFrame * cf(2.5, 0, num)
  2717. refpart2.Anchored = true
  2718. game:GetService("Debris"):AddItem(refpart2, 1)
  2719. local TheHit = refpart2.Position + vt(0, -1, 0)
  2720. local MouseLook = cf((refpart2.Position + TheHit) / 2, TheHit)
  2721. local hit, pos = rayCast(refpart2.Position, MouseLook.lookVector, 999, Character)
  2722. if hit ~= nil then
  2723. local refpart3 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2724. refpart3.CFrame = cf(pos)
  2725. refpart3.Anchored = true
  2726. game:GetService("Debris"):AddItem(refpart3, 1)
  2727. MagicSphere(CustomColor, refpart3.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  2728. MagicWave(CustomColor, refpart3.CFrame, 5, 5, 5, 1, 1, 1, 0.025)
  2729. so("http://www.roblox.com/asset/?id=161006093", refpart3, 1, 0.6)
  2730. MagniDamage(refpart3, 20, 20, 30, math.random(5, 20), "Normal", 0, 1, 0, nil, true, true)
  2731. end
  2732. num = num - 20
  2733. wait(0.4)
  2734. end
  2735. Speed.Value = Speed.Value + oldspeedvalue
  2736. attack = false
  2737. end
  2738. function Move4()
  2739. attack = true
  2740. for i = 0, 1, 0.25 do
  2741. ArtificialHeartbeat.Event:wait()
  2742. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2743. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2744. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2745. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2746. if Anim ~= "Walk" then
  2747. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2748. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2749. elseif Anim == "Walk" then
  2750. if walkinganim == true then
  2751. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2752. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2753. else
  2754. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2755. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2756. end
  2757. end
  2758. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2759. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2760. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2761. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2762. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2763. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2764. end
  2765. for i = 0, 1, 0.04 do
  2766. ArtificialHeartbeat.Event:wait()
  2767. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2768. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2769. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2770. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2771. if Anim ~= "Walk" then
  2772. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2773. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2774. elseif Anim == "Walk" then
  2775. if walkinganim == true then
  2776. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2777. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2778. else
  2779. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2780. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2781. end
  2782. end
  2783. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2784. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2785. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2786. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2787. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2788. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2789. end
  2790. local orbpart = part(3, Effects, "SmoothPlastic", 0, 0.5, CustomColor, "Effect", vt())
  2791. local orbmesh = mesh("SpecialMesh", orbpart, "Sphere", "", vt(0, 0, 0), vt(15, 15, 15))
  2792. local orbweld = weld(orbpart, Torso, orbpart, cf(0, 0, 0), cf(0, -15, 0))
  2793. game:GetService("Debris"):AddItem(orbpart, 5)
  2794. so("http://roblox.com/asset/?id=137463716", orbpart, 1, 0.6)
  2795. coroutine.resume(coroutine.create(function(Part, Mesh)
  2796. for i = 0, 0.7, 0.005 do
  2797. ArtificialHeartbeat.Event:wait()
  2798. Mesh.Scale = Mesh.Scale + vt(0.25, 0.25, 0.25)
  2799. MagicBlock(CustomColor, true, orbpart.CFrame, 15, 15, 15, 1, 1, 1, 0.05)
  2800. local orbchargeeffect = part(3, Effects, "SmoothPlastic", 0, 0, CustomColor, "Effect", vt())
  2801. local orbchargeeffectmesh = mesh("SpecialMesh", orbchargeeffect, "Sphere", "", vt(0, 0, 0), vt(2, math.random(10, 15), 2))
  2802. local orbchargecframe = angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) * cf(0, math.random(10, 20), 0)
  2803. orbchargeeffect.CFrame = orbpart.CFrame * orbchargecframe
  2804. orbchargeeffect.Anchored = true
  2805. game:GetService("Debris"):AddItem(orbchargeeffect, 2)
  2806. coroutine.resume(coroutine.create(function(Part, Mesh)
  2807. for i = 0, 1, 0.1 do
  2808. ArtificialHeartbeat.Event:wait()
  2809. Part.Transparency = i
  2810. Part.CFrame = Part.CFrame * cf(0, -1, 0)
  2811. end
  2812. Part.Parent = nil
  2813. end), orbchargeeffect, orbchargeeffectmesh)
  2814. end
  2815. wait(0.5)
  2816. local range = 999
  2817. local MainPos = Part.Position
  2818. local MainPos2 = Mouse.Hit.p
  2819. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  2820. local hit, pos = rayCast(MainPos, MouseLook.lookVector, range, ShotTarget.Parent)
  2821. local mag = (MainPos - pos).magnitude
  2822. MagicCylinder(CustomColor, cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, mag * 5, 10, 0.25, 0, 0.25, 0.005)
  2823. for i = 1, 5 do
  2824. local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, mag / 5 * (i / 2), 0)
  2825. MagicRing(CustomColor, ringcf * angles(math.rad(90), 0, 0), 1, 1, 1, 0.25, 0.25, 0.25, 0.005)
  2826. end
  2827. for i = 0, 5 do
  2828. local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, -mag / 5 * (i / 2), 0)
  2829. MagicRing(CustomColor, ringcf * angles(math.rad(90), 0, 0), 1, 1, 1, 0.25, 0.25, 0.25, 0.005)
  2830. end
  2831. so("http://roblox.com/asset/?id=183763506", Part, 1, 0.6)
  2832. so("http://roblox.com/asset/?id=178452221", Part, 1, 0.6)
  2833. so("http://www.roblox.com/asset/?id=87767777", Part, 1, 1)
  2834. if hit ~= nil then
  2835. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2836. refpart.CFrame = cf(pos)
  2837. refpart.Anchored = true
  2838. game:GetService("Debris"):AddItem(refpart, 1)
  2839. MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  2840. MagicSphere(CustomColor, refpart.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  2841. so("http://roblox.com/asset/?id=183763506", refpart, 1, 0.6)
  2842. so("http://roblox.com/asset/?id=178452221", refpart, 1, 0.6)
  2843. so("http://www.roblox.com/Asset?ID=87767777", refpart, 1, 1)
  2844. Damagefunc(hit, 30, 70, 50, "Normal", RootPart, 0, 1, 0, nil, true, true)
  2845. MagniDamage(refpart, 20, 10, 30, 40, "Normal", 0, 1, 0, nil, true, true)
  2846. end
  2847. for i = 0, 1, 0.01 do
  2848. ArtificialHeartbeat.Event:wait()
  2849. Mesh.Scale = Mesh.Scale + vt(0.5, 0.5, 0.5)
  2850. Part.Transparency = Part.Transparency + 0.01
  2851. end
  2852. Part.Parent = nil
  2853. end), orbpart, orbmesh)
  2854. for i = 0, 1, 0.004 do
  2855. ArtificialHeartbeat.Event:wait()
  2856. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2857. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2858. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2859. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2860. if Anim ~= "Walk" then
  2861. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2862. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2863. elseif Anim == "Walk" then
  2864. if walkinganim == true then
  2865. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2866. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2867. else
  2868. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2869. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2870. end
  2871. end
  2872. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2873. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2874. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2875. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2876. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2877. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2878. end
  2879. for i = 0, 1, 0.25 do
  2880. ArtificialHeartbeat.Event:wait()
  2881. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2882. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2883. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2884. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2885. if Anim ~= "Walk" then
  2886. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2887. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2888. elseif Anim == "Walk" then
  2889. if walkinganim == true then
  2890. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2891. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  2892. else
  2893. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2894. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  2895. end
  2896. end
  2897. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2898. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2899. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2900. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2901. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2902. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2903. end
  2904. attack = false
  2905. end
  2906. hold = false
  2907. Mouse.Button1Down:connect(function()
  2908. if attack == true or equipped == false then
  2909. return
  2910. end
  2911. hold = true
  2912. if attacktype == 1 then
  2913. attacktype = 2
  2914. attackone()
  2915. elseif attacktype == 2 then
  2916. attacktype = 3
  2917. attacktwo()
  2918. elseif attacktype == 3 then
  2919. attacktype = 4
  2920. attackthree()
  2921. elseif attacktype == 4 then
  2922. attacktype = 1
  2923. attackfour()
  2924. end
  2925. coroutine.resume(coroutine.create(function()
  2926. for i = 1, 50 do
  2927. if attack == false then
  2928. wait()
  2929. end
  2930. end
  2931. if attack == false then
  2932. attacktype = 1
  2933. end
  2934. end))
  2935. end)
  2936. if allowhopperbin == true then
  2937. function ob1u(Mouse)
  2938. hold = false
  2939. end
  2940. end
  2941. Mouse.KeyDown:connect(function(key)
  2942. if key == "f" and canunequiporequip == true and attack == false then
  2943. if equipped == false then
  2944. equipped = true
  2945. if disableanimate == true then
  2946. Animate.Disabled = true
  2947. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2948. idleanimation:Play()
  2949. end
  2950. if disableanimator == true then
  2951. Animator.Parent = nil
  2952. end
  2953. if disablemovingarms == true then
  2954. RW.Parent = Torso
  2955. LW.Parent = Torso
  2956. RSH.Parent = nil
  2957. LSH.Parent = nil
  2958. end
  2959. equipanim()
  2960. elseif equipped == true then
  2961. equipped = false
  2962. unequipanim()
  2963. ArtificialHeartbeat.Event:wait()
  2964. if disablemovingarms == true then
  2965. RW.Parent = nil
  2966. LW.Parent = nil
  2967. RSH.Parent = Torso
  2968. LSH.Parent = Torso
  2969. end
  2970. if disableanimator == true then
  2971. Animator.Parent = Humanoid
  2972. end
  2973. if disableanimate == true then
  2974. Animate.Disabled = false
  2975. end
  2976. end
  2977. end
  2978. if key == "e" and attack == false and equipped == true then
  2979. EAbility()
  2980. end
  2981. if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and mana >= skill1mana then
  2982. subtractmana(skill1mana)
  2983. cooldown1 = 0
  2984. Move1()
  2985. end
  2986. if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and mana >= skill2mana then
  2987. subtractmana(skill2mana)
  2988. cooldown2 = 0
  2989. Move2()
  2990. end
  2991. if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and mana >= skill3mana then
  2992. subtractmana(skill3mana)
  2993. cooldown3 = 0
  2994. Move3()
  2995. end
  2996. if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then
  2997. subtractmana(skill4mana)
  2998. cooldown4 = 0
  2999. Move4()
  3000. end
  3001. if key == "m" then
  3002. hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
  3003. if hitfloor == nil then
  3004. RootPart.CFrame = RootPart.CFrame * cf(0, 12, 0)
  3005. end
  3006. end
  3007. end)
  3008. if allowhopperbin == true then
  3009. function key2(key)
  3010. end
  3011. end
  3012. if allowhopperbin == true then
  3013. function s(Mouse)
  3014. Mouse.Button1Down:connect(function()
  3015. ob1d(Mouse)
  3016. end)
  3017. Mouse.Button1Up:connect(function()
  3018. ob1u(Mouse)
  3019. end)
  3020. Mouse.KeyDown:connect(key)
  3021. Mouse.KeyUp:connect(key2)
  3022. end
  3023. end
  3024. if allowhopperbin == true then
  3025. function ds(Mouse)
  3026. end
  3027. end
  3028. if allowhopperbin == true then
  3029. Bin.Selected:connect(s)
  3030. Bin.Deselected:connect(ds)
  3031. end
  3032. function updateskills()
  3033. if allowabilitestofunction == true then
  3034. if cooldown1 <= co1 then
  3035. cooldown1 = cooldown1 + 0.03333333333333333
  3036. if cooldown1 >= co1 then
  3037. cooldown1 = co1
  3038. end
  3039. end
  3040. if cooldown2 <= co2 then
  3041. cooldown2 = cooldown2 + 0.03333333333333333
  3042. if cooldown2 >= co2 then
  3043. cooldown2 = co2
  3044. end
  3045. end
  3046. if cooldown3 <= co3 then
  3047. cooldown3 = cooldown3 + 0.03333333333333333
  3048. if cooldown3 >= co3 then
  3049. cooldown3 = co3
  3050. end
  3051. end
  3052. if cooldown4 <= co4 then
  3053. cooldown4 = cooldown4 + 0.03333333333333333
  3054. elseif cooldown4 >= co4 then
  3055. cooldown4 = co4
  3056. end
  3057. if changebarcolorsifnotenoughmana == true then
  3058. if mana <= skill1mana then
  3059. bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3060. else
  3061. bar4.BackgroundColor3 = skillcolorscheme
  3062. end
  3063. if mana <= skill2mana then
  3064. bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3065. else
  3066. bar3.BackgroundColor3 = skillcolorscheme
  3067. end
  3068. if mana <= skill3mana then
  3069. bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3070. else
  3071. bar1.BackgroundColor3 = skillcolorscheme
  3072. end
  3073. if mana <= skill4mana then
  3074. bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3075. else
  3076. bar2.BackgroundColor3 = skillcolorscheme
  3077. end
  3078. elseif changebarcolorsifnotenoughmana == false then
  3079. bar1.BackgroundColor3 = skillcolorscheme
  3080. bar2.BackgroundColor3 = skillcolorscheme
  3081. bar3.BackgroundColor3 = skillcolorscheme
  3082. bar4.BackgroundColor3 = skillcolorscheme
  3083. end
  3084. end
  3085. if alternatemanaregensystem == false then
  3086. if mana <= maxmana then
  3087. mana = mana + recovermana / 30
  3088. elseif mana >= maxmana then
  3089. mana = maxmana
  3090. end
  3091. elseif alternatemanaregensystem == true then
  3092. if mana >= maxmana then
  3093. mana = maxmana
  3094. elseif manadelay <= manawait then
  3095. manadelay = manadelay + 1
  3096. else
  3097. manadelay = 0
  3098. mana = mana + 1
  3099. end
  3100. end
  3101. if allowstunbar == true then
  3102. if 0 >= StunValue.Value then
  3103. StunValue.Value = 0
  3104. elseif stundelay <= stunwait then
  3105. stundelay = stundelay + 1
  3106. else
  3107. stundelay = 0
  3108. StunValue.Value = StunValue.Value - 1
  3109. end
  3110. elseif allowstunbar == false then
  3111. StunValue.Value = 0
  3112. end
  3113. end
  3114. if allowmenutofunction == true then
  3115. ArtificialHeartbeat.Event:connect(function()
  3116. updateskills()
  3117. if allowabilitestofunction == true then
  3118. framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3119. framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3120. framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3121. framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3122. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3123. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3124. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3125. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3126. end
  3127. manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3128. manacover:TweenSize(ud(1 * (mana / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3129. healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3130. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3131. if allowstunbar == true then
  3132. stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3133. stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3134. end
  3135. if showhealthmanaandstunnumbers == true then
  3136. manatext.Text = "Mana [" .. mana .. "]"
  3137. healthtext.Text = "Health [" .. Humanoid.Health .. "]"
  3138. if allowstunbar == true then
  3139. stuntext.Text = "Stun [" .. StunValue.Value .. "]"
  3140. end
  3141. end
  3142. if showstats == true then
  3143. defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3144. damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3145. speedframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3146. defensetext.Text = "Defense: " .. Defense.Value
  3147. damagetext.Text = "Damage: " .. Damage.Value
  3148. speedtext.Text = "Speed: " .. Speed.Value
  3149. end
  3150. end)
  3151. end
  3152. ArtificialHeartbeat.Event:connect(function()
  3153. if Humanoid.Health < 100 and dieanim == false then
  3154. dieanim = true
  3155. unequipanim()
  3156. end
  3157. if Humanoid.Health > 0 then
  3158. if walkspeeddependsonspeedvalue == true then
  3159. if 0 > Speed.Value or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true then
  3160. Humanoid.WalkSpeed = 0
  3161. else
  3162. Humanoid.WalkSpeed = 16 * Speed.Value
  3163. end
  3164. end
  3165. if StunValue.Value >= maxstun then
  3166. StunValue.Value = 0
  3167. StunAnim.Value = true
  3168. end
  3169. if StaggerAnim.Value == true and staganim == false then
  3170. coroutine.resume(coroutine.create(function()
  3171. staganim = true
  3172. while attack == true do
  3173. ArtificialHeartbeat.Event:wait()
  3174. end
  3175. Stagger()
  3176. StaggerAnim.Value = false
  3177. staganim = false
  3178. end))
  3179. end
  3180. if StaggerHitAnim.Value == true and staghitanim == false then
  3181. coroutine.resume(coroutine.create(function()
  3182. staghitanim = true
  3183. while attack == true do
  3184. ArtificialHeartbeat.Event:wait()
  3185. end
  3186. StaggerHit()
  3187. StaggerHitAnim.Value = false
  3188. staghitanim = false
  3189. end))
  3190. end
  3191. if StunAnim.Value == true and stunanim == false or 100 <= StunValue.Value then
  3192. coroutine.resume(coroutine.create(function()
  3193. StunValue.Value = 0
  3194. stunanim = true
  3195. while attack == true do
  3196. ArtificialHeartbeat.Event:wait()
  3197. end
  3198. Stun()
  3199. StunAnim.Value = false
  3200. stunanim = false
  3201. end))
  3202. end
  3203. sine = sine + change
  3204. someangle = someangle % 100 + change2 / 10
  3205. local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
  3206. local velderp = RootPart.Velocity.y
  3207. local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
  3208. hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
  3209. if donum >= 0.5 then
  3210. handidle = true
  3211. elseif donum <= 0 then
  3212. handidle = false
  3213. end
  3214. if handidle == false then
  3215. donum = donum + 0.002
  3216. else
  3217. donum = donum - 0.002
  3218. end
  3219. if equipped == true or equipped == false then
  3220. if attack == false then
  3221. idle = idle + 1
  3222. else
  3223. idle = 0
  3224. end
  3225. if not (idle >= 500) or attack == false then
  3226. end
  3227. if leftarm == true then
  3228. if Anim == "Walk" and equipped == true and attack == false then
  3229. if alternatewalk == false then
  3230. if walkinganim == true then
  3231. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3232. else
  3233. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3234. end
  3235. elseif walkinganim == true then
  3236. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3237. else
  3238. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3239. end
  3240. elseif Anim ~= "Walk" and equipped == true or attack == true then
  3241. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3242. end
  3243. end
  3244. if rightarm == true then
  3245. if Anim == "Walk" and equipped == true and attack == false then
  3246. if alternatewalk == false then
  3247. if walkinganim == true then
  3248. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3249. else
  3250. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3251. end
  3252. elseif walkinganim == true then
  3253. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3254. else
  3255. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3256. end
  3257. elseif Anim ~= "Walk" and equipped == true or attack == true then
  3258. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3259. end
  3260. end
  3261. if allowwalking == true then
  3262. if Anim == "Walk" and equipped == true then
  3263. if alternatewalk == false then
  3264. if walkinganim == true then
  3265. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3266. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3267. else
  3268. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3269. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3270. end
  3271. elseif walkinganim == true then
  3272. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3273. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3274. else
  3275. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3276. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
  3277. end
  3278. elseif Anim ~= "Walk" and equipped == true then
  3279. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3280. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3281. end
  3282. end
  3283. if velderp > 1 and hitfloor == nil then
  3284. Anim = "Jump"
  3285. if attack == false and equipped == true then
  3286. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3287. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.1)
  3288. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)) * RWC0, 0.1)
  3289. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * LWC0, 0.1)
  3290. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.1)
  3291. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.1)
  3292. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  3293. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  3294. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3295. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3296. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  3297. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  3298. end
  3299. elseif velderp < -1 and hitfloor == nil then
  3300. Anim = "Fall"
  3301. if attack == false and equipped == true then
  3302. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3303. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1)
  3304. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(60)) * RWC0, 0.1)
  3305. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.1)
  3306. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
  3307. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  3308. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  3309. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  3310. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3311. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3312. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  3313. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  3314. end
  3315. elseif torvel < 1 and hitfloor ~= nil then
  3316. Anim = "Idle"
  3317. if attack == false and equipped == true then
  3318. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
  3319. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.075)
  3320. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.075)
  3321. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.075)
  3322. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
  3323. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
  3324. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.075)
  3325. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.075)
  3326. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
  3327. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
  3328. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.075)
  3329. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.075)
  3330. end
  3331. elseif torvel > 1 and hitfloor ~= nil then
  3332. Anim = "Walk"
  3333. walk = walk + 0.5
  3334. if walk >= 20 then
  3335. walk = 0
  3336. if walkinganim == true then
  3337. walkinganim = false
  3338. elseif walkinganim == false then
  3339. walkinganim = true
  3340. end
  3341. end
  3342. if attack == false and equipped == true then
  3343. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3344. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  3345. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.1)
  3346. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.1)
  3347. if walkinganim == true then
  3348. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  3349. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
  3350. else
  3351. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  3352. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
  3353. end
  3354. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  3355. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  3356. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3357. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3358. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  3359. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  3360. end
  3361. end
  3362. end
  3363. end
  3364. end)
  3365. end
  3366. combo=0
  3367. function ob1d(mouse)
  3368. if attack==true or equipped==false then return end
  3369. hold=true
  3370. if Mode=="Normal" then
  3371. if combo==0 then
  3372. combo=1
  3373. attackone()
  3374. elseif combo==1 then
  3375. combo=2
  3376. attacktwo()
  3377. elseif combo==2 then
  3378. combo=0
  3379. attackthree()
  3380. end
  3381. else
  3382. TranscendAttack()
  3383. end
  3384. coroutine.resume(coroutine.create(function()
  3385. for i=1,50 do
  3386. if attack==false then
  3387. swait()
  3388. end
  3389. end
  3390. if attack==false then
  3391. combo=0
  3392. end
  3393. end))
  3394. end
  3395.  
  3396. function ob1u(mouse)
  3397. hold = false
  3398. end
  3399.  
  3400. buttonhold = false
  3401.  
  3402. eul=0
  3403. holdz=false
  3404. equipped=false
  3405. function key(key)
  3406. if key=="z" then
  3407. end
  3408. if attack==true then return end
  3409. if key=="f" then
  3410. attack=true
  3411. if equipped==false then
  3412. equipped=true
  3413. RSH=ch.Torso["Right Shoulder"]
  3414. LSH=ch.Torso["Left Shoulder"]
  3415. --
  3416. RSH.Parent=nil
  3417. LSH.Parent=nil
  3418. --
  3419. RW.Name="Right Shoulder"
  3420. RW.Part0=ch.Torso
  3421. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  3422. RW.C1=cf(0, 0.5, 0)
  3423. RW.Part1=ch["Right Arm"]
  3424. RW.Parent=ch.Torso
  3425. --
  3426. LW.Name="Left Shoulder"
  3427. LW.Part0=ch.Torso
  3428. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  3429. LW.C1=cf(0, 0.5, 0)
  3430. LW.Part1=ch["Left Arm"]
  3431. LW.Parent=ch.Torso
  3432. --
  3433. equipanim()
  3434. else
  3435. equipped=false
  3436. hideanim()
  3437. swait(0)
  3438. RW.Parent=nil
  3439. LW.Parent=nil
  3440. RSH.Parent=player.Character.Torso
  3441. LSH.Parent=player.Character.Torso
  3442. end
  3443. attack=false
  3444. end
  3445. if equipped==false then return end
  3446. if key=="r" then
  3447. Terrorblast()
  3448. end
  3449. if key=="q" then
  3450. Nocturn()
  3451. end
  3452. if key=="e" then
  3453. Darkrain()
  3454. end
  3455. if key=="x" then
  3456. Titanfall()
  3457. end
  3458. if key=="c" then
  3459. Darkstomp()
  3460. end
  3461. if key=="v" then
  3462. so("http://www.roblox.com/asset/?id=203691282",Player.Character.Torso,1,1)
  3463. end
  3464. if key=="b" then
  3465. transform()
  3466. end
  3467. end
  3468.  
  3469. function key2(key)
  3470. if key=="z" then
  3471. holdz=false
  3472. end
  3473. end
  3474.  
  3475. function s(mouse)
  3476. mouse.Button1Down:connect(function() ob1d(mouse) end)
  3477. mouse.Button1Up:connect(function() ob1u(mouse) end)
  3478. mouse.KeyDown:connect(key)
  3479. mouse.KeyUp:connect(key2)
  3480.  
  3481. player=Player
  3482. ch=Character
  3483. MMouse=mouse
  3484. end
  3485.  
  3486. function ds(mouse)
  3487. end
  3488.  
  3489. Bin.Selected:connect(s)
  3490. Bin.Deselected:connect(ds)
  3491. print("Vanta powers activated.")
  3492.  
  3493. local mananum=0
  3494. local donum=0
  3495. local circlenum=0
  3496. local handidle=false
  3497. local orbeffect=1
  3498. local orbdelay=0
  3499. local effectdelay=0
  3500. while true do
  3501. swait()
  3502. if Mode=="Transcend" then
  3503. if orbnum<=0 then
  3504. Mode="Normal"
  3505. end
  3506. if effectdelay>4 then
  3507. return
  3508. end
  3509. end
  3510. --if orbdelay>=5 then
  3511. --end
  3512. --orbdelay=orbdelay+1
  3513. circlenum=circlenum+0.1
  3514. --wld48.C0=clerp(wld48.C0,CFrame.Angles(x,y,z),.3)
  3515. if donum>=.5 then
  3516. handidle=true
  3517. elseif donum<=0 then
  3518. handidle=false
  3519. end
  3520. if handidle==false then
  3521. donum=donum+0.003
  3522. else
  3523. donum=donum-0.003
  3524. end
  3525. if attack==false and equipped==true then
  3526.  
  3527. end
  3528. --between prt16 and prt17
  3529. --local wld27=weld(prt27,prt27,prt26,euler(0,0,0)*cf(0,-1.2,0))
  3530. --[[local top=prt16r.CFrame
  3531. local bottom=prt17r.CFrame
  3532. oristrpos=CFrame.new((top.p+bottom.p)/2)
  3533. local mg1=(top.p-oristrpos.p).magnitude
  3534. local mg2=(bottom.p-oristrpos.p).magnitude
  3535. cff=CFrame.new(top*angles(1.57,0,0).p,prt17r.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
  3536. hit2=prt27
  3537. hit=prt17r
  3538. wld27.Parent=prt27
  3539. wld27.Part0=hit2
  3540. wld27.Part1=hit
  3541. HitPos=cff.p
  3542. local CJ = CFrame.new(HitPos)
  3543. local C0=cff:inverse() *CJ
  3544. local C1=hit.CFrame:inverse() * CJ
  3545. wld27.C0=clerp(wld27.C0,C0,.1)
  3546. wld27.C1=clerp(wld27.C1,C1,.1)]]
  3547. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3548. local velderp=RootPart.Velocity.y
  3549. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3550. if equipped==true then
  3551. if attack==false then
  3552. idle=idle+1
  3553. else
  3554. idle=0
  3555. end
  3556. if idle>=500 then
  3557. if attack==false then
  3558. --Sheath()
  3559. end
  3560. end
  3561. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3562. Anim="Jump"
  3563. if attack==false then
  3564.  
  3565. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  3566. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3567. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3568. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  3569. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3570. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  3571. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3572. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  3573. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  3574. end
  3575. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3576. Anim="Fall"
  3577. if attack==false then
  3578.  
  3579. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  3580. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3581. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3582. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  3583. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3584. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  3585. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3586. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3587. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3588. end
  3589. elseif torvel<1 and hitfloor~=nil then
  3590. Anim="Idle"
  3591. if attack==false then
  3592. if Mode=="Normal" then
  3593.  
  3594. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  3595. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3596. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  3597. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.1-(donum/5)),.3)
  3598. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3599. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.1+(donum/5)),.3)
  3600. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3601. RH.C0=clerp(RH.C0,RHC0,.3)
  3602. RH.C1=clerp(RH.C1,RHC1,.3)
  3603. LH.C0=clerp(LH.C0,LHC0,.3)
  3604. LH.C1=clerp(LH.C1,LHC1,.3)
  3605. else
  3606.  
  3607. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0,0,.4),.3)
  3608. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-.4),.3)
  3609. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,0,.4-(donum/4)),.3)
  3610. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3611. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.8+(donum/4)),.3)
  3612. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3613. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.1,-.5,-.4),.3)
  3614. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,-.5,.4),.3)
  3615. end
  3616. end
  3617. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3618. Anim="Walk"
  3619. if attack==false then
  3620. if Mode=="Normal" then
  3621.  
  3622. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  3623. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3624. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.3)
  3625. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.2,0,0.3),.3)
  3626. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3627. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.3),.3)
  3628. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3629. RH.C0=clerp(RH.C0,RHC0,.3)
  3630. LH.C0=clerp(LH.C0,LHC0,.3)
  3631. else
  3632.  
  3633. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0.1,0,0),.3)
  3634. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  3635. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4),.3)
  3636. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3637. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.8),.3)
  3638. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3639. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.1,0,-.4),.3)
  3640. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,0,.4),.3)
  3641. end
  3642. end
  3643. elseif torvel>=22 and hitfloor~=nil then
  3644. Anim="Run"
  3645. if attack==false then
  3646. if Mode=="Normal" then
  3647.  
  3648. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  3649. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3650. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.3,0,0),.3)
  3651. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.5,0,0.5),.3)
  3652. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3653. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.5,0,-0.5),.3)
  3654. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3655. else
  3656.  
  3657. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0.1,0,0),.3)
  3658. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3)
  3659. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4),.3)
  3660. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3661. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.8),.3)
  3662. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3663. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.1,0,-.4),.3)
  3664. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,0,.4),.3)
  3665. end
  3666. end
  3667. end
  3668. end
  3669. if #Effects>0 then
  3670. --table.insert(Effects,{prt,"Block1",delay})
  3671. for e=1,#Effects do
  3672. if Effects[e]~=nil then
  3673. --for j=1,#Effects[e] do
  3674. local Thing=Effects[e]
  3675. if Thing~=nil then
  3676. local Part=Thing[1]
  3677. local Mode=Thing[2]
  3678. local Delay=Thing[3]
  3679. local IncX=Thing[4]
  3680. local IncY=Thing[5]
  3681. local IncZ=Thing[6]
  3682. if Thing[1].Transparency<=1 then
  3683. if Thing[2]=="Block1" then
  3684. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3685. Mesh=Thing[1].Mesh
  3686. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3687. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3688. elseif Thing[2]=="Block2" then
  3689. Thing[1].CFrame=Thing[1].CFrame
  3690. Mesh=Thing[1].Mesh
  3691. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3692. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3693. elseif Thing[2]=="Cylinder" then
  3694. Mesh=Thing[7]
  3695. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3696. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3697. elseif Thing[2]=="Blood" then
  3698. Mesh=Thing[7]
  3699. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3700. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3701. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3702. elseif Thing[2]=="Elec" then
  3703. Mesh=Thing[1].Mesh
  3704. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3705. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3706. elseif Thing[2]=="Disappear" then
  3707. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3708. end
  3709. else
  3710. Part.Parent=nil
  3711. table.remove(Effects,e)
  3712. end
  3713. end
  3714. --end
  3715. end
  3716. end
  3717. end
  3718. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  3719. fenbarmana4.Text="Energy("..mana..")"
  3720. if mana>=100 then
  3721. mana=100
  3722. else
  3723. if mananum<=8 then
  3724. mananum=mananum+1
  3725. else
  3726. mananum=0
  3727. mana=mana+1
  3728. end
  3729. end
  3730. end
  3731. --[[
  3732. Copyrighted (C) Fenrier 2014
  3733. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement