Advertisement
memberhero

Vanta Script V2

Jan 1st, 2018
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 153.33 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.  
  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.  
  1142. combo=0
  1143. function ob1d(mouse)
  1144. if attack==true or equipped==false then return end
  1145. hold=true
  1146. if Mode=="Normal" then
  1147. if combo==0 then
  1148. combo=1
  1149. attackone()
  1150. elseif combo==1 then
  1151. combo=2
  1152. attacktwo()
  1153. elseif combo==2 then
  1154. combo=0
  1155. attackthree()
  1156. end
  1157. else
  1158. TranscendAttack()
  1159. end
  1160. coroutine.resume(coroutine.create(function()
  1161. for i=1,50 do
  1162. if attack==false then
  1163. swait()
  1164. end
  1165. end
  1166. if attack==false then
  1167. combo=0
  1168. end
  1169. end))
  1170. end
  1171.  
  1172. function ob1u(mouse)
  1173. hold = false
  1174. end
  1175.  
  1176. buttonhold = false
  1177.  
  1178. eul=0
  1179. holdz=false
  1180. equipped=false
  1181. function key(key)
  1182. if key=="z" then
  1183. end
  1184. if attack==true then return end
  1185. if key=="f" then
  1186. attack=true
  1187. if equipped==false then
  1188. equipped=true
  1189. RSH=ch.Torso["Right Shoulder"]
  1190. LSH=ch.Torso["Left Shoulder"]
  1191. --
  1192. RSH.Parent=nil
  1193. LSH.Parent=nil
  1194. --
  1195. RW.Name="Right Shoulder"
  1196. RW.Part0=ch.Torso
  1197. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1198. RW.C1=cf(0, 0.5, 0)
  1199. RW.Part1=ch["Right Arm"]
  1200. RW.Parent=ch.Torso
  1201. --
  1202. LW.Name="Left Shoulder"
  1203. LW.Part0=ch.Torso
  1204. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1205. LW.C1=cf(0, 0.5, 0)
  1206. LW.Part1=ch["Left Arm"]
  1207. LW.Parent=ch.Torso
  1208. --
  1209. equipanim()
  1210. else
  1211. equipped=false
  1212. hideanim()
  1213. swait(0)
  1214. RW.Parent=nil
  1215. LW.Parent=nil
  1216. RSH.Parent=player.Character.Torso
  1217. LSH.Parent=player.Character.Torso
  1218. end
  1219. attack=false
  1220. end
  1221. if equipped==false then return end
  1222. if key=="r" then
  1223. Terrorblast()
  1224. end
  1225. if key=="q" then
  1226. Nocturn()
  1227. end
  1228. if key=="e" then
  1229. Darkrain()
  1230. end
  1231. if key=="x" then
  1232. Titanfall()
  1233. end
  1234. if key=="c" then
  1235. Darkstomp()
  1236. end
  1237. if key=="v" then
  1238. so("http://www.roblox.com/asset/?id=203691282",Player.Character.Torso,1,1)
  1239. end
  1240. end
  1241.  
  1242. function key2(key)
  1243. if key=="z" then
  1244. holdz=false
  1245. end
  1246. end
  1247.  
  1248. function s(mouse)
  1249. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1250. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1251. mouse.KeyDown:connect(key)
  1252. mouse.KeyUp:connect(key2)
  1253.  
  1254. player=Player
  1255. ch=Character
  1256. MMouse=mouse
  1257. end
  1258.  
  1259. function ds(mouse)
  1260. end
  1261.  
  1262. Bin.Selected:connect(s)
  1263. Bin.Deselected:connect(ds)
  1264. print("Vanta powers activated.")
  1265.  
  1266. local mananum=0
  1267. local donum=0
  1268. local circlenum=0
  1269. local handidle=false
  1270. local orbeffect=1
  1271. local orbdelay=0
  1272. local effectdelay=0
  1273. while true do
  1274. swait()
  1275. if Mode=="Transcend" then
  1276. if orbnum<=0 then
  1277. Mode="Normal"
  1278. end
  1279. if effectdelay>4 then
  1280. return
  1281. end
  1282. end
  1283. --if orbdelay>=5 then
  1284. --end
  1285. --orbdelay=orbdelay+1
  1286. circlenum=circlenum+0.1
  1287. --wld48.C0=clerp(wld48.C0,CFrame.Angles(x,y,z),.3)
  1288. if donum>=.5 then
  1289. handidle=true
  1290. elseif donum<=0 then
  1291. handidle=false
  1292. end
  1293. if handidle==false then
  1294. donum=donum+0.003
  1295. else
  1296. donum=donum-0.003
  1297. end
  1298. if attack==false and equipped==true then
  1299.  
  1300. end
  1301. Humanoid.Changed:connect(function()
  1302. if Humanoid.Health == 25 then
  1303. Humanoid.Health = 100
  1304. --------------------------This is an Official script from Duelist--------------------------
  1305. ---{-------------------- -------------------}---
  1306. ---{-------------------- / \ -------------------}---
  1307. ---{-------------------- II -------------------}---
  1308. ---{-------------------- II -------------------}---
  1309. ---{-------------------- II -------------------}---
  1310. ---{-------------------- A========A -------------------}---
  1311. ---{-------------------- II -------------------}---
  1312. ---{-------------------- II -------------------}---
  1313. ---{-------------------- W -------------------}---
  1314. -------------------------------------------------------------------------------------------------------------
  1315. wait(0.016666666666666666)
  1316. Player = game:GetService("Players").LocalPlayer
  1317. Character = Player.Character
  1318. PlayerGui = Player.PlayerGui
  1319. Backpack = Player.Backpack
  1320. Torso = Character.Torso
  1321. Head = Character.Head
  1322. Humanoid = Character.Humanoid
  1323. LeftArm = Character["Left Arm"]
  1324. LeftLeg = Character["Left Leg"]
  1325. RightArm = Character["Right Arm"]
  1326. RightLeg = Character["Right Leg"]
  1327. LS = Torso["Left Shoulder"]
  1328. LH = Torso["Left Hip"]
  1329. RS = Torso["Right Shoulder"]
  1330. RH = Torso["Right Hip"]
  1331. Face = Head.face
  1332. Neck = Torso.Neck
  1333. it = Instance.new
  1334. attacktype = 1
  1335. vt = Vector3.new
  1336. cf = CFrame.new
  1337. euler = CFrame.fromEulerAnglesXYZ
  1338. angles = CFrame.Angles
  1339. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1340. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1341. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1342. RootPart = Character.HumanoidRootPart
  1343. RootJoint = RootPart.RootJoint
  1344. RootCF = euler(-1.57, 0, 3.14)
  1345. attack = false
  1346. equipped = false
  1347. Mouse = Player:GetMouse()
  1348. mana = 0
  1349. local idle = 0
  1350. local Anim = "Idle"
  1351. local ShotTarget = RootPart
  1352. player = nil
  1353. local Stats = Instance.new("Folder", Character)
  1354. Stats.Name = "Stats"
  1355. local Defense = Instance.new("NumberValue", Stats)
  1356. Defense.Name = "Defense"
  1357. Defense.Value = 0.6
  1358. local Speed = Instance.new("NumberValue", Stats)
  1359. Speed.Name = "Speed"
  1360. Speed.Value = 1.6625
  1361. local Damage = Instance.new("NumberValue", Stats)
  1362. Damage.Name = "Damage"
  1363. Damage.Value = 1
  1364. local BlockValue = Instance.new("BoolValue", Stats)
  1365. BlockValue.Name = "BlockValue"
  1366. BlockValue.Value = false
  1367. local StaggerHitAnim = Instance.new("BoolValue", Stats)
  1368. StaggerHitAnim.Name = "StaggerHitAnim"
  1369. StaggerHitAnim.Value = false
  1370. local staghitanim = false
  1371. local StaggerAnim = Instance.new("BoolValue", Stats)
  1372. StaggerAnim.Name = "StaggerAnim"
  1373. StaggerAnim.Value = false
  1374. local staganim = false
  1375. local StunAnim = Instance.new("BoolValue", Stats)
  1376. StunAnim.Name = "StunAnim"
  1377. StunAnim.Value = false
  1378. local stunanim = false
  1379. local StunValue = Instance.new("NumberValue", Stats)
  1380. StunValue.Name = "StunValue"
  1381. StunValue.Value = 0
  1382. local cooldown1 = 0
  1383. local cooldown2 = 0
  1384. local cooldown3 = 0
  1385. local cooldown4 = 0
  1386. local mana = 0
  1387. CustomColor = BrickColor.new("Really black")
  1388. Colorpart1 = CustomColor.r
  1389. Colorpart2 = CustomColor.g
  1390. Colorpart3 = CustomColor.b
  1391. local scrn = Instance.new("ScreenGui", PlayerGui)
  1392. local ud = UDim2.new
  1393. local c3 = Color3.new
  1394. local skillcolorscheme = c3(1, 1, 1)
  1395. local co1 = 0
  1396. local co2 = 0
  1397. local co3 = 0
  1398. local co4 = 0
  1399. local maxmana = 0
  1400. local maxstun = 1
  1401. local recovermana = 0
  1402. local losestun = 0
  1403. local stunwait = 0
  1404. local manawait = 0
  1405. local skill1mana = 0
  1406. local skill2mana = 0
  1407. local skill3mana = 0
  1408. local skill4mana = 0
  1409. local menuupdatespeed = 0
  1410. local constantupdate = false
  1411. local showstats = false
  1412. local showstunbar = false
  1413. function makeframe(par, trans, pos, size, color, name)
  1414. local frame = Instance.new("Frame")
  1415. frame.Parent = par
  1416. frame.BackgroundTransparency = trans
  1417. frame.BorderSizePixel = 0
  1418. frame.Position = pos
  1419. frame.Size = size
  1420. frame.BackgroundColor3 = color
  1421. frame.Name = name
  1422. return frame
  1423. end
  1424. function makelabel(par, text, trans, stroketrans, name)
  1425. local label = Instance.new("TextLabel")
  1426. label.Parent = par
  1427. label.BackgroundTransparency = 1
  1428. label.Size = ud(1, 0, 1, 0)
  1429. label.Position = ud(0, 0, 0, 0)
  1430. label.TextColor3 = c3(255, 255, 255)
  1431. label.TextStrokeTransparency = stroketrans
  1432. label.TextTransparency = trans
  1433. label.FontSize = Enum.FontSize.Size32
  1434. label.Font = Enum.Font.Legacy
  1435. label.BorderSizePixel = 0
  1436. label.TextScaled = true
  1437. label.Text = text
  1438. label.Name = name
  1439. return label
  1440. end
  1441. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 1")
  1442. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 2")
  1443. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 3")
  1444. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 4")
  1445. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 1")
  1446. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 2")
  1447. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 3")
  1448. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 4")
  1449. text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
  1450. text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
  1451. text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
  1452. text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
  1453. manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
  1454. manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
  1455. manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
  1456. 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")
  1457. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover")
  1458. healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
  1459. if showstunbar == true then
  1460. 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")
  1461. stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar")
  1462. stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
  1463. end
  1464. if showstats == true then
  1465. 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")
  1466. 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")
  1467. 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")
  1468. defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
  1469. damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
  1470. speedtext = makelabel(speedframe, "Speed: " .. Speed.Value, 1, 1, "Speed Text")
  1471. end
  1472. function NoOutline(Part)
  1473. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  1474. end
  1475. local weldBetween = function(a, b)
  1476. local weldd = Instance.new("ManualWeld")
  1477. weldd.Part0 = a
  1478. weldd.Part1 = b
  1479. weldd.C0 = CFrame.new()
  1480. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1481. weldd.Parent = a
  1482. return weldd
  1483. end
  1484. ArtificialHeartbeat = Instance.new("BindableEvent", script)
  1485. ArtificialHeartbeat.Name = "ArtificialHeartbeat"
  1486. script:WaitForChild("ArtificialHeartbeat")
  1487. frame = 0.016666666666666666
  1488. tf = 0
  1489. allowframeloss = false
  1490. tossremainder = false
  1491. lastframe = tick()
  1492. script.ArtificialHeartbeat:Fire()
  1493. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1494. tf = tf + s
  1495. if tf >= frame then
  1496. if allowframeloss then
  1497. script.ArtificialHeartbeat:Fire()
  1498. lastframe = tick()
  1499. else
  1500. for i = 1, math.floor(tf / frame) do
  1501. script.ArtificialHeartbeat:Fire()
  1502. end
  1503. lastframe = tick()
  1504. end
  1505. if tossremainder then
  1506. tf = 0
  1507. else
  1508. tf = tf - frame * math.floor(tf / frame)
  1509. end
  1510. end
  1511. end)
  1512. function nooutline(part)
  1513. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1514. end
  1515. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  1516. local fp = it("Part")
  1517. fp.formFactor = formfactor
  1518. fp.Parent = parent
  1519. fp.Reflectance = reflectance
  1520. fp.Transparency = transparency
  1521. fp.CanCollide = false
  1522. fp.Locked = true
  1523. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  1524. fp.Name = name
  1525. fp.Size = size
  1526. fp.Position = Character.Torso.Position
  1527. nooutline(fp)
  1528. fp.Material = material
  1529. fp:BreakJoints()
  1530. return fp
  1531. end
  1532. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  1533. local mesh = it(Mesh)
  1534. mesh.Parent = part
  1535. if Mesh == "SpecialMesh" then
  1536. mesh.MeshType = meshtype
  1537. mesh.MeshId = meshid
  1538. end
  1539. mesh.Offset = offset
  1540. mesh.Scale = scale
  1541. return mesh
  1542. end
  1543. function weld(parent, part0, part1, c0, c1)
  1544. local weld = it("Weld")
  1545. weld.Parent = parent
  1546. weld.Part0 = part0
  1547. weld.Part1 = part1
  1548. weld.C0 = c0
  1549. weld.C1 = c1
  1550. return weld
  1551. end
  1552. Humanoid.CameraOffset = vt(0, 12, 0)
  1553. Humanoid.JumpPower = Humanoid.JumpPower * 2
  1554. coroutine.resume(coroutine.create(function()
  1555. Humanoid.MaxHealth = 5100
  1556. wait(0.1)
  1557. Humanoid.Health = Humanoid.MaxHealth
  1558. end))
  1559. m = Instance.new("Model", Character)
  1560. m.Name = "Outer Being"
  1561. healthscript = Character:FindFirstChild("Health")
  1562. if healthscript ~= nil then
  1563. healthscript:Destroy()
  1564. end
  1565. Effects = Instance.new("Folder", m)
  1566. Effects.Name = "Effects"
  1567. local outerbeingtransparency = 1
  1568. local head2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "Head2", vt(0, 0, 0))
  1569. local head2mesh = mesh("SpecialMesh", head2, "Head", "", vt(0, 0, 0), vt(62.5, 31.25, 31.25))
  1570. local torso2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "Torso2", vt(0, 0, 0))
  1571. local torso2mesh = mesh("BlockMesh", torso2, "", "", vt(0, 0, 0), vt(50, 50, 25))
  1572. local leftarm2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "LeftArm2", vt(0, 0, 0))
  1573. local leftarm2mesh = mesh("BlockMesh", leftarm2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  1574. local rightarm2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "RightArm2", vt(0, 0, 0))
  1575. local rightarm2mesh = mesh("BlockMesh", rightarm2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  1576. local leftleg2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "LeftLeg2", vt(0, 0, 0))
  1577. local leftleg2mesh = mesh("BlockMesh", leftleg2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  1578. local rightleg2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "RightLeg2", vt(0, 0, 0))
  1579. local rightleg2mesh = mesh("BlockMesh", rightleg2, "", "", vt(0, 0, 0), vt(25, 50, 25))
  1580. head2.CFrame = Head.CFrame
  1581. torso2.CFrame = Head.CFrame
  1582. leftarm2.CFrame = Head.CFrame
  1583. rightarm2.CFrame = Head.CFrame
  1584. leftleg2.CFrame = Head.CFrame
  1585. rightleg2.CFrame = Head.CFrame
  1586. local head2weld = weld(m, Torso, head2, cf(0, 0, 0), cf(0, 0, 0))
  1587. local torso2weld = weld(m, Torso, torso2, cf(0, 0, 0), cf(0, 0, 0))
  1588. local leftarm2weld = weld(m, Torso, leftarm2, cf(0, 0, 0), cf(0, 0, 0))
  1589. local rightarm2weld = weld(m, Torso, rightarm2, cf(0, 0, 0), cf(0, 0, 0))
  1590. local leftleg2weld = weld(m, Torso, leftleg2, cf(0, 0, 0), cf(0, 0, 0))
  1591. local rightleg2weld = weld(m, Torso, rightleg2, cf(0, 0, 0), cf(0, 0, 0))
  1592. head2weld.C1 = cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0)
  1593. torso2weld.C1 = cf(0, 0, 0)
  1594. rightarm2weld.C1 = cf(0, 2.5, -0.5)
  1595. leftarm2weld.C1 = cf(0, 2.5, -0.5)
  1596. rightleg2weld.C1 = cf(0, 5, 0)
  1597. leftleg2weld.C1 = cf(0, 5, 0)
  1598. coroutine.resume(coroutine.create(function()
  1599. while Humanoid.Health ~= 0 do
  1600. ArtificialHeartbeat.Event:wait()
  1601. head2weld.C0 = cf(0, 4, 0) * Neck.C0
  1602. torso2weld.C0 = cf(0, 0, 0)
  1603. rightarm2weld.C0 = cf(6, 2, 0) * RW.C0
  1604. leftarm2weld.C0 = cf(-6, 2, 0) * LW.C0
  1605. rightleg2weld.C0 = cf(1.5, -4, 0) * RH.C0
  1606. leftleg2weld.C0 = cf(-1.5, -4, 0) * LH.C0
  1607. head2.Transparency = outerbeingtransparency
  1608. torso2.Transparency = outerbeingtransparency
  1609. leftarm2.Transparency = outerbeingtransparency
  1610. rightarm2.Transparency = outerbeingtransparency
  1611. leftleg2.Transparency = outerbeingtransparency
  1612. rightleg2.Transparency = outerbeingtransparency
  1613. end
  1614. end))
  1615. Humanoid.Died:connect(function()
  1616. end)
  1617. for i, v in pairs(Character:GetChildren()) do
  1618. if v:IsA("Model") then
  1619. for _, c in pairs(v:GetChildren()) do
  1620. if c:IsA("Part") then
  1621. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1622. end
  1623. end
  1624. end
  1625. end
  1626. print([[
  1627. Vanta loaded.
  1628. Unleash your power on your enemies.]])
  1629. function so(id, par, vol, pit)
  1630. coroutine.resume(coroutine.create(function()
  1631. local sou = Instance.new("Sound", par or workspace)
  1632. sou.Volume = vol
  1633. sou.Pitch = pit or 1
  1634. sou.SoundId = id
  1635. ArtificialHeartbeat.Event:wait()
  1636. sou:play()
  1637. game:GetService("Debris"):AddItem(sou, 6)
  1638. end))
  1639. end
  1640. function clerp(a, b, t)
  1641. local qa = {
  1642. QuaternionFromCFrame(a)
  1643. }
  1644. local qb = {
  1645. QuaternionFromCFrame(b)
  1646. }
  1647. local ax, ay, az = a.x, a.y, a.z
  1648. local bx, by, bz = b.x, b.y, b.z
  1649. local _t = 1 - t
  1650. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1651. end
  1652. function QuaternionFromCFrame(cf)
  1653. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1654. local trace = m00 + m11 + m22
  1655. if trace > 0 then
  1656. local s = math.sqrt(1 + trace)
  1657. local recip = 0.5 / s
  1658. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1659. else
  1660. local i = 0
  1661. if m00 < m11 then
  1662. i = 1
  1663. end
  1664. if m22 > (i == 0 and m00 or m11) then
  1665. i = 2
  1666. end
  1667. if i == 0 then
  1668. local s = math.sqrt(m00 - m11 - m22 + 1)
  1669. local recip = 0.5 / s
  1670. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1671. elseif i == 1 then
  1672. local s = math.sqrt(m11 - m22 - m00 + 1)
  1673. local recip = 0.5 / s
  1674. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1675. elseif i == 2 then
  1676. local s = math.sqrt(m22 - m00 - m11 + 1)
  1677. local recip = 0.5 / s
  1678. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1679. end
  1680. end
  1681. end
  1682. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1683. local xs, ys, zs = x + x, y + y, z + z
  1684. local wx, wy, wz = w * xs, w * ys, w * zs
  1685. local xx = x * xs
  1686. local xy = x * ys
  1687. local xz = x * zs
  1688. local yy = y * ys
  1689. local yz = y * zs
  1690. local zz = z * zs
  1691. 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))
  1692. end
  1693. function QuaternionSlerp(a, b, t)
  1694. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1695. local startInterp, finishInterp
  1696. if cosTheta >= 1.0E-4 then
  1697. if 1 - cosTheta > 1.0E-4 then
  1698. local theta = math.acos(cosTheta)
  1699. local invSinTheta = 1 / math.sin(theta)
  1700. startInterp = math.sin((1 - t) * theta) * invSinTheta
  1701. finishInterp = math.sin(t * theta) * invSinTheta
  1702. else
  1703. startInterp = 1 - t
  1704. finishInterp = t
  1705. end
  1706. elseif 1 + cosTheta > 1.0E-4 then
  1707. local theta = math.acos(-cosTheta)
  1708. local invSinTheta = 1 / math.sin(theta)
  1709. startInterp = math.sin((t - 1) * theta) * invSinTheta
  1710. finishInterp = math.sin(t * theta) * invSinTheta
  1711. else
  1712. startInterp = t - 1
  1713. finishInterp = t
  1714. end
  1715. 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
  1716. end
  1717. function rayCast(Pos, Dir, Max, Ignore)
  1718. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1719. end
  1720. function makegui(cframe, text, color)
  1721. local c = Instance.new("Part")
  1722. c.Size = vt(0.2, 0.2, 0.2)
  1723. c.Transparency = 1
  1724. Instance.new("BodyGyro").Parent = c
  1725. c.Parent = Effects
  1726. c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
  1727. local f = Instance.new("BodyPosition")
  1728. f.P = 2000
  1729. f.D = 100
  1730. f.maxForce = vt(math.huge, math.huge, math.huge)
  1731. f.position = c.Position + vt(0, 6, 0)
  1732. f.Parent = c
  1733. game:GetService("Debris"):AddItem(c, 5)
  1734. c.CanCollide = false
  1735. c.Parent = workspace
  1736. c.CanCollide = false
  1737. local bg = Instance.new("BillboardGui", c)
  1738. bg.Adornee = c
  1739. bg.Size = UDim2.new(2.5, 0, 2.5, 0)
  1740. bg.StudsOffset = vt(-2, 2, 0)
  1741. bg.AlwaysOnTop = false
  1742. local tl = Instance.new("TextLabel", bg)
  1743. tl.BackgroundTransparency = 1
  1744. tl.Size = UDim2.new(2.5, 0, 2.5, 0)
  1745. tl.Text = text
  1746. tl.Font = Enum.Font.SourceSans
  1747. tl.FontSize = Enum.FontSize.Size42
  1748. tl.TextColor3 = color
  1749. tl.TextScaled = false
  1750. tl.TextStrokeTransparency = 0
  1751. tl.TextScaled = true
  1752. tl.TextWrapped = true
  1753. f.Parent = c
  1754. coroutine.resume(coroutine.create(function()
  1755. wait(0.25)
  1756. for i = 1, 5 do
  1757. ArtificialHeartbeat.Event:wait()
  1758. f.position = c.Position - vt(0, 0.5, 0)
  1759. end
  1760. end))
  1761. coroutine.resume(coroutine.create(function()
  1762. wait(2)
  1763. for i = 1, 10 do
  1764. ArtificialHeartbeat.Event:wait()
  1765. tl.TextTransparency = tl.TextTransparency + 0.1
  1766. tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
  1767. f.position = c.Position + vt(0, 0.5, 0)
  1768. end
  1769. c.Parent = nil
  1770. end))
  1771. end
  1772. local CritChance = Instance.new("NumberValue", Stats)
  1773. CritChance.Name = "CritChance"
  1774. CritChance.Value = 1
  1775. local critchancenumber = 50
  1776. local cancrit = false
  1777. local canpenetratearmor = false
  1778. local cancollidewithhitbox = false
  1779. local sethitblockvaluetofalse = true
  1780. local antiteamkill = false
  1781. local HitPlayerSounds = {
  1782. 199149137,
  1783. 199149186,
  1784. 199149221,
  1785. 199149235,
  1786. 199149269,
  1787. 199149297
  1788. }
  1789. local HitArmorSounds = {
  1790. 199149321,
  1791. 199149338,
  1792. 199149367,
  1793. 199149409,
  1794. 199149452
  1795. }
  1796. local HitWeaponSounds = {
  1797. 199148971,
  1798. 199149025,
  1799. 199149072,
  1800. 199149109,
  1801. 199149119
  1802. }
  1803. local HitBlockSounds = {199148933, 199148947}
  1804. function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  1805. if hit.Parent == nil then
  1806. return
  1807. end
  1808. h = hit.Parent:FindFirstChild("Humanoid")
  1809. for _, v in pairs(hit.Parent:children()) do
  1810. if v:IsA("Humanoid") then
  1811. h = v
  1812. end
  1813. end
  1814. if antiteamkill == true then
  1815. if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
  1816. opponent = game.Players:FindFirstChild(hit.Parent.Name)
  1817. end
  1818. if opponent ~= nil and opponent.TeamColor == Player.TeamColor then
  1819. return
  1820. end
  1821. end
  1822. if hit.Name == "Hitbox" and hit:FindFirstChild("TouchInterest") ~= nil then
  1823. StaggerHitAnim.Value = true
  1824. so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
  1825. return
  1826. end
  1827. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  1828. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  1829. end
  1830. if hit.Parent.className == "Hat" then
  1831. hit = hit.Parent.Parent:findFirstChild("Head")
  1832. end
  1833. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1834. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1835. return
  1836. end
  1837. if hit.Parent:findFirstChild("Stats") ~= nil then
  1838. if hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
  1839. hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
  1840. end
  1841. elseif hit.Parent:findFirstChild("StunValue") ~= nil then
  1842. hit.Parent:findFirstChild("StunValue").Value = hit.Parent:findFirstChild("StunValue").Value + incstun
  1843. end
  1844. if hit.Parent:findFirstChild("StaggerAnim") ~= nil and stagger == true then
  1845. hit.Parent:findFirstChild("StaggerAnim").Value = true
  1846. end
  1847. if hit.Parent:findFirstChild("Stats") ~= nil then
  1848. if hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
  1849. makegui(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
  1850. so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  1851. if ranged ~= true then
  1852. if sethitblockvaluetofalse == true then
  1853. hit.Parent.Stats:findFirstChild("BlockValue").Value = false
  1854. end
  1855. StaggerAnim.Value = true
  1856. end
  1857. return
  1858. end
  1859. elseif hit.Parent:findFirstChild("BlockValue") ~= nil and hit.Parent:findFirstChild("BlockValue").Value == true then
  1860. makegui(Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
  1861. so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  1862. if ranged ~= true then
  1863. if sethitblockvaluetofalse == true then
  1864. hit.Parent:findFirstChild("BlockValue").Value = false
  1865. end
  1866. StaggerAnim.Value = true
  1867. end
  1868. return
  1869. end
  1870. local D = math.random(minim, maxim) * Damage.Value
  1871. if hit.Parent:FindFirstChild("Stats") ~= nil then
  1872. if hit.Parent.Stats:FindFirstChild("Defense") then
  1873. if canpenetratearmor == true then
  1874. else
  1875. D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
  1876. end
  1877. elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then
  1878. end
  1879. elseif hit.Parent:FindFirstChild("Defense") then
  1880. if canpenetratearmor == true then
  1881. else
  1882. D = D / hit.Parent:FindFirstChild("Defense").Value
  1883. end
  1884. elseif hit.Parent:FindFirstChild("Defense") == nil then
  1885. end
  1886. if cancrit == true then
  1887. CritChance.Value = math.random(1, critchancenumber)
  1888. if CritChance.Value == critchancenumber then
  1889. D = D * 2
  1890. end
  1891. end
  1892. h.Health = h.Health - D
  1893. if D <= 3 and staghit == true then
  1894. if ranged ~= true then
  1895. StaggerHitAnim.Value = true
  1896. end
  1897. so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
  1898. elseif D > 3 and ranged ~= true then
  1899. so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
  1900. end
  1901. if D > 2 and D < 20 then
  1902. if CritChance.Value == critchancenumber then
  1903. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  1904. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  1905. else
  1906. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0.8627450980392157, 0))
  1907. end
  1908. elseif D >= 20 then
  1909. if CritChance.Value == critchancenumber then
  1910. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  1911. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  1912. else
  1913. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0))
  1914. end
  1915. else
  1916. if D <= 2 then
  1917. if CritChance.Value == critchancenumber then
  1918. makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
  1919. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  1920. else
  1921. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706))
  1922. end
  1923. else
  1924. end
  1925. end
  1926. if Type == "Normal" then
  1927. vp = Instance.new("BodyVelocity")
  1928. vp.P = 500
  1929. vp.maxForce = vt(math.huge, 0, math.huge)
  1930. if KnockbackType == 1 then
  1931. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1932. elseif KnockbackType == 2 then
  1933. vp.velocity = Property.CFrame.lookVector * knockback
  1934. end
  1935. if knockback > 0 then
  1936. vp.Parent = hit.Parent.Torso
  1937. end
  1938. game:GetService("Debris"):AddItem(vp, 0.5)
  1939. end
  1940. debounce = Instance.new("BoolValue")
  1941. debounce.Name = "DebounceHit"
  1942. debounce.Parent = hit.Parent
  1943. debounce.Value = true
  1944. game:GetService("Debris"):AddItem(debounce, Delay)
  1945. c = Instance.new("ObjectValue")
  1946. c.Name = "creator"
  1947. c.Value = Player
  1948. c.Parent = h
  1949. game:GetService("Debris"):AddItem(c, 0.5)
  1950. end
  1951. end
  1952. function DecreaseStat(Location, CFrame, Stat, Amount, Duration, ShowDebuff)
  1953. if Location[Stat] ~= nil then
  1954. Location[Stat].Value = Location[Stat].Value - Amount
  1955. if ShowDebuff == true then
  1956. if Location[Stat].Name == "Defense" then
  1957. makegui(CFrame, "-Defense", c3(1, 1, 1))
  1958. elseif Location[Stat].Name == "Damage" then
  1959. makegui(CFrame, "-Damage", c3(1, 1, 1))
  1960. elseif Location[Stat].Name == "Speed" then
  1961. makegui(CFrame, "-Movement", c3(1, 1, 1))
  1962. end
  1963. end
  1964. coroutine.resume(coroutine.create(function()
  1965. wait(Duration)
  1966. Location[Stat].Value = Location[Stat].Value + Amount
  1967. end))
  1968. end
  1969. end
  1970. function IncreaseStat(Location, CFrame, Stat, Amount, Duration, ShowBuff)
  1971. if Location[Stat] ~= nil then
  1972. Location[Stat].Value = Location[Stat].Value + Amount
  1973. if ShowBuff == true then
  1974. if Location[Stat].Name == "Defense" then
  1975. makegui(CFrame, "+Defense", c3(1, 1, 1))
  1976. elseif Location[Stat].Name == "Damage" then
  1977. makegui(CFrame, "+Damage", c3(1, 1, 1))
  1978. elseif Location[Stat].Name == "Speed" then
  1979. makegui(CFrame, "+Movement", c3(1, 1, 1))
  1980. end
  1981. end
  1982. coroutine.resume(coroutine.create(function()
  1983. wait(Duration)
  1984. Location[Stat].Value = Location[Stat].Value - Amount
  1985. end))
  1986. end
  1987. end
  1988. function GetDist(Part1, Part2, magni)
  1989. local targ = Part1.Position - Part2.Position
  1990. local mag = targ.magnitude
  1991. if magni >= mag then
  1992. return true
  1993. else
  1994. return false
  1995. end
  1996. end
  1997. function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  1998. for _, c in pairs(workspace:children()) do
  1999. local hum = c:findFirstChild("Humanoid")
  2000. if hum ~= nil then
  2001. local head = c:findFirstChild("Torso")
  2002. if head ~= nil then
  2003. local targ = head.Position - Part.Position
  2004. local mag = targ.magnitude
  2005. if magni >= mag and c.Name ~= Player.Name then
  2006. Damagefunc(head, mindam, maxdam, knock, Type, RootPart, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  2007. end
  2008. end
  2009. end
  2010. end
  2011. end
  2012. function Lightning(p0, p1, tym, ofs, brickcolor, th, tra, last)
  2013. local magz = (p0 - p1).magnitude
  2014. local curpos = p0
  2015. local trz = {
  2016. -ofs,
  2017. ofs
  2018. }
  2019. for i = 1, tym do
  2020. do
  2021. local li = Instance.new("Part", workspace)
  2022. li.TopSurface = 0
  2023. li.BottomSurface = 0
  2024. li.Anchored = true
  2025. li.Transparency = tra or 0.4
  2026. li.BrickColor = brickcolor
  2027. li.formFactor = "Custom"
  2028. li.CanCollide = false
  2029. li.Size = vt(th, th, magz / tym)
  2030. local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  2031. local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
  2032. if tym == i then
  2033. local magz2 = (curpos - p1).magnitude
  2034. li.Size = vt(th, th, magz2)
  2035. li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
  2036. else
  2037. li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
  2038. end
  2039. curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
  2040. game.Debris:AddItem(li, last)
  2041. coroutine.resume(coroutine.create(function()
  2042. while li.Transparency ~= 1 do
  2043. for i = 0, 1, last do
  2044. ArtificialHeartbeat.Event:wait()
  2045. li.Transparency = li.Transparency + 0.1 / last
  2046. end
  2047. end
  2048. end))
  2049. end
  2050. end
  2051. end
  2052. function MagicRing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2053. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  2054. prt.Anchored = true
  2055. prt.CFrame = cframe
  2056. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2057. game:GetService("Debris"):AddItem(prt, 10)
  2058. coroutine.resume(coroutine.create(function(Part, Mesh)
  2059. for i = 0, 1, delay do
  2060. ArtificialHeartbeat.Event:wait()
  2061. Part.CFrame = Part.CFrame
  2062. Part.Transparency = i
  2063. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2064. end
  2065. Part.Parent = nil
  2066. end), prt, msh)
  2067. end
  2068. function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2069. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  2070. prt.Anchored = true
  2071. prt.CFrame = cframe
  2072. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2073. game:GetService("Debris"):AddItem(prt, 10)
  2074. coroutine.resume(coroutine.create(function(Part, Mesh)
  2075. for i = 0, 1, delay do
  2076. ArtificialHeartbeat.Event:wait()
  2077. Part.CFrame = Part.CFrame
  2078. Part.Transparency = i
  2079. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2080. end
  2081. Part.Parent = nil
  2082. end), prt, msh)
  2083. end
  2084. function MagicBlock(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  2085. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  2086. prt.Anchored = true
  2087. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2088. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2089. game:GetService("Debris"):AddItem(prt, 10)
  2090. coroutine.resume(coroutine.create(function(Part, Mesh)
  2091. for i = 0, 1, delay do
  2092. ArtificialHeartbeat.Event:wait()
  2093. if rotate == true then
  2094. Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2095. else
  2096. end
  2097. Part.Transparency = i
  2098. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2099. end
  2100. Part.Parent = nil
  2101. end), prt, msh)
  2102. end
  2103. function MagicBlock2(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  2104. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  2105. prt.Anchored = true
  2106. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2107. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2108. game:GetService("Debris"):AddItem(prt, 10)
  2109. CF = prt.CFrame
  2110. num = math.random(5, 20)
  2111. coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
  2112. for i = 0, 1, delay do
  2113. ArtificialHeartbeat.Event:wait()
  2114. if rotate == true then
  2115. Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2116. else
  2117. Part.CFrame = CF2 * cf(0, i * Num, 0)
  2118. end
  2119. Part.Transparency = i
  2120. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2121. end
  2122. Part.Parent = nil
  2123. end), prt, msh, CF, num)
  2124. end
  2125. function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2126. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  2127. prt.Anchored = true
  2128. prt.CFrame = cframe
  2129. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2130. game:GetService("Debris"):AddItem(prt, 10)
  2131. coroutine.resume(coroutine.create(function(Part, Mesh)
  2132. for i = 0, 1, delay do
  2133. ArtificialHeartbeat.Event:wait()
  2134. Part.Transparency = i
  2135. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2136. end
  2137. Part.Parent = nil
  2138. end), prt, msh)
  2139. end
  2140. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2141. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  2142. prt.Anchored = true
  2143. prt.CFrame = cframe
  2144. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2145. game:GetService("Debris"):AddItem(prt, 10)
  2146. coroutine.resume(coroutine.create(function(Part, Mesh)
  2147. for i = 0, 1, delay do
  2148. ArtificialHeartbeat.Event:wait()
  2149. Part.Transparency = i
  2150. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2151. end
  2152. Part.Parent = nil
  2153. end), prt, msh)
  2154. end
  2155. function BreakEffect(brickcolor, rotate, cframe, x1, y1, z1, delay)
  2156. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  2157. prt.Anchored = true
  2158. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2159. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2160. game:GetService("Debris"):AddItem(prt, 10)
  2161. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  2162. CF = Part.CFrame
  2163. Numbb = 0
  2164. randnumb = math.random() - math.random()
  2165. for i = 0, 1, delay do
  2166. ArtificialHeartbeat.Event:wait()
  2167. CF = CF * cf(0, 1, 0)
  2168. if rotate == true then
  2169. Part.CFrame = CF * angles(Numbb, 0, 0)
  2170. elseif rotate == false then
  2171. Part.CFrame = CF
  2172. end
  2173. Part.Transparency = i
  2174. Numbb = Numbb + randnumb
  2175. end
  2176. Part.Parent = nil
  2177. end), prt, CF, Numbb, randnumb)
  2178. end
  2179. function ElecEffect(brickcolor, cf, x, y, z, delay)
  2180. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  2181. prt.Anchored = true
  2182. prt.CFrame = cf
  2183. xval = math.random()
  2184. yval = math.random()
  2185. zval = math.random()
  2186. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
  2187. game:GetService("Debris"):AddItem(prt, 10)
  2188. coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
  2189. for i = 0, 1, delay do
  2190. ArtificialHeartbeat.Event:wait()
  2191. Part.CFrame = Part.CFrame
  2192. xvaal = xvaal - 0.1 * (delay * 10)
  2193. yvaal = yvaal - 0.1 * (delay * 10)
  2194. zvaal = zvaal - 0.1 * (delay * 10)
  2195. Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
  2196. Part.Transparency = i
  2197. end
  2198. Part.Parent = nil
  2199. end), prt, msh, xval, yval, zval)
  2200. end
  2201. function subtractmana(k)
  2202. if k <= mana then
  2203. mana = mana - k
  2204. end
  2205. end
  2206. local idleangle = 0
  2207. local idlen = 0
  2208. local donum = 0
  2209. local sine = 0
  2210. local change = 1
  2211. local val = 0
  2212. local walkinganim = false
  2213. local handidle = false
  2214. local walk = 0
  2215. local someangle = 0
  2216. local change2 = 1
  2217. local stundelay = 0
  2218. local manadelay = 0
  2219. local dieanim = false
  2220. local robloxidleanimation = Instance.new("Animation", Torso)
  2221. robloxidleanimation.Name = "robloxidleanimation"
  2222. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  2223. Animator = Humanoid:findFirstChild("Animator")
  2224. Animate = Character:findFirstChild("Animate")
  2225. Running = Head:FindFirstChild("Running")
  2226. if Running ~= nil then
  2227. Running.Volume = 0
  2228. end
  2229. local startequipped = false
  2230. local startequippedwithequipanimation = true
  2231. local disableanimator = true
  2232. local disableanimate = false
  2233. local alternatewalk = false
  2234. local customwalk = false
  2235. local hidemenu = false
  2236. local allowmenutofunction = false
  2237. local allowabilitestofunction = false
  2238. local canunequiporequip = false
  2239. local allowidle = false
  2240. local allowwalking = false
  2241. local disablemovingarms = false
  2242. local usemotorsinsteadofwelds = false
  2243. local leftarm = false
  2244. local rightarm = false
  2245. local allowhopperbin = false
  2246. local allowstunbar = false
  2247. local walkspeeddependsonspeedvalue = true
  2248. local alternatemanaregensystem = false
  2249. local showhealthmanaandstunnumbers = false
  2250. local changebarcolorsifnotenoughmana = false
  2251. local disablejumpifstaggeredorstunned = false
  2252. if hidemenu == true then
  2253. for _, v in pairs(scrn:children()) do
  2254. if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
  2255. v.Visible = false
  2256. end
  2257. end
  2258. end
  2259. if disablejumpifstaggeredorstunned == true then
  2260. Humanoid.Changed:connect(function(Jump)
  2261. if Jump == "Jump" and (StaggerAnim.Value == true or StunAnim.Value == true) then
  2262. Humanoid.Jump = false
  2263. end
  2264. end)
  2265. end
  2266. if allowmenutofunction == true then
  2267. for _, v in pairs(scrn:GetChildren()) do
  2268. if v.ClassName == "Frame" then
  2269. for _, b in pairs(v:GetChildren()) do
  2270. 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
  2271. coroutine.resume(coroutine.create(function(TheTextLabel)
  2272. wait(menuupdatespeed)
  2273. for i = 1, 0, -0.1 do
  2274. ArtificialHeartbeat.Event:wait()
  2275. TheTextLabel.TextTransparency = i
  2276. TheTextLabel.TextStrokeTransparency = i
  2277. end
  2278. TheTextLabel.TextTransparency = 0
  2279. TheTextLabel.TextStrokeTransparency = 0
  2280. end), b)
  2281. end
  2282. end
  2283. end
  2284. end
  2285. end
  2286. if allowmenutofunction == true and allowabilitestofunction == true then
  2287. for _, v in pairs(scrn:GetChildren()) do
  2288. if v.ClassName == "Frame" then
  2289. for _, b in pairs(v:GetChildren()) do
  2290. if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then
  2291. coroutine.resume(coroutine.create(function(TheTextLabel)
  2292. wait(menuupdatespeed)
  2293. for i = 1, 0, -0.1 do
  2294. ArtificialHeartbeat.Event:wait()
  2295. TheTextLabel.TextTransparency = i
  2296. TheTextLabel.TextStrokeTransparency = i
  2297. end
  2298. TheTextLabel.TextTransparency = 0
  2299. TheTextLabel.TextStrokeTransparency = 0
  2300. end), b)
  2301. end
  2302. end
  2303. end
  2304. end
  2305. end
  2306. if allowhopperbin == true then
  2307. if script.Parent.className ~= "HopperBin" then
  2308. Tool = Instance.new("HopperBin")
  2309. Tool.Parent = Backpack
  2310. Tool.Name = "Weapon Name"
  2311. script.Parent = Tool
  2312. end
  2313. Bin = script.Parent
  2314. end
  2315. if disablemovingarms == true then
  2316. RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  2317. LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  2318. RSH, LSH = nil, nil
  2319. if usemotorsinsteadofwelds == true then
  2320. RW = Instance.new("Motor")
  2321. LW = Instance.new("Motor")
  2322. else
  2323. RW = Instance.new("Weld")
  2324. LW = Instance.new("Weld")
  2325. end
  2326. RW.Name = "Right Shoulder"
  2327. LW.Name = "Left Shoulder"
  2328. RSH = Torso["Right Shoulder"]
  2329. LSH = Torso["Left Shoulder"]
  2330. RSH.Parent = Torso
  2331. LSH.Parent = Torso
  2332. RW.Name = "Right Shoulder"
  2333. RW.Part0 = Torso
  2334. RW.C0 = cf(1.5, 0.5, 0)
  2335. RW.C1 = cf(0, 0.5, 0)
  2336. RW.Part1 = Character["Right Arm"]
  2337. RW.Parent = nil
  2338. LW.Name = "Left Shoulder"
  2339. LW.Part0 = Torso
  2340. LW.C0 = cf(-1.5, 0.5, 0)
  2341. LW.C1 = cf(0, 0.5, 0)
  2342. LW.Part1 = Character["Left Arm"]
  2343. LW.Parent = nil
  2344. else
  2345. RW = Torso["Right Shoulder"]
  2346. LW = Torso["Left Shoulder"]
  2347. LH = Torso["Left Hip"]
  2348. RH = Torso["Right Hip"]
  2349. RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0))
  2350. LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0))
  2351. end
  2352. if allowidle == true then
  2353. coroutine.resume(coroutine.create(function()
  2354. while true do
  2355. for i = 0, 1, 0.08 do
  2356. wait()
  2357. idleangle = idleangle + 0.005 * idlen
  2358. idlen = idlen - 0.1
  2359. end
  2360. idlen = 0
  2361. for i = 0, 1, 0.08 do
  2362. wait()
  2363. idleangle = idleangle - 0.005 * idlen
  2364. idlen = idlen - 0.1
  2365. end
  2366. idlen = 0
  2367. idleangle = 0
  2368. end
  2369. end))
  2370. end
  2371. function equipanim()
  2372. attack = true
  2373. local equipvelocity = Instance.new("BodyVelocity", Torso)
  2374. equipvelocity.P = 500
  2375. equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
  2376. equipvelocity.Velocity = Vector3.new(0, 10, 0)
  2377. for i = 0, 1, 0.02 do
  2378. ArtificialHeartbeat.Event:wait()
  2379. 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)
  2380. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2381. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  2382. 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)
  2383. 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)
  2384. 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)
  2385. 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)
  2386. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2387. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2388. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
  2389. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
  2390. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  2391. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
  2392. end
  2393. coroutine.resume(coroutine.create(function()
  2394. for i = 0, 1, 0.1 do
  2395. wait()
  2396. outerbeingtransparency = outerbeingtransparency - 0.05
  2397. end
  2398. outerbeingtransparency = 0.5
  2399. end))
  2400. equipvelocity.Velocity = Vector3.new(0, 0, 0)
  2401. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
  2402. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
  2403. so("http://roblox.com/asset/?id=203691510", Torso, 1, 1)
  2404. so("http://roblox.com/asset/?id=203691653", Torso, 1, 1)
  2405. so("http://roblox.com/asset/?id=203691562", Torso, 1, 1)
  2406. so("http://roblox.com/asset/?id=160740121", Torso, 1, 1.5)
  2407. for i = 0, 1, 0.02 do
  2408. ArtificialHeartbeat.Event:wait()
  2409. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2410. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2411. 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)
  2412. 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)
  2413. 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)
  2414. 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)
  2415. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2416. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2417. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2418. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2419. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2420. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2421. end
  2422. equipvelocity:Destroy()
  2423. Speed.Value = Speed.Value - 0.1
  2424. Defense.Value = Defense.Value + 0.4
  2425. attack = false
  2426. end
  2427. function unequipanim()
  2428. attack = true
  2429. coroutine.resume(coroutine.create(function()
  2430. Humanoid.MaxHealth = math.huge
  2431. wait(0.1)
  2432. Humanoid.Health = Humanoid.MaxHealth
  2433. end))
  2434. local equipvelocity = Instance.new("BodyVelocity", Torso)
  2435. equipvelocity.P = 500
  2436. equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
  2437. equipvelocity.Velocity = Vector3.new(0, 1, 0)
  2438. so("http://roblox.com/asset/?id=183763515", Torso, 1, 0.4)
  2439. for i = 0, 1, 0.005 do
  2440. ArtificialHeartbeat.Event:wait()
  2441. 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)
  2442. BreakEffect(CustomColor, false, Torso.CFrame, 1, 25, 1, 0.05)
  2443. 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)
  2444. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  2445. 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)
  2446. 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)
  2447. 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)
  2448. 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)
  2449. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2450. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2451. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
  2452. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
  2453. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  2454. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
  2455. end
  2456. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
  2457. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
  2458. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
  2459. so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.6)
  2460. so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.6)
  2461. for i = 1, 2 do
  2462. so("http://roblox.com/asset/?id=160867463", Torso, 1, 0.8)
  2463. so("http://roblox.com/asset/?id=297472596", Torso, 1, 0.8)
  2464. end
  2465. coroutine.resume(coroutine.create(function()
  2466. for i = 0, 1, 0.01 do
  2467. wait()
  2468. outerbeingtransparency = outerbeingtransparency + 0.005
  2469. end
  2470. outerbeingtransparency = 1
  2471. end))
  2472. Face.Transparency = 1
  2473. for _, v in pairs(Character:children()) do
  2474. if v:IsA("Part") and v.ClassName ~= "Model" then
  2475. coroutine.resume(coroutine.create(function(Part)
  2476. for i = 0, 1, 0.01 do
  2477. wait()
  2478. Part.Transparency = Part.Transparency + 0.01
  2479. end
  2480. Part.Anchored = true
  2481. Part.Transparency = 1
  2482. end), v)
  2483. elseif v:IsA("Hat") then
  2484. coroutine.resume(coroutine.create(function(Hat)
  2485. for i = 0, 1, 0.01 do
  2486. wait()
  2487. Hat.Transparency = Hat.Transparency + 0.01
  2488. end
  2489. Hat.Anchored = true
  2490. Hat.Transparency = 1
  2491. end), v.Handle)
  2492. end
  2493. end
  2494. local deathnum = 0
  2495. for i = 0, 1, 0.005 do
  2496. ArtificialHeartbeat.Event:wait()
  2497. if deathnum >= 10 then
  2498. deathnum = 0
  2499. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2500. refpart.CFrame = Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))
  2501. refpart.Anchored = true
  2502. game:GetService("Debris"):AddItem(refpart, 1)
  2503. MagicBlock(CustomColor, true, refpart.CFrame, 30, 30, 30, 0.5, 0.5, 0.5, 0.01)
  2504. MagicSphere(CustomColor, refpart.CFrame, 60, 60, 60, 1, 1, 1, 0.01)
  2505. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
  2506. end
  2507. BreakEffect(CustomColor, false, Torso.CFrame, 1, 50, 1, 0.05)
  2508. 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)
  2509. 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)
  2510. 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)
  2511. 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)
  2512. 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)
  2513. 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)
  2514. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2515. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2516. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2517. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2518. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2519. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2520. deathnum = deathnum + 1
  2521. end
  2522. Humanoid.MaxHealth = 0
  2523. Humanoid.Health = 0
  2524. equipvelocity.Velocity = Vector3.new(0, 0, 0)
  2525. MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.008)
  2526. MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.008)
  2527. so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.4)
  2528. so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.4)
  2529. so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.4)
  2530. so("http://roblox.com/asset/?id=160867463", Torso, 1, 1.2)
  2531. attack = false
  2532. end
  2533. if startequipped == true then
  2534. equipped = true
  2535. if disableanimate == true then
  2536. Animate.Disabled = true
  2537. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2538. idleanimation:Play()
  2539. end
  2540. if disableanimator == true then
  2541. Animator.Parent = nil
  2542. end
  2543. if disablemovingarms == true then
  2544. RW.Parent = Torso
  2545. LW.Parent = Torso
  2546. RSH.Parent = nil
  2547. LSH.Parent = nil
  2548. end
  2549. Speed.Value = Speed.Value - 0.1
  2550. Defense.Value = Defense.Value + 0.4
  2551. elseif startequippedwithequipanimation == true then
  2552. equipped = true
  2553. if disableanimate == true then
  2554. Animate.Disabled = true
  2555. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2556. idleanimation:Play()
  2557. end
  2558. if disableanimator == true then
  2559. Animator.Parent = nil
  2560. end
  2561. if disablemovingarms == true then
  2562. RW.Parent = Torso
  2563. LW.Parent = Torso
  2564. RSH.Parent = nil
  2565. LSH.Parent = nil
  2566. end
  2567. equipanim()
  2568. end
  2569. function StaggerHit()
  2570. attack = true
  2571. attack = false
  2572. end
  2573. function Stagger()
  2574. attack = true
  2575. attack = false
  2576. end
  2577. function Stun()
  2578. attack = true
  2579. attack = false
  2580. end
  2581. function EAbility()
  2582. attack = true
  2583. attack = false
  2584. end
  2585. function attackone()
  2586. attack = true
  2587. attack = false
  2588. end
  2589. function attacktwo()
  2590. attack = true
  2591. attack = false
  2592. end
  2593. function attackthree()
  2594. attack = true
  2595. attack = false
  2596. end
  2597. function attackfour()
  2598. attack = true
  2599. attack = false
  2600. end
  2601. function Move1()
  2602. attack = true
  2603. for i = 0, 1, 0.25 do
  2604. ArtificialHeartbeat.Event:wait()
  2605. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2606. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2607. 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)
  2608. 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)
  2609. if Anim ~= "Walk" then
  2610. 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)
  2611. 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)
  2612. elseif Anim == "Walk" then
  2613. if walkinganim == true then
  2614. 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)
  2615. 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)
  2616. else
  2617. 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)
  2618. 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)
  2619. end
  2620. end
  2621. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2622. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2623. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2624. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2625. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2626. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2627. end
  2628. for i = 0, 1, 0.04 do
  2629. ArtificialHeartbeat.Event:wait()
  2630. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2631. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2632. 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)
  2633. 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)
  2634. if Anim ~= "Walk" then
  2635. 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)
  2636. 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)
  2637. elseif Anim == "Walk" then
  2638. if walkinganim == true then
  2639. 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)
  2640. 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)
  2641. else
  2642. 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)
  2643. 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)
  2644. end
  2645. end
  2646. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2647. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2648. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2649. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2650. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2651. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2652. end
  2653. local orbnumber = math.random(20, 40)
  2654. coroutine.resume(coroutine.create(function()
  2655. for i = 1, orbnumber do
  2656. wait()
  2657. local orbblastpart = part(3, Effects, "SmoothPlastic", 0, 0.5, CustomColor, "Effect", vt())
  2658. local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10))
  2659. orbblastpart.Anchored = true
  2660. game:GetService("Debris"):AddItem(orbblastpart, 5)
  2661. orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(50, 100), math.random(-10, 10)))
  2662. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
  2663. MagicSphere(CustomColor, orbblastpart.CFrame, 10, 10, 10, 0.5, 0.5, 0.5, 0.05)
  2664. so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
  2665. coroutine.resume(coroutine.create(function(Part)
  2666. wait(1)
  2667. 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
  2668. local TheHit = Part.Position + vt(0, -1, 0)
  2669. local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
  2670. local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
  2671. local mag = (Part.Position - pos).magnitude
  2672. 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)
  2673. MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
  2674. Part.Parent = nil
  2675. if hit ~= nil then
  2676. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2677. refpart.CFrame = cf(pos)
  2678. refpart.Anchored = true
  2679. game:GetService("Debris"):AddItem(refpart, 1)
  2680. MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
  2681. MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 3, 3, 3, 0.05)
  2682. 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)
  2683. so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
  2684. Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true)
  2685. MagniDamage(refpart, 15, 5, 10, 0, "Normal", 0, 1, 0, nil, true, true)
  2686. end
  2687. end), orbblastpart)
  2688. end
  2689. end))
  2690. for i = 0, 1, (0.015 + orbnumber / 10000) / 2 do
  2691. ArtificialHeartbeat.Event:wait()
  2692. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2693. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2694. 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)
  2695. 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)
  2696. if Anim ~= "Walk" then
  2697. 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)
  2698. 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)
  2699. elseif Anim == "Walk" then
  2700. if walkinganim == true then
  2701. 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)
  2702. 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)
  2703. else
  2704. 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)
  2705. 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)
  2706. end
  2707. end
  2708. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2709. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2710. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2711. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2712. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2713. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2714. end
  2715. for i = 0, 1, 0.25 do
  2716. ArtificialHeartbeat.Event:wait()
  2717. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2718. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2719. 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)
  2720. 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)
  2721. if Anim ~= "Walk" then
  2722. 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)
  2723. 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)
  2724. elseif Anim == "Walk" then
  2725. if walkinganim == true then
  2726. 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)
  2727. 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)
  2728. else
  2729. 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)
  2730. 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)
  2731. end
  2732. end
  2733. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2734. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2735. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2736. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2737. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2738. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2739. end
  2740. attack = false
  2741. end
  2742. function Move2()
  2743. attack = true
  2744. local oldspeedvalue = Speed.Value
  2745. Speed.Value = 0
  2746. for i = 0, 1, 0.25 do
  2747. ArtificialHeartbeat.Event:wait()
  2748. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2749. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2750. 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)
  2751. 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)
  2752. 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)
  2753. 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)
  2754. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2755. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2756. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
  2757. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
  2758. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2759. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2760. end
  2761. for i = 0, 1, 0.015 do
  2762. ArtificialHeartbeat.Event:wait()
  2763. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2764. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2765. 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)
  2766. 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)
  2767. 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)
  2768. 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)
  2769. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2770. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2771. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
  2772. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
  2773. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2774. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2775. end
  2776. so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
  2777. for i = 0, 1, 0.25 do
  2778. ArtificialHeartbeat.Event:wait()
  2779. MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
  2780. MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
  2781. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2782. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2783. 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)
  2784. 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)
  2785. 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)
  2786. 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)
  2787. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2788. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2789. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2790. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2791. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
  2792. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2793. end
  2794. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2795. refpart.CFrame = RootPart.CFrame * cf(0, 500, -20)
  2796. refpart.Anchored = true
  2797. game:GetService("Debris"):AddItem(refpart, 1)
  2798. local TheHit = refpart.Position + vt(0, -1, 0)
  2799. local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit)
  2800. local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character)
  2801. local mag = (refpart.Position - pos).magnitude
  2802. local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2803. refpart2.CFrame = cf(pos)
  2804. refpart2.Anchored = true
  2805. game:GetService("Debris"):AddItem(refpart2, 1)
  2806. 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)
  2807. if hit ~= nil then
  2808. MagicBlock(CustomColor, true, refpart2.CFrame, 15, 15, 15, 1.5, 1.5, 1.5, 0.01)
  2809. MagicSphere(CustomColor, refpart2.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  2810. MagicWave(CustomColor, refpart2.CFrame, 5, 5, 5, 1, 1.5, 1, 0.025)
  2811. MagicRing(CustomColor, refpart2.CFrame * angles(math.rad(90), 0, 0), 2.5, 2.5, 2.5, 2, 2, 2, 0.025)
  2812. so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
  2813. so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
  2814. MagniDamage(refpart2, 25, 20, 50, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true)
  2815. end
  2816. for i = 0, 1, 0.02 do
  2817. ArtificialHeartbeat.Event:wait()
  2818. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2819. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  2820. 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)
  2821. 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)
  2822. 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)
  2823. 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)
  2824. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2825. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2826. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2827. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
  2828. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
  2829. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2830. end
  2831. Speed.Value = Speed.Value + oldspeedvalue
  2832. attack = false
  2833. end
  2834. function Move3()
  2835. attack = true
  2836. local oldspeedvalue = Speed.Value
  2837. Speed.Value = 0
  2838. so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
  2839. for i = 0, 1, 0.05 do
  2840. ArtificialHeartbeat.Event:wait()
  2841. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  2842. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
  2843. 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)
  2844. 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)
  2845. 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)
  2846. 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)
  2847. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2848. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2849. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2850. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2851. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
  2852. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2853. end
  2854. for i = 0, 1, 0.05 do
  2855. ArtificialHeartbeat.Event:wait()
  2856. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  2857. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
  2858. 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)
  2859. 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)
  2860. 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)
  2861. 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)
  2862. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2863. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2864. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2865. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
  2866. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.15)
  2867. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2868. end
  2869. MagicSphere(CustomColor, RootPart.CFrame * cf(2.5, -3, -2), 10, 4, 10, 2.5, 1.5, 2.5, 0.025)
  2870. local num = 0
  2871. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2872. refpart.CFrame = RootPart.CFrame * cf(2.5, 0, -6)
  2873. refpart.Anchored = true
  2874. game:GetService("Debris"):AddItem(refpart, 3)
  2875. for i = 1, 4 do
  2876. local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2877. refpart2.CFrame = refpart.CFrame * cf(2.5, 0, num)
  2878. refpart2.Anchored = true
  2879. game:GetService("Debris"):AddItem(refpart2, 1)
  2880. local TheHit = refpart2.Position + vt(0, -1, 0)
  2881. local MouseLook = cf((refpart2.Position + TheHit) / 2, TheHit)
  2882. local hit, pos = rayCast(refpart2.Position, MouseLook.lookVector, 999, Character)
  2883. if hit ~= nil then
  2884. local refpart3 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2885. refpart3.CFrame = cf(pos)
  2886. refpart3.Anchored = true
  2887. game:GetService("Debris"):AddItem(refpart3, 1)
  2888. MagicSphere(CustomColor, refpart3.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  2889. MagicWave(CustomColor, refpart3.CFrame, 5, 5, 5, 1, 1, 1, 0.025)
  2890. so("http://www.roblox.com/asset/?id=161006093", refpart3, 1, 0.6)
  2891. MagniDamage(refpart3, 20, 20, 30, math.random(5, 20), "Normal", 0, 1, 0, nil, true, true)
  2892. end
  2893. num = num - 20
  2894. wait(0.4)
  2895. end
  2896. Speed.Value = Speed.Value + oldspeedvalue
  2897. attack = false
  2898. end
  2899. function Move4()
  2900. attack = true
  2901. for i = 0, 1, 0.25 do
  2902. ArtificialHeartbeat.Event:wait()
  2903. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2904. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2905. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2906. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2907. if Anim ~= "Walk" then
  2908. 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)
  2909. 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)
  2910. elseif Anim == "Walk" then
  2911. if walkinganim == true then
  2912. 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)
  2913. 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)
  2914. else
  2915. 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)
  2916. 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)
  2917. end
  2918. end
  2919. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2920. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2921. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2922. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2923. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2924. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2925. end
  2926. for i = 0, 1, 0.04 do
  2927. ArtificialHeartbeat.Event:wait()
  2928. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  2929. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  2930. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  2931. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
  2932. if Anim ~= "Walk" then
  2933. 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)
  2934. 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)
  2935. elseif Anim == "Walk" then
  2936. if walkinganim == true then
  2937. 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)
  2938. 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)
  2939. else
  2940. 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)
  2941. 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)
  2942. end
  2943. end
  2944. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  2945. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  2946. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2947. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  2948. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  2949. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  2950. end
  2951. local orbpart = part(3, Effects, "SmoothPlastic", 0, 0.5, CustomColor, "Effect", vt())
  2952. local orbmesh = mesh("SpecialMesh", orbpart, "Sphere", "", vt(0, 0, 0), vt(15, 15, 15))
  2953. local orbweld = weld(orbpart, Torso, orbpart, cf(0, 0, 0), cf(0, -15, 0))
  2954. game:GetService("Debris"):AddItem(orbpart, 5)
  2955. so("http://roblox.com/asset/?id=137463716", orbpart, 1, 0.6)
  2956. coroutine.resume(coroutine.create(function(Part, Mesh)
  2957. for i = 0, 0.7, 0.005 do
  2958. ArtificialHeartbeat.Event:wait()
  2959. Mesh.Scale = Mesh.Scale + vt(0.25, 0.25, 0.25)
  2960. MagicBlock(CustomColor, true, orbpart.CFrame, 15, 15, 15, 1, 1, 1, 0.05)
  2961. local orbchargeeffect = part(3, Effects, "SmoothPlastic", 0, 0, CustomColor, "Effect", vt())
  2962. local orbchargeeffectmesh = mesh("SpecialMesh", orbchargeeffect, "Sphere", "", vt(0, 0, 0), vt(2, math.random(10, 15), 2))
  2963. 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)
  2964. orbchargeeffect.CFrame = orbpart.CFrame * orbchargecframe
  2965. orbchargeeffect.Anchored = true
  2966. game:GetService("Debris"):AddItem(orbchargeeffect, 2)
  2967. coroutine.resume(coroutine.create(function(Part, Mesh)
  2968. for i = 0, 1, 0.1 do
  2969. ArtificialHeartbeat.Event:wait()
  2970. Part.Transparency = i
  2971. Part.CFrame = Part.CFrame * cf(0, -1, 0)
  2972. end
  2973. Part.Parent = nil
  2974. end), orbchargeeffect, orbchargeeffectmesh)
  2975. end
  2976. wait(0.5)
  2977. local range = 999
  2978. local MainPos = Part.Position
  2979. local MainPos2 = Mouse.Hit.p
  2980. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  2981. local hit, pos = rayCast(MainPos, MouseLook.lookVector, range, ShotTarget.Parent)
  2982. local mag = (MainPos - pos).magnitude
  2983. MagicCylinder(CustomColor, cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, mag * 5, 10, 0.25, 0, 0.25, 0.005)
  2984. for i = 1, 5 do
  2985. local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, mag / 5 * (i / 2), 0)
  2986. MagicRing(CustomColor, ringcf * angles(math.rad(90), 0, 0), 1, 1, 1, 0.25, 0.25, 0.25, 0.005)
  2987. end
  2988. for i = 0, 5 do
  2989. local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, -mag / 5 * (i / 2), 0)
  2990. MagicRing(CustomColor, ringcf * angles(math.rad(90), 0, 0), 1, 1, 1, 0.25, 0.25, 0.25, 0.005)
  2991. end
  2992. so("http://roblox.com/asset/?id=183763506", Part, 1, 0.6)
  2993. so("http://roblox.com/asset/?id=178452221", Part, 1, 0.6)
  2994. so("http://www.roblox.com/asset/?id=87767777", Part, 1, 1)
  2995. if hit ~= nil then
  2996. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2997. refpart.CFrame = cf(pos)
  2998. refpart.Anchored = true
  2999. game:GetService("Debris"):AddItem(refpart, 1)
  3000. MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  3001. MagicSphere(CustomColor, refpart.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
  3002. so("http://roblox.com/asset/?id=183763506", refpart, 1, 0.6)
  3003. so("http://roblox.com/asset/?id=178452221", refpart, 1, 0.6)
  3004. so("http://www.roblox.com/Asset?ID=87767777", refpart, 1, 1)
  3005. Damagefunc(hit, 30, 70, 50, "Normal", RootPart, 0, 1, 0, nil, true, true)
  3006. MagniDamage(refpart, 20, 10, 30, 40, "Normal", 0, 1, 0, nil, true, true)
  3007. end
  3008. for i = 0, 1, 0.01 do
  3009. ArtificialHeartbeat.Event:wait()
  3010. Mesh.Scale = Mesh.Scale + vt(0.5, 0.5, 0.5)
  3011. Part.Transparency = Part.Transparency + 0.01
  3012. end
  3013. Part.Parent = nil
  3014. end), orbpart, orbmesh)
  3015. for i = 0, 1, 0.004 do
  3016. ArtificialHeartbeat.Event:wait()
  3017. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3018. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3019. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  3020. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
  3021. if Anim ~= "Walk" then
  3022. 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)
  3023. 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)
  3024. elseif Anim == "Walk" then
  3025. if walkinganim == true then
  3026. 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)
  3027. 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)
  3028. else
  3029. 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)
  3030. 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)
  3031. end
  3032. end
  3033. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  3034. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  3035. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  3036. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  3037. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  3038. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  3039. end
  3040. for i = 0, 1, 0.25 do
  3041. ArtificialHeartbeat.Event:wait()
  3042. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3043. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3044. RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
  3045. LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
  3046. if Anim ~= "Walk" then
  3047. 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)
  3048. 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)
  3049. elseif Anim == "Walk" then
  3050. if walkinganim == true then
  3051. 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)
  3052. 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)
  3053. else
  3054. 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)
  3055. 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)
  3056. end
  3057. end
  3058. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
  3059. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
  3060. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
  3061. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
  3062. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
  3063. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
  3064. end
  3065. attack = false
  3066. end
  3067. hold = false
  3068. Mouse.Button1Down:connect(function()
  3069. if attack == true or equipped == false then
  3070. return
  3071. end
  3072. hold = true
  3073. if attacktype == 1 then
  3074. attacktype = 2
  3075. attackone()
  3076. elseif attacktype == 2 then
  3077. attacktype = 3
  3078. attacktwo()
  3079. elseif attacktype == 3 then
  3080. attacktype = 4
  3081. attackthree()
  3082. elseif attacktype == 4 then
  3083. attacktype = 1
  3084. attackfour()
  3085. end
  3086. coroutine.resume(coroutine.create(function()
  3087. for i = 1, 50 do
  3088. if attack == false then
  3089. wait()
  3090. end
  3091. end
  3092. if attack == false then
  3093. attacktype = 1
  3094. end
  3095. end))
  3096. end)
  3097. if allowhopperbin == true then
  3098. function ob1u(Mouse)
  3099. hold = false
  3100. end
  3101. end
  3102. Mouse.KeyDown:connect(function(key)
  3103. if key == "f" and canunequiporequip == true and attack == false then
  3104. if equipped == false then
  3105. equipped = true
  3106. if disableanimate == true then
  3107. Animate.Disabled = true
  3108. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  3109. idleanimation:Play()
  3110. end
  3111. if disableanimator == true then
  3112. Animator.Parent = nil
  3113. end
  3114. if disablemovingarms == true then
  3115. RW.Parent = Torso
  3116. LW.Parent = Torso
  3117. RSH.Parent = nil
  3118. LSH.Parent = nil
  3119. end
  3120. equipanim()
  3121. elseif equipped == true then
  3122. equipped = false
  3123. unequipanim()
  3124. ArtificialHeartbeat.Event:wait()
  3125. if disablemovingarms == true then
  3126. RW.Parent = nil
  3127. LW.Parent = nil
  3128. RSH.Parent = Torso
  3129. LSH.Parent = Torso
  3130. end
  3131. if disableanimator == true then
  3132. Animator.Parent = Humanoid
  3133. end
  3134. if disableanimate == true then
  3135. Animate.Disabled = false
  3136. end
  3137. end
  3138. end
  3139. if key == "e" and attack == false and equipped == true then
  3140. EAbility()
  3141. end
  3142. if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and mana >= skill1mana then
  3143. subtractmana(skill1mana)
  3144. cooldown1 = 0
  3145. Move1()
  3146. end
  3147. if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and mana >= skill2mana then
  3148. subtractmana(skill2mana)
  3149. cooldown2 = 0
  3150. Move2()
  3151. end
  3152. if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and mana >= skill3mana then
  3153. subtractmana(skill3mana)
  3154. cooldown3 = 0
  3155. Move3()
  3156. end
  3157. if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then
  3158. subtractmana(skill4mana)
  3159. cooldown4 = 0
  3160. Move4()
  3161. end
  3162. if key == "m" then
  3163. hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
  3164. if hitfloor == nil then
  3165. RootPart.CFrame = RootPart.CFrame * cf(0, 12, 0)
  3166. end
  3167. end
  3168. end)
  3169. if allowhopperbin == true then
  3170. function key2(key)
  3171. end
  3172. end
  3173. if allowhopperbin == true then
  3174. function s(Mouse)
  3175. Mouse.Button1Down:connect(function()
  3176. ob1d(Mouse)
  3177. end)
  3178. Mouse.Button1Up:connect(function()
  3179. ob1u(Mouse)
  3180. end)
  3181. Mouse.KeyDown:connect(key)
  3182. Mouse.KeyUp:connect(key2)
  3183. end
  3184. end
  3185. if allowhopperbin == true then
  3186. function ds(Mouse)
  3187. end
  3188. end
  3189. if allowhopperbin == true then
  3190. Bin.Selected:connect(s)
  3191. Bin.Deselected:connect(ds)
  3192. end
  3193. function updateskills()
  3194. if allowabilitestofunction == true then
  3195. if cooldown1 <= co1 then
  3196. cooldown1 = cooldown1 + 0.03333333333333333
  3197. if cooldown1 >= co1 then
  3198. cooldown1 = co1
  3199. end
  3200. end
  3201. if cooldown2 <= co2 then
  3202. cooldown2 = cooldown2 + 0.03333333333333333
  3203. if cooldown2 >= co2 then
  3204. cooldown2 = co2
  3205. end
  3206. end
  3207. if cooldown3 <= co3 then
  3208. cooldown3 = cooldown3 + 0.03333333333333333
  3209. if cooldown3 >= co3 then
  3210. cooldown3 = co3
  3211. end
  3212. end
  3213. if cooldown4 <= co4 then
  3214. cooldown4 = cooldown4 + 0.03333333333333333
  3215. elseif cooldown4 >= co4 then
  3216. cooldown4 = co4
  3217. end
  3218. if changebarcolorsifnotenoughmana == true then
  3219. if mana <= skill1mana then
  3220. bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3221. else
  3222. bar4.BackgroundColor3 = skillcolorscheme
  3223. end
  3224. if mana <= skill2mana then
  3225. bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3226. else
  3227. bar3.BackgroundColor3 = skillcolorscheme
  3228. end
  3229. if mana <= skill3mana then
  3230. bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3231. else
  3232. bar1.BackgroundColor3 = skillcolorscheme
  3233. end
  3234. if mana <= skill4mana then
  3235. bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3236. else
  3237. bar2.BackgroundColor3 = skillcolorscheme
  3238. end
  3239. elseif changebarcolorsifnotenoughmana == false then
  3240. bar1.BackgroundColor3 = skillcolorscheme
  3241. bar2.BackgroundColor3 = skillcolorscheme
  3242. bar3.BackgroundColor3 = skillcolorscheme
  3243. bar4.BackgroundColor3 = skillcolorscheme
  3244. end
  3245. end
  3246. if alternatemanaregensystem == false then
  3247. if mana <= maxmana then
  3248. mana = mana + recovermana / 30
  3249. elseif mana >= maxmana then
  3250. mana = maxmana
  3251. end
  3252. elseif alternatemanaregensystem == true then
  3253. if mana >= maxmana then
  3254. mana = maxmana
  3255. elseif manadelay <= manawait then
  3256. manadelay = manadelay + 1
  3257. else
  3258. manadelay = 0
  3259. mana = mana + 1
  3260. end
  3261. end
  3262. if allowstunbar == true then
  3263. if 0 >= StunValue.Value then
  3264. StunValue.Value = 0
  3265. elseif stundelay <= stunwait then
  3266. stundelay = stundelay + 1
  3267. else
  3268. stundelay = 0
  3269. StunValue.Value = StunValue.Value - 1
  3270. end
  3271. elseif allowstunbar == false then
  3272. StunValue.Value = 0
  3273. end
  3274. end
  3275. if allowmenutofunction == true then
  3276. ArtificialHeartbeat.Event:connect(function()
  3277. updateskills()
  3278. if allowabilitestofunction == true then
  3279. framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3280. framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3281. framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3282. framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3283. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3284. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3285. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3286. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3287. end
  3288. manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3289. manacover:TweenSize(ud(1 * (mana / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3290. healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3291. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3292. if allowstunbar == true then
  3293. stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3294. stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3295. end
  3296. if showhealthmanaandstunnumbers == true then
  3297. manatext.Text = "Mana [" .. mana .. "]"
  3298. healthtext.Text = "Health [" .. Humanoid.Health .. "]"
  3299. if allowstunbar == true then
  3300. stuntext.Text = "Stun [" .. StunValue.Value .. "]"
  3301. end
  3302. end
  3303. if showstats == true then
  3304. defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3305. damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3306. speedframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3307. defensetext.Text = "Defense: " .. Defense.Value
  3308. damagetext.Text = "Damage: " .. Damage.Value
  3309. speedtext.Text = "Speed: " .. Speed.Value
  3310. end
  3311. end)
  3312. end
  3313. ArtificialHeartbeat.Event:connect(function()
  3314. if Humanoid.Health < 100 and dieanim == false then
  3315. dieanim = true
  3316. unequipanim()
  3317. end
  3318. if Humanoid.Health > 0 then
  3319. if walkspeeddependsonspeedvalue == true then
  3320. if 0 > Speed.Value or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true then
  3321. Humanoid.WalkSpeed = 0
  3322. else
  3323. Humanoid.WalkSpeed = 16 * Speed.Value
  3324. end
  3325. end
  3326. if StunValue.Value >= maxstun then
  3327. StunValue.Value = 0
  3328. StunAnim.Value = true
  3329. end
  3330. if StaggerAnim.Value == true and staganim == false then
  3331. coroutine.resume(coroutine.create(function()
  3332. staganim = true
  3333. while attack == true do
  3334. ArtificialHeartbeat.Event:wait()
  3335. end
  3336. Stagger()
  3337. StaggerAnim.Value = false
  3338. staganim = false
  3339. end))
  3340. end
  3341. if StaggerHitAnim.Value == true and staghitanim == false then
  3342. coroutine.resume(coroutine.create(function()
  3343. staghitanim = true
  3344. while attack == true do
  3345. ArtificialHeartbeat.Event:wait()
  3346. end
  3347. StaggerHit()
  3348. StaggerHitAnim.Value = false
  3349. staghitanim = false
  3350. end))
  3351. end
  3352. if StunAnim.Value == true and stunanim == false or 100 <= StunValue.Value then
  3353. coroutine.resume(coroutine.create(function()
  3354. StunValue.Value = 0
  3355. stunanim = true
  3356. while attack == true do
  3357. ArtificialHeartbeat.Event:wait()
  3358. end
  3359. Stun()
  3360. StunAnim.Value = false
  3361. stunanim = false
  3362. end))
  3363. end
  3364. sine = sine + change
  3365. someangle = someangle % 100 + change2 / 10
  3366. local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
  3367. local velderp = RootPart.Velocity.y
  3368. local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
  3369. hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
  3370. if donum >= 0.5 then
  3371. handidle = true
  3372. elseif donum <= 0 then
  3373. handidle = false
  3374. end
  3375. if handidle == false then
  3376. donum = donum + 0.002
  3377. else
  3378. donum = donum - 0.002
  3379. end
  3380. if equipped == true or equipped == false then
  3381. if attack == false then
  3382. idle = idle + 1
  3383. else
  3384. idle = 0
  3385. end
  3386. if not (idle >= 500) or attack == false then
  3387. end
  3388. if leftarm == true then
  3389. if Anim == "Walk" and equipped == true and attack == false then
  3390. if alternatewalk == false then
  3391. if walkinganim == true then
  3392. 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)
  3393. else
  3394. 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)
  3395. end
  3396. elseif walkinganim == true then
  3397. 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)
  3398. else
  3399. 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)
  3400. end
  3401. elseif Anim ~= "Walk" and equipped == true or attack == true then
  3402. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3403. end
  3404. end
  3405. if rightarm == true then
  3406. if Anim == "Walk" and equipped == true and attack == false then
  3407. if alternatewalk == false then
  3408. if walkinganim == true then
  3409. 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)
  3410. else
  3411. 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)
  3412. end
  3413. elseif walkinganim == true then
  3414. 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)
  3415. else
  3416. 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)
  3417. end
  3418. elseif Anim ~= "Walk" and equipped == true or attack == true then
  3419. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3420. end
  3421. end
  3422. if allowwalking == true then
  3423. if Anim == "Walk" and equipped == true then
  3424. if alternatewalk == false then
  3425. if walkinganim == true then
  3426. 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)
  3427. 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)
  3428. else
  3429. 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)
  3430. 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)
  3431. end
  3432. elseif walkinganim == true then
  3433. 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)
  3434. 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)
  3435. else
  3436. 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)
  3437. 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)
  3438. end
  3439. elseif Anim ~= "Walk" and equipped == true then
  3440. 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)
  3441. 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)
  3442. end
  3443. end
  3444. if velderp > 1 and hitfloor == nil then
  3445. Anim = "Jump"
  3446. if attack == false and equipped == true then
  3447. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3448. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.1)
  3449. 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)
  3450. 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)
  3451. 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)
  3452. 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)
  3453. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  3454. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  3455. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3456. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3457. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  3458. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  3459. end
  3460. elseif velderp < -1 and hitfloor == nil then
  3461. Anim = "Fall"
  3462. if attack == false and equipped == true then
  3463. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3464. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1)
  3465. 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)
  3466. 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)
  3467. 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)
  3468. 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)
  3469. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  3470. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  3471. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3472. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3473. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  3474. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  3475. end
  3476. elseif torvel < 1 and hitfloor ~= nil then
  3477. Anim = "Idle"
  3478. if attack == false and equipped == true then
  3479. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
  3480. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.075)
  3481. 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)
  3482. 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)
  3483. 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)
  3484. 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)
  3485. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.075)
  3486. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.075)
  3487. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
  3488. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
  3489. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.075)
  3490. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.075)
  3491. end
  3492. elseif torvel > 1 and hitfloor ~= nil then
  3493. Anim = "Walk"
  3494. walk = walk + 0.5
  3495. if walk >= 20 then
  3496. walk = 0
  3497. if walkinganim == true then
  3498. walkinganim = false
  3499. elseif walkinganim == false then
  3500. walkinganim = true
  3501. end
  3502. end
  3503. if attack == false and equipped == true then
  3504. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3505. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  3506. 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)
  3507. 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)
  3508. if walkinganim == true then
  3509. 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)
  3510. 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)
  3511. else
  3512. 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)
  3513. 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)
  3514. end
  3515. head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
  3516. torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
  3517. rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3518. leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
  3519. rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
  3520. leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
  3521. end
  3522. end
  3523. end
  3524. end
  3525. end)
  3526. end
  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