Advertisement
Infinite_Hack

4 script

Mar 6th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 300.41 KB | None | 0 0
  1. -- Air Magic
  2.  
  3. plr = game.Players.LocalPlayer
  4. char = plr.Character
  5. hum = char.Humanoid
  6. local cam = game.Workspace.CurrentCamera
  7. t = char.Torso
  8. h = char.Head
  9. ra = char["Right Arm"]
  10. la = char["Left Arm"]
  11. rl = char["Right Leg"]
  12. ll = char["Left Leg"]
  13. tors = char.Torso
  14. lleg = char["Left Leg"]
  15. root = char.HumanoidRootPart
  16. hed = char.Head
  17. rleg = char["Right Leg"]
  18. rarm = char["Right Arm"]
  19. larm = char["Left Arm"]
  20. vt = Vector3.new
  21. bc = BrickColor.new
  22. br = BrickColor.random
  23. it = Instance.new
  24. cf = CFrame.new
  25.  
  26.  
  27. local Create = LoadLibrary("RbxUtility").Create
  28.  
  29. CFuncs = {
  30. ["Part"] = {
  31. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  32. local Part = Create("Part"){
  33. Parent = Parent,
  34. Reflectance = Reflectance,
  35. Transparency = Transparency,
  36. CanCollide = false,
  37. Locked = true,
  38. BrickColor = BrickColor.new(tostring(BColor)),
  39. Name = Name,
  40. Size = Size,
  41. Material = Material,
  42. }
  43. RemoveOutlines(Part)
  44. return Part
  45. end;
  46. };
  47.  
  48. ["Mesh"] = {
  49. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  50. local Msh = Create(Mesh){
  51. Parent = Part,
  52. Offset = OffSet,
  53. Scale = Scale,
  54. }
  55. if Mesh == "SpecialMesh" then
  56. Msh.MeshType = MeshType
  57. Msh.MeshId = MeshId
  58. end
  59. return Msh
  60. end;
  61. };
  62.  
  63. ["Mesh"] = {
  64. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  65. local Msh = Create(Mesh){
  66. Parent = Part,
  67. Offset = OffSet,
  68. Scale = Scale,
  69. }
  70. if Mesh == "SpecialMesh" then
  71. Msh.MeshType = MeshType
  72. Msh.MeshId = MeshId
  73. end
  74. return Msh
  75. end;
  76. };
  77.  
  78. ["Weld"] = {
  79. Create = function(Parent, Part0, Part1, C0, C1)
  80. local Weld = Create("Weld"){
  81. Parent = Parent,
  82. Part0 = Part0,
  83. Part1 = Part1,
  84. C0 = C0,
  85. C1 = C1,
  86. }
  87. return Weld
  88. end;
  89. };
  90.  
  91. ["Sound"] = {
  92. Create = function(id, par, vol, pit)
  93. coroutine.resume(coroutine.create(function()
  94. local S = Create("Sound"){
  95. Volume = vol,
  96. Pitch = pit or 1,
  97. SoundId = id,
  98. Parent = par or workspace,
  99. }
  100. wait()
  101. S:play()
  102. game:GetService("Debris"):AddItem(S, 10)
  103. end))
  104. end;
  105. };
  106.  
  107. ["ParticleEmitter"] = {
  108. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  109. local fp = Create("ParticleEmitter"){
  110. Parent = Parent,
  111. Color = ColorSequence.new(Color1, Color2),
  112. LightEmission = LightEmission,
  113. Size = Size,
  114. Texture = Texture,
  115. Transparency = Transparency,
  116. ZOffset = ZOffset,
  117. Acceleration = Accel,
  118. Drag = Drag,
  119. LockedToPart = LockedToPart,
  120. VelocityInheritance = VelocityInheritance,
  121. EmissionDirection = EmissionDirection,
  122. Enabled = Enabled,
  123. Lifetime = LifeTime,
  124. Rate = Rate,
  125. Rotation = Rotation,
  126. RotSpeed = RotSpeed,
  127. Speed = Speed,
  128. VelocitySpread = VelocitySpread,
  129. }
  130. return fp
  131. end;
  132. };
  133.  
  134. CreateTemplate = {
  135.  
  136. };
  137. }
  138.  
  139.  
  140.  
  141. New = function(Object, Parent, Name, Data)
  142. local Object = Instance.new(Object)
  143. for Index, Value in pairs(Data or {}) do
  144. Object[Index] = Value
  145. end
  146. Object.Parent = Parent
  147. Object.Name = Name
  148. return Object
  149. end
  150. local m = Instance.new("Model",char)
  151.  
  152. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  153. local p = Instance.new("Part")
  154. p.Parent = parent
  155. p.Size = Vector3.new(1,1,1)
  156. p.Transparency = transparency
  157. p.Reflectance = reflectance
  158. p.CanCollide = false
  159. p.Locked = true
  160. p.BrickColor = brickcolor
  161. p.Material = material
  162. return p
  163. end
  164.  
  165. function CreateMesh(parent,meshtype,x1,y1,z1)
  166. local mesh = Instance.new("SpecialMesh",parent)
  167. mesh.MeshType = meshtype
  168. mesh.Scale = Vector3.new(x1,y1,z1)
  169. return mesh
  170. end
  171.  
  172. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  173. local mesh = Instance.new("SpecialMesh",parent)
  174. mesh.MeshType = "FileMesh"
  175. mesh.MeshId = meshid
  176. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  177. mesh.Scale = Vector3.new(x1,y1,z1)
  178. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  179. return mesh
  180. end
  181.  
  182. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  183. local weld = Instance.new("Weld")
  184. weld.Parent = parent
  185. weld.Part0 = part0
  186. weld.Part1 = part1
  187. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  188. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  189. return weld
  190. end
  191.  
  192.  
  193. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  194. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  195. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  196. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  197.  
  198. Player=game:GetService("Players").LocalPlayer
  199. Character=Player.Character
  200. PlayerGui=Player.PlayerGui
  201. Backpack=Player.Backpack
  202. Torso=Character.Torso
  203. Head=Character.Head
  204. Humanoid=Character.Humanoid
  205. m=Instance.new('Model',Character)
  206. LeftArm=Character["Left Arm"]
  207. LeftLeg=Character["Left Leg"]
  208. RightArm=Character["Right Arm"]
  209. RightLeg=Character["Right Leg"]
  210. LS=Torso["Left Shoulder"]
  211. LH=Torso["Left Hip"]
  212. RS=Torso["Right Shoulder"]
  213. RH=Torso["Right Hip"]
  214. Face = Head.face
  215. Neck=Torso.Neck
  216. it=Instance.new
  217. attacktype=1
  218. vt=Vector3.new
  219. cf=CFrame.new
  220. euler=CFrame.fromEulerAnglesXYZ
  221. angles=CFrame.Angles
  222. cloaked=false
  223. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  224. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  225. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  226. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  227. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  228. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  229. RootPart=Character.HumanoidRootPart
  230. RootJoint=RootPart.RootJoint
  231. RootCF=euler(-1.57,0,3.14)
  232. attack = false
  233. attackdebounce = false
  234. deb=false
  235. equipped=true
  236. hand=false
  237. MMouse=nil
  238. combo=0
  239. mana=0
  240. trispeed=.2
  241. attackmode='none'
  242. local idle=0
  243. local Anim="Idle"
  244. local Effects={}
  245. local gun=false
  246. local shoot=false
  247. local sine = 0
  248. local change = 1
  249. player=nil
  250.  
  251. mouse=Player:GetMouse()
  252. --save shoulders
  253. RSH, LSH=nil, nil
  254. --welds
  255. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  256. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  257. LH=Torso["Left Hip"]
  258. RH=Torso["Right Hip"]
  259. TorsoColor=Torso.BrickColor
  260. function NoOutline(Part)
  261. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  262. end
  263. player=Player
  264. ch=Character
  265. RSH=ch.Torso["Right Shoulder"]
  266. LSH=ch.Torso["Left Shoulder"]
  267. --
  268. RSH.Parent=nil
  269. LSH.Parent=nil
  270. --
  271. RW.Name="Right Shoulder"
  272. RW.Part0=ch.Torso
  273. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  274. RW.C1=cf(0, 0.5, 0)
  275. RW.Part1=ch["Right Arm"]
  276. RW.Parent=ch.Torso
  277. --
  278. LW.Name="Left Shoulder"
  279. LW.Part0=ch.Torso
  280. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  281. LW.C1=cf(0, 0.5, 0)
  282. LW.Part1=ch["Left Arm"]
  283. LW.Parent=ch.Torso
  284.  
  285. local Stats=Instance.new("BoolValue")
  286. Stats.Name="Stats"
  287. Stats.Parent=Character
  288. local Atk=Instance.new("NumberValue")
  289. Atk.Name="Damage"
  290. Atk.Parent=Stats
  291. Atk.Value=1
  292. local Def=Instance.new("NumberValue")
  293. Def.Name="Defense"
  294. Def.Parent=Stats
  295. Def.Value=1
  296. local Speed=Instance.new("NumberValue")
  297. Speed.Name="Speed"
  298. Speed.Parent=Stats
  299. Speed.Value=1
  300. local Mvmt=Instance.new("NumberValue")
  301. Mvmt.Name="Movement"
  302. Mvmt.Parent=Stats
  303. Mvmt.Value=1
  304.  
  305. local donum=0
  306.  
  307.  
  308. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  309. local fp=it("Part")
  310. fp.formFactor=formfactor
  311. fp.Parent=parent
  312. fp.Reflectance=reflectance
  313. fp.Transparency=transparency
  314. fp.CanCollide=false
  315. fp.Locked=true
  316. fp.BrickColor=brickcolor
  317. fp.Name=name
  318. fp.Size=size
  319. fp.Position=Torso.Position
  320. NoOutline(fp)
  321. fp.Material="SmoothPlastic"
  322. fp:BreakJoints()
  323. return fp
  324. end
  325.  
  326. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  327. local mesh=it(Mesh)
  328. mesh.Parent=part
  329. if Mesh=="SpecialMesh" then
  330. mesh.MeshType=meshtype
  331. if meshid~="nil" then
  332. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  333. end
  334. end
  335. mesh.Offset=offset
  336. mesh.Scale=scale
  337. return mesh
  338. end
  339.  
  340. function weld(parent,part0,part1,c0)
  341. local weld=it("Weld")
  342. weld.Parent=parent
  343. weld.Part0=part0
  344. weld.Part1=part1
  345. weld.C0=c0
  346. return weld
  347. end
  348.  
  349. local Color1=Torso.BrickColor
  350.  
  351. local bodvel=Instance.new("BodyVelocity")
  352. local bg=Instance.new("BodyGyro")
  353.  
  354. function swait(num)
  355. if num==0 or num==nil then
  356. game:service'RunService'.Stepped:wait(0)
  357. else
  358. for i=0,num do
  359. game:service'RunService'.Stepped:wait(0)
  360. end
  361. end
  362. end
  363.  
  364.  
  365. so = function(id,par,vol,pit)
  366. coroutine.resume(coroutine.create(function()
  367. local sou = Instance.new("Sound",par or workspace)
  368. sou.Volume=vol
  369. sou.Pitch=pit or 1
  370. sou.SoundId=id
  371. swait()
  372. sou:play()
  373. game:GetService("Debris"):AddItem(sou,6)
  374. end))
  375. end
  376.  
  377. function clerp(a,b,t)
  378. local qa = {QuaternionFromCFrame(a)}
  379. local qb = {QuaternionFromCFrame(b)}
  380. local ax, ay, az = a.x, a.y, a.z
  381. local bx, by, bz = b.x, b.y, b.z
  382. local _t = 1-t
  383. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  384. end
  385.  
  386. function QuaternionFromCFrame(cf)
  387. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  388. local trace = m00 + m11 + m22
  389. if trace > 0 then
  390. local s = math.sqrt(1 + trace)
  391. local recip = 0.5/s
  392. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  393. else
  394. local i = 0
  395. if m11 > m00 then
  396. i = 1
  397. end
  398. if m22 > (i == 0 and m00 or m11) then
  399. i = 2
  400. end
  401. if i == 0 then
  402. local s = math.sqrt(m00-m11-m22+1)
  403. local recip = 0.5/s
  404. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  405. elseif i == 1 then
  406. local s = math.sqrt(m11-m22-m00+1)
  407. local recip = 0.5/s
  408. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  409. elseif i == 2 then
  410. local s = math.sqrt(m22-m00-m11+1)
  411. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  412. end
  413. end
  414. end
  415.  
  416. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  417. local xs, ys, zs = x + x, y + y, z + z
  418. local wx, wy, wz = w*xs, w*ys, w*zs
  419. local xx = x*xs
  420. local xy = x*ys
  421. local xz = x*zs
  422. local yy = y*ys
  423. local yz = y*zs
  424. local zz = z*zs
  425. 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))
  426. end
  427.  
  428. function QuaternionSlerp(a, b, t)
  429. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  430. local startInterp, finishInterp;
  431. if cosTheta >= 0.0001 then
  432. if (1 - cosTheta) > 0.0001 then
  433. local theta = math.acos(cosTheta)
  434. local invSinTheta = 1/math.sin(theta)
  435. startInterp = math.sin((1-t)*theta)*invSinTheta
  436. finishInterp = math.sin(t*theta)*invSinTheta
  437. else
  438. startInterp = 1-t
  439. finishInterp = t
  440. end
  441. else
  442. if (1+cosTheta) > 0.0001 then
  443. local theta = math.acos(-cosTheta)
  444. local invSinTheta = 1/math.sin(theta)
  445. startInterp = math.sin((t-1)*theta)*invSinTheta
  446. finishInterp = math.sin(t*theta)*invSinTheta
  447. else
  448. startInterp = t-1
  449. finishInterp = t
  450. end
  451. end
  452. 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
  453. end
  454.  
  455. local function CFrameFromTopBack(at, top, back)
  456. local right = top:Cross(back)
  457. return CFrame.new(at.x, at.y, at.z,
  458. right.x, top.x, back.x,
  459. right.y, top.y, back.y,
  460. right.z, top.z, back.z)
  461. end
  462.  
  463. function Triangle(a, b, c)
  464. local edg1 = (c-a):Dot((b-a).unit)
  465. local edg2 = (a-b):Dot((c-b).unit)
  466. local edg3 = (b-c):Dot((a-c).unit)
  467. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  468. a, b, c = a, b, c
  469. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  470. a, b, c = b, c, a
  471. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  472. a, b, c = c, a, b
  473. else
  474. assert(false, "unreachable")
  475. end
  476.  
  477. local len1 = (c-a):Dot((b-a).unit)
  478. local len2 = (b-a).magnitude - len1
  479. local width = (a + (b-a).unit*len1 - c).magnitude
  480.  
  481. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  482.  
  483. local list = {}
  484.  
  485. if len1 > 0.01 then
  486. local w1 = Instance.new('WedgePart', m)
  487. game:GetService("Debris"):AddItem(w1,5)
  488. w1.Material = "SmoothPlastic"
  489. w1.FormFactor = 'Custom'
  490. w1.BrickColor = BrickColor.new("Really red")
  491. w1.Transparency = 0
  492. w1.Reflectance = 0
  493. w1.Material = "SmoothPlastic"
  494. w1.CanCollide = false
  495. local l1 = Instance.new("PointLight",w1)
  496. l1.Color = Color3.new(170,0,0)
  497. NoOutline(w1)
  498. local sz = Vector3.new(0.2, width, len1)
  499. w1.Size = sz
  500. local sp = Instance.new("SpecialMesh",w1)
  501. sp.MeshType = "Wedge"
  502. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  503. w1:BreakJoints()
  504. w1.Anchored = true
  505. w1.Parent = workspace
  506. w1.Transparency = 0.7
  507. table.insert(Effects,{w1,"Disappear",.01})
  508. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  509. table.insert(list,w1)
  510. end
  511.  
  512. if len2 > 0.01 then
  513. local w2 = Instance.new('WedgePart', m)
  514. game:GetService("Debris"):AddItem(w2,5)
  515. w2.Material = "SmoothPlastic"
  516. w2.FormFactor = 'Custom'
  517. w2.BrickColor = BrickColor.new("Really red")
  518. w2.Transparency = 0
  519. w2.Reflectance = 0
  520. w2.Material = "SmoothPlastic"
  521. w2.CanCollide = false
  522. local l2 = Instance.new("PointLight",w2)
  523. l2.Color = Color3.new(170,0,0)
  524. NoOutline(w2)
  525. local sz = Vector3.new(0.2, width, len2)
  526. w2.Size = sz
  527. local sp = Instance.new("SpecialMesh",w2)
  528. sp.MeshType = "Wedge"
  529. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  530. w2:BreakJoints()
  531. w2.Anchored = true
  532. w2.Parent = workspace
  533. w2.Transparency = 0.7
  534. table.insert(Effects,{w2,"Disappear",.01})
  535. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  536. table.insert(list,w2)
  537. end
  538. return unpack(list)
  539. end
  540.  
  541.  
  542. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  543. if hit.Parent==nil then
  544. return
  545. end
  546. h=hit.Parent:FindFirstChild("Humanoid")
  547. for _,v in pairs(hit.Parent:children()) do
  548. if v:IsA("Humanoid") then
  549. h=v
  550. end
  551. end
  552. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  553. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  554. end
  555. if hit.Parent.className=="Hat" then
  556. hit=hit.Parent.Parent:findFirstChild("Head")
  557. end
  558. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  559. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  560. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  561. return
  562. end]]
  563. -- hs(hit,1.2)
  564. c=Instance.new("ObjectValue")
  565. c.Name="creator"
  566. c.Value=game:service("Players").LocalPlayer
  567. c.Parent=h
  568. game:GetService("Debris"):AddItem(c,.5)
  569. Damage=math.random(minim,maxim)
  570. -- h:TakeDamage(Damage)
  571. blocked=false
  572. block=hit.Parent:findFirstChild("Block")
  573. if block~=nil then
  574. print(block.className)
  575. if block.className=="NumberValue" then
  576. if block.Value>0 then
  577. blocked=true
  578. if decreaseblock==nil then
  579. block.Value=block.Value-1
  580. end
  581. end
  582. end
  583. if block.className=="IntValue" then
  584. if block.Value>0 then
  585. blocked=true
  586. if decreaseblock~=nil then
  587. block.Value=block.Value-1
  588. end
  589. end
  590. end
  591. end
  592. if blocked==false then
  593. -- h:TakeDamage(Damage)
  594. h.Health=h.Health-Damage
  595. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  596. else
  597. h.Health=h.Health-(Damage/2)
  598. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  599. end
  600. if Type=="Knockdown" then
  601. hum=hit.Parent.Humanoid
  602. hum.PlatformStand=true
  603. coroutine.resume(coroutine.create(function(HHumanoid)
  604. swait(1)
  605. HHumanoid.PlatformStand=false
  606. end),hum)
  607. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  608. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  609. local bodvol=Instance.new("BodyVelocity")
  610. bodvol.velocity=angle*knockback
  611. bodvol.P=5000
  612. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  613. bodvol.Parent=hit
  614. rl=Instance.new("BodyAngularVelocity")
  615. rl.P=3000
  616. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  617. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  618. rl.Parent=hit
  619. game:GetService("Debris"):AddItem(bodvol,.5)
  620. game:GetService("Debris"):AddItem(rl,.5)
  621. elseif Type=="Normal" then
  622. vp=Instance.new("BodyVelocity")
  623. vp.P=500
  624. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  625. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  626. if KnockbackType==1 then
  627. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  628. elseif KnockbackType==2 then
  629. vp.velocity=Property.CFrame.lookVector*knockback
  630. end
  631. if knockback>0 then
  632. vp.Parent=hit.Parent.Torso
  633. end
  634. game:GetService("Debris"):AddItem(vp,.5)
  635. elseif Type=="Up" then
  636. local bodyVelocity=Instance.new("BodyVelocity")
  637. bodyVelocity.velocity=vt(0,60,0)
  638. bodyVelocity.P=5000
  639. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  640. bodyVelocity.Parent=hit
  641. game:GetService("Debris"):AddItem(bodyVelocity,1)
  642. rl=Instance.new("BodyAngularVelocity")
  643. rl.P=3000
  644. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  645. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  646. rl.Parent=hit
  647. game:GetService("Debris"):AddItem(rl,.5)
  648. elseif Type=="Snare" then
  649. bp=Instance.new("BodyPosition")
  650. bp.P=2000
  651. bp.D=100
  652. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  653. bp.position=hit.Parent.Torso.Position
  654. bp.Parent=hit.Parent.Torso
  655. game:GetService("Debris"):AddItem(bp,1)
  656. elseif Type=="Target" then
  657. if Targetting==false then
  658. ZTarget=hit.Parent.Torso
  659. coroutine.resume(coroutine.create(function(Part)
  660. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  661. swait(5)
  662. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  663. end),ZTarget)
  664. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  665. targetgui=Instance.new("BillboardGui")
  666. targetgui.Parent=ZTarget
  667. targetgui.Size=UDim2.new(10,100,10,100)
  668. targ=Instance.new("ImageLabel")
  669. targ.Parent=targetgui
  670. targ.BackgroundTransparency=1
  671. targ.Image="rbxassetid://4834067"
  672. targ.Size=UDim2.new(1,0,1,0)
  673. cam.CameraType="Scriptable"
  674. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  675. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  676. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  677. Targetting=true
  678. RocketTarget=ZTarget
  679. for i=1,Property do
  680. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  681. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  682. swait()
  683. end
  684. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  685. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  686. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  687. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  688. end
  689. Targetting=false
  690. RocketTarget=nil
  691. targetgui.Parent=nil
  692. cam.CameraType="Custom"
  693. end
  694. end
  695. debounce=Instance.new("BoolValue")
  696. debounce.Name="DebounceHit"
  697. debounce.Parent=hit.Parent
  698. debounce.Value=true
  699. game:GetService("Debris"):AddItem(debounce,Delay)
  700. c=Instance.new("ObjectValue")
  701. c.Name="creator"
  702. c.Value=Player
  703. c.Parent=h
  704. game:GetService("Debris"):AddItem(c,.5)
  705. CRIT=false
  706. hitDeb=true
  707. AttackPos=6
  708. end
  709. end
  710.  
  711. showDamage=function(Char,Dealt,du,Color)
  712. m=Instance.new("Model")
  713. m.Name=tostring(Dealt)
  714. h=Instance.new("Humanoid")
  715. h.Health=0
  716. h.MaxHealth=0
  717. h.Parent=m
  718. c=Instance.new("Part")
  719. c.Transparency=0
  720. c.BrickColor=Color
  721. c.Transparency = 1
  722. c.Name="Head"
  723. c.TopSurface=0
  724. c.BottomSurface=0
  725. c.formFactor="Plate"
  726. c.Size=Vector3.new(1,.4,1)
  727.  
  728. local txt = Instance.new("BillboardGui", c)
  729. txt.Adornee = c
  730. txt.Name = "_status"
  731. txt.Size = UDim2.new(2, 0, 1.2, 0)
  732. txt.StudsOffset = Vector3.new(-9, 8, 0)
  733. local text = Instance.new("TextLabel", txt)
  734. text.Size = UDim2.new(10, 0, 7, 0)
  735. text.FontSize = "Size12"
  736. text.TextScaled = true
  737. text.TextTransparency = 0.5
  738. text.BackgroundTransparency = 1
  739. text.TextTransparency = 0.5
  740. text.TextStrokeTransparency = 0.5
  741. text.Font = "SciFi"
  742. text.TextStrokeColor3 = Color3.new(0,0,0)
  743. v=Instance.new("Part")
  744. v.Name = "ColorBrick"
  745. v.Parent=c
  746. v.FormFactor="Symmetric"
  747. v.Anchored=true
  748. v.CanCollide=false
  749. v.BottomSurface="Smooth"
  750. v.TopSurface="Smooth"
  751. v.Size=Vector3.new(10,5,3)
  752. v.Transparency=1
  753. v.CFrame=c.CFrame
  754. v.BrickColor=BrickColor.random()
  755. v.Transparency=1
  756. text.TextColor3 = t.BrickColor.Color
  757. v.Shape="Block"
  758. text.Text = tostring(Dealt)
  759. ms=Instance.new("CylinderMesh")
  760. ms.Scale=Vector3.new(.8,.8,.8)
  761. --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  762. local rndm=math.random(1,#hitsounds)
  763. local r=rndm
  764. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
  765. if CRIT==true then
  766. ms.Scale=Vector3.new(1,1.25,1)
  767. end
  768. ms.Parent=c
  769. c.Reflectance=0
  770. Instance.new("BodyGyro").Parent=c
  771. c.Parent=m
  772. if Char:findFirstChild("Head")~=nil then
  773. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  774. elseif Char.Parent:findFirstChild("Head")~=nil then
  775. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  776. end
  777. f=Instance.new("BodyPosition")
  778. f.P=2000
  779. f.D=100
  780. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  781. f.position=c.Position+Vector3.new(0,3,0)
  782. f.Parent=c
  783. game:GetService("Debris"):AddItem(m,.5+du)
  784. c.CanCollide=false
  785. m.Parent=workspace
  786. c.CanCollide=false
  787. end
  788.  
  789. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  790. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  791. end
  792.  
  793. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  794. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  795. prt.Anchored=true
  796. prt.CFrame=cframe
  797. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  798. --http://www.roblox.com/asset/?id=4770560
  799. game:GetService("Debris"):AddItem(prt,2)
  800. CF=prt.CFrame
  801. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  802. for i=0,1,0.2 do
  803. wait()
  804. Part.CFrame=CF*cf(0,0,-0.4)
  805. end
  806. for i=0,1,delay do
  807. wait()
  808. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  809. Mesh.Scale=Mesh.Scale
  810. end
  811. for i=0,1,0.1 do
  812. wait()
  813. Part.Transparency=i
  814. end
  815. Part.Parent=nil
  816. end),prt,msh,CF)
  817. end
  818.  
  819. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  820. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  821. prt.Anchored=true
  822. prt.Material = "Neon"
  823. prt.CFrame=cframe
  824. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  825. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  826. game:GetService("Debris"):AddItem(prt,5)
  827. coroutine.resume(coroutine.create(function(Part,Mesh)
  828. for i=0,1,delay do
  829. swait()
  830. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  831. Part.Transparency=i
  832. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  833. end
  834. Part.Parent=nil
  835. end),prt,msh)
  836. end
  837.  
  838. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  839. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  840. prt.Anchored=true
  841. prt.Material = "Neon"
  842. prt.CFrame=cframe
  843. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  844. game:GetService("Debris"):AddItem(prt,5)
  845. coroutine.resume(coroutine.create(function(Part,Mesh)
  846. local rtype = rottype
  847. for i=0,1,delay do
  848. swait()
  849. if rtype == 1 then
  850. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  851. elseif rtype == 2 then
  852. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  853. end
  854. Part.Transparency=i
  855. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  856. end
  857. Part.Parent=nil
  858. end),prt,msh)
  859. end
  860.  
  861. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  862. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  863. prt.Anchored=true
  864. prt.CFrame=cframe
  865. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  866. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  867. game:GetService("Debris"):AddItem(prt,5)
  868. coroutine.resume(coroutine.create(function(Part,Mesh)
  869. for i=0,1,delay do
  870. wait()
  871. Part.Transparency=i
  872. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  873. end
  874. Part.Parent=nil
  875. end),prt,msh)
  876. end
  877.  
  878. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  879. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  880. prt.Anchored=true
  881. prt.Material = "Neon"
  882. prt.CFrame=cframe
  883. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  884. game:GetService("Debris"):AddItem(prt,5)
  885. coroutine.resume(coroutine.create(function(Part,Mesh)
  886. local rtype = rottype
  887. for i=0,1,delay do
  888. swait()
  889. if rtype == 1 then
  890. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  891. elseif rtype == 2 then
  892. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  893. end
  894. Part.Transparency=i
  895. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  896. end
  897. Part.Parent=nil
  898. end),prt,msh)
  899. end
  900.  
  901. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  902. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  903. prt.Anchored=true
  904. prt.Material = "Neon"
  905. prt.CFrame=cframe
  906. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  907. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  908. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  909. game:GetService("Debris"):AddItem(prt,5)
  910. coroutine.resume(coroutine.create(function(Part,Mesh)
  911. local rtype = rottype
  912. for i=0,1,delay do
  913. swait()
  914. if rtype == 1 then
  915. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  916. elseif rtype == 2 then
  917. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  918. end
  919. dec.Transparency=i
  920. dec2.Transparency=i
  921. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  922. end
  923. Part.Parent=nil
  924. end),prt,msh)
  925. end
  926.  
  927. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  928. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  929. prt.Anchored=true
  930. prt.Material = "Neon"
  931. prt.CFrame=cframe
  932. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  933. game:GetService("Debris"):AddItem(prt,5)
  934. coroutine.resume(coroutine.create(function(Part,Mesh)
  935. local rtype = rottype
  936. for i=0,1,delay do
  937. swait()
  938. if rtype == 1 then
  939. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  940. elseif rtype == 2 then
  941. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  942. end
  943. prt.Transparency=i
  944. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  945. end
  946. Part.Parent=nil
  947. end),prt,msh)
  948. end
  949.  
  950. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  951. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  952. prt.Anchored=true
  953. prt.Material = "Neon"
  954. prt.CFrame=cframe
  955. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  956. game:GetService("Debris"):AddItem(prt,5)
  957. coroutine.resume(coroutine.create(function(Part,Mesh)
  958. local rtype = rottype
  959. for i=0,1,delay do
  960. swait()
  961. if rtype == 1 then
  962. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  963. elseif rtype == 2 then
  964. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  965. end
  966. prt.Transparency=i
  967. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  968. end
  969. Part.Parent=nil
  970. end),prt,msh)
  971. end
  972.  
  973. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  974. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  975. prt.Anchored=true
  976. prt.Material = "Neon"
  977. prt.CFrame=cframe
  978. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  979. game:GetService("Debris"):AddItem(prt,5)
  980. coroutine.resume(coroutine.create(function(Part,Mesh)
  981. local rtype = rottype
  982. for i=0,1,delay do
  983. swait()
  984. if rtype == 1 then
  985. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  986. elseif rtype == 2 then
  987. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  988. end
  989. prt.Transparency=i
  990. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  991. end
  992. Part.Parent=nil
  993. end),prt,msh)
  994. end
  995.  
  996. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  997. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  998. prt.Anchored=false
  999. prt.CFrame=cframe
  1000. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1001. local wld=weld(prt,prt,Parent,cframe)
  1002. game:GetService("Debris"):AddItem(prt,5)
  1003. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1004. for i=0,1,delay do
  1005. wait()
  1006. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1007. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1008. Part.Transparency=i
  1009. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1010. end
  1011. Part.Parent=nil
  1012. end),prt,msh,wld)
  1013. end
  1014.  
  1015. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1016. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1017. prt.Anchored=false
  1018. prt.CFrame=cframe
  1019. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1020. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1021. game:GetService("Debris"):AddItem(prt,5)
  1022. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1023. for i=0,1,delay do
  1024. wait()
  1025. Weld.C0=euler(i*20,0,0)
  1026. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1027. Part.Transparency=i
  1028. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1029. end
  1030. Part.Parent=nil
  1031. end),prt,msh,wld)
  1032. end
  1033.  
  1034. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1035. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1036. prt.Anchored=true
  1037. prt.CFrame=cframe
  1038. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1039. game:GetService("Debris"):AddItem(prt,2)
  1040. coroutine.resume(coroutine.create(function(Part,Mesh)
  1041. for i=0,1,delay do
  1042. wait()
  1043. Part.CFrame=Part.CFrame
  1044. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1045. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1046. prt2.Anchored=true
  1047. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1048. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1049. game:GetService("Debris"):AddItem(prt2,2)
  1050. coroutine.resume(coroutine.create(function(Part,Mesh)
  1051. for i=0,1,0.1 do
  1052. wait()
  1053. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1054. end
  1055. Part.Parent=nil
  1056. end),prt2,msh2)
  1057. end
  1058. for i=0,1,delay*2 do
  1059. wait()
  1060. Part.CFrame=Part.CFrame
  1061. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1062. end
  1063. Part.Parent=nil
  1064. end),prt,msh)
  1065. end
  1066.  
  1067. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1068. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1069. prt.Anchored=true
  1070. prt.CFrame=cframe
  1071. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1072. game:GetService("Debris"):AddItem(prt,2)
  1073. coroutine.resume(coroutine.create(function(Part,Mesh)
  1074. for i=0,1,delay do
  1075. wait()
  1076. Part.CFrame=Part.CFrame
  1077. Part.Transparency=i
  1078. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1079. end
  1080. Part.Parent=nil
  1081. end),prt,msh)
  1082. end
  1083.  
  1084. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1085. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1086. prt.Anchored=true
  1087. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1088. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1089. game:GetService("Debris"):AddItem(prt,2)
  1090. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1091. CF=Part.CFrame
  1092. Numbb=0
  1093. randnumb=math.random()/10
  1094. rand1=math.random()/10
  1095. for i=0,1,rand1 do
  1096. wait()
  1097. CF=CF*cf(0,math.random()/2,0)
  1098. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1099. Part.CFrame=CF*euler(Numbb,0,0)
  1100. Part.Transparency=i
  1101. Numbb=Numbb+randnumb
  1102. end
  1103. Part.Parent=nil
  1104. end),prt,CF,Numbb,randnumb)
  1105. end
  1106.  
  1107. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1108. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1109. prt.Anchored=true
  1110. prt.CFrame=cframe
  1111. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1112. game:GetService("Debris"):AddItem(prt,5)
  1113. coroutine.resume(coroutine.create(function(Part,Mesh)
  1114. for i=0,1,delay do
  1115. wait()
  1116. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1117. Part.Transparency=i
  1118. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1119. end
  1120. Part.Parent=nil
  1121. end),prt,msh)
  1122. end
  1123.  
  1124. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1125. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1126. prt.Anchored=true
  1127. prt.CFrame=cframe
  1128. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1129. game:GetService("Debris"):AddItem(prt,2)
  1130. coroutine.resume(coroutine.create(function(Part,Mesh)
  1131. for i=0,1,delay do
  1132. wait()
  1133. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1134. Part.Transparency=i
  1135. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1136. end
  1137. Part.Parent=nil
  1138. end),prt,msh)
  1139. end
  1140.  
  1141. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1142. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1143. prt.Anchored=true
  1144. prt.CFrame=cframe*cf(x,y,z)
  1145. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1146. game:GetService("Debris"):AddItem(prt,5)
  1147. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1148. local num=math.random()
  1149. local num2=math.random(-3,2)+math.random()
  1150. local numm=0
  1151. for i=0,1,delay*2 do
  1152. swait()
  1153. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1154. Part.Transparency=i
  1155. numm=numm+0.01
  1156. end
  1157. Part.Parent=nil
  1158. Mesh.Parent=nil
  1159. end),prt,msh,x,y,z)
  1160. end
  1161.  
  1162. function dmgstart(dmg,what)
  1163. hitcon = what.Touched:connect(function(hit)
  1164. local hum = hit.Parent:FindFirstChild("Humanoid")
  1165. if hum and not hum:IsDescendantOf(Character) then
  1166. hum:TakeDamage(dmg)
  1167. end
  1168. end)
  1169. end
  1170.  
  1171. function dmgstop()
  1172. hitcon:disconnect()
  1173. end
  1174.  
  1175. function Cloak()
  1176. Face.Parent=nil
  1177. cloaked=true
  1178. for _,v in pairs(Torso.Parent:children()) do
  1179. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1180. coroutine.resume(coroutine.create(function()
  1181. for i=0,1,0.2 do
  1182. wait()
  1183. v.Transparency=i
  1184. end
  1185. v.Transparency=1
  1186. end))
  1187. end
  1188. if v.className=="Hat" then
  1189. hatp=v.Handle
  1190. coroutine.resume(coroutine.create(function(derp)
  1191. for i=0,1,0.2 do
  1192. wait()
  1193. derp.Transparency=i
  1194. end
  1195. derp.Transparency=1
  1196. end),hatp)
  1197. end
  1198. end
  1199. for _,v in pairs(m:children()) do
  1200. if v.className=="Part" then
  1201. coroutine.resume(coroutine.create(function()
  1202. for i=0,1,0.2 do
  1203. wait()
  1204. v.Transparency=i
  1205. end
  1206. v.Transparency=1
  1207. end))
  1208. end
  1209. end
  1210. end
  1211.  
  1212. function UnCloak()
  1213. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1214. Face.Parent=Head
  1215. cloaked=false
  1216. for _,v in pairs(Torso.Parent:children()) do
  1217. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1218. coroutine.resume(coroutine.create(function()
  1219. for i=0,1,0.1 do
  1220. wait()
  1221. v.Transparency=v.Transparency-0.1
  1222. end
  1223. v.Transparency=0
  1224. end))
  1225. end
  1226. if v.className=="Hat" then
  1227. hatp=v.Handle
  1228. coroutine.resume(coroutine.create(function(derp)
  1229. for i=0,1,0.1 do
  1230. wait()
  1231. derp.Transparency=derp.Transparency-0.1
  1232. end
  1233. derp.Transparency=0
  1234. end),hatp)
  1235. end
  1236. end
  1237. for _,v in pairs(m:children()) do
  1238. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1239. coroutine.resume(coroutine.create(function()
  1240. for i=0,1,0.1 do
  1241. wait()
  1242. v.Transparency=v.Transparency-0.1
  1243. end
  1244. v.Transparency=0
  1245. end))
  1246. v.Transparency=0
  1247. end
  1248. end
  1249. end
  1250.  
  1251. local jumped = false
  1252. function jump()
  1253. attack = true
  1254. jumped = true
  1255. hum.WalkSpeed = 0
  1256. MagicBlock(bc("White"),root.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1257. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1258. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1259. for i = 0,15,0.1 do
  1260. swait()
  1261. MagicBlock(bc("White"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1262. MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1263. RH.C0=clerp(RH.C0,cf(1,0.45,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(50)),.05)
  1264. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(15)),.05)
  1265. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(50),math.rad(0),math.rad(0)),0.05)
  1266. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.05)
  1267. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1268. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1269. end
  1270. local bv = Instance.new("BodyVelocity")
  1271. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1272. bv.velocity = Vector3.new(0,500,0)
  1273. bv.Parent = root
  1274. game:GetService("Debris"):AddItem(bv, 0.5)
  1275. local rng = Instance.new("Part", char)
  1276. rng.Anchored = true
  1277. rng.BrickColor = BrickColor.new("White")
  1278. rng.CanCollide = false
  1279. rng.FormFactor = 3
  1280. rng.Name = "Ring"
  1281. rng.Size = Vector3.new(1, 1, 1)
  1282. rng.Transparency = 0
  1283. rng.TopSurface = 0
  1284. rng.BottomSurface = 0
  1285. rng.Position = root.Position
  1286. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1287. local rngm = Instance.new("SpecialMesh", rng)
  1288. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1289. local rng2 = rng:Clone()
  1290. rng2.Parent = char
  1291. local rng2m = rng2.Mesh
  1292. local rng3 = rng:Clone()
  1293. rng3.Parent = char
  1294. local rng3m = rng3.Mesh
  1295. local rng4 = rng:Clone()
  1296. rng4.Parent = char
  1297. local rng4m = rng4.Mesh
  1298. local rng5 = rng:Clone()
  1299. rng5.Parent = char
  1300. local rng5m = rng5.Mesh
  1301. CFuncs["Sound"].Create("rbxassetid://324867021", rng, 10, 1)
  1302. wait()
  1303. local scaler = 10
  1304. local scaler2 = 10
  1305. game:GetService("Debris"):AddItem(bv, 2.4)
  1306. hum.WalkSpeed = 50
  1307. MagicBlock(bc("White"),root.CFrame,15,15,15,10,10,10,0.015)
  1308. for i = 0,10,0.1 do
  1309. swait()
  1310. rng.Transparency = rng.Transparency + 0.01
  1311. rng2.Transparency = rng2.Transparency + 0.01
  1312. rng3.Transparency = rng3.Transparency + 0.01
  1313. rng4.Transparency = rng4.Transparency + 0.01
  1314. rng5.Transparency = rng5.Transparency + 0.01
  1315. scaler = scaler - 0.125
  1316. scaler2 = scaler2 - 0.1
  1317. rng2m.Scale = rng2m.Scale + Vector3.new(scaler/1.25, scaler/1.25, 20)
  1318. rng3m.Scale = rng3m.Scale + Vector3.new(scaler/1.5, scaler/1.5, 30)
  1319. rng4m.Scale = rng4m.Scale + Vector3.new(scaler/1.75, scaler/1.75, 40)
  1320. rng5m.Scale = rng5m.Scale + Vector3.new(scaler/2, scaler/2, 50)
  1321. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1322. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5)
  1323. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5)
  1324. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.5)
  1325. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.5)
  1326. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  1327. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.5)
  1328. end
  1329. game:GetService("Debris"):AddItem(rng, 0.1)
  1330. game:GetService("Debris"):AddItem(rng2, 0.1)
  1331. game:GetService("Debris"):AddItem(rng3, 0.1)
  1332. game:GetService("Debris"):AddItem(rng4, 0.1)
  1333. game:GetService("Debris"):AddItem(rng5, 0.1)
  1334. hum.WalkSpeed = 16
  1335. attack = false
  1336. jumped = false
  1337. end
  1338.  
  1339. function dash()
  1340. attack = true
  1341. jumped = true
  1342. hum.WalkSpeed = 0
  1343. local bv = Instance.new("BodyVelocity")
  1344. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1345. bv.velocity = root.CFrame.lookVector*150
  1346. bv.Parent = root
  1347. game:GetService("Debris"):AddItem(bv, 1)
  1348. local rng = Instance.new("Part", char)
  1349. rng.Anchored = true
  1350. rng.BrickColor = BrickColor.new("White")
  1351. rng.CanCollide = false
  1352. rng.FormFactor = 3
  1353. rng.Name = "Ring"
  1354. rng.Size = Vector3.new(1, 1, 1)
  1355. rng.Transparency = 0
  1356. rng.TopSurface = 0
  1357. rng.BottomSurface = 0
  1358. rng.CFrame = root.CFrame
  1359. local rngm = Instance.new("SpecialMesh", rng)
  1360. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1361. local rng2 = rng:Clone()
  1362. rng2.Parent = char
  1363. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  1364. local rng2m = rng2.Mesh
  1365. local rng3 = rng:Clone()
  1366. rng3.Parent = char
  1367. rng3.CFrame = root.CFrame + root.CFrame.lookVector*20
  1368. local rng3m = rng3.Mesh
  1369. local rng4 = rng:Clone()
  1370. rng4.Parent = char
  1371. rng4.CFrame = root.CFrame + root.CFrame.lookVector*30
  1372. local rng4m = rng4.Mesh
  1373. local rng5 = rng:Clone()
  1374. rng5.Parent = char
  1375. rng5.CFrame = root.CFrame + root.CFrame.lookVector*40
  1376. local rng5m = rng5.Mesh
  1377. CFuncs["Sound"].Create("rbxassetid://324867021", root, 1, 1)
  1378. wait()
  1379. local scaler = 10/5
  1380. local scaler2 = 10/5
  1381. local hit = larm.Touched:connect(function(hit)
  1382. Damagefunc(hit,25,34,math.random(10,20),"Normal",root,.2,1)
  1383. end)
  1384. for i = 0,10,0.1 do
  1385. swait()
  1386. MagicBlock(bc("White"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1387. rng.Transparency = rng.Transparency + 0.01
  1388. rng2.Transparency = rng2.Transparency + 0.01
  1389. rng3.Transparency = rng3.Transparency + 0.01
  1390. rng4.Transparency = rng4.Transparency + 0.01
  1391. rng5.Transparency = rng5.Transparency + 0.01
  1392. scaler = scaler - 0.125/5
  1393. scaler2 = scaler2 - 0.1/5
  1394. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 0)
  1395. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1396. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  1397. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1398. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1399. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-25)),.5)
  1400. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5)
  1401. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-80)),0.5)
  1402. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
  1403. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  1404. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-110)), 0.5)
  1405. end
  1406. game:GetService("Debris"):AddItem(rng, 0.1)
  1407. game:GetService("Debris"):AddItem(rng2, 0.1)
  1408. game:GetService("Debris"):AddItem(rng3, 0.1)
  1409. game:GetService("Debris"):AddItem(rng4, 0.1)
  1410. game:GetService("Debris"):AddItem(rng5, 0.1)
  1411. hum.WalkSpeed = 16
  1412. hit:disconnect()
  1413. attack = false
  1414. jumped = false
  1415. end
  1416.  
  1417. function boom()
  1418. attack = true
  1419. jumped = true
  1420. hum.WalkSpeed = 0
  1421. MagicBlock(bc("White"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1422. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1423. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1424. for i = 0,15,0.1 do
  1425. swait()
  1426. MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1427. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1428. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1429. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1430. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1431. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1432. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1433. end
  1434. local rng = Instance.new("Part", char)
  1435. rng.Anchored = true
  1436. rng.BrickColor = BrickColor.new("White")
  1437. rng.CanCollide = false
  1438. rng.FormFactor = 3
  1439. rng.Name = "Ring"
  1440. rng.Size = Vector3.new(1, 1, 1)
  1441. rng.Transparency = 0
  1442. rng.TopSurface = 0
  1443. rng.BottomSurface = 0
  1444. rng.Position = root.Position
  1445. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1446. local rngm = Instance.new("SpecialMesh", rng)
  1447. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1448. local rng2 = rng:Clone()
  1449. rng2.Parent = char
  1450. local rng2m = rng2.Mesh
  1451. local rng3 = rng:Clone()
  1452. rng3.Parent = char
  1453. local rng3m = rng3.Mesh
  1454. local rng4 = rng:Clone()
  1455. rng4.Parent = char
  1456. local rng4m = rng4.Mesh
  1457. local rng5 = rng:Clone()
  1458. rng5.Parent = char
  1459. local rng5m = rng5.Mesh
  1460. local hit = rng5.Touched:connect(function(hit)
  1461. Damagefunc(hit,10,25,math.random(10,20),"Normal",root,.2,1)
  1462. end)
  1463. MagicBlock(bc("White"),root.CFrame,15,15,15,5,5,5,0.015)
  1464. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 10, 1)
  1465. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 5, 0.85)
  1466. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 10, 1)
  1467. wait()
  1468. local scaler = 10
  1469. local scaler2 = 10
  1470. for i = 0,10,0.1 do
  1471. swait()
  1472. rng.Transparency = rng.Transparency + 0.01
  1473. rng2.Transparency = rng2.Transparency + 0.01
  1474. rng3.Transparency = rng3.Transparency + 0.01
  1475. rng4.Transparency = rng4.Transparency + 0.01
  1476. rng5.Transparency = rng5.Transparency + 0.01
  1477. scaler = scaler - 0.125
  1478. scaler2 = scaler2 - 0.1
  1479. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4)
  1480. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3)
  1481. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2)
  1482. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1)
  1483. rng5.Size = rng5m.Scale
  1484. rng5.CFrame = rng.CFrame
  1485. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5)
  1486. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  1487. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5)
  1488. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5)
  1489. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1490. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5)
  1491. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5)
  1492. end
  1493. hit:disconnect()
  1494. game:GetService("Debris"):AddItem(rng, 1)
  1495. game:GetService("Debris"):AddItem(rng2, 1)
  1496. game:GetService("Debris"):AddItem(rng3, 1)
  1497. game:GetService("Debris"):AddItem(rng4, 1)
  1498. game:GetService("Debris"):AddItem(rng5, 1)
  1499. hum.WalkSpeed = 16
  1500. attack = false
  1501. jumped = false
  1502. end
  1503.  
  1504. function shooty()
  1505. attack = true
  1506. MagicBlock(bc("White"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1507. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1508. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1509. for i = 0,15,0.1 do
  1510. swait()
  1511. MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1512. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1513. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1514. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1515. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1516. end
  1517. CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1)
  1518. local a = Instance.new("Part",Character)
  1519. a.Name = "Direction"
  1520. a.Anchored = true
  1521. a.BrickColor = bc("Bright red")
  1522. a.Material = "Neon"
  1523. a.Transparency = 1
  1524. a.CanCollide = false
  1525. local ray = Ray.new(
  1526. root.CFrame.p, -- origin
  1527. (mouse.Hit.p - root.CFrame.p).unit * 500 -- direction
  1528. )
  1529. local ignore = Character
  1530. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1531. a.BottomSurface = 10
  1532. a.TopSurface = 10
  1533. local distance = (root.CFrame.p - position).magnitude
  1534. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1535. a.CFrame = CFrame.new(root.CFrame.p, position) * CFrame.new(0, 0, 0)
  1536. local lb = Instance.new("Part")
  1537. lb.Parent = char
  1538. lb.BrickColor = bc("White")
  1539. lb.CanCollide = false
  1540. lb.Material = "Neon"
  1541. lb.Anchored = true
  1542. lb.TopSurface = 0
  1543. lb.BottomSurface = 0
  1544. lb.Transparency = 0
  1545. lb.Size = vt(0.5,0.5,0.5)
  1546. lb.CFrame = sorb.CFrame
  1547. lb.Anchored = false
  1548. local thingery = Instance.new("SpecialMesh",lb)
  1549. thingery.MeshType = "Sphere"
  1550. thingery.Scale = vt(25,25,25)
  1551. game:GetService("Debris"):AddItem(lb, 10)
  1552. local bv = Instance.new("BodyVelocity")
  1553. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1554. bv.velocity = a.CFrame.lookVector*150
  1555. bv.Parent = lb
  1556. game:GetService("Debris"):AddItem(a, 0.1)
  1557. wait(0.05)
  1558. local hitted = false
  1559. lb.Touched:connect(function(hit)
  1560. if hitted == false then
  1561. hitted = true
  1562. lb.Anchored = true
  1563. lb.Transparency = 1
  1564. local rng = Instance.new("Part", char)
  1565. rng.Anchored = true
  1566. rng.BrickColor = BrickColor.new("White")
  1567. rng.CanCollide = false
  1568. rng.FormFactor = 3
  1569. rng.Name = "Ring"
  1570. rng.Size = Vector3.new(1, 1, 1)
  1571. rng.Transparency = 0
  1572. rng.TopSurface = 0
  1573. rng.BottomSurface = 0
  1574. rng.CFrame = lb.CFrame
  1575. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1576. local rngm = Instance.new("SpecialMesh", rng)
  1577. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1578. local rng2 = rng:Clone()
  1579. rng2.Parent = char
  1580. local rng2m = rng2.Mesh
  1581. local rng3 = rng:Clone()
  1582. rng3.Parent = char
  1583. local rng3m = rng3.Mesh
  1584. local rng4 = rng:Clone()
  1585. rng4.Parent = char
  1586. local rng4m = rng4.Mesh
  1587. local rng5 = rng:Clone()
  1588. rng5.Parent = char
  1589. rng5.CFrame = rng5.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1590. local rng5m = rng5.Mesh
  1591. rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1592. rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1593. rng4.CFrame = rng4.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1594. MagicBlock(bc("White"),lb.CFrame,15,15,15,5,5,5,0.015)
  1595. local rng6 = rng:Clone()
  1596. rng6.Material = "Neon"
  1597. rng6.Parent = char
  1598. local rng6m = rng6.Mesh
  1599. rng6m.Scale = vt(1,1,1)
  1600. rng6m.MeshType = "Sphere"
  1601. local hita = rng6.Touched:connect(function(hit)
  1602. Damagefunc(hit,10,25,math.random(10,20),"Normal",root,.2,1)
  1603. end)
  1604. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 1)
  1605. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 5, 0.75)
  1606. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 5, 1)
  1607. local scaler = 5
  1608. local scaler2 = 5
  1609. for i = 0,20,0.1 do
  1610. swait()
  1611. rng.Transparency = rng.Transparency + 0.005
  1612. rng2.Transparency = rng2.Transparency + 0.005
  1613. rng3.Transparency = rng3.Transparency + 0.005
  1614. rng4.Transparency = rng4.Transparency + 0.005
  1615. rng5.Transparency = rng5.Transparency + 0.005
  1616. rng6.Transparency = rng6.Transparency + 0.005
  1617. scaler = scaler - 0.005/2
  1618. scaler2 = scaler2 - 0.05/2
  1619. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  1620. rng6.CFrame = rng.CFrame
  1621. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1622. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1623. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1624. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  1625. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1626. end
  1627. hita:disconnect()
  1628. game:GetService("Debris"):AddItem(rng, 1)
  1629. game:GetService("Debris"):AddItem(rng2, 1)
  1630. game:GetService("Debris"):AddItem(rng3, 1)
  1631. game:GetService("Debris"):AddItem(rng4, 1)
  1632. game:GetService("Debris"):AddItem(rng5, 1)
  1633. game:GetService("Debris"):AddItem(rng6, 1)
  1634. end
  1635. end)
  1636. for i = 0,2,0.1 do
  1637. swait()
  1638. MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1639. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1640. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1641. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1642. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1643. end
  1644. attack = false
  1645. end
  1646.  
  1647. function superpunch()
  1648. attack = true
  1649. jumped = true
  1650. hum.WalkSpeed = 0
  1651. MagicBlock(bc("White"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1652. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1653. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1654. for i = 0,15,0.1 do
  1655. swait()
  1656. MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1657. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1658. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1659. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1660. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1661. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1662. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1663. end
  1664. local rng = Instance.new("Part", char)
  1665. rng.Anchored = true
  1666. rng.BrickColor = BrickColor.new("White")
  1667. rng.CanCollide = false
  1668. rng.FormFactor = 3
  1669. rng.Name = "Ring"
  1670. rng.Size = Vector3.new(1, 1, 1)
  1671. rng.Transparency = 0
  1672. rng.TopSurface = 0
  1673. rng.BottomSurface = 0
  1674. rng.CFrame = root.CFrame
  1675. local rngm = Instance.new("SpecialMesh", rng)
  1676. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1677. local rng2 = rng:Clone()
  1678. rng2.Parent = char
  1679. local rng2m = rng2.Mesh
  1680. local rng3 = rng:Clone()
  1681. rng3.Parent = char
  1682. local rng3m = rng3.Mesh
  1683. local rng4 = rng:Clone()
  1684. rng4.Parent = char
  1685. local rng4m = rng4.Mesh
  1686. local rng5 = rng:Clone()
  1687. rng5.Parent = char
  1688. local rng5m = rng5.Mesh
  1689. local rng6 = rng:Clone()
  1690. rng6.Material = "Neon"
  1691. rng6.Parent = char
  1692. local rng6m = rng6.Mesh
  1693. rng6m.Scale = vt(1,1,1)
  1694. rng6m.MeshType = "Sphere"
  1695. local hita = rng6.Touched:connect(function(hit)
  1696. Damagefunc(hit,10,25,math.random(10,20),"Normal",root,.2,1)
  1697. end)
  1698. rng2.CFrame = root.CFrame
  1699. rng3.CFrame = root.CFrame
  1700. rng4.CFrame = root.CFrame
  1701. rng5.CFrame = root.CFrame
  1702. rng6.CFrame = root.CFrame
  1703. CFuncs["Sound"].Create("rbxassetid://260430117", rng, 5, 1)
  1704. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 0.85)
  1705. CFuncs["Sound"].Create("rbxassetid://169628396", rng, 5, 1)
  1706. CFuncs["Sound"].Create("rbxassetid://137994058", rng, 5, 1)
  1707. CFuncs["Sound"].Create("rbxassetid://138186576", rng, 5, 1)
  1708. wait()
  1709. local scaler = 10/5
  1710. local scaler2 = 10/5
  1711. MagicBlock(bc("White"),root.CFrame,15,15,15,5,5,5,0.015)
  1712. for i = 0,10,0.1 do
  1713. swait()
  1714. MagicBlock(bc("White"),rng6.CFrame,5,5,5,5,5,5,0.1)
  1715. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2
  1716. rng2.CFrame = rng2.CFrame + rng2.CFrame.lookVector*scaler2/1.25
  1717. rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/1.5
  1718. rng4.CFrame = rng4.CFrame + rng4.CFrame.lookVector*scaler2/1.75
  1719. rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/2
  1720. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  1721. rng6.CFrame = rng.CFrame
  1722. rng.Transparency = rng.Transparency + 0.01
  1723. rng2.Transparency = rng2.Transparency + 0.01
  1724. rng3.Transparency = rng3.Transparency + 0.01
  1725. rng4.Transparency = rng4.Transparency + 0.01
  1726. rng5.Transparency = rng5.Transparency + 0.01
  1727. rng6.Transparency = rng6.Transparency + 0.01
  1728. scaler = scaler - 0.125/5
  1729. scaler2 = scaler2 - 0.1/5
  1730. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 1.5)
  1731. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1)
  1732. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0.5)
  1733. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  1734. rngm.Scale = rngm.Scale + Vector3.new(scaler2/3, scaler2/3, 2)
  1735. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1736. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1737. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1738. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1739. end
  1740. hita:disconnect()
  1741. game:GetService("Debris"):AddItem(rng, 1)
  1742. game:GetService("Debris"):AddItem(rng2, 1)
  1743. game:GetService("Debris"):AddItem(rng3, 1)
  1744. game:GetService("Debris"):AddItem(rng4, 1)
  1745. game:GetService("Debris"):AddItem(rng5, 1)
  1746. hum.WalkSpeed = 16
  1747. attack = false
  1748. jumped = false
  1749. end
  1750.  
  1751.  
  1752. mouse.KeyDown:connect(function(k)
  1753. if k == "z" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  1754. jump()
  1755. end
  1756. if k == "x" and attack == false then
  1757. dash()
  1758. end
  1759. if k == "c" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  1760. boom()
  1761. end
  1762. if k == "v" and attack == false then
  1763. shooty()
  1764. end
  1765. if k == "b" and attack == false then
  1766. superpunch()
  1767. end
  1768. end)
  1769. Humanoid.Animator.Parent = nil
  1770. idleanim=.4
  1771. while true do
  1772. swait()
  1773. sine = sine + change
  1774. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1775. local velderp=RootPart.Velocity.y
  1776. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1777. if equipped==true or equipped==false then
  1778. if attack==false then
  1779. idle=idle+1
  1780. else
  1781. idle=0
  1782. end
  1783. if idle>=500 then
  1784. if attack==false then
  1785. --Sheath()
  1786. end
  1787. end
  1788. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1789. Anim="Jump"
  1790. if attack==false then
  1791. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1792. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1793. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1794. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1795. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1796. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1797. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1798. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1799. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1800. end
  1801. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1802. Anim="Fall"
  1803. if attack==false then
  1804. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1805. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1806. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1807. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1808. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1809. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1810. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1811. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1812. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1813. end
  1814. elseif torvel<1 and hitfloor~=nil then
  1815. Anim="Idle"
  1816. if jumped == false then
  1817. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  1818. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  1819. end
  1820. if attack==false then
  1821. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1822. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  1823. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(5 + 2.5 * math.cos(sine / 25))),.3)
  1824. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.3)
  1825. end
  1826. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1827. Anim="Walk"
  1828. if jumped == false then
  1829. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  1830. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  1831. end
  1832. if attack==false then
  1833. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  1834. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1835. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3)
  1836. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3)
  1837. end
  1838. elseif torvel>=22 and hitfloor~=nil then
  1839. Anim="Run"
  1840. if jumped == false then
  1841. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  1842. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  1843. end
  1844. if attack==false then
  1845. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  1846. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1847. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  1848. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  1849. end
  1850. end
  1851. end
  1852. end
  1853.  
  1854. -- Magic Unknown
  1855.  
  1856. --[[Magic Unknown, By KillerDarkness0105/Codex#6685.]]--
  1857.  
  1858.  
  1859.  
  1860.  
  1861.  
  1862. Player=game:GetService("Players").LocalPlayer
  1863. Character=Player.Character
  1864. PlayerGui=Player.PlayerGui
  1865. Backpack=Player.Backpack
  1866. Torso=Character.Torso
  1867. Head=Character.Head
  1868. Humanoid=Character.Humanoid
  1869. LeftArm=Character["Left Arm"]
  1870. LeftLeg=Character["Left Leg"]
  1871. RightArm=Character["Right Arm"]
  1872. RightLeg=Character["Right Leg"]
  1873. LS=Torso["Left Shoulder"]
  1874. LH=Torso["Left Hip"]
  1875. RS=Torso["Right Shoulder"]
  1876. RH=Torso["Right Hip"]
  1877. Face = Head.face
  1878. Neck=Torso.Neck
  1879. it=Instance.new
  1880. attacktype=1
  1881. attacktype2=1
  1882. vt=Vector3.new
  1883. it=Instance.new
  1884. cf=CFrame.new
  1885. cn=CFrame.new
  1886. euler=CFrame.fromEulerAnglesXYZ
  1887. angles=CFrame.Angles
  1888. combo = 0
  1889. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1890. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1891. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1892. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1893. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1894. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1895. RootPart=Character.HumanoidRootPart
  1896. RootJoint=RootPart.RootJoint
  1897. RootCF=euler(-1.57,0,3.14)
  1898. attack = false
  1899. attackdebounce = false
  1900. trispeed=.2
  1901. attackmode='none'
  1902. local idle=0
  1903. local Anim="Idle"
  1904. stance = false
  1905. local ff = 2
  1906. noleg = false
  1907. evadecooldown = false
  1908. Humanoid.Animator.Parent = nil
  1909. local equip = false
  1910. local Effects = {}
  1911. attackspeed = 0.14
  1912. df = false
  1913. Swing = 1
  1914. local sine = 0
  1915. local change = 1
  1916. local val = 0
  1917. local speed = 0
  1918. local rs = game:GetService("RunService").RenderStepped
  1919. cam = workspace.CurrentCamera
  1920. local RbxUtility = LoadLibrary("RbxUtility")
  1921. local Create = RbxUtility.Create
  1922. deb = game:GetService("Debris")
  1923. Face:Destroy()
  1924.  
  1925. --game.Lighting.TimeOfDay = 210
  1926.  
  1927. local eye1 = Instance.new("Part")
  1928. eye1.Parent = Character
  1929. eye1.Size = Vector3.new(0.2,0.2,0.2)
  1930. eye1.Archivable = true
  1931. eye1.Transparency = 0
  1932. eye1.CanCollide = false
  1933. eye1.Material = "Neon"
  1934. eye1.Color = Color3.fromRGB(48,0,211)
  1935. local eye1mesh = Instance.new("SpecialMesh",eye1)
  1936. eye1mesh.MeshType = "Sphere"
  1937. eye1mesh.Scale = Vector3.new(0.66,1.22,0.66)
  1938. ko2 = eye1mesh.Scale
  1939. local eye1weld = Instance.new("Weld")
  1940. eye1weld.Parent = eye1
  1941. eye1weld.Part0 = Head
  1942. eye1weld.Part1 = eye1
  1943. eye1weld.C0 = CFrame.new(.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1944. eye1weld.Part0 = Head
  1945.  
  1946.  
  1947.  
  1948.  
  1949. local eye2 = Instance.new("Part")
  1950. eye2.Parent = Character
  1951. eye2.Size = Vector3.new(0.2,0.2,0.2)
  1952. eye2.Archivable = true
  1953. eye2.Transparency = 0
  1954. eye2.CanCollide = false
  1955. eye2.Material = "Neon"
  1956. eye2.Color = Color3.fromRGB(48,0,211)
  1957. local eye2mesh = Instance.new("SpecialMesh",eye2)
  1958. eye2mesh.MeshType = "Sphere"
  1959. eye2mesh.Scale = Vector3.new(0.66,1.22,0.66)
  1960. local eye2weld = Instance.new("Weld")
  1961. eye2weld.Parent = eye2
  1962. eye2weld.Part0 = Head
  1963. eye2weld.Part1 = eye2
  1964. eye2weld.C0 = CFrame.new(-.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1965. eye2weld.Part0 = Head
  1966.  
  1967.  
  1968.  
  1969.  
  1970. music = Instance.new("Sound",PlayerGui)
  1971. music.Volume = 1
  1972. music.TimePosition = 0
  1973. music.Pitch = 1
  1974. music.SoundId = "rbxassetid://1849245030"
  1975. music.Looped = true
  1976. music:Play()
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997. so = function(id,par,vol,pit)
  1998. coroutine.resume(coroutine.create(function()
  1999. local sou = Instance.new("Sound",par or workspace)
  2000. sou.Volume=vol
  2001. sou.Pitch=pit or 1
  2002. sou.SoundId=id
  2003. sou:play()
  2004. game:GetService("Debris"):AddItem(sou,8)
  2005. end))
  2006. end
  2007.  
  2008. --save shoulders
  2009. RSH, LSH=nil, nil
  2010. --welds
  2011. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  2012. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  2013. LH=Torso["Left Hip"]
  2014. RH=Torso["Right Hip"]
  2015. TorsoColor=Torso.BrickColor
  2016. function NoOutline(Part)
  2017. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2018. end
  2019. player=Player
  2020. ch=Character
  2021. RSH=ch.Torso["Right Shoulder"]
  2022. LSH=ch.Torso["Left Shoulder"]
  2023. --
  2024. RSH.Parent=nil
  2025. LSH.Parent=nil
  2026. --
  2027. RW.Name="Right Shoulder"
  2028. RW.Part0=ch.Torso
  2029. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2030. RW.C1=cf(0, 0.5, 0)
  2031. RW.Part1=ch["Right Arm"]
  2032. RW.Parent=ch.Torso
  2033. --
  2034. LW.Name="Left Shoulder"
  2035. LW.Part0=ch.Torso
  2036. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2037. LW.C1=cf(0, 0.5, 0)
  2038. LW.Part1=ch["Left Arm"]
  2039. LW.Parent=ch.Torso
  2040.  
  2041.  
  2042. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  2043. local wld = Instance.new("Weld", wp1)
  2044. wld.Part0 = wp0
  2045. wld.Part1 = wp1
  2046. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  2047. end
  2048. local rs = game:GetService("RunService").RenderStepped
  2049.  
  2050. newWeld(RootPart, Torso, 0, -1, 0)
  2051. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  2052. newWeld(Torso, LeftLeg, -0.5, -1, 0)
  2053. LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  2054. newWeld(Torso, RightLeg, 0.5, -1, 0)
  2055. RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  2056.  
  2057. Player=game:GetService('Players').LocalPlayer
  2058. Character=Player.Character
  2059. mouse=Player:GetMouse()
  2060. m=Instance.new('Model',Character)
  2061.  
  2062.  
  2063. local function weldBetween(a, b)
  2064. local weldd = Instance.new("ManualWeld")
  2065. weldd.Part0 = a
  2066. weldd.Part1 = b
  2067. weldd.C0 = CFrame.new()
  2068. weldd.C1 = b.CFrame:inverse() * a.CFrame
  2069. weldd.Parent = a
  2070. return weldd
  2071. end
  2072.  
  2073. ArtificialHB = Instance.new("BindableEvent", script)
  2074. ArtificialHB.Name = "Heartbeat"
  2075.  
  2076. script:WaitForChild("Heartbeat")
  2077.  
  2078. frame = 1 / 80
  2079. tf = 0
  2080. allowframeloss = false
  2081. tossremainder = false
  2082. lastframe = tick()
  2083. script.Heartbeat:Fire()
  2084. game:GetService("RunService").Heartbeat:connect(function(s, p)
  2085. tf = tf + s
  2086. if tf >= frame then
  2087. if allowframeloss then
  2088. script.Heartbeat:Fire()
  2089. lastframe = tick()
  2090. else
  2091. for i = 1, math.floor(tf / frame) do
  2092. script.Heartbeat:Fire()
  2093. end
  2094. lastframe = tick()
  2095. end
  2096. if tossremainder then
  2097. tf = 0
  2098. else
  2099. tf = tf - frame * math.floor(tf / frame)
  2100. end
  2101. end
  2102. end)
  2103.  
  2104. --[[]
  2105. function swait(num)
  2106. if num == 0 or num == nil then
  2107. ArtificialHB.Event:wait()
  2108. else
  2109. for i = 0, num do
  2110. ArtificialHB.Event:wait()
  2111. end
  2112. end
  2113. end
  2114.  
  2115. ]]
  2116.  
  2117.  
  2118. function swait(num)
  2119. if num == 0 or num == nil then
  2120. game:service("RunService").Stepped:wait()
  2121. else
  2122. for i = 0, num do
  2123. game:service("RunService").Stepped:wait()
  2124. end
  2125. end
  2126. end
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135. function RemoveOutlines(part)
  2136. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2137. end
  2138.  
  2139.  
  2140. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  2141. local fp = it("Part")
  2142. fp.formFactor = formfactor
  2143. fp.Parent = parent
  2144. fp.Reflectance = reflectance
  2145. fp.Transparency = transparency
  2146. fp.CanCollide = false
  2147. fp.Locked = true
  2148. fp.BrickColor = brickcolor
  2149. fp.Name = name
  2150. fp.Size = size
  2151. fp.Position = Torso.Position
  2152. NoOutline(fp)
  2153. if fp.BrickColor == BrickColor.new("Dark indigo") then
  2154. fp.Material = "Neon"
  2155. else
  2156. if fp.BrickColor == BrickColor.new("Really black") then
  2157. fp.BrickColor = BrickColor.new("Really black")
  2158. fp.Material = "Metal"
  2159. else
  2160. fp.Material = "Neon"
  2161. end
  2162. end
  2163. fp:BreakJoints()
  2164. return fp
  2165. end
  2166.  
  2167. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  2168. local mesh = it(Mesh)
  2169. mesh.Parent = part
  2170. if Mesh == "SpecialMesh" then
  2171. mesh.MeshType = meshtype
  2172. if meshid ~= "nil" then
  2173. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  2174. end
  2175. end
  2176. mesh.Offset = offset
  2177. mesh.Scale = scale
  2178. return mesh
  2179. end
  2180. weld = function(parent, part0, part1, c0)
  2181. local weld = it("Weld")
  2182. weld.Parent = parent
  2183. weld.Part0 = part0
  2184. weld.Part1 = part1
  2185. weld.C0 = c0
  2186. return weld
  2187. end
  2188.  
  2189. F1 = Instance.new("Folder", Character)
  2190. F1.Name = "Effects Folder"
  2191. F2 = Instance.new("Folder", F1)
  2192. F2.Name = "Effects"
  2193. Triangle = function(a, b, c)
  2194. end
  2195.  
  2196. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
  2197. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2198. prt.Anchored = true
  2199. prt.CFrame = cframe
  2200. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2201. game:GetService("Debris"):AddItem(prt, 10)
  2202. if Type == 1 or Type == nil then
  2203. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2204. else
  2205. if Type == 2 then
  2206. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2207. else
  2208. if Type == 3 then
  2209. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
  2210. end
  2211. end
  2212. end
  2213. end
  2214. MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  2215. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2216. prt.Anchored = true
  2217. prt.CFrame = cframe
  2218. msh = mesh("SpecialMesh", prt, "FileMesh", "14028428", vt(0, 0, 0), vt(x1, y1, z1))
  2219. game:GetService("Debris"):AddItem(prt, 10)
  2220. table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
  2221. end
  2222. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2223. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2224. prt.Anchored = true
  2225. prt.CFrame = cframe
  2226. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2227. game:GetService("Debris"):AddItem(prt, 10)
  2228. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2229. end
  2230. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2231. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2232. prt.Anchored = true
  2233. prt.CFrame = cframe * cf(x2, y2, z2)
  2234. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2235. game:GetService("Debris"):AddItem(prt, 10)
  2236. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2237. end
  2238. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  2239. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2240. prt.Anchored = true
  2241. prt.CFrame = cframe
  2242. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2243. game:GetService("Debris"):AddItem(prt, 10)
  2244. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  2245. end
  2246. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2247. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2248. prt.Anchored = true
  2249. prt.CFrame = cframe
  2250. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2251. game:GetService("Debris"):AddItem(prt, 10)
  2252. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2253. end
  2254. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  2255. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2256. prt.Anchored = true
  2257. prt.CFrame = cframe
  2258. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2259. game:GetService("Debris"):AddItem(prt, 10)
  2260. table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
  2261. end
  2262. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2263. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2264. prt.Anchored = true
  2265. prt.CFrame = cframe
  2266. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2267. game:GetService("Debris"):AddItem(prt, 10)
  2268. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2269. end
  2270. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2271. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2272. prt.Anchored = true
  2273. prt.CFrame = cframe
  2274. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2275. game:GetService("Debris"):AddItem(prt, 10)
  2276. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2277. end
  2278. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2279. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2280. prt.Anchored = true
  2281. prt.CFrame = cframe
  2282. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2283. game:GetService("Debris"):AddItem(prt, 10)
  2284. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2285. end
  2286. MagicFire = function(brickcolor, cframe, x1, y1, z1, delay)
  2287. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2288. prt.Anchored = true
  2289. prt.CFrame = cframe
  2290. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2291. game:GetService("Debris"):AddItem(prt, 10)
  2292. table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
  2293. end
  2294. MagicFireWave = function(brickcolor, cframe, x1, y1, z1)
  2295. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2296. prt.Anchored = true
  2297. prt.CFrame = cframe
  2298. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2299. d = Instance.new("Decal")
  2300. d.Parent = prt
  2301. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  2302. d.Face = "Top"
  2303. d = Instance.new("Decal")
  2304. d.Parent = prt
  2305. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  2306. d.Face = "Bottom"
  2307. game:GetService("Debris"):AddItem(prt, 10)
  2308. table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
  2309. end
  2310. ElecEffect = function(cff, x, y, z)
  2311. local prt = part(3, workspace, 0, 0, BrickColor.new("White"), "Part", vt(1, 1, 1))
  2312. prt.Anchored = true
  2313. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  2314. prt.CFrame = cf(prt.Position)
  2315. game:GetService("Debris"):AddItem(prt, 10)
  2316. xval = math.random() / 3
  2317. yval = math.random() / 3
  2318. zval = math.random() / 3
  2319. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  2320. Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
  2321. end
  2322.  
  2323. function FindNearestTorso(Position, Distance, SinglePlayer)
  2324. if SinglePlayer then
  2325. return (SinglePlayer.Torso.CFrame.p - Position).magnitude Distance
  2326. end
  2327. local List = {}
  2328. for i, v in pairs(workspace:GetChildren()) do
  2329. if v:IsA("Model") then
  2330. if v:findFirstChild("Torso") then
  2331. if v ~= Character then
  2332. if (v.Torso.Position - Position).magnitude = Distance then
  2333. table.insert(List, v)
  2334. end
  2335. end
  2336. end
  2337. end
  2338. end
  2339. return List
  2340. end
  2341.  
  2342.  
  2343. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2344. local Part = Create("Part"){
  2345. Parent = Parent,
  2346. Reflectance = Reflectance,
  2347. Transparency = Transparency,
  2348. CanCollide = false,
  2349. Locked = true,
  2350. BrickColor = BrickColor.new(tostring(BColor)),
  2351. Name = Name,
  2352. Size = Size,
  2353. Material = Material,
  2354. }
  2355. RemoveOutlines(Part)
  2356. return Part
  2357. end
  2358.  
  2359. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2360. local Msh = Create(Mesh){
  2361. Parent = Part,
  2362. Offset = OffSet,
  2363. Scale = Scale,
  2364. }
  2365. if Mesh == "SpecialMesh" then
  2366. Msh.MeshType = MeshType
  2367. Msh.MeshId = MeshId
  2368. end
  2369. return Msh
  2370. end
  2371.  
  2372.  
  2373.  
  2374. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2375. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2376. prt.Anchored = true
  2377. prt.CFrame = cframe
  2378. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2379. game:GetService("Debris"):AddItem(prt, 10)
  2380. if Type == 1 or Type == nil then
  2381. table.insert(Effects, {
  2382. prt,
  2383. "Block1",
  2384. delay,
  2385. x3,
  2386. y3,
  2387. z3,
  2388. msh
  2389. })
  2390. elseif Type == 2 then
  2391. table.insert(Effects, {
  2392. prt,
  2393. "Block2",
  2394. delay,
  2395. x3,
  2396. y3,
  2397. z3,
  2398. msh
  2399. })
  2400. end
  2401. end
  2402.  
  2403. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2404. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2405. prt.Anchored = true
  2406. prt.CFrame = cframe
  2407. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2408. game:GetService("Debris"):AddItem(prt, 10)
  2409. table.insert(Effects, {
  2410. prt,
  2411. "Cylinder",
  2412. delay,
  2413. x3,
  2414. y3,
  2415. z3,
  2416. msh
  2417. })
  2418. end
  2419.  
  2420. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2421. local prt=CreatePart(workspace,"Neon",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2422. prt.Anchored=true
  2423. prt.CFrame=cframe
  2424. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  2425. game:GetService("Debris"):AddItem(prt,2)
  2426. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  2427. for i=0,1,delay do
  2428. swait()
  2429. Part.Transparency=i
  2430. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2431. end
  2432. Part.Parent=nil
  2433. end),prt,msh,(math.random(0,1)+math.random())/5)
  2434. end
  2435.  
  2436. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2437. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2438. prt.Anchored = true
  2439. prt.CFrame = cframe
  2440. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2441. game:GetService("Debris"):AddItem(prt, 10)
  2442. table.insert(Effects, {
  2443. prt,
  2444. "Cylinder",
  2445. delay,
  2446. x3,
  2447. y3,
  2448. z3,
  2449. msh
  2450. })
  2451. end
  2452.  
  2453. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2454. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2455. prt.Anchored = true
  2456. prt.CFrame = cframe
  2457. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2458. game:GetService("Debris"):AddItem(prt, 10)
  2459. table.insert(Effects, {
  2460. prt,
  2461. "Cylinder",
  2462. delay,
  2463. x3,
  2464. y3,
  2465. z3,
  2466. msh
  2467. })
  2468. end
  2469.  
  2470. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2471. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2472. prt.Anchored = true
  2473. prt.CFrame = cframe
  2474. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2475. game:GetService("Debris"):AddItem(prt, 10)
  2476. table.insert(Effects, {
  2477. prt,
  2478. "Cylinder",
  2479. delay,
  2480. x3,
  2481. y3,
  2482. z3,
  2483. msh
  2484. })
  2485. end
  2486.  
  2487.  
  2488. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2489. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2490. prt.Anchored = true
  2491. prt.CFrame = cframe
  2492. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2493. game:GetService("Debris"):AddItem(prt, 10)
  2494. table.insert(Effects, {
  2495. prt,
  2496. "Cylinder",
  2497. delay,
  2498. x3,
  2499. y3,
  2500. z3,
  2501. msh
  2502. })
  2503. end
  2504.  
  2505. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2506. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2507. prt.Anchored = true
  2508. prt.CFrame = cframe
  2509. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2510. game:GetService("Debris"):AddItem(prt, 10)
  2511. table.insert(Effects, {
  2512. prt,
  2513. "Cylinder",
  2514. delay,
  2515. x3,
  2516. y3,
  2517. z3,
  2518. msh
  2519. })
  2520. end
  2521.  
  2522. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  2523. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2524. prt.Anchored = true
  2525. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2526. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2527. local num = math.random(10, 50) / 1000
  2528. game:GetService("Debris"):AddItem(prt, 10)
  2529. table.insert(Effects, {
  2530. prt,
  2531. "Shatter",
  2532. num,
  2533. prt.CFrame,
  2534. math.random() - math.random(),
  2535. 0,
  2536. math.random(50, 100) / 100
  2537. })
  2538. end
  2539.  
  2540. function FindNearestHead(Position, Distance, SinglePlayer)
  2541. if SinglePlayer then
  2542. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  2543. end
  2544. local List = {}
  2545. for i, v in pairs(workspace:GetChildren()) do
  2546. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  2547. table.insert(List, v)
  2548. end
  2549. end
  2550. return List
  2551. end
  2552.  
  2553.  
  2554.  
  2555. function clerp(a,b,t)
  2556. local qa = {QuaternionFromCFrame(a)}
  2557. local qb = {QuaternionFromCFrame(b)}
  2558. local ax, ay, az = a.x, a.y, a.z
  2559. local bx, by, bz = b.x, b.y, b.z
  2560. local _t = 1-t
  2561. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  2562. end
  2563.  
  2564. function QuaternionFromCFrame(cf)
  2565. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2566. local trace = m00 + m11 + m22
  2567. if trace > 0 then
  2568. local s = math.sqrt(1 + trace)
  2569. local recip = 0.5/s
  2570. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  2571. else
  2572. local i = 0
  2573. if m11 > m00 then
  2574. i = 1
  2575. end
  2576. if m22 > (i == 0 and m00 or m11) then
  2577. i = 2
  2578. end
  2579. if i == 0 then
  2580. local s = math.sqrt(m00-m11-m22+1)
  2581. local recip = 0.5/s
  2582. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  2583. elseif i == 1 then
  2584. local s = math.sqrt(m11-m22-m00+1)
  2585. local recip = 0.5/s
  2586. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  2587. elseif i == 2 then
  2588. local s = math.sqrt(m22-m00-m11+1)
  2589. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  2590. end
  2591. end
  2592. end
  2593. local lerp = function(a, b, t)
  2594. return a * (1 - t) + b * t
  2595. end
  2596.  
  2597.  
  2598.  
  2599.  
  2600. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2601. local xs, ys, zs = x + x, y + y, z + z
  2602. local wx, wy, wz = w*xs, w*ys, w*zs
  2603. local xx = x*xs
  2604. local xy = x*ys
  2605. local xz = x*zs
  2606. local yy = y*ys
  2607. local yz = y*zs
  2608. local zz = z*zs
  2609. 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))
  2610. end
  2611. function QuaternionSlerp(a, b, t)
  2612. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2613. local startInterp, finishInterp;
  2614. if cosTheta >= 0.0001 then
  2615. if (1 - cosTheta) > 0.0001 then
  2616. local theta = math.acos(cosTheta)
  2617. local invSinTheta = 1/math.sin(theta)
  2618. startInterp = math.sin((1-t)*theta)*invSinTheta
  2619. finishInterp = math.sin(t*theta)*invSinTheta
  2620. else
  2621. startInterp = 1-t
  2622. finishInterp = t
  2623. end
  2624. else
  2625. if (1+cosTheta) > 0.0001 then
  2626. local theta = math.acos(-cosTheta)
  2627. local invSinTheta = 1/math.sin(theta)
  2628. startInterp = math.sin((t-1)*theta)*invSinTheta
  2629. finishInterp = math.sin(t*theta)*invSinTheta
  2630. else
  2631. startInterp = t-1
  2632. finishInterp = t
  2633. end
  2634. end
  2635. 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
  2636. end
  2637.  
  2638. function weld5(part0, part1, c0, c1)
  2639. weeld=Instance.new("Weld", part0)
  2640. weeld.Part0=part0
  2641. weeld.Part1=part1
  2642. weeld.C0=c0
  2643. weeld.C1=c1
  2644. return weeld
  2645. end
  2646.  
  2647. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2648.  
  2649. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2650. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2651. end
  2652.  
  2653.  
  2654. function Bullets(thinggy,place,size,color,velocity,damage,bounce,collide,rotation)
  2655. swait()
  2656. local Bullet = Instance.new("Part",Workspace)
  2657. Bullet.Locked = true
  2658. Bullet.Name = "Bullet"
  2659. Bullet.Anchored = bounce
  2660. Bullet.CanCollide = collide
  2661. Bullet.Transparency = 0.24
  2662. Bullet.Reflectance = 0
  2663. Bullet.BottomSurface = 0
  2664. Bullet.TopSurface = 0
  2665. Bullet.Shape = 0
  2666. Bullet.BrickColor = BrickColor.new(color)
  2667. Bullet.Size = Vector3.new(size,size,size)
  2668. Bullet.Material = "Neon"
  2669. Bullet.Orientation = vt(-90,0,0)
  2670. local Bulletthing = Instance.new("SpecialMesh",Bullet)
  2671. Bulletthing.MeshType = "Sphere"
  2672. local Bulletforce = Instance.new("BodyForce")
  2673. Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0)
  2674. Bulletforce.Parent = Bullet
  2675. Bullet.CFrame = thinggy.CFrame*CFrame.new(math.random(-place,place),math.random(-place,place),math.random(-place,place))
  2676. local bv = Instance.new("BodyVelocity",Bullet)
  2677. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2678. Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p)
  2679. bv.velocity = Bullet.CFrame.lookVector*velocity
  2680.  
  2681.  
  2682. Bullet.Touched:connect(function(hit)
  2683.  
  2684. if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false) then
  2685. local orbexplode = Instance.new("Sound", Bullet)
  2686. orbexplode.Volume = 4
  2687. orbexplode.PlayOnRemove = true
  2688. orbexplode.SoundId = "http://roblox.com/asset/?id=142070127"
  2689. orbexplode.Pitch = 1
  2690. orbexplode:Destroy()
  2691. deb:AddItem(orbexplode, 4)
  2692. Bullet.Anchored = true
  2693. Bullet.Transparency = 1
  2694. deb:AddItem(Bullet, 4)
  2695. local Explode = Instance.new("Explosion")
  2696. Explode.Position = Bullet.Position
  2697. Explode.Parent = Workspace
  2698. Explode.BlastPressure = 0
  2699. Explode.BlastRadius = Bullet.Size.X *5.6
  2700. Explode.Visible = false
  2701.  
  2702. Explode.Hit:connect(function(hit)
  2703. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil and hit.Parent ~= Character then
  2704. if hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then
  2705. hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100
  2706. hit.Parent:FindFirstChildOfClass("Humanoid").Health = 100
  2707. end
  2708. if attackdebounce == false then
  2709. attackdebounce = true
  2710. hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(damage/2,damage))
  2711. wait(0.02)
  2712. attackdebounce = false
  2713. end
  2714. end
  2715. end)
  2716. coroutine.resume(coroutine.create(function()
  2717.  
  2718. MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 10, 10, 10, 50, 50, 50, 0.065)
  2719. MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 0, 1, 0, 15, 0, 15, 0.025)
  2720. MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025)
  2721. MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025)
  2722. end))
  2723. end
  2724. end)
  2725. coroutine.resume(coroutine.create(function()
  2726. for i = 0,16,0.1 do
  2727. swait()
  2728. end
  2729. if Bullet.Anchored == false then
  2730. Bullet:Destroy()
  2731. end
  2732. end))
  2733.  
  2734. end
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740. local bl = Instance.new("BlurEffect",cam)
  2741. bl.Size = 0
  2742.  
  2743.  
  2744. function Dash()
  2745. evadecooldown = true
  2746. attack = true
  2747. so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1)
  2748.  
  2749. so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1)
  2750.  
  2751.  
  2752.  
  2753.  
  2754.  
  2755.  
  2756.  
  2757.  
  2758.  
  2759.  
  2760. bl.Size = 84
  2761.  
  2762.  
  2763. MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 5, 800, 0, 0, 0, 0.05)
  2764. MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 800, 10, 800, -40, 0, -40, 0.025)
  2765. MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 10, 800, -42, 1000, -42, 0.05)
  2766. MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 1000, 10, 1000, -62, 1200, -62, 0.05)
  2767.  
  2768. RootPart.CFrame = RootPart.CFrame*CFrame.new(0,0,-96)
  2769. RootPart.Velocity = RootPart.CFrame.lookVector *280
  2770.  
  2771. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  2772. if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then
  2773.  
  2774. so("http://www.roblox.com/asset/?id=138186576", v.Torso, 10, 1)
  2775. v:FindFirstChild("Humanoid"):TakeDamage(math.random(18,36))
  2776. SphereEffect(BrickColor.new("Royal purple"), cf(v.Torso.Position) , 1, 1, 1, 6.8, 6.8, 6.8, 0.04)
  2777. MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
  2778. MagicBlock(BrickColor.new("Royal purple"), cf(v.Torso.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
  2779. MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
  2780. MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 150, 2, 150, 0.05)
  2781. MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 100, 4, 100, 0.05)
  2782. MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 50, 6, 50, 0.05)
  2783. MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 100, 100, 100, 0.05)
  2784. MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 200, 200, 200, 0.05)
  2785. MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 300, 300, 300, 0.05)
  2786. MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 400, 400, 400, 0.05)
  2787. MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 4, 350, 4, 0.005)
  2788. MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 600, 2, 600, 4, 300, 4, 0.005)
  2789. MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 400, 2, 400, 4, 250, 4, 0.005)
  2790. end
  2791. end
  2792.  
  2793. for i = 0,1,0.064 do
  2794. swait()
  2795. cam.FieldOfView = lerp(cam.FieldOfView, 110, 0.5)
  2796. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,12),0.24)
  2797. RootPart.Velocity = RootPart.CFrame.lookVector * 175
  2798. bl.Size = bl.Size - 8.5
  2799. SphereEffect(BrickColor.new("Royal purple"),RootPart.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,5.5,10,5.5,0.03)
  2800. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -12) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4)
  2801. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  2802. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.4)
  2803. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.4)
  2804. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8)
  2805. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8)
  2806.  
  2807.  
  2808.  
  2809. end
  2810.  
  2811.  
  2812.  
  2813. attack = false
  2814. attackdebounce = false
  2815. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.1)
  2816. wait(.2)
  2817. bl.Size = 0
  2818. evadecooldown = false
  2819.  
  2820.  
  2821.  
  2822. end
  2823.  
  2824.  
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.  
  2835. local shooting = false
  2836.  
  2837.  
  2838.  
  2839. function shoot()
  2840. attack = true
  2841. shooting = true
  2842.  
  2843.  
  2844. local thing = Instance.new("BodyGyro",RootPart)
  2845. thing.D = 50
  2846. thing.P = 6000
  2847. thing.MaxTorque = vt(100000,math.huge,0)
  2848. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  2849. for i = 0,2,0.16 do
  2850. swait()
  2851. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
  2852. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2)
  2853. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  2854. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  2855. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
  2856. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0) * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
  2857. end
  2858.  
  2859.  
  2860. while shooting == true do
  2861. swait(1)
  2862.  
  2863. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  2864. so("http://roblox.com/asset/?id=200633327",Torso,2,1)
  2865. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  2866. Torso.Velocity = RootPart.CFrame.lookVector * -13
  2867. Bullets(RightArm,0,1.5,"Royal purple",700,25.5,false,false)
  2868. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(40), math.rad(80)),.2)
  2869. coroutine.resume(coroutine.create(function()
  2870. for i = 0, 0.5, 0.1 do
  2871. swait()
  2872. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24)
  2873. end
  2874. end))
  2875. end
  2876.  
  2877. attack = false
  2878. thing:Destroy()
  2879. end
  2880.  
  2881.  
  2882.  
  2883. function dshoot()
  2884. attack = true
  2885. shooting = true
  2886.  
  2887.  
  2888. local thing = Instance.new("BodyGyro",RootPart)
  2889. thing.D = 50
  2890. thing.P = 6000
  2891. thing.MaxTorque = vt(100000,math.huge,0)
  2892. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  2893. so("http://roblox.com/asset/?id=1268159756",Torso,5,1)
  2894. for i = 0,3,0.16 do
  2895. swait()
  2896. MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 1, -0.7, -0.7, 0, 0.07)
  2897. MagicCircle(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 9, -0.7, -0.7, -0.7, 0.07)
  2898. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2899. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2900. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(-20)),.2)
  2901. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(20)),.2)
  2902. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.1)
  2903. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.1)
  2904. end
  2905.  
  2906.  
  2907.  
  2908. while shooting == true do
  2909. swait(0.5)
  2910. coroutine.resume(coroutine.create(function()
  2911. MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 3, 3, 1, 10.2, 10.2, 0, 0.07)
  2912. end))
  2913. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.3)
  2914. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.3)
  2915. so("http://roblox.com/asset/?id=200633327",Torso,2,1)
  2916. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  2917. Torso.Velocity = RootPart.CFrame.lookVector * -63
  2918.  
  2919.  
  2920. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.4)
  2921. Bullets(RightArm,0,2.5,"Royal purple",1200,45.5,false,false)
  2922. coroutine.resume(coroutine.create(function()
  2923. for i = 0, 0.5, 0.1 do
  2924. swait()
  2925. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44)
  2926. end
  2927. end))
  2928.  
  2929. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.2)
  2930. Bullets(LeftArm,0,2.5,"Royal purple",1200,45.5,false,false)
  2931. coroutine.resume(coroutine.create(function()
  2932. for i = 0, 0.5, 0.1 do
  2933. swait()
  2934. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24)
  2935. end
  2936. end))
  2937.  
  2938. end
  2939.  
  2940. attack = false
  2941. thing:Destroy()
  2942. end
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948. function finaldev()
  2949. attack = true
  2950. so("http://roblox.com/asset/?id=815032096",Head,6,0.84)
  2951. so("http://roblox.com/asset/?id=200633529",Workspace,3,0.84)
  2952.  
  2953. for i = 0,14,0.1 do
  2954. swait()
  2955. WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09)
  2956. WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05)
  2957. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8)),0.16)
  2958. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.15)
  2959. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(14),math.rad(0),math.rad(0)),.15)
  2960. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(87)),.15)
  2961. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(0), math.rad(0), math.rad(-87)),.15)
  2962. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, 0, -0.5) * CFrame.Angles(math.rad(16), math.rad(0), math.rad(0)), 0.15)
  2963. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.14, 0.2) * CFrame.Angles(math.rad(-17), math.rad(0), math.rad(0)), 0.15)
  2964.  
  2965. end
  2966. so("http://roblox.com/asset/?id=197161452",Torso,7,1)
  2967. for i = 0,6,0.1 do
  2968. swait()
  2969. WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09)
  2970. WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05)
  2971. Head.Velocity = Vector3.new(0,320,0)
  2972. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6)
  2973. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  2974. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  2975. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  2976. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  2977. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  2978. end
  2979.  
  2980.  
  2981. local bel = part(3, Character, 0, 1, BrickColor.new("Royal purple"), "Ball", vt(0.126,0.126,0.126))
  2982. local belmsh = mesh("SpecialMesh", bel, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10))
  2983.  
  2984.  
  2985.  
  2986. local Charge = Instance.new("Sound", bel)
  2987. Charge.Volume = 10
  2988. Charge.SoundId = "http://roblox.com/asset/?id=244578827"
  2989. Charge.Pitch = 0.8
  2990. Charge.PlayOnRemove = true
  2991. Charge:Play()
  2992. Charge:Destroy()
  2993. bel.Anchored = true
  2994. for i = 0,47,0.1 do
  2995. swait()
  2996. bel.CFrame = RootPart.CFrame * cf(0, 90*i/3.5, 0)
  2997. bel.Transparency = bel.Transparency - 0.0034
  2998. belmsh.Scale = belmsh.Scale + Vector3.new(24,24,24)
  2999. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0+1*i,0+1*i),0.15)
  3000. cam.FieldOfView = lerp(cam.FieldOfView, 40+1*i, 0.15)
  3001. Head.Velocity = Vector3.new(0,2.4+0.8*i,0)
  3002. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2)
  3003. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-13),math.rad(0),math.rad(0)),.2)
  3004. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2)
  3005. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2)
  3006. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1)
  3007. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1)
  3008. end
  3009. so("http://roblox.com/asset/?id=160212892",Head,10,0.84)
  3010. for i = 0,4,0.1 do
  3011. swait()
  3012. Head.Velocity = Vector3.new(0,2.4,0)
  3013. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  3014. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2)
  3015. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.2)
  3016. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2)
  3017. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2)
  3018. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1)
  3019. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1)
  3020. end
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026. bel.Anchored = false
  3027. local bv = Instance.new("BodyVelocity",bel)
  3028. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3029. bel.CFrame = CFrame.new(bel.Position,mouse.Hit.p)
  3030. bv.velocity = bel.CFrame.lookVector*350
  3031.  
  3032.  
  3033.  
  3034. --[[
  3035. bel.Touched:connect(function(hit)
  3036.  
  3037. if hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false then
  3038. local orbexplode = Instance.new("Sound", bel)
  3039. orbexplode.Volume = 10
  3040. orbexplode.PlayOnRemove = true
  3041. orbexplode.SoundId = "http://roblox.com/asset/?id=142070127"
  3042. orbexplode.Pitch = 1
  3043. orbexplode:Destroy()
  3044. deb:AddItem(orbexplode, 4)
  3045. bel.Anchored = true
  3046. bel.Transparency = 1
  3047. deb:AddItem(bel, 4)
  3048. local Explode = Instance.new("Explosion")
  3049. Explode.Position = bel.Position
  3050. Explode.Parent = Workspace
  3051. Explode.BlastPressure = 90
  3052. Explode.BlastRadius = Bullet.Size.X *25.6
  3053. Explode.Visible = false
  3054.  
  3055. coroutine.resume(coroutine.create(function()
  3056.  
  3057.  
  3058.  
  3059. MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
  3060. MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
  3061. MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
  3062. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 1150, 2, 1150, 0.05)
  3063. MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 2, 1800, 1100, 4, 1100, 0.05)
  3064. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 150, 16, 150, 0.05)
  3065. MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05)
  3066. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05)
  3067. MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05)
  3068. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05)
  3069. MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 2, 1800, 4, 1350, 4, 0.005)
  3070. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 2, 1600, 4, 1300, 4, 0.005)
  3071. MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 2, 1400, 4, 1250, 4, 0.005)
  3072.  
  3073.  
  3074. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065)
  3075. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025)
  3076. MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025)
  3077. MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025)
  3078. end))
  3079. end
  3080. end)
  3081.  
  3082. ]]
  3083.  
  3084. con5=bel.Touched:connect(function(hit)
  3085.  
  3086. local orbexplode = Instance.new("Sound", bel)
  3087. orbexplode.Volume = 10
  3088. orbexplode.PlayOnRemove = true
  3089. orbexplode.SoundId = "http://roblox.com/asset/?id=167115397"
  3090. orbexplode.Pitch = 1
  3091. orbexplode:Destroy()
  3092. deb:AddItem(orbexplode, 4)
  3093. bel.Anchored = true
  3094. bel.Transparency = 1
  3095. deb:AddItem(bel, 5.2)
  3096.  
  3097.  
  3098.  
  3099.  
  3100. coroutine.resume(coroutine.create(function()
  3101. so("http://www.roblox.com/asset/?id=167115397", Workspace, 6, 1)
  3102. so("http://www.roblox.com/asset/?id=138186576", Workspace, 6, 1)
  3103. for i = 0, 0.4, 0.1 do
  3104. swait()
  3105.  
  3106.  
  3107. for i, v in pairs(FindNearestHead(bel.CFrame.p, 252.5)) do
  3108. if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then
  3109. if v:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then
  3110. v:FindFirstChildOfClass("Humanoid").MaxHealth = 100
  3111. v:FindFirstChildOfClass("Humanoid").Health = 100
  3112. end
  3113. v.Humanoid:TakeDamage(math.random(43,86))
  3114. coroutine.resume(coroutine.create(function()
  3115. for i = 0,2,0.1 do
  3116. swait()
  3117. v.Head.Velocity = -v.Head.CFrame.lookVector*660 + Vector3.new(0,684,0)
  3118. end
  3119. end))
  3120. end
  3121. end
  3122.  
  3123. coroutine.resume(coroutine.create(function()
  3124. for i = 0, 2.4, 0.1 do
  3125. swait()
  3126. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44)
  3127. end
  3128. end))
  3129.  
  3130. MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
  3131. MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
  3132. MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
  3133. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800,222, 1800, 1150, 222, 1150, 0.05)
  3134. MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 222, 1800, 1100, 224, 1100, 0.05)
  3135. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 222, 1800, 150, 216, 150, 0.05)
  3136. MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05)
  3137. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05)
  3138. MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05)
  3139. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05)
  3140. MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 222, 1800, 224, 1350, 224, 0.005)
  3141. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 222, 1600, 224, 1300, 224, 0.005)
  3142. MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 222, 1400, 224, 1250, 224, 0.005)
  3143.  
  3144. WaveEffect(BrickColor.new("White"), cf(bel.Position)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 24, 5.4, 24, 0.09)
  3145. WaveEffect(BrickColor.new("Royal purple"), cf(bel.Position)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 22, 4.8, 22, 0.05)
  3146.  
  3147. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065)
  3148. MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025)
  3149. MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
  3150. MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
  3151. MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 8, 8, 0, 0.015)
  3152. MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
  3153. end
  3154. end))
  3155.  
  3156.  
  3157. end)
  3158.  
  3159.  
  3160.  
  3161.  
  3162. for i = 0,32,0.1 do
  3163. swait()
  3164. Head.Velocity = Vector3.new(0,2.4,0)
  3165. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.2)
  3166. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(43),math.rad(0),math.rad(0)),.2)
  3167. RW.C0 = clerp(RW.C0, CFrame.new(1.0, 0.5, -0.4) * angles(math.rad(80), math.rad(12), math.rad(-30)),.2)
  3168. LW.C0 = clerp(LW.C0, CFrame.new(-1., 0.5, -0.4) * angles(math.rad(80), math.rad(-12), math.rad(30)),.2)
  3169. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(75), math.rad(34), math.rad(-35)), 0.2)
  3170. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(75), math.rad(-34), math.rad(35)), 0.2)
  3171. end
  3172.  
  3173. coroutine.resume(coroutine.create(function()
  3174. for i = 0, 63, 0.1 do
  3175. swait()
  3176. end
  3177. if bel.Anchored == false then
  3178. bel:Destroy()
  3179. end
  3180. end))
  3181.  
  3182.  
  3183.  
  3184.  
  3185. attack = false
  3186. end
  3187.  
  3188.  
  3189.  
  3190. mouse.Button1Down:connect(function(key)
  3191. if attack == false then
  3192. shoot()
  3193. end
  3194. end)
  3195.  
  3196.  
  3197.  
  3198.  
  3199. mouse.Button1Up:connect(function(key)
  3200. if shooting == true then
  3201. shooting = false
  3202. end
  3203. end)
  3204.  
  3205.  
  3206.  
  3207.  
  3208. mouse.KeyDown:connect(function(key)
  3209. if key == 'e' and attack == false then
  3210. dshoot()
  3211. end
  3212. end)
  3213.  
  3214.  
  3215.  
  3216.  
  3217. mouse.KeyDown:connect(function(key)
  3218. if key == 'q' and attack == false then
  3219. finaldev()
  3220. end
  3221. end)
  3222.  
  3223. mouse.KeyUp:connect(function(key)
  3224. if key == 'e' and shooting == true then
  3225. shooting = false
  3226. end
  3227. end)
  3228.  
  3229.  
  3230.  
  3231. mouse.KeyDown:connect(function(key)
  3232. if key == 'f' and attack == false and evadecooldown == false then
  3233. Dash()
  3234. end
  3235. end)
  3236.  
  3237.  
  3238. local orb = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt())
  3239. local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
  3240.  
  3241. local orb2 = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt())
  3242. local msh = mesh("SpecialMesh", orb2, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
  3243. orb.Anchored = true
  3244. orb2.Anchored = true
  3245. Humanoid.WalkSpeed = 32
  3246.  
  3247.  
  3248. local f = 0
  3249. game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
  3250.  
  3251.  
  3252. f = f+1
  3253. cam.FieldOfView = lerp(cam.FieldOfView, 70, 0.076)
  3254. if f >= 6 then
  3255. f=0
  3256. SphereEffect(BrickColor.new("Royal purple"),cf(orb.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03)
  3257. SphereEffect(BrickColor.new("Royal purple"),cf(orb2.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03)
  3258. MagicRing(BrickColor.new("Royal purple"), cf(orb.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07)
  3259. MagicCircle(BrickColor.new("Royal purple"), cf(orb.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05)
  3260. MagicRing(BrickColor.new("Royal purple"), cf(orb2.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07)
  3261. MagicCircle(BrickColor.new("Royal purple"), cf(orb2.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05)
  3262. MagicBlock(BrickColor.new("Royal purple"), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2)
  3263. MagicBlock(BrickColor.new("Royal purple"), cf(orb2.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2)
  3264.  
  3265. end
  3266. end)
  3267.  
  3268. Humanoid.MaxHealth = 400
  3269.  
  3270. print("Move list")
  3271. print("---------")
  3272. print("F: Time Dash")
  3273. print("Hold Click: Lesser Bullets")
  3274. print("Hold E: Mega Bullets")
  3275. print("Q: Final Devastator")
  3276.  
  3277.  
  3278.  
  3279.  
  3280. while true do
  3281. swait()
  3282. sine = sine + change
  3283. --speed = speed + music.PlaybackLoudness/90
  3284. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3285. local velderp=RootPart.Velocity.y
  3286. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3287. local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity))
  3288. if attack==true or attack==false then
  3289. if attack==false then
  3290. idle=idle+1
  3291. else
  3292. idle=0
  3293. end
  3294. if idle>=500 then
  3295. if attack==false then
  3296. end
  3297. end
  3298.  
  3299. Humanoid.Health = Humanoid.Health + 4
  3300.  
  3301. orb.CFrame = RightArm.CFrame * cf(0, -1, 0)
  3302. orb2.CFrame = LeftArm.CFrame * cf(0, -1, 0)
  3303. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3304. Anim="Jump"
  3305.  
  3306.  
  3307.  
  3308.  
  3309.  
  3310. if attack==false then
  3311. change = 1
  3312. look = 0
  3313. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  3314. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(4), math.rad(0), math.rad(0)), 0.07)
  3315. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),0.07)
  3316. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.07)
  3317. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.07)
  3318. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.6) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
  3319. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
  3320. end
  3321.  
  3322. elseif RootPart.Velocity.y -1 and hitfloor==nil then
  3323. Anim="Fall"
  3324. change = 1
  3325.  
  3326.  
  3327.  
  3328. if attack==false then
  3329. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  3330. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(7+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
  3331. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07)
  3332. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07)
  3333. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
  3334. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(18+7*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1)
  3335. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.37+0.17*math.cos(sine/1.3), -0.2) * CFrame.Angles(math.rad(32+7*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1)
  3336. end
  3337.  
  3338. elseif torvel1 and hitfloor~=nil then
  3339. Anim="Idle"
  3340. change = 1
  3341. if attack==false and equip == false then
  3342. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  3343.  
  3344.  
  3345.  
  3346. orb.CFrame = orb.CFrame:lerp(RightArm.CFrame*cf(0+2*math.cos(sine/40), -5+2*math.sin(sine/40), 0),0.1)
  3347. orb2.CFrame = orb2.CFrame:lerp(LeftArm.CFrame*cf(0-2*math.cos(sine/40), -5+2*math.sin(sine/40), 0),0.1)
  3348.  
  3349. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.04*math.cos(sine/40), -0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.25)
  3350. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10+2.6*math.sin(sine/40)),math.rad(0),math.rad(60)),0.25)
  3351. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.55+0.04*math.sin(sine/40), 0.2) * angles(math.rad(-32+1.3*math.cos(sine/40)), math.rad(0+4*math.sin(sine/40)), math.rad(-22.3+2.2*math.cos(sine/40))),0.25)
  3352. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.55+0.04*math.sin(sine/40), -0.3-0.04*math.cos(sine/40)) * angles(math.rad(28+1.3*math.cos(sine/40)), math.rad(0-4*math.sin(sine/40)), math.rad(26.3-2.2*math.cos(sine/40))),0.25)
  3353. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(8), math.rad(-7)),0.25)
  3354. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.57, -1+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(-2), math.rad(3)),0.25)
  3355. end
  3356.  
  3357.  
  3358.  
  3359. elseif torvel>1.5 and torvel22 and hitfloor~=nil then
  3360. Anim="Walk"
  3361. change = 0.84
  3362. look = 0
  3363. if attack==false and equip == false then
  3364. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  3365. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.14*math.cos(sine/5), -0.3) * angles(math.rad(-2)*-math.rad(TiltVelocity.z)*9.5, math.rad(0+2*math.cos(sine/10)), math.rad(8)*-math.rad(TiltVelocity.x)*7.5+ RootPart.RotVelocity.Y / 46), 0.08)
  3366. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(4-3*math.sin(sine/5)),math.rad(0),math.rad(2) + RootPart.RotVelocity.Y / 13), 0.08)
  3367. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0+0.34*math.sin(sine/10)) * angles(math.rad(0-26*math.sin(sine/10))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(6+8*math.cos(sine/5))- RootPart.RotVelocity.Y / 34), 0.08)
  3368. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0-0.34*math.sin(sine/10)) * angles(math.rad(0+26*math.sin(sine/10))+ RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-6-8*math.cos(sine/5))+ RootPart.RotVelocity.Y / -34), 0.08)
  3369. --LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.21*math.cos(sine/10), -0.03+0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8-25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*12.5), math.rad(0)- RootPart.RotVelocity.Y / -24, math.rad(0-25*math.sin(sine/10)*math.rad(TiltVelocity.x)*11.5+ RootPart.RotVelocity.Y / -34)), 0.08)
  3370. --RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.21*math.cos(sine/10),-0.03-0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8+25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*12.5), math.rad(0)+ RootPart.RotVelocity.Y / 24, math.rad(0-25*math.sin(sine/10)*-math.rad(TiltVelocity.x)*11.5- RootPart.RotVelocity.Y / 34)), 0.08)
  3371. end
  3372. if attack == false or attack==true and noleg == false then
  3373. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.21*math.cos(sine/10), -0.03+0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8-25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*9.5), math.rad(0)- RootPart.RotVelocity.Y / -24, math.rad(0-25*math.sin(sine/10)*math.rad(TiltVelocity.x)*6.5- RootPart.RotVelocity.Y / 34)), 0.08)
  3374. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.21*math.cos(sine/10),-0.03-0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8+25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*9.5), math.rad(0)+ RootPart.RotVelocity.Y / 24, math.rad(0-25*math.sin(sine/10)*-math.rad(TiltVelocity.x)*6.5- RootPart.RotVelocity.Y / 34)), 0.08)
  3375. end
  3376.  
  3377. elseif torvel>=22 and hitfloor~=nil then
  3378. Anim="Run"
  3379. change = 0.84+ Character.Humanoid.WalkSpeed/112
  3380. if attack==false and equip == false then
  3381. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  3382. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.5*math.cos(sine/2.5), -.8) * angles(math.rad(-23+4*math.cos(sine/5)), math.rad(0+4*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  3383. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+20*math.sin(sine/2.5)),math.rad(0),math.rad(0+5*math.sin(sine/5)) + RootPart.RotVelocity.Y / 13),.1)
  3384. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0-0.34*math.cos(sine/5)) * angles(math.rad(10+57*math.cos(sine/5))+ RootPart.RotVelocity.Y / -34, math.rad(0+43*math.cos(sine/5)), math.rad(5)- RootPart.RotVelocity.Y / 34),.25)
  3385. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0+0.34*math.cos(sine/5))*angles(math.rad(10-57*math.cos(sine/5))+ RootPart.RotVelocity.Y / 34,math.rad(0+43*math.cos(sine/5)),math.rad(-5)+ RootPart.RotVelocity.Y / -34),.25)
  3386.  
  3387.  
  3388. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.56*math.cos(sine/5), 0-0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0+73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3)
  3389. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.56*math.cos(sine/5),0+0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0-73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3)
  3390. end
  3391.  
  3392. --[[
  3393. if attack==false then
  3394. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/5.5)/2, 0 *math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
  3395. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/5.5)/2,0 *-math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
  3396. end
  3397. ]]
  3398. if attack==true and noleg == false then
  3399. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0.+0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0-74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
  3400. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5),0.-0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0+74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
  3401. end
  3402.  
  3403.  
  3404. end
  3405. end
  3406.  
  3407.  
  3408.  
  3409. if 0 #Effects then
  3410. for e = 1, #Effects do
  3411. if Effects[e] ~= nil then
  3412. local Thing = Effects[e]
  3413. if Thing ~= nil then
  3414. local Part = Thing[1]
  3415. local Mode = Thing[2]
  3416. local Delay = Thing[3]
  3417. local IncX = Thing[4]
  3418. local IncY = Thing[5]
  3419. local IncZ = Thing[6]
  3420. if Thing[2] == "CylinderClang" then
  3421. if Thing[3] = 1 then
  3422. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3423. Thing[7] = Thing[1].CFrame
  3424. effect("New Yeller", 0, Thing[8], Thing[7])
  3425. Thing[8] = Thing[7]
  3426. Thing[3] = Thing[3] + Thing[4]
  3427. else
  3428. Part.Parent = nil
  3429. table.remove(Effects, e)
  3430. end
  3431. end
  3432. if Thing[2] == "showDamage" then
  3433. if Thing[6] Thing[5] then
  3434. Thing[6] = Thing[6] + 1
  3435. else
  3436. if Thing[6] Thing[7] then
  3437. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  3438. Thing[6] = Thing[6] + 1
  3439. else
  3440. if Thing[6] Thing[8] then
  3441. Thing[6] = Thing[6] + 1
  3442. else
  3443. if Thing[6] Thing[9] then
  3444. Thing[6] = Thing[6] + 1
  3445. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  3446. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  3447. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  3448. else
  3449. Thing[1].Parent = nil
  3450. table.remove(Effects, e)
  3451. end
  3452. end
  3453. end
  3454. end
  3455. end
  3456. if Thing[2] == "PartiEmi" then
  3457. Thing[3] = Thing[3] - 1
  3458. if Thing[3] = 0 then
  3459. Thing[1].Enabled = false
  3460. table.remove(Effects, e)
  3461. end
  3462. end
  3463. if Thing[2] == "AdjuEff" then
  3464. if 0 Thing[3] then
  3465. Thing[3] = Thing[3] - 1
  3466. Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0)
  3467. Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0)
  3468. Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1
  3469. else
  3470. Thing[1].Parent = nil
  3471. table.remove(Effects, e)
  3472. end
  3473. end
  3474. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then
  3475. if Thing[1].Transparency = 1 then
  3476. if Thing[2] == "Block1" then
  3477. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3478. Mesh = Thing[7]
  3479. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3480. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3481. else
  3482. if Thing[2] == "Block2" then
  3483. Thing[1].CFrame = Thing[1].CFrame
  3484. Mesh = Thing[7]
  3485. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3486. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3487. else
  3488. if Thing[2] == "Block3" then
  3489. Thing[9] = Thing[9] + 0.5
  3490. Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0)
  3491. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3492. Mesh = Thing[7]
  3493. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3494. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3495. else
  3496. if Thing[2] == "Skull" then
  3497. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8])
  3498. Mesh = Thing[7]
  3499. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3500. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3501. else
  3502. if Thing[2] == "Cylinder" then
  3503. Mesh = Thing[7]
  3504. Mesh.Scale = Mesh.Scale + vt(Thing[4]-Thing[1].Transparency, Thing[5]-Thing[1].Transparency, Thing[6]-Thing[1].Transparency)
  3505. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3506. else
  3507. if Thing[2] == "Cylinder2" then
  3508. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  3509. Mesh = Thing[7]
  3510. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3511. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3512. else
  3513. if Thing[2] == "Blood" then
  3514. Mesh = Thing[7]
  3515. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  3516. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3517. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3518. else
  3519. if Thing[2] == "Elec" then
  3520. Mesh = Thing[10]
  3521. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  3522. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3523. else
  3524. if Thing[2] == "Disappear" then
  3525. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3526. end
  3527. end
  3528. end
  3529. end
  3530. end
  3531. end
  3532. end
  3533. end
  3534. end
  3535. else
  3536. Part.Parent = nil
  3537. table.remove(Effects, e)
  3538. end
  3539. end
  3540. end
  3541. end
  3542. end
  3543. end
  3544. end
  3545.  
  3546. -- I.R.O.N
  3547.  
  3548. plr = game.Players.LocalPlayer
  3549. char = plr.Character
  3550. hum = char.Humanoid
  3551. local cam = game.Workspace.CurrentCamera
  3552. t = char.Torso
  3553. h = char.Head
  3554. ra = char["Right Arm"]
  3555. la = char["Left Arm"]
  3556. rl = char["Right Leg"]
  3557. ll = char["Left Leg"]
  3558. tors = char.Torso
  3559. lleg = char["Left Leg"]
  3560. root = char.HumanoidRootPart
  3561. hed = char.Head
  3562. rleg = char["Right Leg"]
  3563. rarm = char["Right Arm"]
  3564. larm = char["Left Arm"]
  3565. vt = Vector3.new
  3566. bc = BrickColor.new
  3567. br = BrickColor.random
  3568. it = Instance.new
  3569. cf = CFrame.new
  3570.  
  3571.  
  3572. function CameraShake(Times, Power)
  3573. coroutine.resume(coroutine.create(function()
  3574. FV = Instance.new("BoolValue", Character)
  3575. FV.Name = "CameraShake"
  3576. for ShakeNum=1,Times do
  3577. swait()
  3578. local ef=Power
  3579. if ef>=1 then
  3580. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  3581. else
  3582. ef=Power*10
  3583. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  3584. end
  3585. end
  3586. Humanoid.CameraOffset = Vector3.new(0,0,0)
  3587. FV:Destroy()
  3588. end))
  3589. end
  3590.  
  3591. CamShake=function(Part,Distan,Power,Times)
  3592. local de=Part.Position
  3593. for i,v in pairs(workspace:children()) do
  3594. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  3595. for _,c in pairs(v:children()) do
  3596. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  3597. local Noob=v.Humanoid
  3598. if Noob~=nil then
  3599. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  3600. --[[local ss=script.CamShake:clone()
  3601. ss.Parent=Noob
  3602. ss.Power.Value=Power
  3603. ss.Times.Value=Times
  3604. ss.Disabled=false]]
  3605. CameraShake(Times, Power)
  3606. end
  3607. end
  3608. end
  3609. end
  3610. end
  3611. end
  3612. end
  3613.  
  3614. function chatfunc(text,color)
  3615. local chat = coroutine.wrap(function()
  3616. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  3617. Character:FindFirstChild("TalkingBillBoard"):destroy()
  3618. end
  3619. local naeeym2 = Instance.new("BillboardGui",Character)
  3620. naeeym2.Size = UDim2.new(0,100,0,40)
  3621. naeeym2.StudsOffset = Vector3.new(0,3,0)
  3622. naeeym2.Adornee = Character.Head
  3623. naeeym2.Name = "TalkingBillBoard"
  3624. local tecks2 = Instance.new("TextLabel",naeeym2)
  3625. tecks2.BackgroundTransparency = 1
  3626. tecks2.BorderSizePixel = 0
  3627. tecks2.Text = ""
  3628. tecks2.Font = "SciFi"
  3629. tecks2.TextSize = 30
  3630. tecks2.TextStrokeTransparency = 0
  3631. tecks2.TextColor3 = color
  3632. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  3633. tecks2.Size = UDim2.new(1,0,0.5,0)
  3634. local tecks3 = Instance.new("TextLabel",naeeym2)
  3635. tecks3.BackgroundTransparency = 1
  3636. tecks3.BorderSizePixel = 0
  3637. tecks3.Text = ""
  3638. tecks3.Font = "SciFi"
  3639. tecks3.TextSize = 30
  3640. tecks3.TextStrokeTransparency = 0
  3641. tecks3.TextColor3 = Color3.new(0,0,0)
  3642. tecks3.TextStrokeColor3 = color
  3643. tecks3.Size = UDim2.new(1,0,0.5,0)
  3644. for i = 1,string.len(text),1 do
  3645. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  3646. tecks2.Text = string.sub(text,1,i)
  3647. tecks3.Text = string.sub(text,1,i)
  3648. wait(0.01)
  3649. end
  3650. wait(1)
  3651. local randomrot = math.random(1,2)
  3652. if randomrot == 1 then
  3653. for i = 1, 50 do
  3654. swait()
  3655. tecks2.Rotation = tecks2.Rotation - .75
  3656. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3657. tecks2.TextTransparency = tecks2.TextTransparency + .04
  3658. tecks3.Rotation = tecks2.Rotation + .75
  3659. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3660. tecks3.TextTransparency = tecks2.TextTransparency + .04
  3661. end
  3662. elseif randomrot == 2 then
  3663. for i = 1, 50 do
  3664. swait()
  3665. tecks2.Rotation = tecks2.Rotation + .75
  3666. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3667. tecks2.TextTransparency = tecks2.TextTransparency + .04
  3668. tecks3.Rotation = tecks2.Rotation - .75
  3669. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  3670. tecks3.TextTransparency = tecks2.TextTransparency + .04
  3671. end
  3672. end
  3673. naeeym2:Destroy()
  3674. end)
  3675. chat()
  3676. end
  3677.  
  3678.  
  3679. local Create = LoadLibrary("RbxUtility").Create
  3680.  
  3681. CFuncs = {
  3682. ["Part"] = {
  3683. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  3684. local Part = Create("Part"){
  3685. Parent = Parent,
  3686. Reflectance = Reflectance,
  3687. Transparency = Transparency,
  3688. CanCollide = false,
  3689. Locked = true,
  3690. BrickColor = BrickColor.new(tostring(BColor)),
  3691. Name = Name,
  3692. Size = Size,
  3693. Material = Material,
  3694. }
  3695. RemoveOutlines(Part)
  3696. return Part
  3697. end;
  3698. };
  3699.  
  3700. ["Mesh"] = {
  3701. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3702. local Msh = Create(Mesh){
  3703. Parent = Part,
  3704. Offset = OffSet,
  3705. Scale = Scale,
  3706. }
  3707. if Mesh == "SpecialMesh" then
  3708. Msh.MeshType = MeshType
  3709. Msh.MeshId = MeshId
  3710. end
  3711. return Msh
  3712. end;
  3713. };
  3714.  
  3715. ["Mesh"] = {
  3716. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3717. local Msh = Create(Mesh){
  3718. Parent = Part,
  3719. Offset = OffSet,
  3720. Scale = Scale,
  3721. }
  3722. if Mesh == "SpecialMesh" then
  3723. Msh.MeshType = MeshType
  3724. Msh.MeshId = MeshId
  3725. end
  3726. return Msh
  3727. end;
  3728. };
  3729.  
  3730. ["Weld"] = {
  3731. Create = function(Parent, Part0, Part1, C0, C1)
  3732. local Weld = Create("Weld"){
  3733. Parent = Parent,
  3734. Part0 = Part0,
  3735. Part1 = Part1,
  3736. C0 = C0,
  3737. C1 = C1,
  3738. }
  3739. return Weld
  3740. end;
  3741. };
  3742.  
  3743. ["Sound"] = {
  3744. Create = function(id, par, vol, pit)
  3745. coroutine.resume(coroutine.create(function()
  3746. local S = Create("Sound"){
  3747. Volume = vol,
  3748. Pitch = pit or 1,
  3749. SoundId = id,
  3750. Parent = par or workspace,
  3751. }
  3752. wait()
  3753. S:play()
  3754. game:GetService("Debris"):AddItem(S, 10)
  3755. end))
  3756. end;
  3757. };
  3758.  
  3759. ["LongSound"] = {
  3760. Create = function(id, par, vol, pit)
  3761. coroutine.resume(coroutine.create(function()
  3762. local S = Create("Sound"){
  3763. Volume = vol,
  3764. Pitch = pit or 1,
  3765. SoundId = id,
  3766. Parent = par or workspace,
  3767. }
  3768. wait()
  3769. S:play()
  3770. game:GetService("Debris"):AddItem(S, 30)
  3771. end))
  3772. end;
  3773. };
  3774.  
  3775. ["ParticleEmitter"] = {
  3776. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  3777. local fp = Create("ParticleEmitter"){
  3778. Parent = Parent,
  3779. Color = ColorSequence.new(Color1, Color2),
  3780. LightEmission = LightEmission,
  3781. Size = Size,
  3782. Texture = Texture,
  3783. Transparency = Transparency,
  3784. ZOffset = ZOffset,
  3785. Acceleration = Accel,
  3786. Drag = Drag,
  3787. LockedToPart = LockedToPart,
  3788. VelocityInheritance = VelocityInheritance,
  3789. EmissionDirection = EmissionDirection,
  3790. Enabled = Enabled,
  3791. Lifetime = LifeTime,
  3792. Rate = Rate,
  3793. Rotation = Rotation,
  3794. RotSpeed = RotSpeed,
  3795. Speed = Speed,
  3796. VelocitySpread = VelocitySpread,
  3797. }
  3798. return fp
  3799. end;
  3800. };
  3801.  
  3802. CreateTemplate = {
  3803.  
  3804. };
  3805. }
  3806.  
  3807.  
  3808.  
  3809. New = function(Object, Parent, Name, Data)
  3810. local Object = Instance.new(Object)
  3811. for Index, Value in pairs(Data or {}) do
  3812. Object[Index] = Value
  3813. end
  3814. Object.Parent = Parent
  3815. Object.Name = Name
  3816. return Object
  3817. end
  3818.  
  3819. local glowcolor = BrickColor.new("Toothpaste")
  3820. local glowcolor2 = BrickColor.new("Institutional white")
  3821. local patchcolor = BrickColor.new("Really black")
  3822. local patchcolor2 = BrickColor.new("Really black")
  3823. local wepcolor = BrickColor.new("Smoky grey")
  3824. local m = Instance.new("Model",char)
  3825.  
  3826. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  3827. local p = Instance.new("Part")
  3828. p.TopSurface = 0
  3829. p.BottomSurface = 0
  3830. p.Parent = parent
  3831. p.Size = Vector3.new(0.05,0.05,0.05)
  3832. p.Transparency = transparency
  3833. p.Reflectance = reflectance
  3834. p.CanCollide = false
  3835. p.Locked = true
  3836. p.BrickColor = brickcolor
  3837. p.Material = material
  3838. return p
  3839. end
  3840.  
  3841. function CreateMesh(parent,meshtype,x1,y1,z1)
  3842. local mesh = Instance.new("SpecialMesh",parent)
  3843. mesh.MeshType = meshtype
  3844. mesh.Scale = Vector3.new(x1*20,y1*20,z1*20)
  3845. return mesh
  3846. end
  3847.  
  3848. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  3849. local mesh = Instance.new("SpecialMesh",parent)
  3850. mesh.MeshType = "FileMesh"
  3851. mesh.MeshId = meshid
  3852. mesh.Scale = Vector3.new(x1,y1,z1)
  3853. return mesh
  3854. end
  3855.  
  3856.  
  3857. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  3858. local mesh = Instance.new("SpecialMesh",parent)
  3859. mesh.MeshType = "FileMesh"
  3860. mesh.MeshId = meshid
  3861. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  3862. mesh.Scale = Vector3.new(x1,y1,z1)
  3863. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  3864. return mesh
  3865. end
  3866.  
  3867. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  3868. local weld = Instance.new("Weld")
  3869. weld.Parent = parent
  3870. weld.Part0 = part0
  3871. weld.Part1 = part1
  3872. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  3873. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  3874. return weld
  3875. end
  3876.  
  3877.  
  3878. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3879. CreateWeld(sorb,rarm,sorb,0,1.15,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3880.  
  3881. local wepcenter = CreateParta(m,1,0,"SmoothPlastic",wepcolor)
  3882. local wepweld = CreateWeld(wepcenter,tors,wepcenter,1,0,-4,math.rad(20),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3883.  
  3884.  
  3885. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  3886. CreateMesh(ga,"Brick",0.175,0.175,2.25)
  3887. CreateWeld(ga,wepcenter,ga,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3888. ga = CreateParta(m,0,0,"Neon",glowcolor)
  3889. CreateMesh(ga,"Brick",0.195,0.195,1.45)
  3890. CreateWeld(ga,wepcenter,ga,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3891. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  3892. CreateMesh(ga,"Brick",0.215,0.215,1.375)
  3893. CreateWeld(ga,wepcenter,ga,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3894. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  3895. CreateMesh(ga,"Brick",0.125,0.125,1.25)
  3896. CreateWeld(ga,wepcenter,ga,0,-0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3897.  
  3898. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  3899. CreateMesh(ga,"Brick",0.125,0.125,0.65)
  3900. CreateWeld(ga,wepcenter,ga,0,-0.765,0.35,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3901.  
  3902. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  3903. CreateMesh(ga,"Brick",0.125,0.125,0.65)
  3904. CreateWeld(ga,wepcenter,ga,0,-0.765,-0.35,math.rad(-45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3905.  
  3906. ga = CreateParta(m,0,0,"Neon",glowcolor)
  3907. CreateMesh(ga,"Brick",0.245,0.245,1.45)
  3908. CreateWeld(ga,wepcenter,ga,0,0,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3909. ga = CreateParta(m,0,0,"Neon",glowcolor)
  3910. CreateMesh(ga,"Brick",0.265,0.265,0.45)
  3911. CreateWeld(ga,wepcenter,ga,0,0,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3912. ga = CreateParta(m,0,0,"SmoothPlastic",patchcolor)
  3913. CreateMesh(ga,"Brick",0.285,0.285,0.35)
  3914. CreateWeld(ga,wepcenter,ga,0,0,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3915. ga = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  3916. CreateMesh(ga,"Brick",0.2525,0.2525,1.375)
  3917. CreateWeld(ga,wepcenter,ga,0,0,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3918. cryst = CreateParta(m,0,0,"SmoothPlastic",patchcolor2)
  3919. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",0.55,0.55,1.5)
  3920. CreateWeld(cryst,wepcenter,cryst,0,0,-1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3921. cryst = CreateParta(m,0,0,"SmoothPlastic",glowcolor2)
  3922. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",0.575,0.575,1)
  3923. CreateWeld(cryst,wepcenter,cryst,0,0,-1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3924. cryst = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  3925. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",0.45,0.45,0.5)
  3926. CreateWeld(cryst,wepcenter,cryst,0,0,-1.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3927. cryst = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  3928. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",0.45,0.45,0.5)
  3929. CreateWeld(cryst,wepcenter,cryst,0,0,-0.75,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3930. cryst = CreateParta(m,0,0,"SmoothPlastic",patchcolor2)
  3931. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",0.5,0.5,2)
  3932. CreateWeld(cryst,wepcenter,cryst,0,0,-2.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3933. cryst = CreateParta(m,0,0,"SmoothPlastic",patchcolor2)
  3934. CreateSpecialMesh(cryst,"http://www.roblox.com/Asset/?id=9756362",1,1,0.5)
  3935. CreateWeld(cryst,wepcenter,cryst,0,0,1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3936. crysta = CreateParta(m,0,0,"SmoothPlastic",patchcolor)
  3937. CreateSpecialMesh(crysta,"http://www.roblox.com/Asset/?id=9756362",1,1,0.35)
  3938. CreateWeld(crysta,cryst,crysta,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3939.  
  3940. orbe = CreateParta(m,0,0,"Neon",glowcolor)
  3941. CreateMesh(orbe,"Sphere",0.35,0.35,0.25)
  3942. CreateWeld(orbe,wepcenter,orbe,0,0,1.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3943.  
  3944.  
  3945. orbem = CreateParta(m,0.75,0,"Neon",glowcolor)
  3946. CreateMesh(orbem,"Cylinder",2,0.45,0.45)
  3947. CreateWeld(orbem,orbe,orbem,0.75,0,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3948.  
  3949. orba = CreateParta(m,0,0,"Neon",glowcolor2)
  3950. CreateMesh(orba,"Sphere",0.65,0.65,0.65)
  3951. CreateWeld(orba,wepcenter,orba,0,0,2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3952.  
  3953.  
  3954. ger = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  3955. CreateSpecialMesh(ger,"http://www.roblox.com/asset?id=156292343",1.5,1.5,1.5)
  3956. local orbitalweld = CreateWeld(ger,orba,ger,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3957.  
  3958. boi = CreateParta(m,0,0,"SmoothPlastic",patchcolor)
  3959. CreateSpecialMesh(boi,"http://www.roblox.com/asset?id=156292343",2,2,7.5)
  3960. CreateWeld(boi,cryst,boi,0,0,2,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3961. boi = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  3962. CreateSpecialMesh(boi,"http://www.roblox.com/asset?id=156292343",3,3,2.5)
  3963. CreateWeld(boi,cryst,boi,0,0,2,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3964. crysta = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  3965. CreateSpecialMesh(crysta,"http://www.roblox.com/Asset/?id=9756362",1,1,0.65)
  3966. CreateWeld(crysta,cryst,crysta,0,0,2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3967.  
  3968. blad = CreateParta(m,0,0,"SmoothPlastic",patchcolor2)
  3969. CreateMesh(blad,"Brick",0.15,1.5,6.75)
  3970. CreateWeld(blad,wepcenter,blad,0,0,6.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3971. bladn = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  3972. CreateMesh(bladn,"Brick",0.1,1.65,6.75)
  3973. CreateWeld(bladn,wepcenter,bladn,0,0,6.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3974.  
  3975. local hitbox = CreateParta(m,1,0,"SmoothPlastic",BrickColor.random())
  3976. hitbox.Size = Vector3.new(0.5,0.5,10)
  3977. CreateWeld(hitbox,blad,hitbox,0,0,-1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3978.  
  3979. -----------
  3980.  
  3981. boipatt = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  3982. CreateSpecialMesh(boipatt,"http://www.roblox.com/asset?id=156292343",1,1,5)
  3983. CreateWeld(boipatt,wepcenter,boipatt,4,-0.25,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3984. orbpatt = CreateParta(m,0,0,"Neon",glowcolor2)
  3985. CreateMesh(orbpatt,"Sphere",0.8,0.8,0.225)
  3986. CreateWeld(orbpatt,boipatt,orbpatt,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3987.  
  3988. boipatt = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  3989. CreateSpecialMesh(boipatt,"http://www.roblox.com/asset?id=156292343",0.8,0.8,5)
  3990. CreateWeld(boipatt,wepcenter,boipatt,6,-0.25,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3991. orbpatt = CreateParta(m,0,0,"Neon",glowcolor2)
  3992. CreateMesh(orbpatt,"Sphere",0.6,0.6,0.225)
  3993. CreateWeld(orbpatt,boipatt,orbpatt,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3994.  
  3995. boipatt = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  3996. CreateSpecialMesh(boipatt,"http://www.roblox.com/asset?id=156292343",0.6,0.6,5)
  3997. CreateWeld(boipatt,wepcenter,boipatt,8,-0.25,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3998. orbpatt = CreateParta(m,0,0,"Neon",glowcolor2)
  3999. CreateMesh(orbpatt,"Sphere",0.4,0.4,0.225)
  4000. CreateWeld(orbpatt,boipatt,orbpatt,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4001.  
  4002. boipatt = CreateParta(m,0,0,"SmoothPlastic",glowcolor)
  4003. CreateSpecialMesh(boipatt,"http://www.roblox.com/asset?id=156292343",0.4,0.4,5)
  4004. CreateWeld(boipatt,wepcenter,boipatt,10,-0.25,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4005. orbpatt = CreateParta(m,0,0,"Neon",glowcolor2)
  4006. CreateMesh(orbpatt,"Sphere",0.25,0.25,0.225)
  4007. CreateWeld(orbpatt,boipatt,orbpatt,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4008.  
  4009. patt = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4010. CreateMesh(patt,"Brick",0.175,0.25,6.75)
  4011. CreateWeld(patt,wepcenter,patt,0,0.45,6.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4012. pattw = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4013. CreateMesh(pattw,"Wedge",0.175,0.25,0.25)
  4014. CreateWeld(pattw,wepcenter,pattw,0,-0.45,10,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4015.  
  4016. patte = CreateParta(m,0,0,"Neon",glowcolor)
  4017. CreateMesh(patte,"Brick",0.185,0.175,1)
  4018. CreateWeld(patte,wepcenter,patte,0,0.45,3.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4019.  
  4020. patte = CreateParta(m,0,0,"Neon",glowcolor)
  4021. CreateMesh(patte,"Brick",0.185,0.175,1)
  4022. CreateWeld(patte,wepcenter,patte,0,0.45,4.75,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4023.  
  4024. patte = CreateParta(m,0,0,"Neon",glowcolor)
  4025. CreateMesh(patte,"Brick",0.185,0.175,1)
  4026. CreateWeld(patte,wepcenter,patte,0,0.45,6,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4027.  
  4028. patte = CreateParta(m,0,0,"Neon",glowcolor)
  4029. CreateMesh(patte,"Brick",0.185,0.175,1)
  4030. CreateWeld(patte,wepcenter,patte,0,0.45,7.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4031.  
  4032. patte = CreateParta(m,0,0,"Neon",glowcolor)
  4033. CreateMesh(patte,"Brick",0.185,0.175,1)
  4034. CreateWeld(patte,wepcenter,patte,0,0.45,8.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4035.  
  4036. patte = CreateParta(m,0,0,"Neon",glowcolor)
  4037. CreateMesh(patte,"Brick",0.185,0.175,0.65)
  4038. CreateWeld(patte,wepcenter,patte,0,0.45,9.55,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4039. pattew = CreateParta(m,0,0,"Neon",glowcolor)
  4040. CreateMesh(pattew,"Wedge",0.185,0.175,0.15)
  4041. CreateWeld(pattew,wepcenter,pattew,0,-0.45,9.95,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4042.  
  4043. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  4044. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  4045. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4046. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  4047. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  4048. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,5.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4049. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  4050. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  4051. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,4.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4052.  
  4053. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  4054. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  4055. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,7,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4056. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  4057. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  4058. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,7.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4059. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  4060. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  4061. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,6.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4062.  
  4063. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  4064. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  4065. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,9,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4066. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  4067. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  4068. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,9.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4069. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  4070. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  4071. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,8.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4072.  
  4073. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  4074. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  4075. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,11,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4076. orbpatet = CreateParta(m,0,0,"Neon",patchcolor)
  4077. CreateMesh(orbpatet,"Sphere",0.175,0.175,0.225)
  4078. CreateWeld(orbpatet,wepcenter,orbpatet,0,-0.45,10.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4079. -----------
  4080.  
  4081. bladt = CreateParta(m,0,0,"SmoothPlastic",patchcolor2)
  4082. CreateMesh(bladt,"Wedge",0.15,1.5,2)
  4083. CreateWeld(bladt,wepcenter,bladt,0,0,10.85,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4084. bladtn = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  4085. CreateMesh(bladtn,"Wedge",0.1,1.65,2.2)
  4086. CreateWeld(bladtn,wepcenter,bladtn,0,0,10.975,math.rad(0),math.rad(0),math.rad(180),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  4087. ------
  4088.  
  4089.  
  4090. function RemoveOutlines(part)
  4091. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  4092. end
  4093. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  4094. local Part = Create("Part")({
  4095. Parent = Parent,
  4096. Reflectance = Reflectance,
  4097. Transparency = Transparency,
  4098. CanCollide = false,
  4099. Locked = true,
  4100. BrickColor = BrickColor.new(tostring(BColor)),
  4101. Name = Name,
  4102. Size = Size,
  4103. Material = Material
  4104. })
  4105. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  4106. RemoveOutlines(Part)
  4107. return Part
  4108. end
  4109. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  4110. local Msh = Create(Mesh)({
  4111. Parent = Part,
  4112. Offset = OffSet,
  4113. Scale = Scale
  4114. })
  4115. if Mesh == "SpecialMesh" then
  4116. Msh.MeshType = MeshType
  4117. Msh.MeshId = MeshId
  4118. end
  4119. return Msh
  4120. end
  4121. function CreateWeld(Parent, Part0, Part1, C0, C1)
  4122. local Weld = Create("Weld")({
  4123. Parent = Parent,
  4124. Part0 = Part0,
  4125. Part1 = Part1,
  4126. C0 = C0,
  4127. C1 = C1
  4128. })
  4129. return Weld
  4130. end
  4131.  
  4132. Player=game:GetService("Players").LocalPlayer
  4133. Character=Player.Character
  4134. PlayerGui=Player.PlayerGui
  4135. Backpack=Player.Backpack
  4136. Torso=Character.Torso
  4137. Head=Character.Head
  4138. Humanoid=Character.Humanoid
  4139. m=Instance.new('Model',Character)
  4140. LeftArm=Character["Left Arm"]
  4141. LeftLeg=Character["Left Leg"]
  4142. RightArm=Character["Right Arm"]
  4143. RightLeg=Character["Right Leg"]
  4144. LS=Torso["Left Shoulder"]
  4145. LH=Torso["Left Hip"]
  4146. RS=Torso["Right Shoulder"]
  4147. RH=Torso["Right Hip"]
  4148. Face = Head.face
  4149. Neck=Torso.Neck
  4150. it=Instance.new
  4151. attacktype=1
  4152. vt=Vector3.new
  4153. cf=CFrame.new
  4154. euler=CFrame.fromEulerAnglesXYZ
  4155. angles=CFrame.Angles
  4156. cloaked=false
  4157. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4158. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4159. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  4160. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  4161. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  4162. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  4163. RootPart=Character.HumanoidRootPart
  4164. RootJoint=RootPart.RootJoint
  4165. RootCF=euler(-1.57,0,3.14)
  4166. attack = false
  4167. attackdebounce = false
  4168. deb=false
  4169. equipped=true
  4170. hand=false
  4171. MMouse=nil
  4172. combo=0
  4173. mana=0
  4174. trispeed=.2
  4175. attackmode='none'
  4176. local idle=0
  4177. local Anim="Idle"
  4178. local Effects={}
  4179. local gun=false
  4180. local shoot=false
  4181. local sine = 0
  4182. local change = 1
  4183. player=nil
  4184.  
  4185. mouse=Player:GetMouse()
  4186. --save shoulders
  4187. RSH, LSH=nil, nil
  4188. --welds
  4189. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  4190. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  4191. LH=Torso["Left Hip"]
  4192. RH=Torso["Right Hip"]
  4193. TorsoColor=Torso.BrickColor
  4194. function NoOutline(Part)
  4195. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  4196. end
  4197. player=Player
  4198. ch=Character
  4199. RSH=ch.Torso["Right Shoulder"]
  4200. LSH=ch.Torso["Left Shoulder"]
  4201. --
  4202. RSH.Parent=nil
  4203. LSH.Parent=nil
  4204. --
  4205. RW.Name="Right Shoulder"
  4206. RW.Part0=ch.Torso
  4207. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  4208. RW.C1=cf(0, 0.5, 0)
  4209. RW.Part1=ch["Right Arm"]
  4210. RW.Parent=ch.Torso
  4211. --
  4212. LW.Name="Left Shoulder"
  4213. LW.Part0=ch.Torso
  4214. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  4215. LW.C1=cf(0, 0.5, 0)
  4216. LW.Part1=ch["Left Arm"]
  4217. LW.Parent=ch.Torso
  4218.  
  4219. local Stats=Instance.new("BoolValue")
  4220. Stats.Name="Stats"
  4221. Stats.Parent=Character
  4222. local Atk=Instance.new("NumberValue")
  4223. Atk.Name="Damage"
  4224. Atk.Parent=Stats
  4225. Atk.Value=1
  4226. local Def=Instance.new("NumberValue")
  4227. Def.Name="Defense"
  4228. Def.Parent=Stats
  4229. Def.Value=1
  4230. local Speed=Instance.new("NumberValue")
  4231. Speed.Name="Speed"
  4232. Speed.Parent=Stats
  4233. Speed.Value=1
  4234. local Mvmt=Instance.new("NumberValue")
  4235. Mvmt.Name="Movement"
  4236. Mvmt.Parent=Stats
  4237. Mvmt.Value=1
  4238.  
  4239. local donum=0
  4240.  
  4241.  
  4242. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  4243. local fp=it("Part")
  4244. fp.formFactor=formfactor
  4245. fp.Parent=parent
  4246. fp.Reflectance=reflectance
  4247. fp.Transparency=transparency
  4248. fp.CanCollide=false
  4249. fp.Locked=true
  4250. fp.BrickColor=brickcolor
  4251. fp.Name=name
  4252. fp.Size=size
  4253. fp.Position=Torso.Position
  4254. NoOutline(fp)
  4255. fp.Material="SmoothPlastic"
  4256. fp:BreakJoints()
  4257. return fp
  4258. end
  4259.  
  4260. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  4261. local mesh=it(Mesh)
  4262. mesh.Parent=part
  4263. if Mesh=="SpecialMesh" then
  4264. mesh.MeshType=meshtype
  4265. if meshid~="nil" then
  4266. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  4267. end
  4268. end
  4269. mesh.Offset=offset
  4270. mesh.Scale=scale
  4271. return mesh
  4272. end
  4273.  
  4274. function weld(parent,part0,part1,c0)
  4275. local weld=it("Weld")
  4276. weld.Parent=parent
  4277. weld.Part0=part0
  4278. weld.Part1=part1
  4279. weld.C0=c0
  4280. return weld
  4281. end
  4282.  
  4283. local Color1=Torso.BrickColor
  4284.  
  4285. local bodvel=Instance.new("BodyVelocity")
  4286. local bg=Instance.new("BodyGyro")
  4287.  
  4288. function swait(num)
  4289. if num==0 or num==nil then
  4290. game:service'RunService'.Stepped:wait(0)
  4291. else
  4292. for i=0,num do
  4293. game:service'RunService'.Stepped:wait(0)
  4294. end
  4295. end
  4296. end
  4297.  
  4298.  
  4299. so = function(id,par,vol,pit)
  4300. coroutine.resume(coroutine.create(function()
  4301. local sou = Instance.new("Sound",par or workspace)
  4302. sou.Volume=vol
  4303. sou.Pitch=pit or 1
  4304. sou.SoundId=id
  4305. swait()
  4306. sou:play()
  4307. game:GetService("Debris"):AddItem(sou,6)
  4308. end))
  4309. end
  4310.  
  4311. function clerp(a,b,t)
  4312. local qa = {QuaternionFromCFrame(a)}
  4313. local qb = {QuaternionFromCFrame(b)}
  4314. local ax, ay, az = a.x, a.y, a.z
  4315. local bx, by, bz = b.x, b.y, b.z
  4316. local _t = 1-t
  4317. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  4318. end
  4319.  
  4320. function QuaternionFromCFrame(cf)
  4321. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  4322. local trace = m00 + m11 + m22
  4323. if trace > 0 then
  4324. local s = math.sqrt(1 + trace)
  4325. local recip = 0.5/s
  4326. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  4327. else
  4328. local i = 0
  4329. if m11 > m00 then
  4330. i = 1
  4331. end
  4332. if m22 > (i == 0 and m00 or m11) then
  4333. i = 2
  4334. end
  4335. if i == 0 then
  4336. local s = math.sqrt(m00-m11-m22+1)
  4337. local recip = 0.5/s
  4338. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  4339. elseif i == 1 then
  4340. local s = math.sqrt(m11-m22-m00+1)
  4341. local recip = 0.5/s
  4342. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  4343. elseif i == 2 then
  4344. local s = math.sqrt(m22-m00-m11+1)
  4345. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  4346. end
  4347. end
  4348. end
  4349.  
  4350. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  4351. local xs, ys, zs = x + x, y + y, z + z
  4352. local wx, wy, wz = w*xs, w*ys, w*zs
  4353. local xx = x*xs
  4354. local xy = x*ys
  4355. local xz = x*zs
  4356. local yy = y*ys
  4357. local yz = y*zs
  4358. local zz = z*zs
  4359. 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))
  4360. end
  4361.  
  4362. function QuaternionSlerp(a, b, t)
  4363. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  4364. local startInterp, finishInterp;
  4365. if cosTheta >= 0.0001 then
  4366. if (1 - cosTheta) > 0.0001 then
  4367. local theta = math.acos(cosTheta)
  4368. local invSinTheta = 1/math.sin(theta)
  4369. startInterp = math.sin((1-t)*theta)*invSinTheta
  4370. finishInterp = math.sin(t*theta)*invSinTheta
  4371. else
  4372. startInterp = 1-t
  4373. finishInterp = t
  4374. end
  4375. else
  4376. if (1+cosTheta) > 0.0001 then
  4377. local theta = math.acos(-cosTheta)
  4378. local invSinTheta = 1/math.sin(theta)
  4379. startInterp = math.sin((t-1)*theta)*invSinTheta
  4380. finishInterp = math.sin(t*theta)*invSinTheta
  4381. else
  4382. startInterp = t-1
  4383. finishInterp = t
  4384. end
  4385. end
  4386. 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
  4387. end
  4388.  
  4389. local function CFrameFromTopBack(at, top, back)
  4390. local right = top:Cross(back)
  4391. return CFrame.new(at.x, at.y, at.z,
  4392. right.x, top.x, back.x,
  4393. right.y, top.y, back.y,
  4394. right.z, top.z, back.z)
  4395. end
  4396.  
  4397. function Triangle(a, b, c)
  4398. local edg1 = (c-a):Dot((b-a).unit)
  4399. local edg2 = (a-b):Dot((c-b).unit)
  4400. local edg3 = (b-c):Dot((a-c).unit)
  4401. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  4402. a, b, c = a, b, c
  4403. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  4404. a, b, c = b, c, a
  4405. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  4406. a, b, c = c, a, b
  4407. else
  4408. assert(false, "unreachable")
  4409. end
  4410.  
  4411. local len1 = (c-a):Dot((b-a).unit)
  4412. local len2 = (b-a).magnitude - len1
  4413. local width = (a + (b-a).unit*len1 - c).magnitude
  4414.  
  4415. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  4416.  
  4417. local list = {}
  4418.  
  4419. if len1 > 0.01 then
  4420. local w1 = Instance.new('WedgePart', m)
  4421. game:GetService("Debris"):AddItem(w1,5)
  4422. w1.Material = "SmoothPlastic"
  4423. w1.FormFactor = 'Custom'
  4424. w1.BrickColor = BrickColor.new("Really red")
  4425. w1.Transparency = 0
  4426. w1.Reflectance = 0
  4427. w1.Material = "SmoothPlastic"
  4428. w1.CanCollide = false
  4429. local l1 = Instance.new("PointLight",w1)
  4430. l1.Color = Color3.new(170,0,0)
  4431. NoOutline(w1)
  4432. local sz = Vector3.new(0.2, width, len1)
  4433. w1.Size = sz
  4434. local sp = Instance.new("SpecialMesh",w1)
  4435. sp.MeshType = "Wedge"
  4436. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  4437. w1:BreakJoints()
  4438. w1.Anchored = true
  4439. w1.Parent = workspace
  4440. w1.Transparency = 0.7
  4441. table.insert(Effects,{w1,"Disappear",.01})
  4442. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  4443. table.insert(list,w1)
  4444. end
  4445.  
  4446. if len2 > 0.01 then
  4447. local w2 = Instance.new('WedgePart', m)
  4448. game:GetService("Debris"):AddItem(w2,5)
  4449. w2.Material = "SmoothPlastic"
  4450. w2.FormFactor = 'Custom'
  4451. w2.BrickColor = BrickColor.new("Really red")
  4452. w2.Transparency = 0
  4453. w2.Reflectance = 0
  4454. w2.Material = "SmoothPlastic"
  4455. w2.CanCollide = false
  4456. local l2 = Instance.new("PointLight",w2)
  4457. l2.Color = Color3.new(170,0,0)
  4458. NoOutline(w2)
  4459. local sz = Vector3.new(0.2, width, len2)
  4460. w2.Size = sz
  4461. local sp = Instance.new("SpecialMesh",w2)
  4462. sp.MeshType = "Wedge"
  4463. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  4464. w2:BreakJoints()
  4465. w2.Anchored = true
  4466. w2.Parent = workspace
  4467. w2.Transparency = 0.7
  4468. table.insert(Effects,{w2,"Disappear",.01})
  4469. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  4470. table.insert(list,w2)
  4471. end
  4472. return unpack(list)
  4473. end
  4474.  
  4475.  
  4476. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  4477. if hit.Parent == nil then
  4478. return
  4479. end
  4480. local h = hit.Parent:FindFirstChild("Humanoid")
  4481. for _, v in pairs(hit.Parent:children()) do
  4482. if v:IsA("Humanoid") then
  4483. h = v
  4484. end
  4485. end
  4486. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  4487. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  4488. return
  4489. end
  4490. local c = Create("ObjectValue")({
  4491. Name = "creator",
  4492. Value = game:service("Players").LocalPlayer,
  4493. Parent = h
  4494. })
  4495. game:GetService("Debris"):AddItem(c, 0.5)
  4496. if HitSound ~= nil and HitPitch ~= nil then
  4497. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  4498. end
  4499. local Damage = math.huge
  4500. local blocked = false
  4501. local block = hit.Parent:findFirstChild("Block")
  4502. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  4503. blocked = true
  4504. block.Value = block.Value - 1
  4505. print(block.Value)
  4506. end
  4507. if blocked == false then
  4508. HitHealth = h.Health
  4509. h.Health = h.Health - Damage
  4510. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  4511. print("gained kill")
  4512. end
  4513. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  4514. else
  4515. h.Health = h.Health - Damage / 2
  4516. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  4517. end
  4518. if Type == "Knockdown" then
  4519. local hum = hit.Parent.Humanoid
  4520. hum.PlatformStand = true
  4521. coroutine.resume(coroutine.create(function(HHumanoid)
  4522. swait(1)
  4523. HHumanoid.PlatformStand = false
  4524. end), hum)
  4525. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  4526. local bodvol = Create("BodyVelocity")({
  4527. velocity = angle * knockback,
  4528. P = 5000,
  4529. maxForce = Vector3.new(8000, 8000, 8000),
  4530. Parent = hit
  4531. })
  4532. local rl = Create("BodyAngularVelocity")({
  4533. P = 3000,
  4534. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  4535. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  4536. Parent = hit
  4537. })
  4538. game:GetService("Debris"):AddItem(bodvol, 0.5)
  4539. game:GetService("Debris"):AddItem(rl, 0.5)
  4540. elseif Type == "Normal" then
  4541. local vp = Create("BodyVelocity")({
  4542. P = 500,
  4543. maxForce = Vector3.new(math.huge, 0, math.huge),
  4544. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  4545. })
  4546. if knockback > 0 then
  4547. vp.Parent = hit.Parent.Torso
  4548. end
  4549. game:GetService("Debris"):AddItem(vp, 0.5)
  4550. elseif Type == "Up" then
  4551. local bodyVelocity = Create("BodyVelocity")({
  4552. velocity = Vector3.new(0, 20, 0),
  4553. P = 5000,
  4554. maxForce = Vector3.new(8000, 8000, 8000),
  4555. Parent = hit
  4556. })
  4557. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  4558. local bodyVelocity = Create("BodyVelocity")({
  4559. velocity = Vector3.new(0, 20, 0),
  4560. P = 5000,
  4561. maxForce = Vector3.new(8000, 8000, 8000),
  4562. Parent = hit
  4563. })
  4564. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  4565. elseif Type == "Leech" then
  4566. local hum = hit.Parent.Humanoid
  4567. if hum ~= nil then
  4568. for i = 0, 2 do
  4569. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  4570. end
  4571. Humanoid.Health = Humanoid.Health + 10
  4572. end
  4573. elseif Type == "UpKnock" then
  4574. local hum = hit.Parent.Humanoid
  4575. hum.PlatformStand = true
  4576. if hum ~= nil then
  4577. hitr = true
  4578. end
  4579. coroutine.resume(coroutine.create(function(HHumanoid)
  4580. swait(5)
  4581. HHumanoid.PlatformStand = false
  4582. hitr = false
  4583. end), hum)
  4584. local bodyVelocity = Create("BodyVelocity")({
  4585. velocity = Vector3.new(0, 20, 0),
  4586. P = 5000,
  4587. maxForce = Vector3.new(8000, 8000, 8000),
  4588. Parent = hit
  4589. })
  4590. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  4591. local bodyVelocity = Create("BodyVelocity")({
  4592. velocity = Vector3.new(0, 20, 0),
  4593. P = 5000,
  4594. maxForce = Vector3.new(8000, 8000, 8000),
  4595. Parent = hit
  4596. })
  4597. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  4598. elseif Type == "Snare" then
  4599. local bp = Create("BodyPosition")({
  4600. P = 2000,
  4601. D = 100,
  4602. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4603. position = hit.Parent.Torso.Position,
  4604. Parent = hit.Parent.Torso
  4605. })
  4606. game:GetService("Debris"):AddItem(bp, 1)
  4607. elseif Type == "Slashnare" then
  4608. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  4609. for i = 1, math.random(4, 5) do
  4610. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  4611. end
  4612. local bp = Create("BodyPosition")({
  4613. P = 2000,
  4614. D = 100,
  4615. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4616. position = hit.Parent.Torso.Position,
  4617. Parent = hit.Parent.Torso
  4618. })
  4619. game:GetService("Debris"):AddItem(bp, 1)
  4620. elseif Type == "Spike" then
  4621. CreateBigIceSword(hit.Parent.Torso.CFrame)
  4622. local bp = Create("BodyPosition")({
  4623. P = 2000,
  4624. D = 100,
  4625. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4626. position = hit.Parent.Torso.Position,
  4627. Parent = hit.Parent.Torso
  4628. })
  4629. game:GetService("Debris"):AddItem(bp, 1)
  4630. elseif Type == "Freeze" then
  4631. local BodPos = Create("BodyPosition")({
  4632. P = 50000,
  4633. D = 1000,
  4634. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  4635. position = hit.Parent.Torso.Position,
  4636. Parent = hit.Parent.Torso
  4637. })
  4638. local BodGy = Create("BodyGyro")({
  4639. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  4640. P = 20000,
  4641. Parent = hit.Parent.Torso,
  4642. cframe = hit.Parent.Torso.CFrame
  4643. })
  4644. hit.Parent.Torso.Anchored = true
  4645. coroutine.resume(coroutine.create(function(Part)
  4646. swait(1.5)
  4647. Part.Anchored = false
  4648. end), hit.Parent.Torso)
  4649. game:GetService("Debris"):AddItem(BodPos, 3)
  4650. game:GetService("Debris"):AddItem(BodGy, 3)
  4651. end
  4652. local debounce = Create("BoolValue")({
  4653. Name = "DebounceHit",
  4654. Parent = hit.Parent,
  4655. Value = true
  4656. })
  4657. game:GetService("Debris"):AddItem(debounce, Delay)
  4658. c = Instance.new("ObjectValue")
  4659. c.Name = "creator"
  4660. c.Value = Player
  4661. c.Parent = h
  4662. game:GetService("Debris"):AddItem(c, 0.5)
  4663. end
  4664. end
  4665. function ShowDamage(Pos, Text, Time, Color)
  4666. local Rate = 0.03333333333333333
  4667. local Pos = Pos or Vector3.new(0, 0, 0)
  4668. local Text = Text or ""
  4669. local Time = Time or 2
  4670. local Color = Color or Color3.new(1, 0, 1)
  4671. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  4672. EffectPart.Anchored = true
  4673. local BillboardGui = Create("BillboardGui")({
  4674. Size = UDim2.new(3, 0, 3, 0),
  4675. Adornee = EffectPart,
  4676. Parent = EffectPart
  4677. })
  4678. local TextLabel = Create("TextLabel")({
  4679. BackgroundTransparency = 1,
  4680. Size = UDim2.new(1, 0, 1, 0),
  4681. Text = Text,
  4682. TextColor3 = Color,
  4683. TextScaled = true,
  4684. Font = Enum.Font.ArialBold,
  4685. Parent = BillboardGui
  4686. })
  4687. game.Debris:AddItem(EffectPart, Time + 0.1)
  4688. EffectPart.Parent = game:GetService("Workspace")
  4689. delay(0, function()
  4690. local Frames = Time / Rate
  4691. for Frame = 1, Frames do
  4692. wait(Rate)
  4693. local Percent = Frame / Frames
  4694. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  4695. TextLabel.TextTransparency = Percent
  4696. end
  4697. if EffectPart and EffectPart.Parent then
  4698. EffectPart:Destroy()
  4699. end
  4700. end)
  4701. end
  4702. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  4703. for _, c in pairs(workspace:children()) do
  4704. local hum = c:findFirstChild("Humanoid")
  4705. if hum ~= nil then
  4706. local head = c:findFirstChild("Torso")
  4707. if head ~= nil then
  4708. local targ = head.Position - Part.Position
  4709. local mag = targ.magnitude
  4710. if magni >= mag and c.Name ~= Player.Name then
  4711. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  4712. end
  4713. end
  4714. end
  4715. end
  4716. end
  4717.  
  4718. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  4719. for _, c in pairs(workspace:children()) do
  4720. local hum = c:findFirstChild("Humanoid")
  4721. if hum ~= nil then
  4722. local head = c:findFirstChild("Torso")
  4723. if head ~= nil then
  4724. local targ = head.Position - Part.Position
  4725. local mag = targ.magnitude
  4726. if magni >= mag and c.Name ~= Player.Name then
  4727. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  4728. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  4729. end
  4730. end
  4731. end
  4732. end
  4733. end
  4734.  
  4735. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  4736. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  4737. end
  4738.  
  4739. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  4740. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4741. prt.Anchored=true
  4742. prt.CFrame=cframe
  4743. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  4744. --http://www.roblox.com/asset/?id=4770560
  4745. game:GetService("Debris"):AddItem(prt,2)
  4746. CF=prt.CFrame
  4747. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  4748. for i=0,1,0.2 do
  4749. wait()
  4750. Part.CFrame=CF*cf(0,0,-0.4)
  4751. end
  4752. for i=0,1,delay do
  4753. wait()
  4754. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  4755. Mesh.Scale=Mesh.Scale
  4756. end
  4757. for i=0,1,0.1 do
  4758. wait()
  4759. Part.Transparency=i
  4760. end
  4761. Part.Parent=nil
  4762. end),prt,msh,CF)
  4763. end
  4764.  
  4765. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4766. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4767. prt.Anchored=true
  4768. prt.Material = "Neon"
  4769. prt.CFrame=cframe
  4770. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4771. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4772. game:GetService("Debris"):AddItem(prt,5)
  4773. coroutine.resume(coroutine.create(function(Part,Mesh)
  4774. for i=0,1,delay do
  4775. swait()
  4776. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4777. Part.Transparency=i
  4778. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4779. end
  4780. Part.Parent=nil
  4781. end),prt,msh)
  4782. end
  4783.  
  4784. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  4785. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4786. prt.Anchored=true
  4787. prt.Material = "Neon"
  4788. prt.CFrame=cframe
  4789. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4790. game:GetService("Debris"):AddItem(prt,5)
  4791. coroutine.resume(coroutine.create(function(Part,Mesh)
  4792. local rtype = rottype
  4793. for i=0,1,delay do
  4794. swait()
  4795. if rtype == 1 then
  4796. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4797. elseif rtype == 2 then
  4798. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4799. end
  4800. Part.Transparency=i
  4801. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4802. end
  4803. Part.Parent=nil
  4804. end),prt,msh)
  4805. end
  4806.  
  4807. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4808. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4809. prt.Anchored=true
  4810. prt.CFrame=cframe
  4811. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4812. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  4813. game:GetService("Debris"):AddItem(prt,5)
  4814. coroutine.resume(coroutine.create(function(Part,Mesh)
  4815. for i=0,1,delay do
  4816. wait()
  4817. Part.Transparency=i
  4818. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4819. end
  4820. Part.Parent=nil
  4821. end),prt,msh)
  4822. end
  4823.  
  4824. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  4825. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4826. prt.Anchored=true
  4827. prt.Material = "Neon"
  4828. prt.CFrame=cframe
  4829. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4830. game:GetService("Debris"):AddItem(prt,5)
  4831. coroutine.resume(coroutine.create(function(Part,Mesh)
  4832. local rtype = rottype
  4833. for i=0,1,delay do
  4834. swait()
  4835. if rtype == 1 then
  4836. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4837. elseif rtype == 2 then
  4838. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4839. end
  4840. Part.Transparency=i
  4841. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4842. end
  4843. Part.Parent=nil
  4844. end),prt,msh)
  4845. end
  4846.  
  4847. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  4848. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4849. prt.Anchored=true
  4850. prt.Material = "Neon"
  4851. prt.CFrame=cframe
  4852. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  4853. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  4854. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  4855. game:GetService("Debris"):AddItem(prt,5)
  4856. coroutine.resume(coroutine.create(function(Part,Mesh)
  4857. local rtype = rottype
  4858. for i=0,1,delay do
  4859. swait()
  4860. if rtype == 1 then
  4861. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4862. elseif rtype == 2 then
  4863. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4864. end
  4865. dec.Transparency=i
  4866. dec2.Transparency=i
  4867. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  4868. end
  4869. Part.Parent=nil
  4870. end),prt,msh)
  4871. end
  4872.  
  4873. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  4874. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4875. prt.Anchored=true
  4876. prt.Material = "Neon"
  4877. prt.CFrame=cframe
  4878. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  4879. game:GetService("Debris"):AddItem(prt,5)
  4880. coroutine.resume(coroutine.create(function(Part,Mesh)
  4881. local rtype = rottype
  4882. for i=0,1,delay do
  4883. swait()
  4884. if rtype == 1 then
  4885. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4886. elseif rtype == 2 then
  4887. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4888. end
  4889. prt.Transparency=i
  4890. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  4891. end
  4892. Part.Parent=nil
  4893. end),prt,msh)
  4894. end
  4895.  
  4896. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  4897. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4898. prt.Anchored=true
  4899. prt.Material = "Neon"
  4900. prt.CFrame=cframe
  4901. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  4902. game:GetService("Debris"):AddItem(prt,5)
  4903. coroutine.resume(coroutine.create(function(Part,Mesh)
  4904. local rtype = rottype
  4905. for i=0,1,delay do
  4906. swait()
  4907. if rtype == 1 then
  4908. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  4909. elseif rtype == 2 then
  4910. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  4911. end
  4912. prt.Transparency=i
  4913. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  4914. end
  4915. Part.Parent=nil
  4916. end),prt,msh)
  4917. end
  4918.  
  4919. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  4920. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4921. prt.Anchored=true
  4922. prt.Material = "Neon"
  4923. prt.CFrame=cframe
  4924. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4925. game:GetService("Debris"):AddItem(prt,5)
  4926. coroutine.resume(coroutine.create(function(Part,Mesh)
  4927. local rtype = rottype
  4928. for i=0,1,delay do
  4929. swait()
  4930. if rtype == 1 then
  4931. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4932. elseif rtype == 2 then
  4933. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4934. end
  4935. prt.Transparency=i
  4936. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  4937. end
  4938. Part.Parent=nil
  4939. end),prt,msh)
  4940. end
  4941.  
  4942. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  4943. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4944. prt.Anchored=true
  4945. prt.Material = "Neon"
  4946. prt.CFrame=cframe
  4947. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4948. game:GetService("Debris"):AddItem(prt,5)
  4949. coroutine.resume(coroutine.create(function(Part,Mesh)
  4950. local rtype = rottype
  4951. for i=0,1,delay do
  4952. swait()
  4953. if rtype == 1 then
  4954. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4955. elseif rtype == 2 then
  4956. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4957. end
  4958. prt.Transparency=i
  4959. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4960. end
  4961. Part.Parent=nil
  4962. end),prt,msh)
  4963. end
  4964.  
  4965. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  4966. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4967. prt.Anchored=false
  4968. prt.CFrame=cframe
  4969. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4970. local wld=weld(prt,prt,Parent,cframe)
  4971. game:GetService("Debris"):AddItem(prt,5)
  4972. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  4973. for i=0,1,delay do
  4974. wait()
  4975. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  4976. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4977. Part.Transparency=i
  4978. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4979. end
  4980. Part.Parent=nil
  4981. end),prt,msh,wld)
  4982. end
  4983.  
  4984. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  4985. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4986. prt.Anchored=false
  4987. prt.CFrame=cframe
  4988. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4989. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  4990. game:GetService("Debris"):AddItem(prt,5)
  4991. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  4992. for i=0,1,delay do
  4993. wait()
  4994. Weld.C0=euler(i*20,0,0)
  4995. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4996. Part.Transparency=i
  4997. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4998. end
  4999. Part.Parent=nil
  5000. end),prt,msh,wld)
  5001. end
  5002.  
  5003. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5004. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5005. prt.Anchored=true
  5006. prt.CFrame=cframe
  5007. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  5008. game:GetService("Debris"):AddItem(prt,2)
  5009. coroutine.resume(coroutine.create(function(Part,Mesh)
  5010. for i=0,1,delay do
  5011. wait()
  5012. Part.CFrame=Part.CFrame
  5013. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5014. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5015. prt2.Anchored=true
  5016. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  5017. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  5018. game:GetService("Debris"):AddItem(prt2,2)
  5019. coroutine.resume(coroutine.create(function(Part,Mesh)
  5020. for i=0,1,0.1 do
  5021. wait()
  5022. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  5023. end
  5024. Part.Parent=nil
  5025. end),prt2,msh2)
  5026. end
  5027. for i=0,1,delay*2 do
  5028. wait()
  5029. Part.CFrame=Part.CFrame
  5030. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  5031. end
  5032. Part.Parent=nil
  5033. end),prt,msh)
  5034. end
  5035.  
  5036. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5037. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5038. prt.Anchored=true
  5039. prt.CFrame=cframe
  5040. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  5041. game:GetService("Debris"):AddItem(prt,2)
  5042. coroutine.resume(coroutine.create(function(Part,Mesh)
  5043. for i=0,1,delay do
  5044. wait()
  5045. Part.CFrame=Part.CFrame
  5046. Part.Transparency=i
  5047. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5048. end
  5049. Part.Parent=nil
  5050. end),prt,msh)
  5051. end
  5052.  
  5053. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  5054. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5055. prt.Anchored=true
  5056. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  5057. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  5058. game:GetService("Debris"):AddItem(prt,2)
  5059. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  5060. CF=Part.CFrame
  5061. Numbb=0
  5062. randnumb=math.random()/10
  5063. rand1=math.random()/10
  5064. for i=0,1,rand1 do
  5065. wait()
  5066. CF=CF*cf(0,math.random()/2,0)
  5067. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  5068. Part.CFrame=CF*euler(Numbb,0,0)
  5069. Part.Transparency=i
  5070. Numbb=Numbb+randnumb
  5071. end
  5072. Part.Parent=nil
  5073. end),prt,CF,Numbb,randnumb)
  5074. end
  5075.  
  5076. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5077. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5078. prt.Anchored=true
  5079. prt.CFrame=cframe
  5080. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  5081. game:GetService("Debris"):AddItem(prt,5)
  5082. coroutine.resume(coroutine.create(function(Part,Mesh)
  5083. for i=0,1,delay do
  5084. wait()
  5085. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  5086. Part.Transparency=i
  5087. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5088. end
  5089. Part.Parent=nil
  5090. end),prt,msh)
  5091. end
  5092.  
  5093. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5094. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5095. prt.Anchored=true
  5096. prt.CFrame=cframe
  5097. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  5098. game:GetService("Debris"):AddItem(prt,2)
  5099. coroutine.resume(coroutine.create(function(Part,Mesh)
  5100. for i=0,1,delay do
  5101. wait()
  5102. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  5103. Part.Transparency=i
  5104. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5105. end
  5106. Part.Parent=nil
  5107. end),prt,msh)
  5108. end
  5109.  
  5110. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  5111. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5112. prt.Anchored=true
  5113. prt.CFrame=cframe*cf(x,y,z)
  5114. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  5115. game:GetService("Debris"):AddItem(prt,5)
  5116. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  5117. local num=math.random()
  5118. local num2=math.random(-3,2)+math.random()
  5119. local numm=0
  5120. for i=0,1,delay*2 do
  5121. swait()
  5122. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  5123. Part.Transparency=i
  5124. numm=numm+0.01
  5125. end
  5126. Part.Parent=nil
  5127. Mesh.Parent=nil
  5128. end),prt,msh,x,y,z)
  5129. end
  5130.  
  5131. function dmgstart(dmg,what)
  5132. hitcon = what.Touched:connect(function(hit)
  5133. local hum = hit.Parent:FindFirstChild("Humanoid")
  5134. if hum and not hum:IsDescendantOf(Character) then
  5135. hum:TakeDamage(dmg)
  5136. end
  5137. end)
  5138. end
  5139.  
  5140. function dmgstop()
  5141. hitcon:disconnect()
  5142. end
  5143.  
  5144. function Cloak()
  5145. Face.Parent=nil
  5146. cloaked=true
  5147. for _,v in pairs(Torso.Parent:children()) do
  5148. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  5149. coroutine.resume(coroutine.create(function()
  5150. for i=0,1,0.2 do
  5151. wait()
  5152. v.Transparency=i
  5153. end
  5154. v.Transparency=1
  5155. end))
  5156. end
  5157. if v.className=="Hat" then
  5158. hatp=v.Handle
  5159. coroutine.resume(coroutine.create(function(derp)
  5160. for i=0,1,0.2 do
  5161. wait()
  5162. derp.Transparency=i
  5163. end
  5164. derp.Transparency=1
  5165. end),hatp)
  5166. end
  5167. end
  5168. for _,v in pairs(m:children()) do
  5169. if v.className=="Part" then
  5170. coroutine.resume(coroutine.create(function()
  5171. for i=0,1,0.2 do
  5172. wait()
  5173. v.Transparency=i
  5174. end
  5175. v.Transparency=1
  5176. end))
  5177. end
  5178. end
  5179. end
  5180.  
  5181. function UnCloak()
  5182. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  5183. Face.Parent=Head
  5184. cloaked=false
  5185. for _,v in pairs(Torso.Parent:children()) do
  5186. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  5187. coroutine.resume(coroutine.create(function()
  5188. for i=0,1,0.1 do
  5189. wait()
  5190. v.Transparency=v.Transparency-0.1
  5191. end
  5192. v.Transparency=0
  5193. end))
  5194. end
  5195. if v.className=="Hat" then
  5196. hatp=v.Handle
  5197. coroutine.resume(coroutine.create(function(derp)
  5198. for i=0,1,0.1 do
  5199. wait()
  5200. derp.Transparency=derp.Transparency-0.1
  5201. end
  5202. derp.Transparency=0
  5203. end),hatp)
  5204. end
  5205. end
  5206. for _,v in pairs(m:children()) do
  5207. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  5208. coroutine.resume(coroutine.create(function()
  5209. for i=0,1,0.1 do
  5210. wait()
  5211. v.Transparency=v.Transparency-0.1
  5212. end
  5213. v.Transparency=0
  5214. end))
  5215. v.Transparency=0
  5216. end
  5217. end
  5218. end
  5219.  
  5220. local origcolor = BrickColor.new("Toothpaste")
  5221. ---- This section of explosions.
  5222. function Explode(rad,par,pitch,vol,mindam,maxdam)
  5223. local expart = Instance.new("Part",char)
  5224. local expart2 = Instance.new("Part",char)
  5225. local rin = Instance.new("Part",char)
  5226. local rin2 = Instance.new("Part",char)
  5227. local partMesh = Instance.new("SpecialMesh",expart)
  5228. partMesh.MeshType = "Sphere"
  5229. local partMesh2 = Instance.new("SpecialMesh",expart2)
  5230. partMesh2.MeshType = "Sphere"
  5231. local partMesh3 = Instance.new("SpecialMesh",rin)
  5232. partMesh3.MeshType = "Brick"
  5233. local partMesh4 = Instance.new("SpecialMesh",rin2)
  5234. partMesh4.MeshType = "Brick"
  5235. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  5236. partMesh.Scale = vt(rad,rad,rad)
  5237. expart.Size = vt(1,1,1)
  5238. expart.Transparency = 0
  5239. expart.Anchored = true
  5240. expart.Material = "Neon"
  5241. expart.BrickColor = bc("White")
  5242. expart.CFrame = par.CFrame
  5243. partMesh2.Scale = vt(rad,rad,rad)
  5244. expart2.Size = vt(1.15,1.15,1.15)
  5245. expart2.Transparency = 0.5
  5246. expart2.Anchored = true
  5247. expart2.Material = "Neon"
  5248. expart2.BrickColor = par.BrickColor
  5249. expart2.CFrame = par.CFrame
  5250. rin.Size = vt(1.15,1.15,1.15)
  5251. rin.Transparency = 1
  5252. rin.Anchored = true
  5253. rin.Material = "Neon"
  5254. rin.BrickColor = par.BrickColor
  5255. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5256. rin2.Size = vt(1.15,1.15,1.15)
  5257. rin2.Transparency = 1
  5258. rin2.Anchored = true
  5259. rin2.Material = "Neon"
  5260. rin2.BrickColor = par.BrickColor
  5261. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5262. partMesh3.Scale = vt(0,1,0)
  5263. partMesh4.Scale = vt(0,1,0)
  5264. local dec2 = Instance.new("Decal", rin)
  5265. dec2.Face = "Top"
  5266. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  5267. dec2.Parent = rin
  5268. local dec2b = dec2:Clone()
  5269. dec2b.Face = "Bottom"
  5270. dec2b.Parent = rin
  5271.  
  5272. local dec2a = Instance.new("Decal", rin2)
  5273. dec2a.Face = "Top"
  5274. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  5275. dec2a.Parent = rin2
  5276. local dec2ab = dec2a:Clone()
  5277. dec2ab.Face = "Bottom"
  5278. dec2ab.Parent = rin2
  5279. expart.CanCollide = false
  5280. expart2.CanCollide = false
  5281. rin.CanCollide = false
  5282. rin2.CanCollide = false
  5283. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  5284. local value = 1*rad/6.5
  5285. for i = 0, 199 do
  5286. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  5287. expart.CFrame = expart.CFrame
  5288. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  5289. expart2.CFrame = expart.CFrame
  5290. value = value - 0.035*rad/30
  5291. if value < 7.5 then
  5292. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  5293. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  5294. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  5295. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  5296. end
  5297. if value < 0 then
  5298. dec2.Transparency = dec2.Transparency + 0.025
  5299. dec2a.Transparency = dec2a.Transparency + 0.025
  5300. dec2b.Transparency = dec2b.Transparency + 0.025
  5301. dec2ab.Transparency = dec2ab.Transparency + 0.025
  5302. expart.Transparency = expart.Transparency + 0.025
  5303. expart2.Transparency = expart2.Transparency + 0.025
  5304. rin.Transparency = rin.Transparency + 0.025
  5305. rin2.Transparency = rin2.Transparency + 0.025
  5306. end
  5307. swait()
  5308. end
  5309. game:GetService("Debris"):AddItem(expart, 1)
  5310. game:GetService("Debris"):AddItem(expart2, 1)
  5311. game:GetService("Debris"):AddItem(rin, 1)
  5312. game:GetService("Debris"):AddItem(rin2, 1)
  5313. end
  5314.  
  5315. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  5316. local expart = Instance.new("Part",char)
  5317. local expart2 = Instance.new("Part",char)
  5318. local partMesh = Instance.new("SpecialMesh",expart)
  5319. partMesh.MeshType = "Sphere"
  5320. local partMesh2 = Instance.new("SpecialMesh",expart2)
  5321. partMesh2.MeshType = "Sphere"
  5322. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  5323. partMesh.Scale = vt(rad,rad,rad)
  5324. expart.Size = vt(1,1,1)
  5325. expart.Transparency = 0
  5326. expart.Anchored = true
  5327. expart.Material = "Neon"
  5328. expart.BrickColor = bc("White")
  5329. expart.CFrame = par.CFrame
  5330. partMesh2.Scale = vt(rad,rad,rad)
  5331. expart2.Size = vt(1.15,1.15,1.15)
  5332. expart2.Transparency = 0.5
  5333. expart2.Anchored = true
  5334. expart2.Material = "Neon"
  5335. expart2.BrickColor = par.BrickColor
  5336. expart2.CFrame = par.CFrame
  5337. expart.CanCollide = false
  5338. expart2.CanCollide = false
  5339. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  5340. local value = 1*rad/6.5
  5341. for i = 0, 75 do
  5342. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  5343. expart.CFrame = expart.CFrame
  5344. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  5345. expart2.CFrame = expart.CFrame
  5346. value = value - 0.035*rad/5
  5347. if value < 0 then
  5348. value = 0
  5349. expart.Transparency = expart.Transparency + 0.05
  5350. expart2.Transparency = expart2.Transparency + 0.05
  5351. end
  5352. swait()
  5353. end
  5354. game:GetService("Debris"):AddItem(expart, 1)
  5355. game:GetService("Debris"):AddItem(expart2, 1)
  5356. end
  5357.  
  5358. function AreaDanger(rad,par,mindam,maxdam)
  5359. local expart = Instance.new("Part",char)
  5360. local partMesh = Instance.new("SpecialMesh",expart)
  5361. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  5362. partMesh.MeshType = "Sphere"
  5363. partMesh.Scale = vt(rad,rad,rad)
  5364. expart.Size = vt(1,1,1)
  5365. expart.Transparency = 0.5
  5366. expart.Anchored = true
  5367. expart.Material = "Neon"
  5368. expart.CanCollide = false
  5369. expart.BrickColor = par.BrickColor
  5370. expart.CFrame = par.CFrame
  5371. local value = 1*rad/5
  5372. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  5373. for i = 0, 14 do
  5374. wait()
  5375. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  5376. expart.CFrame = expart.CFrame
  5377. value = value - 0.035*rad
  5378. if value < 0 then
  5379. value = 0
  5380. end
  5381. end
  5382. wait(0.25)
  5383. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  5384. wait(0.5)
  5385. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  5386. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  5387. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  5388. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  5389. for i = 0, 14 do
  5390. wait()
  5391. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  5392. expart.CFrame = expart.CFrame
  5393. value = value - 0.035*rad/2
  5394. end
  5395. expart.Transparency = 1
  5396. game:GetService("Debris"):AddItem(expart, 5)
  5397. end
  5398.  
  5399. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  5400. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  5401. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  5402. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  5403. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  5404. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  5405. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  5406. for i = 0, 24 do
  5407. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  5408. end
  5409. for i = 0, 24 do
  5410. local expart = Instance.new("Part",char)
  5411. expart.Transparency = 1
  5412. expart.Anchored = true
  5413. expart.CanCollide = false
  5414. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  5415. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  5416. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  5417. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  5418. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  5419. for i = 0, 9 do
  5420. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  5421. end
  5422. game:GetService("Debris"):AddItem(expart, 2)
  5423. wait(0.1)
  5424. end
  5425. end
  5426.  
  5427. function EXterPlosion(par)
  5428. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  5429. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  5430. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  5431. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  5432. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  5433. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  5434. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  5435. for i = 0, 24 do
  5436. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  5437. end
  5438. for i = 0, 24 do
  5439. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  5440. end
  5441. end
  5442. ----
  5443.  
  5444.  
  5445. function ring(type,pos,scale,value)
  5446. local type = type
  5447. local rng = Instance.new("Part", char)
  5448. rng.Anchored = true
  5449. rng.BrickColor = origcolor
  5450. rng.CanCollide = false
  5451. rng.FormFactor = 3
  5452. rng.Name = "Ring"
  5453. rng.Size = Vector3.new(1, 1, 1)
  5454. rng.Transparency = 0
  5455. rng.TopSurface = 0
  5456. rng.BottomSurface = 0
  5457. rng.CFrame = pos
  5458. local rngm = Instance.new("SpecialMesh", rng)
  5459. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5460. rngm.Scale = scale
  5461. local scaler2 = 1
  5462. if type == "Add" then
  5463. scaler2 = 1*value
  5464. elseif type == "Divide" then
  5465. scaler2 = 1/value
  5466. end
  5467. coroutine.resume(coroutine.create(function()
  5468. for i = 0,10,0.1 do
  5469. swait()
  5470. if type == "Add" then
  5471. scaler2 = scaler2 - 0.01*value
  5472. elseif type == "Divide" then
  5473. scaler2 = scaler2 - 0.01/value
  5474. end
  5475. rng.Transparency = rng.Transparency + 0.01
  5476. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  5477. end
  5478. rng:Destroy()
  5479. end))
  5480. end
  5481.  
  5482. function ring2(type,pos,scale,value,color)
  5483. local type = type
  5484. local rng = Instance.new("Part", char)
  5485. rng.Anchored = true
  5486. rng.BrickColor = color
  5487. rng.CanCollide = false
  5488. rng.FormFactor = 3
  5489. rng.Name = "Ring"
  5490. rng.Size = Vector3.new(1, 1, 1)
  5491. rng.Transparency = 0
  5492. rng.TopSurface = 0
  5493. rng.BottomSurface = 0
  5494. rng.CFrame = pos
  5495. local rngm = Instance.new("SpecialMesh", rng)
  5496. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5497. rngm.Scale = scale
  5498. local scaler2 = 1
  5499. if type == "Add" then
  5500. scaler2 = 1*value
  5501. elseif type == "Divide" then
  5502. scaler2 = 1/value
  5503. end
  5504. coroutine.resume(coroutine.create(function()
  5505. for i = 0,10,0.1 do
  5506. swait()
  5507. if type == "Add" then
  5508. scaler2 = scaler2 - 0.01*value
  5509. elseif type == "Divide" then
  5510. scaler2 = scaler2 - 0.01/value
  5511. end
  5512. rng.Transparency = rng.Transparency + 0.01
  5513. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  5514. end
  5515. rng:Destroy()
  5516. end))
  5517. end
  5518.  
  5519.  
  5520. function wave(type,pos,scale,value)
  5521. local type = type
  5522. local rng = Instance.new("Part", char)
  5523. rng.Anchored = true
  5524. rng.BrickColor = origcolor
  5525. rng.CanCollide = false
  5526. rng.FormFactor = 3
  5527. rng.Name = "Ring"
  5528. rng.Size = Vector3.new(1, 1, 1)
  5529. rng.Transparency = 0
  5530. rng.TopSurface = 0
  5531. rng.BottomSurface = 0
  5532. rng.CFrame = pos
  5533. local rngm = Instance.new("SpecialMesh", rng)
  5534. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  5535. rngm.Scale = scale
  5536. local scaler2 = 1
  5537. if type == "Add" then
  5538. scaler2 = 1*value
  5539. elseif type == "Divide" then
  5540. scaler2 = 1/value
  5541. end
  5542. coroutine.resume(coroutine.create(function()
  5543. for i = 0,10,0.1 do
  5544. swait()
  5545. if type == "Add" then
  5546. scaler2 = scaler2 - 0.01*value
  5547. elseif type == "Divide" then
  5548. scaler2 = scaler2 - 0.01/value
  5549. end
  5550. rng.Transparency = rng.Transparency + 0.01
  5551. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  5552. end
  5553. rng:Destroy()
  5554. end))
  5555. end
  5556.  
  5557. function wave2(type,pos,scale,value,color)
  5558. local type = type
  5559. local rng = Instance.new("Part", char)
  5560. rng.Anchored = true
  5561. rng.BrickColor = color
  5562. rng.CanCollide = false
  5563. rng.FormFactor = 3
  5564. rng.Name = "Ring"
  5565. rng.Size = Vector3.new(1, 1, 1)
  5566. rng.Transparency = 0
  5567. rng.TopSurface = 0
  5568. rng.BottomSurface = 0
  5569. rng.CFrame = pos
  5570. local rngm = Instance.new("SpecialMesh", rng)
  5571. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  5572. rngm.Scale = scale
  5573. local scaler2 = 1
  5574. if type == "Add" then
  5575. scaler2 = 1*value
  5576. elseif type == "Divide" then
  5577. scaler2 = 1/value
  5578. end
  5579. coroutine.resume(coroutine.create(function()
  5580. for i = 0,10,0.1 do
  5581. swait()
  5582. if type == "Add" then
  5583. scaler2 = scaler2 - 0.01*value
  5584. elseif type == "Divide" then
  5585. scaler2 = scaler2 - 0.01/value
  5586. end
  5587. rng.Transparency = rng.Transparency + 0.01
  5588. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  5589. end
  5590. rng:Destroy()
  5591. end))
  5592. end
  5593.  
  5594.  
  5595. function wind(type,pos,scale,value,speed)
  5596. local type = type
  5597. local rng = Instance.new("Part", char)
  5598. rng.Anchored = true
  5599. rng.BrickColor = origcolor
  5600. rng.CanCollide = false
  5601. rng.FormFactor = 3
  5602. rng.Name = "Ring"
  5603. rng.Size = Vector3.new(1, 1, 1)
  5604. rng.Transparency = 0
  5605. rng.TopSurface = 0
  5606. rng.BottomSurface = 0
  5607. rng.CFrame = pos
  5608. local rngm = Instance.new("SpecialMesh", rng)
  5609. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  5610. rngm.Scale = scale
  5611. local scaler2 = 1
  5612. if type == "Add" then
  5613. scaler2 = 1*value
  5614. elseif type == "Divide" then
  5615. scaler2 = 1/value
  5616. end
  5617. coroutine.resume(coroutine.create(function()
  5618. for i = 0,10,0.1 do
  5619. swait()
  5620. if type == "Add" then
  5621. scaler2 = scaler2 - 0.01*value
  5622. elseif type == "Divide" then
  5623. scaler2 = scaler2 - 0.01/value
  5624. end
  5625. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  5626. rng.Transparency = rng.Transparency + 0.01
  5627. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  5628. end
  5629. rng:Destroy()
  5630. end))
  5631. end
  5632.  
  5633. function groundwind(type,pos,scale,value,speed)
  5634. local type = type
  5635. local rng = Instance.new("Part", char)
  5636. rng.Anchored = true
  5637. rng.BrickColor = origcolor
  5638. rng.CanCollide = false
  5639. rng.FormFactor = 3
  5640. rng.Name = "Ring"
  5641. rng.Size = Vector3.new(1, 1, 1)
  5642. rng.Transparency = 0
  5643. rng.TopSurface = 0
  5644. rng.BottomSurface = 0
  5645. rng.CFrame = pos
  5646. local rngm = Instance.new("SpecialMesh", rng)
  5647. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  5648. rngm.Scale = scale
  5649. local scaler2 = 1
  5650. if type == "Add" then
  5651. scaler2 = 1*value
  5652. elseif type == "Divide" then
  5653. scaler2 = 1/value
  5654. end
  5655. coroutine.resume(coroutine.create(function()
  5656. for i = 0,10,0.1 do
  5657. swait()
  5658. if type == "Add" then
  5659. scaler2 = scaler2 - 0.01*value
  5660. elseif type == "Divide" then
  5661. scaler2 = scaler2 - 0.01/value
  5662. end
  5663. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  5664. rng.Transparency = rng.Transparency + 0.01
  5665. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  5666. end
  5667. rng:Destroy()
  5668. end))
  5669. end
  5670.  
  5671. function sphere(type,pos,scale,value)
  5672. local type = type
  5673. local rng = Instance.new("Part", char)
  5674. rng.Anchored = true
  5675. rng.BrickColor = origcolor
  5676. rng.CanCollide = false
  5677. rng.FormFactor = 3
  5678. rng.Name = "Ring"
  5679. rng.Material = "Neon"
  5680. rng.Size = Vector3.new(1, 1, 1)
  5681. rng.Transparency = 0
  5682. rng.TopSurface = 0
  5683. rng.BottomSurface = 0
  5684. rng.CFrame = pos
  5685. local rngm = Instance.new("SpecialMesh", rng)
  5686. rngm.MeshType = "Sphere"
  5687. rngm.Scale = scale
  5688. local scaler2 = 1
  5689. if type == "Add" then
  5690. scaler2 = 1*value
  5691. elseif type == "Divide" then
  5692. scaler2 = 1/value
  5693. end
  5694. coroutine.resume(coroutine.create(function()
  5695. for i = 0,10,0.1 do
  5696. swait()
  5697. if type == "Add" then
  5698. scaler2 = scaler2 - 0.01*value
  5699. elseif type == "Divide" then
  5700. scaler2 = scaler2 - 0.01/value
  5701. end
  5702. rng.Transparency = rng.Transparency + 0.01
  5703. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  5704. end
  5705. rng:Destroy()
  5706. end))
  5707. end
  5708.  
  5709. function beam(type,pos,scale,value)
  5710. local type = type
  5711. local rng = Instance.new("Part", char)
  5712. rng.Anchored = true
  5713. rng.BrickColor = origcolor
  5714. rng.CanCollide = false
  5715. rng.FormFactor = 3
  5716. rng.Name = "Ring"
  5717. rng.Material = "Neon"
  5718. rng.Size = Vector3.new(1, 1, 1)
  5719. rng.Transparency = 0
  5720. rng.TopSurface = 0
  5721. rng.BottomSurface = 0
  5722. rng.CFrame = pos
  5723. local rngm = Instance.new("SpecialMesh", rng)
  5724. rngm.MeshType = "Sphere"
  5725. rngm.Scale = scale
  5726. rngm.Scale = rngm.Scale + Vector3.new(0,10000,0)
  5727. local scaler2 = 0.5
  5728. if type == "Add" then
  5729. scaler2 = 0.5*value
  5730. elseif type == "Divide" then
  5731. scaler2 = 0.5/value
  5732. end
  5733. coroutine.resume(coroutine.create(function()
  5734. for i = 0,10,0.1 do
  5735. swait()
  5736. if type == "Add" then
  5737. scaler2 = scaler2 - 0.01*value
  5738. elseif type == "Divide" then
  5739. scaler2 = scaler2 - 0.01/value
  5740. end
  5741. rng.Transparency = rng.Transparency + 0.01
  5742. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  5743. end
  5744. rng:Destroy()
  5745. end))
  5746. end
  5747. local dashing = false
  5748. local OriginalWalkspeed = hum.WalkSpeed
  5749. local equipped = false
  5750. -- Functions are ready.
  5751. function equipanim()
  5752. attack = true
  5753. for i = 0,2,0.1 do
  5754.  
  5755. swait()
  5756. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  5757. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.2)
  5758. RW.C0 = clerp(RW.C0, CFrame.new(1.75, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(100)), 0.2)
  5759. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  5760. end
  5761. attack = false
  5762. hum.WalkSpeed = 10
  5763. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5764. wepweld.Part0 = rarm
  5765. equipped = true
  5766. end
  5767. function unequipanim()
  5768. attack = true
  5769. for i = 0,2,0.1 do
  5770.  
  5771. swait()
  5772. wepweld.C1 = clerp(wepweld.C1,cf(0,-1,0)* angles(math.rad(220),math.rad(0),math.rad(0)),0.2)
  5773. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  5774. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.2)
  5775. RW.C0 = clerp(RW.C0, CFrame.new(1.75, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(100)), 0.2)
  5776. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  5777. end
  5778. attack = false
  5779. hum.WalkSpeed = OriginalWalkspeed
  5780. wepweld.C1 = clerp(wepweld.C1,cf(1,0,-4)* angles(math.rad(20),math.rad(-90),math.rad(0)),1)
  5781. wepweld.Part0 = tors
  5782. equipped = false
  5783. end
  5784.  
  5785. ----------- attacks
  5786. function attackone()
  5787. attack = true
  5788. for i = 0,3,0.1 do
  5789.  
  5790. swait()
  5791. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  5792. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.1)
  5793. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.1)
  5794. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(100), math.rad(100)), 0.1)
  5795. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.1)
  5796. end
  5797. CFuncs["Sound"].Create("rbxassetid://231917961", hitbox, 1, 1)
  5798. local con = hitbox.Touched:connect(function(hit)
  5799. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  5800. end)
  5801. for i = 0,3,0.1 do
  5802.  
  5803. swait()
  5804. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  5805. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-60)),0.2)
  5806. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(60)),.2)
  5807. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(60)), 0.2)
  5808. LW.C0 = clerp(LW.C0, CFrame.new(-0.25, 0.5, -0.75) * angles(math.rad(40), math.rad(0), math.rad(50)), 0.2)
  5809. end
  5810. con:disconnect()
  5811. attack = false
  5812. end
  5813.  
  5814. function attacktwo()
  5815. attack = true
  5816. for i = 0,3,0.1 do
  5817.  
  5818. swait()
  5819. wepweld.C1 = clerp(wepweld.C1,cf(0,-1,0)* angles(math.rad(180),math.rad(0),math.rad(0)),0.1)
  5820. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),0.1)
  5821. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(40)),.1)
  5822. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(100), math.rad(70)), 0.1)
  5823. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.1)
  5824. end
  5825. CFuncs["Sound"].Create("rbxassetid://231917950", hitbox, 1, 1)
  5826. local con = hitbox.Touched:connect(function(hit)
  5827. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  5828. end)
  5829. for i = 0,3,0.1 do
  5830.  
  5831. swait()
  5832. wepweld.C1 = clerp(wepweld.C1,cf(0,-1,0)* angles(math.rad(180),math.rad(0),math.rad(0)),0.2)
  5833. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.2)
  5834. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.2)
  5835. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.75) * angles(math.rad(0), math.rad(130), math.rad(100)), 0.2)
  5836. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(50)), 0.2)
  5837. end
  5838. con:disconnect()
  5839. attack = false
  5840. end
  5841.  
  5842. function attackthree()
  5843. attack = true
  5844. for i = 0,3,0.1 do
  5845.  
  5846. swait()
  5847. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  5848. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-100)),0.1)
  5849. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(100)),.1)
  5850. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(60)), 0.1)
  5851. LW.C0 = clerp(LW.C0, CFrame.new(-0.25, 0.5, -0.75) * angles(math.rad(40), math.rad(0), math.rad(50)), 0.1)
  5852. end
  5853. CFuncs["Sound"].Create("rbxassetid://231917950", hitbox, 1, 1.25)
  5854. local con = hitbox.Touched:connect(function(hit)
  5855. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  5856. end)
  5857. for i = 0,3,0.1 do
  5858.  
  5859. swait()
  5860. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(0),math.rad(0)),0.2)
  5861. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.2)
  5862. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-70)),.2)
  5863. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(80), math.rad(110)), 0.2)
  5864. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, -0.75) * angles(math.rad(120), math.rad(0), math.rad(-5)), 0.2)
  5865. end
  5866. con:disconnect()
  5867. attack = false
  5868. end
  5869.  
  5870. function attackfour()
  5871. attack = true
  5872. for i = 0,3,0.1 do
  5873.  
  5874. swait()
  5875. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),0.5)
  5876. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.1)
  5877. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  5878. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(-40)), 0.1)
  5879. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(40)), 0.1)
  5880. end
  5881. for i = 0,1,0.1 do
  5882. swait()
  5883. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  5884. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  5885. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5886. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(-40)), 0.4)
  5887. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(40)), 0.4)
  5888. end
  5889. local impact = Instance.new("Part")
  5890. impact.Parent = char
  5891. impact.BrickColor = origcolor
  5892. impact.CanCollide = false
  5893. impact.Material = "Neon"
  5894. impact.Anchored = true
  5895. impact.TopSurface = 0
  5896. impact.BottomSurface = 0
  5897. impact.Transparency = 1
  5898. impact.Size = vt(2,2,2)
  5899. impact.Position = bladt.Position
  5900. game:GetService("Debris"):AddItem(impact, 5)
  5901. CFuncs["Sound"].Create("rbxassetid://231917806", impact, 2, 1)
  5902. CFuncs["Sound"].Create("rbxassetid://231917845", impact, 1, 1)
  5903. CFuncs["Sound"].Create("rbxassetid://231917833", impact, 1, 1.5)
  5904. MagniDamage(impact, 10, 10,12, 0, "Normal")
  5905. ring2("Divide",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,0),1.5,BrickColor.new("White"))
  5906. ring2("Divide",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(5,5,0),2.5,BrickColor.new("White"))
  5907. wave2("Divide",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(5,0,5),5,BrickColor.new("White"))
  5908. for i = 0,1,0.1 do
  5909. swait()
  5910. CameraShake(10, 5)
  5911. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  5912. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  5913. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5914. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(-40)), 0.4)
  5915. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(40)), 0.4)
  5916. end
  5917. attack = false
  5918. end
  5919.  
  5920. -------- Skills
  5921. function scrollingup()
  5922. attack = true
  5923. for i = 0,3,0.1 do
  5924.  
  5925. swait()
  5926. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  5927. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(110)),0.1)
  5928. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-100)),.1)
  5929. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(70), math.rad(90)), 0.1)
  5930. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  5931. end
  5932. local con = hitbox.Touched:connect(function(hit)
  5933. Damagefunc(hitbox, hit, math.huge, math.huge, 0, "Normal", RootPart, 0.3, "0", 0.8)
  5934. end)
  5935. local bv = Instance.new("BodyVelocity")
  5936. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5937. bv.velocity = root.CFrame.lookVector*100
  5938. bv.Parent = root
  5939. CFuncs["Sound"].Create("rbxassetid://231917788", root, 2.5, 1)
  5940. CFuncs["Sound"].Create("rbxassetid://231917845", root, 2.5, 1)
  5941. CFuncs["Sound"].Create("rbxassetid://231917801", root, 1, 1)
  5942. wave2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(10,1,10),35,BrickColor.new("White"))
  5943. wave2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(10,1,10),5,BrickColor.new("White"))
  5944. ring2("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),1.5,BrickColor.new("White"))
  5945. ring2("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),1,BrickColor.new("White"))
  5946. coroutine.resume(coroutine.create(function()
  5947. wait(0.45)
  5948. bv:Destroy()
  5949. end))
  5950. for z = 0, 1 do
  5951. MagniDamage(root, 15, 13,15, 0, "Normal")
  5952. ring2("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),5,BrickColor.new("White"))
  5953. ring2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(15,15,1),25,BrickColor.new("Toothpaste"))
  5954. ring2("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(15,15,1),2.5,BrickColor.new("Toothpaste"))
  5955. for i = 0,1,0.3 do
  5956. CameraShake(6, 3)
  5957. swait()
  5958. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  5959. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-30)),0.3)
  5960. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  5961. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  5962. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  5963. end
  5964. for i = 0,1,0.3 do
  5965.  
  5966. swait()
  5967. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  5968. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  5969. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(90)),.3)
  5970. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  5971. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  5972. end
  5973. for i = 0,1,0.3 do
  5974.  
  5975. swait()
  5976. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  5977. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-180)),0.3)
  5978. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  5979. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  5980. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  5981. end
  5982. for i = 0,1,0.3 do
  5983.  
  5984. swait()
  5985. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(-5),math.rad(0)),0.3)
  5986. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-270)),0.3)
  5987. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.3)
  5988. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  5989. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  5990. end
  5991. end
  5992. attack = false
  5993. con:disconnect()
  5994. end
  5995.  
  5996. function lemmesmashyoo()
  5997. attack = true
  5998. CFuncs["Sound"].Create("rbxassetid://136007472", root, 0.75, 1.15)
  5999. sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(-25,-25,-25),1.75)
  6000. for i = 0,5,0.1 do
  6001.  
  6002. swait()
  6003. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),0.5)
  6004. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.1)
  6005. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  6006. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(-40)), 0.1)
  6007. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 1, 0) * angles(math.rad(190), math.rad(0), math.rad(40)), 0.1)
  6008. end
  6009. for i = 0,1,0.1 do
  6010. swait()
  6011. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  6012. CameraShake(8, 4)
  6013. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  6014. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  6015. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(-40)), 0.4)
  6016. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(40)), 0.4)
  6017. end
  6018. local impact = Instance.new("Part")
  6019. impact.Parent = char
  6020. impact.BrickColor = origcolor
  6021. impact.CanCollide = false
  6022. impact.Material = "Neon"
  6023. impact.Anchored = true
  6024. impact.TopSurface = 0
  6025. impact.BottomSurface = 0
  6026. impact.Transparency = 1
  6027. impact.Size = vt(2,2,2)
  6028. impact.Position = bladt.Position
  6029. game:GetService("Debris"):AddItem(impact, 5)
  6030. CFuncs["Sound"].Create("rbxassetid://157878578", impact, 1.5, 0.75)
  6031. CFuncs["Sound"].Create("rbxassetid://157878578", impact, 0.5, 0.5)
  6032. CFuncs["Sound"].Create("rbxassetid://231917806", impact, 2.25, 0.5)
  6033. CFuncs["Sound"].Create("rbxassetid://231917845", impact, 2.25, 0.5)
  6034. CFuncs["Sound"].Create("rbxassetid://231917833", impact, 2.25, 1.25)
  6035. MagniDamage(impact, 27.5, 15,17, 0, "Normal")
  6036. ring2("Add",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,0),1.25,BrickColor.new("White"))
  6037. ring2("Divide",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(5,5,0),1.5,BrickColor.new("White"))
  6038. wave2("Divide",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(5,0,5),3.5,BrickColor.new("White"))
  6039. wave2("Divide",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(15,0,15),5,BrickColor.new("White"))
  6040. ring2("Add",impact.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(0,0,0),50,BrickColor.new("Really black"))
  6041. beam("Add",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),1)
  6042. beam("Add",impact.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),1.25)
  6043. for i = 0,1,0.1 do
  6044. swait()
  6045. wepweld.C1 = clerp(wepweld.C1,cf(1,1,0)* angles(math.rad(60),math.rad(0),math.rad(-40)),0.4)
  6046. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.4)
  6047. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  6048. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(-40)), 0.4)
  6049. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.25, -0.45) * angles(math.rad(60), math.rad(0), math.rad(40)), 0.4)
  6050. end
  6051. attack = false
  6052. end
  6053. ---
  6054.  
  6055. local attacktype = 1
  6056. mouse.Button1Down:connect(function()
  6057. if equipped == true then
  6058. if attack == false and attacktype == 1 then
  6059. attacktype = 2
  6060. attackone()
  6061. elseif attack == false and attacktype == 2 then
  6062. attacktype = 3
  6063. attacktwo()
  6064. elseif attack == false and attacktype == 3 then
  6065. attacktype = 4
  6066. attackthree()
  6067. elseif attack == false and attacktype == 4 then
  6068. attacktype = 1
  6069. attackfour()
  6070. end
  6071. end
  6072. end)
  6073. mouse.KeyDown:connect(function(k)
  6074. if k == "f" and attack == false and equipped == false then
  6075. equipanim()
  6076. elseif k == "f" and attack == false and equipped == true then
  6077. unequipanim()
  6078. end
  6079. if equipped == true then
  6080. if k == "z" and attack == false then
  6081. scrollingup()
  6082. end
  6083. if k == "x" and attack == false then
  6084. lemmesmashyoo()
  6085. end
  6086. end
  6087. end)
  6088. Humanoid.Animator.Parent = nil
  6089. idleanim=.4
  6090. while true do
  6091. swait()
  6092. sine = sine + change
  6093. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6094. local velderp=RootPart.Velocity.y
  6095. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6096. if equipped==true or equipped==false then
  6097. if attack==false then
  6098. idle=idle+1
  6099. else
  6100. idle=0
  6101. end
  6102. if idle>=500 then
  6103. if attack==false then
  6104. end
  6105. end
  6106. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6107. Anim="Jump"
  6108. if attack==false then
  6109. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  6110. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  6111. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  6112. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6113. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  6114. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  6115. if equipped == true then
  6116. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(-10),math.rad(180),math.rad(0)),0.1)
  6117. end
  6118. end
  6119. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6120. Anim="Fall"
  6121. if attack==false then
  6122. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  6123. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  6124. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6125. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6126. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  6127. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  6128. if equipped == true then
  6129. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(-10),math.rad(180),math.rad(0)),0.1)
  6130. end
  6131. end
  6132. elseif torvel<1 and hitfloor~=nil then
  6133. Anim="Idle"
  6134. if equipped == false then
  6135. if dashing == false then
  6136. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 100),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-15)),.1)
  6137. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 100),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  6138. end
  6139. if attack==false then
  6140. wepweld.C1 = clerp(wepweld.C1,cf(1,0,-4)* angles(math.rad(20),math.rad(-90),math.rad(0)),0.1)
  6141. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 100))*angles(math.rad(-10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 100))),.1)
  6142. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 100)),math.rad(-10),math.rad(-20 - 2.5 * math.cos(sine / 100))),.1)
  6143. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 100),0)*angles(math.rad(2.5),math.rad(0),math.rad(20 + 5 * math.cos(sine / 100))),.1)
  6144. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 100),0)*angles(math.rad(-25),math.rad(0),math.rad(-15 + 1.5 * math.cos(sine / 100))),.1)
  6145. end
  6146. elseif equipped == true then
  6147. if dashing == false then
  6148. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 100),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-15)),.1)
  6149. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 100),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  6150. end
  6151. if attack==false then
  6152. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  6153. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 100))*angles(math.rad(10),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 100))),.1)
  6154. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 100))),.1)
  6155. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 100),0)*angles(math.rad(2.5),math.rad(75),math.rad(40 + 5 * math.cos(sine / 100))),.1)
  6156. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 100),0)*angles(math.rad(60),math.rad(0),math.rad(20 + 1.5 * math.cos(sine / 100))),.1)
  6157. end
  6158. end
  6159. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  6160. Anim="Walk"
  6161. if equipped == false then
  6162. if dashing == false then
  6163. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 35 * math.cos(sine / 6))),.1)
  6164. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 35 * math.cos(sine / 6))),.1)
  6165. end
  6166. if attack==false then
  6167. wepweld.C1 = clerp(wepweld.C1,cf(1,0,-4)* angles(math.rad(20),math.rad(-90),math.rad(0)),0.1)
  6168. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6169. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6170. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(10)),.1)
  6171. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(-10)),.1)
  6172. end
  6173. elseif equipped == true then
  6174. if dashing == false then
  6175. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 35 * math.cos(sine / 12))),.1)
  6176. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 35 * math.cos(sine / 12))),.1)
  6177. end
  6178. if attack==false then
  6179. wepweld.C1 = clerp(wepweld.C1,cf(0,1,0)* angles(math.rad(20),math.rad(180),math.rad(0)),0.1)
  6180. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6181. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6182. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-10),math.rad(20),math.rad(10)),.1)
  6183. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(0),math.rad(-10)),.1)
  6184. end
  6185. end
  6186. elseif torvel>=22 and hitfloor~=nil then
  6187. Anim="Run"
  6188. if dashing == false then
  6189. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  6190. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  6191. end
  6192. if attack==false then
  6193. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  6194. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  6195. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  6196. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  6197. end
  6198. end
  6199. end
  6200. end
  6201.  
  6202. -- Prism code
  6203.  
  6204. --//====================================================\\--
  6205. --|| CREATED BY SHACKLUSTER
  6206. --\\====================================================//--
  6207.  
  6208.  
  6209.  
  6210. wait(0.2)
  6211.  
  6212.  
  6213.  
  6214. Player = game:GetService("Players").LocalPlayer
  6215. PlayerGui = Player.PlayerGui
  6216. Cam = workspace.CurrentCamera
  6217. Backpack = Player.Backpack
  6218. Character = Player.Character
  6219. Humanoid = Character.Humanoid
  6220. Mouse = Player:GetMouse()
  6221. RootPart = Character["HumanoidRootPart"]
  6222. Torso = Character["Torso"]
  6223. Head = Character["Head"]
  6224. RightArm = Character["Right Arm"]
  6225. LeftArm = Character["Left Arm"]
  6226. RightLeg = Character["Right Leg"]
  6227. LeftLeg = Character["Left Leg"]
  6228. RootJoint = RootPart["RootJoint"]
  6229. Neck = Torso["Neck"]
  6230. RightShoulder = Torso["Right Shoulder"]
  6231. LeftShoulder = Torso["Left Shoulder"]
  6232. RightHip = Torso["Right Hip"]
  6233. LeftHip = Torso["Left Hip"]
  6234. local sick = Instance.new("Sound",Character)
  6235. sick.SoundId = "rbxassetid://1167151479"
  6236. sick.Looped = true
  6237. sick.Pitch = 1
  6238. sick.Volume = 1
  6239. sick:Play()
  6240.  
  6241. local naeeym2 = Instance.new("BillboardGui",Character)
  6242. naeeym2.AlwaysOnTop = true
  6243. naeeym2.Size = UDim2.new(5,35,2,35)
  6244. naeeym2.StudsOffset = Vector3.new(0,3,0)
  6245. naeeym2.Adornee = Character.Head
  6246. naeeym2.Name = "Name"
  6247. --naeeym2.PlayerToHideFrom = Player
  6248. naeeym2.MaxDistance = 200
  6249. local tecks2 = Instance.new("TextLabel",naeeym2)
  6250. tecks2.BackgroundTransparency = 1
  6251. tecks2.TextScaled = true
  6252. tecks2.BorderSizePixel = 0
  6253. tecks2.Text = "??l??"
  6254. tecks2.Font = "SciFi"
  6255. tecks2.TextSize = 30
  6256. tecks2.TextStrokeTransparency = 1
  6257. tecks2.TextColor3 = Color3.new(255,255,255)
  6258. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  6259. tecks2.Size = UDim2.new(1,0,0.5,0)
  6260. tecks2.Parent = naeeym2
  6261.  
  6262. IT = Instance.new
  6263. CF = CFrame.new
  6264. VT = Vector3.new
  6265. RAD = math.rad
  6266. C3 = Color3.new
  6267. UD2 = UDim2.new
  6268. BRICKC = BrickColor.new
  6269. ANGLES = CFrame.Angles
  6270. EULER = CFrame.fromEulerAnglesXYZ
  6271. COS = math.cos
  6272. ACOS = math.acos
  6273. SIN = math.sin
  6274. ASIN = math.asin
  6275. ABS = math.abs
  6276. MRANDOM = math.random
  6277. FLOOR = math.floor
  6278.  
  6279. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  6280. local NEWMESH = IT(MESH)
  6281. if MESH == "SpecialMesh" then
  6282. NEWMESH.MeshType = MESHTYPE
  6283. if MESHID ~= "nil" and MESHID ~= "" then
  6284. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  6285. end
  6286. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  6287. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  6288. end
  6289. end
  6290. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  6291. NEWMESH.Scale = SCALE
  6292. NEWMESH.Parent = PARENT
  6293. return NEWMESH
  6294. end
  6295.  
  6296. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  6297. local NEWPART = IT("Part")
  6298. NEWPART.formFactor = FORMFACTOR
  6299. NEWPART.Reflectance = REFLECTANCE
  6300. NEWPART.Transparency = TRANSPARENCY
  6301. NEWPART.CanCollide = false
  6302. NEWPART.Locked = true
  6303. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  6304. NEWPART.Name = NAME
  6305. NEWPART.Size = SIZE
  6306. NEWPART.Position = Torso.Position
  6307. NEWPART.Material = MATERIAL
  6308. NEWPART:BreakJoints()
  6309. NEWPART.Parent = PARENT
  6310. return NEWPART
  6311. end
  6312.  
  6313.  
  6314. --//=================================\\
  6315. --|| CUSTOMIZATION
  6316. --\\=================================//
  6317.  
  6318. Class_Name = "??l??.exe"
  6319. Weapon_Name = "Add-ons"
  6320.  
  6321. Custom_Colors = {
  6322. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  6323. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  6324.  
  6325. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  6326. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  6327. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  6328. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  6329. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  6330.  
  6331. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  6332. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  6333. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  6334. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  6335. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  6336. }
  6337.  
  6338.  
  6339. Player_Size = 1 --Size of the player.
  6340. Animation_Speed = 3
  6341. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  6342.  
  6343. local Speed = 16
  6344. local Effects2 = {}
  6345.  
  6346. --//=================================\\
  6347. --|| END OF CUSTOMIZATION
  6348. --\\=================================//
  6349.  
  6350. local function weldBetween(a, b)
  6351. local weldd = Instance.new("ManualWeld")
  6352. weldd.Part0 = a
  6353. weldd.Part1 = b
  6354. weldd.C0 = CFrame.new()
  6355. weldd.C1 = b.CFrame:inverse() * a.CFrame
  6356. weldd.Parent = a
  6357. return weldd
  6358. end
  6359.  
  6360. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  6361. local acs = Instance.new("Part")
  6362. acs.CanCollide = false
  6363. acs.Anchored = false
  6364. acs.Size = Vector3.new(0,0,0)
  6365. acs.CFrame = attachmentpart.CFrame
  6366. acs.Parent = Character
  6367. acs.BrickColor = color
  6368. local meshs = Instance.new("SpecialMesh")
  6369. meshs.MeshId = mesh
  6370. meshs.TextureId = texture
  6371. meshs.Parent = acs
  6372. meshs.Scale = scale
  6373. meshs.Offset = offset
  6374. weldBetween(attachmentpart,acs)
  6375. end
  6376.  
  6377. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  6378. if TYPE == "Gem" then
  6379. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  6380. acs.Anchored = false
  6381. acs.CanCollide = false
  6382. acs.CFrame = PART.CFrame
  6383. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  6384. weldBetween(PART,acs)
  6385. elseif TYPE == "Skull" then
  6386. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  6387. acs.Anchored = false
  6388. acs.CanCollide = false
  6389. acs.CFrame = PART.CFrame
  6390. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  6391. weldBetween(PART,acs)
  6392. elseif TYPE == "Eye" then
  6393. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  6394. acs.Anchored = false
  6395. acs.CanCollide = false
  6396. acs.CFrame = PART.CFrame
  6397. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  6398. weldBetween(PART,acs)
  6399. end
  6400. end
  6401.  
  6402. --//=================================\\
  6403. --|| USEFUL VALUES
  6404. --\\=================================//
  6405.  
  6406. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  6407. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  6408. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  6409. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  6410. local CO1 = 0
  6411. local CO2 = 0
  6412. local CO3 = 0
  6413. local CO4 = 0
  6414. local CHANGEDEFENSE = 0
  6415. local CHANGEDAMAGE = 0
  6416. local CHANGEMOVEMENT = 0
  6417. local ANIM = "Idle"
  6418. local ATTACK = false
  6419. local EQUIPPED = false
  6420. local HOLD = false
  6421. local COMBO = 1
  6422. local LASTPOINT = nil
  6423. local BLCF = nil
  6424. local SCFR = nil
  6425. local STAGGERHITANIM = false
  6426. local STAGGERANIM = false
  6427. local STUNANIM = false
  6428. local CRITCHANCENUMBER = 0
  6429. local IDLENUMBER = 0
  6430. local DONUMBER = 0
  6431. local HANDIDLE = false
  6432. local SINE = 0
  6433. local CHANGE = 2 / Animation_Speed
  6434. local WALKINGANIM = false
  6435. local WALK = 0
  6436. local KEYHOLD = false
  6437. local DISABLEJUMPING = false
  6438. local HASBEENBLOCKED = false
  6439. local STUNDELAYNUMBER = 0
  6440. local MANADELAYNUMBER = 0
  6441. local SECONDARYMANADELAYNUMBER = 0
  6442. local ROBLOXIDLEANIMATION = IT("Animation")
  6443. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  6444. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  6445. --ROBLOXIDLEANIMATION.Parent = Humanoid
  6446. local WEAPONGUI = IT("ScreenGui", nil)
  6447. WEAPONGUI.Name = "Weapon GUI"
  6448. local WEAPONTOOL = IT("HopperBin", nil)
  6449. WEAPONTOOL.Name = Weapon_Name
  6450. local Weapon = IT("Model")
  6451. Weapon.Name = Weapon_Name
  6452. local Effects = IT("Folder", Weapon)
  6453. Effects.Name = "Effects"
  6454. local ANIMATOR = Humanoid.Animator
  6455. local ANIMATE = Character.Animate
  6456. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  6457. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  6458. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  6459. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  6460. local CUTSOUNDS = {"645750958","645747150"}
  6461. local VICIOUSWOOSH = "658941933"
  6462. local RELEASESOUND = "565538688"
  6463. local CHARGESOUND = "565538601"
  6464. local UNANCHOR = true
  6465. local MAGICPARTICLE = "1229782954"
  6466.  
  6467. --//=================================\\
  6468. --\\=================================//
  6469.  
  6470. --//=================================\\
  6471. --|| STATS
  6472. --\\=================================//
  6473.  
  6474. if Character:FindFirstChild("Stats") ~= nil then
  6475. Character:FindFirstChild("Stats").Parent = nil
  6476. end
  6477.  
  6478. local Stats = IT("Folder", nil)
  6479. Stats.Name = "Stats"
  6480. local ChangeStat = IT("Folder", Stats)
  6481. ChangeStat.Name = "ChangeStat"
  6482. local Defense = IT("NumberValue", Stats)
  6483. Defense.Name = "Defense"
  6484. Defense.Value = 1
  6485. local Movement = IT("NumberValue", Stats)
  6486. Movement.Name = "Movement"
  6487. Movement.Value = 1
  6488. local Damage = IT("NumberValue", Stats)
  6489. Damage.Name = "Damage"
  6490. Damage.Value = 1
  6491. local Mana = IT("NumberValue", Stats)
  6492. Mana.Name = "Mana"
  6493. Mana.Value = 0
  6494. local SecondaryMana = IT("NumberValue", Stats)
  6495. SecondaryMana.Name = "SecondaryMana"
  6496. SecondaryMana.Value = 0
  6497. local CanCrit = IT("BoolValue", Stats)
  6498. CanCrit.Name = "CanCrit"
  6499. CanCrit.Value = false
  6500. local CritChance = IT("NumberValue", Stats)
  6501. CritChance.Name = "CritChance"
  6502. CritChance.Value = 20
  6503. local CanPenetrateArmor = IT("BoolValue", Stats)
  6504. CanPenetrateArmor.Name = "CanPenetrateArmor"
  6505. CanPenetrateArmor.Value = false
  6506. local AntiTeamKill = IT("BoolValue", Stats)
  6507. AntiTeamKill.Name = "AntiTeamKill"
  6508. AntiTeamKill.Value = false
  6509. local Rooted = IT("BoolValue", Stats)
  6510. Rooted.Name = "Rooted"
  6511. Rooted.Value = false
  6512. local Block = IT("BoolValue", Stats)
  6513. Block.Name = "Block"
  6514. Block.Value = false
  6515. local RecentEnemy = IT("ObjectValue", Stats)
  6516. RecentEnemy.Name = "RecentEnemy"
  6517. RecentEnemy.Value = nil
  6518. local StaggerHit = IT("BoolValue", Stats)
  6519. StaggerHit.Name = "StaggerHit"
  6520. StaggerHit.Value = false
  6521. local Stagger = IT("BoolValue", Stats)
  6522. Stagger.Name = "Stagger"
  6523. Stagger.Value = false
  6524. local Stun = IT("BoolValue", Stats)
  6525. Stun.Name = "Stun"
  6526. Stun.Value = false
  6527. local StunValue = IT("NumberValue", Stats)
  6528. StunValue.Name = "StunValue"
  6529. StunValue.Value = 0
  6530.  
  6531.  
  6532. --//=================================\\
  6533. --\\=================================//
  6534.  
  6535.  
  6536.  
  6537.  
  6538.  
  6539. --//=================================\\
  6540. --|| DEBUFFS / BUFFS
  6541. --\\=================================//
  6542.  
  6543. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  6544. DEFENSECHANGE1.Name = "ChangeDefense"
  6545. DEFENSECHANGE1.Value = 0
  6546.  
  6547. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  6548. MOVEMENTCHANGE1.Name = "ChangeMovement"
  6549. MOVEMENTCHANGE1.Value = 0
  6550.  
  6551. --//=================================\\
  6552. --\\=================================//
  6553.  
  6554.  
  6555.  
  6556.  
  6557.  
  6558. --//=================================\\
  6559. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  6560. --\\=================================//
  6561.  
  6562. ArtificialHB = Instance.new("BindableEvent", script)
  6563. ArtificialHB.Name = "ArtificialHB"
  6564.  
  6565. script:WaitForChild("ArtificialHB")
  6566.  
  6567. frame = Frame_Speed
  6568. tf = 0
  6569. allowframeloss = false
  6570. tossremainder = false
  6571. lastframe = tick()
  6572. script.ArtificialHB:Fire()
  6573.  
  6574. game:GetService("RunService").Heartbeat:connect(function(s, p)
  6575. tf = tf + s
  6576. if tf >= frame then
  6577. if allowframeloss then
  6578. script.ArtificialHB:Fire()
  6579. lastframe = tick()
  6580. else
  6581. for i = 1, math.floor(tf / frame) do
  6582. script.ArtificialHB:Fire()
  6583. end
  6584. lastframe = tick()
  6585. end
  6586. if tossremainder then
  6587. tf = 0
  6588. else
  6589. tf = tf - frame * math.floor(tf / frame)
  6590. end
  6591. end
  6592. end)
  6593.  
  6594. --//=================================\\
  6595. --\\=================================//
  6596.  
  6597.  
  6598.  
  6599.  
  6600.  
  6601. --//=================================\\
  6602. --|| SOME FUNCTIONS
  6603. --\\=================================//
  6604.  
  6605. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  6606. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  6607. end
  6608.  
  6609. function PositiveAngle(NUMBER)
  6610. if NUMBER >= 0 then
  6611. NUMBER = 0
  6612. end
  6613. return NUMBER
  6614. end
  6615.  
  6616. function NegativeAngle(NUMBER)
  6617. if NUMBER <= 0 then
  6618. NUMBER = 0
  6619. end
  6620. return NUMBER
  6621. end
  6622.  
  6623. function Swait(NUMBER)
  6624. if NUMBER == 0 or NUMBER == nil then
  6625. ArtificialHB.Event:wait()
  6626. else
  6627. for i = 1, NUMBER do
  6628. ArtificialHB.Event:wait()
  6629. end
  6630. end
  6631. end
  6632.  
  6633. function QuaternionFromCFrame(cf)
  6634. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  6635. local trace = m00 + m11 + m22
  6636. if trace > 0 then
  6637. local s = math.sqrt(1 + trace)
  6638. local recip = 0.5 / s
  6639. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  6640. else
  6641. local i = 0
  6642. if m11 > m00 then
  6643. i = 1
  6644. end
  6645. if m22 > (i == 0 and m00 or m11) then
  6646. i = 2
  6647. end
  6648. if i == 0 then
  6649. local s = math.sqrt(m00 - m11 - m22 + 1)
  6650. local recip = 0.5 / s
  6651. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  6652. elseif i == 1 then
  6653. local s = math.sqrt(m11 - m22 - m00 + 1)
  6654. local recip = 0.5 / s
  6655. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  6656. elseif i == 2 then
  6657. local s = math.sqrt(m22 - m00 - m11 + 1)
  6658. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  6659. end
  6660. end
  6661. end
  6662.  
  6663. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  6664. local xs, ys, zs = x + x, y + y, z + z
  6665. local wx, wy, wz = w * xs, w * ys, w * zs
  6666. local xx = x * xs
  6667. local xy = x * ys
  6668. local xz = x * zs
  6669. local yy = y * ys
  6670. local yz = y * zs
  6671. local zz = z * zs
  6672. 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))
  6673. end
  6674.  
  6675. function QuaternionSlerp(a, b, t)
  6676. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  6677. local startInterp, finishInterp;
  6678. if cosTheta >= 0.0001 then
  6679. if (1 - cosTheta) > 0.0001 then
  6680. local theta = ACOS(cosTheta)
  6681. local invSinTheta = 1 / SIN(theta)
  6682. startInterp = SIN((1 - t) * theta) * invSinTheta
  6683. finishInterp = SIN(t * theta) * invSinTheta
  6684. else
  6685. startInterp = 1 - t
  6686. finishInterp = t
  6687. end
  6688. else
  6689. if (1 + cosTheta) > 0.0001 then
  6690. local theta = ACOS(-cosTheta)
  6691. local invSinTheta = 1 / SIN(theta)
  6692. startInterp = SIN((t - 1) * theta) * invSinTheta
  6693. finishInterp = SIN(t * theta) * invSinTheta
  6694. else
  6695. startInterp = t - 1
  6696. finishInterp = t
  6697. end
  6698. end
  6699. 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
  6700. end
  6701.  
  6702. function Clerp(a, b, t)
  6703. local qa = {QuaternionFromCFrame(a)}
  6704. local qb = {QuaternionFromCFrame(b)}
  6705. local ax, ay, az = a.x, a.y, a.z
  6706. local bx, by, bz = b.x, b.y, b.z
  6707. local _t = 1 - t
  6708. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  6709. end
  6710.  
  6711. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  6712. local frame = IT("Frame")
  6713. frame.BackgroundTransparency = TRANSPARENCY
  6714. frame.BorderSizePixel = BORDERSIZEPIXEL
  6715. frame.Position = POSITION
  6716. frame.Size = SIZE
  6717. frame.BackgroundColor3 = COLOR
  6718. frame.BorderColor3 = BORDERCOLOR
  6719. frame.Name = NAME
  6720. frame.Parent = PARENT
  6721. return frame
  6722. end
  6723.  
  6724. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  6725. local label = IT("TextLabel")
  6726. label.BackgroundTransparency = 1
  6727. label.Size = UD2(1, 0, 1, 0)
  6728. label.Position = UD2(0, 0, 0, 0)
  6729. label.TextColor3 = C3(255, 255, 255)
  6730. label.TextStrokeTransparency = STROKETRANSPARENCY
  6731. label.TextTransparency = TRANSPARENCY
  6732. label.FontSize = TEXTFONTSIZE
  6733. label.Font = TEXTFONT
  6734. label.BorderSizePixel = BORDERSIZEPIXEL
  6735. label.TextScaled = true
  6736. label.Text = TEXT
  6737. label.Name = NAME
  6738. label.Parent = PARENT
  6739. return label
  6740. end
  6741.  
  6742. function NoOutlines(PART)
  6743. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  6744. end
  6745.  
  6746.  
  6747. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  6748. local NEWWELD = IT(TYPE)
  6749. NEWWELD.Part0 = PART0
  6750. NEWWELD.Part1 = PART1
  6751. NEWWELD.C0 = C0
  6752. NEWWELD.C1 = C1
  6753. NEWWELD.Parent = PARENT
  6754. return NEWWELD
  6755. end
  6756.  
  6757. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  6758. local NEWSOUND = nil
  6759. coroutine.resume(coroutine.create(function()
  6760. NEWSOUND = IT("Sound", PARENT)
  6761. NEWSOUND.Volume = VOLUME
  6762. NEWSOUND.Pitch = PITCH
  6763. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  6764. --Swait()
  6765. NEWSOUND:play()
  6766. if DOESLOOP == false then
  6767. repeat Swait() until NEWSOUND.Playing == false
  6768. NEWSOUND:remove()
  6769. elseif DOESLOOP == true then
  6770. NEWSOUND.Looped = true
  6771. end
  6772. end))
  6773. return NEWSOUND
  6774. end
  6775.  
  6776. function CFrameFromTopBack(at, top, back)
  6777. local right = top:Cross(back)
  6778. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  6779. end
  6780.  
  6781. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  6782. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  6783. local mesh = IT("SpecialMesh",wave)
  6784. mesh.MeshType = "FileMesh"
  6785. wave.Anchored = true
  6786. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  6787. mesh.Scale = VT(size,size,size)
  6788. mesh.Offset = VT(0,0,-size/8)
  6789. wave.CFrame = CF(part.p) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  6790. coroutine.resume(coroutine.create(function(PART)
  6791. for i = 1, waitt do
  6792. Swait()
  6793. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  6794. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  6795. if doesrotate == true then
  6796. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  6797. end
  6798. wave.Transparency = wave.Transparency + (0.5/waitt)
  6799. if wave.Transparency > 0.99 then
  6800. wave:remove()
  6801. end
  6802. end
  6803. end))
  6804. end
  6805.  
  6806. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  6807. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  6808. local mesh = IT("SpecialMesh",wave)
  6809. mesh.MeshType = "FileMesh"
  6810. wave.Anchored = true
  6811. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  6812. mesh.Scale = VT(size,size,size)
  6813. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  6814. coroutine.resume(coroutine.create(function(PART)
  6815. for i = 1, waitt do
  6816. Swait()
  6817. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  6818. if doesrotate == true then
  6819. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  6820. end
  6821. wave.Transparency = wave.Transparency + (0.5/waitt)
  6822. if wave.Transparency > 0.99 then
  6823. wave:remove()
  6824. end
  6825. end
  6826. end))
  6827. end
  6828.  
  6829. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
  6830. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  6831. local mesh = IT("SpecialMesh",wave)
  6832. mesh.MeshType = "FileMesh"
  6833. wave.Anchored = true
  6834. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  6835. mesh.Scale = VT(size,size,size)
  6836. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  6837. coroutine.resume(coroutine.create(function(PART)
  6838. for i = 1, waitt do
  6839. Swait()
  6840. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  6841. if doesrotate == true then
  6842. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  6843. end
  6844. wave.Transparency = wave.Transparency + (0.5/waitt)
  6845. if wave.Transparency > 0.99 then
  6846. wave:remove()
  6847. end
  6848. end
  6849. end))
  6850. end
  6851.  
  6852. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2,color)
  6853. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  6854. local mesh = IT("SpecialMesh",wave)
  6855. mesh.MeshType = "FileMesh"
  6856. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  6857. mesh.Scale = VT(size,size,size)
  6858. wave.Anchored = true
  6859. mesh.Offset = VT(0,0,0)
  6860. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  6861. coroutine.resume(coroutine.create(function(PART)
  6862. for i = 1, waitt do
  6863. Swait()
  6864. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  6865. if doesrotate == true then
  6866. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  6867. end
  6868. wave.Transparency = wave.Transparency + (0.5/waitt)
  6869. if wave.Transparency > 0.99 then
  6870. wave:remove()
  6871. end
  6872. end
  6873. end))
  6874. end
  6875.  
  6876. function MagicSphere(size,waitt,part,color)
  6877. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(0,0,0))
  6878. local mesh = IT("SpecialMesh",wave)
  6879. mesh.MeshType = "Sphere"
  6880. wave.Anchored = true
  6881. mesh.Scale = VT(size,size,size)
  6882. mesh.Offset = VT(0,0,0)
  6883. wave.CFrame = part * ANGLES(RAD(0),RAD(0),RAD(0))
  6884. coroutine.resume(coroutine.create(function(PART)
  6885. for i = 1, waitt do
  6886. Swait()
  6887. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  6888. wave.Transparency = wave.Transparency + (1/waitt)
  6889. if wave.Transparency > 0.99 then
  6890. wave:remove()
  6891. end
  6892. end
  6893. end))
  6894. end
  6895.  
  6896. function MagicBlock(size,waitt,part,offset,color)
  6897. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  6898. local mesh = IT("BlockMesh",wave)
  6899. wave.Anchored = true
  6900. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  6901. coroutine.resume(coroutine.create(function(PART)
  6902. for i = 1, waitt do
  6903. Swait()
  6904. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  6905. wave.CFrame = CF(wave.Position) * ANGLES(RAD(math(-360,360)),RAD(math(-360,360)),RAD(math(-360,360)))
  6906. wave.Transparency = wave.Transparency + (1/waitt)
  6907. if wave.Transparency > 0.99 then
  6908. wave:remove()
  6909. end
  6910. end
  6911. end))
  6912. end
  6913.  
  6914. local EyeSizes={
  6915. NumberSequenceKeypoint.new(0,0.5,0),
  6916. NumberSequenceKeypoint.new(1,0.2,0)
  6917. }
  6918. local EyeTrans={
  6919. NumberSequenceKeypoint.new(0,0,0),
  6920. NumberSequenceKeypoint.new(1,1,0)
  6921. }
  6922. local PE=Instance.new("ParticleEmitter")
  6923. PE.LightEmission=0.3
  6924. PE.Size=NumberSequence.new(EyeSizes)
  6925. PE.Transparency=NumberSequence.new(EyeTrans)
  6926. PE.Rotation=NumberRange.new(0,360)
  6927. PE.LockedToPart = false
  6928. PE.Speed = NumberRange.new(0,0,0)
  6929. PE.ZOffset = 0.3
  6930. PE.Rate = 999
  6931. PE.Name = "Particles"
  6932.  
  6933. function CreateParticles(art,text,accel,drag,lifetime,type,isenabledbydefault,locked)
  6934. local particle = nil
  6935. coroutine.resume(coroutine.create(function(PART)
  6936. particle = PE:Clone()
  6937. Swait()
  6938. particle.Rate = 999
  6939. particle.Parent = art
  6940. particle.Acceleration = accel
  6941. if type == "Fire" then
  6942. local EyeSizes={
  6943. NumberSequenceKeypoint.new(0,0.5,0.3),
  6944. NumberSequenceKeypoint.new(1,0.2,0.2)
  6945. }
  6946. particle.Size = NumberSequence.new(EyeSizes)
  6947. elseif type == "Smoke" then
  6948. local EyeSizes={
  6949. NumberSequenceKeypoint.new(0,0.5,0),
  6950. NumberSequenceKeypoint.new(1,5,0.5)
  6951. }
  6952. particle.Size = NumberSequence.new(EyeSizes)
  6953. elseif type == "Solid" then
  6954. local EyeSizes={
  6955. NumberSequenceKeypoint.new(0,0.5,0),
  6956. NumberSequenceKeypoint.new(1,0.5,0)
  6957. }
  6958. particle.Size = NumberSequence.new(EyeSizes)
  6959. end
  6960. particle.Lifetime=NumberRange.new(lifetime)
  6961. particle.Drag = drag
  6962. if locked == true then
  6963. particle.LockedToPart = true
  6964. end
  6965. particle.Texture = "http://www.roblox.com/asset/?id="..text
  6966. particle.Enabled = isenabledbydefault
  6967. end))
  6968. return particle
  6969. end
  6970.  
  6971. local EyeSizes={
  6972. NumberSequenceKeypoint.new(0,0.5,0),
  6973. NumberSequenceKeypoint.new(1,0.2,0)
  6974. }
  6975. local EyeTrans={
  6976. NumberSequenceKeypoint.new(0,0,0),
  6977. NumberSequenceKeypoint.new(1,1,0)
  6978. }
  6979. local PE2=Instance.new("ParticleEmitter")
  6980. PE2.LightEmission=0.8
  6981. PE2.Size=NumberSequence.new(EyeSizes)
  6982. PE2.Transparency=NumberSequence.new(EyeTrans)
  6983. PE2.Rotation=NumberRange.new(0,360)
  6984. PE2.LockedToPart = false
  6985. PE2.Speed = NumberRange.new(0,0,0)
  6986. PE2.ZOffset = 0.3
  6987. PE2.Rate = 999
  6988. PE2.VelocitySpread = 90000
  6989. PE2.Name = "Particles"
  6990.  
  6991. function CreateParticles2(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed)
  6992. local particle = nil
  6993. coroutine.resume(coroutine.create(function(PART)
  6994. particle = PE2:Clone()
  6995. Swait()
  6996. particle.Rate = 999
  6997. particle.Parent = art
  6998. particle.Acceleration = accel
  6999. if type == "Fire" then
  7000. local EyeSizes={
  7001. NumberSequenceKeypoint.new(0,size,size/2),
  7002. NumberSequenceKeypoint.new(1,size/4,size/8)
  7003. }
  7004. particle.Size = NumberSequence.new(EyeSizes)
  7005. elseif type == "Smoke" then
  7006. local EyeSizes={
  7007. NumberSequenceKeypoint.new(0,0.5,0),
  7008. NumberSequenceKeypoint.new(1,5,0.5)
  7009. }
  7010. particle.Size = NumberSequence.new(EyeSizes)
  7011. elseif type == "Solid" then
  7012. local EyeSizes={
  7013. NumberSequenceKeypoint.new(0,0.5,0),
  7014. NumberSequenceKeypoint.new(1,0.5,0)
  7015. }
  7016. particle.Size = NumberSequence.new(EyeSizes)
  7017. end
  7018. particle.Lifetime=NumberRange.new(lifetime)
  7019. particle.Drag = drag
  7020. if locked == true then
  7021. particle.LockedToPart = true
  7022. end
  7023. particle.Speed = NumberRange.new(speed,speed,speed)
  7024. particle.Texture = "http://www.roblox.com/asset/?id="..MAGICPARTICLE
  7025. particle.Enabled = isenabledbydefault
  7026. --particle.Color = ColorSequence.new(Color3.new(255, 255, 255))
  7027. end))
  7028. return particle
  7029. end
  7030.  
  7031. local Decal = IT("Decal")
  7032.  
  7033. function CreateMagicCircle(size,doesrotate,rotatedirection,waitt,cframe,alwaysfade)
  7034. local sinkhole = IT("Part")
  7035. sinkhole.Size = VT(size,0,size)
  7036. sinkhole.CFrame = cframe
  7037. --sinkhole.Orientation = VT(0,0,0)
  7038. sinkhole.Parent = Effects
  7039. sinkhole.Material = "Neon"
  7040. sinkhole.Color = C3(255, 255, 255)
  7041. sinkhole.Anchored = true
  7042. sinkhole.CanCollide = false
  7043. sinkhole.Transparency = 1
  7044. local decal = Decal:Clone()
  7045. decal.Parent = sinkhole
  7046. decal.Face = "Top"
  7047. decal.Texture = "http://www.roblox.com/asset/?id=1226241606"
  7048. local decal2 = Decal:Clone()
  7049. decal2.Parent = sinkhole
  7050. decal2.Face = "Bottom"
  7051. decal2.Texture = "http://www.roblox.com/asset/?id=1226241606"
  7052. coroutine.resume(coroutine.create(function(PART)
  7053. for i = 1, waitt do
  7054. Swait()
  7055. if doesrotate == true then
  7056. sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  7057. end
  7058. if alwaysfade == true then
  7059. decal.Transparency = decal.Transparency + (1/waitt)
  7060. decal2.Transparency = decal.Transparency + (1/waitt)
  7061. end
  7062. if i > waitt-11 and (alwaysfade ~= true) then
  7063. decal.Transparency = decal.Transparency + 0.1
  7064. decal2.Transparency = decal.Transparency + 0.1
  7065. end
  7066. end
  7067. sinkhole.Parent = nil
  7068. end))
  7069. return sinkhole
  7070. end
  7071.  
  7072. --//=================================\\
  7073. --\\=================================//
  7074.  
  7075.  
  7076. --//=================================\\
  7077. --|| WEAPON CREATION
  7078. --\\=================================//
  7079.  
  7080. if Player_Size ~= 1 then
  7081. for _, v in pairs (Weapon:GetChildren()) do
  7082. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  7083. local p1 = v.Part1
  7084. v.Part1 = nil
  7085. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  7086. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  7087. v.Part1 = p1
  7088. elseif v.ClassName == "Part" then
  7089. for _, b in pairs (v:GetChildren()) do
  7090. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  7091. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  7092. end
  7093. end
  7094. end
  7095. end
  7096. end
  7097.  
  7098. Swait()
  7099.  
  7100. local Plate = IT("Part",Weapon)
  7101. Plate.Size = VT(1,0.1,1)
  7102. Plate.Transparency = 1
  7103. Plate.CanCollide = false
  7104. Plate.CFrame = LeftLeg.CFrame * CF(0,-1.1,0)
  7105. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  7106. weldBetween(LeftLeg,Plate)
  7107.  
  7108. local Plate = IT("Part",Weapon)
  7109. Plate.Size = VT(1,0.1,1)
  7110. Plate.Transparency = 1
  7111. Plate.CanCollide = false
  7112. Plate.CFrame = RightLeg.CFrame * CF(0,-1.1,0)
  7113. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  7114. weldBetween(RightLeg,Plate)
  7115.  
  7116. local Plate = IT("Part",Weapon)
  7117. Plate.Size = VT(1,0.1,1)
  7118. Plate.Transparency = 1
  7119. Plate.CanCollide = false
  7120. Plate.CFrame = RightArm.CFrame * CF(0,-1.1,0)
  7121. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  7122. weldBetween(RightArm,Plate)
  7123.  
  7124. local Plate = IT("Part",Weapon)
  7125. Plate.Size = VT(1,0.1,1)
  7126. Plate.Transparency = 1
  7127. Plate.CanCollide = false
  7128. Plate.CFrame = LeftArm.CFrame * CF(0,-1.1,0)
  7129. CreateParticles(Plate,MAGICPARTICLE,VT(0,2,0),2,2,"Fire",true,true)
  7130. weldBetween(LeftArm,Plate)
  7131.  
  7132. local eye = IT("Part",Weapon)
  7133. eye.Size = VT(0.2,0.2,0.2)
  7134. eye.Shape = "Ball"
  7135. eye.CFrame = Head.CFrame * CF(0.125,0.2,-0.55)
  7136. eye.Material = "Neon"
  7137. eye.BrickColor = BRICKC("Institutional white")
  7138. weldBetween(Head,eye)
  7139.  
  7140.  
  7141.  
  7142. for _, c in pairs(Weapon:GetChildren()) do
  7143. if c.ClassName == "Part" then
  7144. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  7145. end
  7146. end
  7147.  
  7148. Weapon.Parent = Character
  7149.  
  7150. Humanoid.Died:connect(function()
  7151. ATTACK = true
  7152. end)
  7153.  
  7154. print(Class_Name.." loaded.")
  7155.  
  7156. --//=================================\\
  7157. --\\=================================//
  7158.  
  7159.  
  7160.  
  7161.  
  7162.  
  7163. --//=================================\\
  7164. --|| DAMAGE FUNCTIONS
  7165. --\\=================================//
  7166.  
  7167. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  7168. local STATPART = CreatePart(3, Effects, "Neon", 0, 1, "Institutional white", "Effect", VT())
  7169. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  7170. local BODYGYRO = IT("BodyGyro", STATPART)
  7171. local BODYPOSITION = IT("BodyPosition", STATPART)
  7172. BODYPOSITION.P = 2000
  7173. BODYPOSITION.D = 100
  7174. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  7175. if LABELTYPE == "Normal" then
  7176. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  7177. elseif LABELTYPE == "Debuff" then
  7178. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  7179. elseif LABELTYPE == "Interruption" then
  7180. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  7181. end
  7182. game:GetService("Debris"):AddItem(STATPART ,5)
  7183. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  7184. BILLBOARDGUI.Adornee = STATPART
  7185. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  7186. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  7187. BILLBOARDGUI.AlwaysOnTop = false
  7188. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  7189. TEXTLABEL.BackgroundTransparency = 1
  7190. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  7191. TEXTLABEL.Text = TEXT
  7192. TEXTLABEL.Font = "SciFi"
  7193. TEXTLABEL.FontSize="Size42"
  7194. TEXTLABEL.TextColor3 = COLOR
  7195. TEXTLABEL.TextStrokeTransparency = 1
  7196. TEXTLABEL.TextScaled = true
  7197. TEXTLABEL.TextWrapped = true
  7198. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  7199. wait(0.2)
  7200. for i=1, 5 do
  7201. wait()
  7202. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  7203. end
  7204. wait(1.2)
  7205. for i=1, 5 do
  7206. wait()
  7207. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  7208. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  7209. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  7210. end
  7211. THEPART.Parent = nil
  7212. end),STATPART, BODYPOSITION, TEXTLABEL)
  7213. end
  7214.  
  7215.  
  7216. --//=================================\\
  7217. --|| DAMAGING
  7218. --\\=================================//
  7219.  
  7220. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  7221. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  7222. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  7223. local dmg = math.random(min,max)
  7224. if humanoid.Health > 0 then
  7225. if beserk == true then
  7226. humanoid.Health = 0
  7227. else
  7228. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  7229. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  7230. if math.random(1,100) < critrate+1 then
  7231. humanoid.Health = humanoid.Health - dmg*critmultiplier
  7232. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  7233. else
  7234. humanoid.Health = humanoid.Health - dmg
  7235. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  7236. end
  7237. local defence = Instance.new("BoolValue",hit.Parent)
  7238. defence.Name = ("HitBy"..Player.Name)
  7239. game:GetService("Debris"):AddItem(defence, 0.5)
  7240. end
  7241. end
  7242. end
  7243. end
  7244.  
  7245. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  7246. local dmg = math.random(min,max)
  7247. for i,v in ipairs(workspace:GetChildren()) do
  7248. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  7249. local body = v:GetChildren()
  7250. for part = 1, #body do
  7251. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  7252. if(body[part].Position - position).Magnitude < radius then
  7253. if v.ClassName == "Model" then
  7254. if v:FindFirstChild("Humanoid") then
  7255. if v.Humanoid.Health ~= 0 then
  7256. if CanBeDodgedByJumping == true then
  7257. if body[part].Position.Y < position.Y+5 then
  7258. if math.random(1,100) < critrate+1 then
  7259. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  7260. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  7261. else
  7262. v.Humanoid.Health = v.Humanoid.Health - dmg
  7263. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  7264. end
  7265. local defence = Instance.new("BoolValue",v)
  7266. defence.Name = ("HitBy"..Player.Name)
  7267. game:GetService("Debris"):AddItem(defence, 0.5)
  7268. end
  7269. else
  7270. if beserk == true then
  7271. v.Humanoid.Health = 0
  7272. end
  7273. if math.random(1,100) < critrate+1 then
  7274. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  7275. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  7276. else
  7277. v.Humanoid.Health = v.Humanoid.Health - dmg
  7278. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  7279. end
  7280. local defence = Instance.new("BoolValue",v)
  7281. defence.Name = ("HitBy"..Player.Name)
  7282. game:GetService("Debris"):AddItem(defence, 0.5)
  7283. end
  7284. end
  7285. end
  7286. end
  7287. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  7288. end
  7289. end
  7290. end
  7291. if v.ClassName == "Part" then
  7292. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  7293. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  7294. end
  7295. end
  7296. end
  7297. end
  7298. end
  7299.  
  7300. function attractnearest(postype,position,range,maxstrength,last)
  7301. if postype == "Vector" then
  7302. for i,v in ipairs(workspace:GetChildren()) do
  7303. local body = v:GetChildren()
  7304. for part = 1, #body do
  7305. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  7306. if(body[part].Position - position).Magnitude < range then
  7307. if body[part]:FindFirstChild("ATTRACT") == nil then
  7308. local bv = Instance.new("BodyVelocity")
  7309. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7310. bv.velocity = CF(body[part].Position,position).lookVector*maxstrength
  7311. bv.Parent = body[part]
  7312. bv.Name = "ATTRACT"
  7313. else
  7314. coroutine.resume(coroutine.create(function()
  7315. for i = 1, last/5 do
  7316. Swait(5)
  7317. body[part].ATTRACT.velocity = CF(body[part].Position,position).lookVector*maxstrength
  7318. end
  7319. body[part].ATTRACT:remove()
  7320. end))
  7321. end
  7322. end
  7323. end
  7324. end
  7325. if v.ClassName == "Part" then
  7326. if v.Anchored == false and (v.Position - position).Magnitude < range then
  7327. if v:FindFirstChild("ATTRACT") == nil then
  7328. local bv = Instance.new("BodyVelocity")
  7329. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7330. bv.velocity = CF(v.Position,position).lookVector*maxstrength
  7331. bv.Parent = v
  7332. bv.Name = "ATTRACT"
  7333. else
  7334. coroutine.resume(coroutine.create(function()
  7335. for i = 1, last/5 do
  7336. Swait(5)
  7337. v.ATTRACT.velocity = CF(v.Position,position).lookVector*maxstrength
  7338. end
  7339. v.ATTRACT:remove()
  7340. end))
  7341. end
  7342. end
  7343. end
  7344. end
  7345. elseif postype == "Part" then
  7346. for i,v in ipairs(workspace:GetChildren()) do
  7347. local body = v:GetChildren()
  7348. for part = 1, #body do
  7349. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  7350. if(body[part].Position - position.Position).Magnitude < range then
  7351. if body[part]:FindFirstChild("ATTRACT") == nil then
  7352. local bv = Instance.new("BodyVelocity")
  7353. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7354. bv.velocity = CF(body[part].Position,position.Position).lookVector*maxstrength
  7355. bv.Parent = body[part]
  7356. bv.Name = "ATTRACT"
  7357. else
  7358. coroutine.resume(coroutine.create(function()
  7359. for i = 1, last/5 do
  7360. Swait(5)
  7361. body[part].ATTRACT.velocity = CF(body[part].Position,position.Position).lookVector*maxstrength
  7362. end
  7363. body[part].ATTRACT:remove()
  7364. end))
  7365. end
  7366. end
  7367. end
  7368. end
  7369. if v.ClassName == "Part" then
  7370. if v.Anchored == false and (v.Position - position.Position).Magnitude < range then
  7371. if v:FindFirstChild("ATTRACT") == nil then
  7372. local bv = Instance.new("BodyVelocity")
  7373. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7374. bv.velocity = CF(v.Position,position.Position).lookVector*maxstrength
  7375. bv.Parent = v
  7376. bv.Name = "ATTRACT"
  7377. else
  7378. coroutine.resume(coroutine.create(function()
  7379. for i = 1, last/5 do
  7380. Swait(5)
  7381. v.ATTRACT.velocity = CF(v.Position,position.Position).lookVector*maxstrength
  7382. end
  7383. v.ATTRACT:remove()
  7384. end))
  7385. end
  7386. end
  7387. end
  7388. end
  7389. end
  7390. end
  7391.  
  7392. function killnearest(position,range,maxstrength,candestroy)
  7393. for i,v in ipairs(workspace:GetChildren()) do
  7394. local body = v:GetChildren()
  7395. for part = 1, #body do
  7396. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  7397. if(body[part].Position - position).Magnitude < range then
  7398. if v.ClassName == "Model" then
  7399. v:BreakJoints()
  7400. end
  7401. if candestroy == true then
  7402. table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  7403. end
  7404. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  7405. end
  7406. end
  7407. end
  7408. if v.ClassName == "Part" then
  7409. if v.Anchored == false and (v.Position - position).Magnitude < range then
  7410. if candestroy == true then
  7411. table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  7412. end
  7413. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  7414. end
  7415. end
  7416. end
  7417. end
  7418.  
  7419. --//=================================\\
  7420. --|| ATTACK FUNCTIONS AND STUFF
  7421. --\\=================================//
  7422.  
  7423. function CheckTableForString(Table, String)
  7424. for i, v in pairs(Table) do
  7425. if string.find(string.lower(String), string.lower(v)) then
  7426. return true
  7427. end
  7428. end
  7429. return false
  7430. end
  7431.  
  7432. function CheckIntangible(Hit)
  7433. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  7434. if Hit and Hit.Parent then
  7435. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  7436. return true
  7437. end
  7438. end
  7439. return false
  7440. end
  7441.  
  7442. Debris = game:GetService("Debris")
  7443.  
  7444. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  7445. local Direction = CFrame.new(StartPos, Vec).lookVector
  7446. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  7447. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  7448. if RayHit and CheckIntangible(RayHit) then
  7449. if DelayIfHit then
  7450. wait()
  7451. end
  7452. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  7453. end
  7454. return RayHit, RayPos, RayNormal
  7455. end
  7456.  
  7457. function turnto(pos)
  7458. RootPart.CFrame = CF(RootPart.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
  7459. end
  7460.  
  7461. function GraviBomb()
  7462. ATTACK = true
  7463. for i=0, 1, 0.1 / Animation_Speed do
  7464. Swait()
  7465. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  7466. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  7467. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  7468. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  7469. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  7470. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  7471. end
  7472. MagicSphere(25,25,LeftArm.CFrame*CF(0,-1,0),"Institutional white")
  7473. MagicSphere(20,25,LeftArm.CFrame*CF(0,-1,0),"Institutional white")
  7474. coroutine.resume(coroutine.create(function()
  7475. local cframe = CF(Mouse.Hit.p)
  7476. local circle = CreateMagicCircle(75,true,0.05,120,cframe,false)
  7477. for i = 1, 5 do
  7478. CreateSound(CUTSOUNDS[MRANDOM(1, #CUTSOUNDS)], Effects, 2, 1)
  7479. local sphere = IT("Part",Effects)
  7480. sphere.Shape = "Ball"
  7481. sphere.Size = VT(50,50,50)
  7482. sphere.Anchored = true
  7483. sphere.CanCollide = false
  7484. sphere.Material = "Neon"
  7485. sphere.BrickColor = BRICKC("Institutional white")
  7486. sphere.Transparency = 0
  7487. sphere.CFrame = cframe
  7488. for i = 1, 10 do
  7489. Swait(2)
  7490. attractnearest("Vector",cframe.p,75,50,10)
  7491. sphere.CFrame = cframe
  7492. sphere.Size = sphere.Size - VT(5,5,5)
  7493. sphere.CFrame = cframe
  7494. end
  7495. sphere:remove()
  7496. end
  7497. local scale = 5
  7498. coroutine.resume(coroutine.create(function()
  7499. CreateSound(RELEASESOUND, Effects, 2, 1)
  7500. MagicSphere(100,125,cframe,"Institutional white")
  7501. MagicSphere(75,125,cframe,"Institutional white")
  7502. CreateSwirl(180,6,true,0.3,225,circle,0,"Institutional white")
  7503. CreateSwirl(180,4,true,0.3,225,circle,0,"Institutional white")
  7504. CreateSwirl(180,2,true,0.3,225,circle,0,"Institutional white")
  7505. for i = 1, 15 do
  7506. Swait()
  7507. killnearest(cframe.p,25,150)
  7508. end
  7509. end))
  7510. end))
  7511. for i=0, 1, 0.1 / Animation_Speed do
  7512. Swait()
  7513. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  7514. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  7515. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  7516. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  7517. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  7518. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  7519. end
  7520. ATTACK = false
  7521. end
  7522.  
  7523. function GraviSpear()
  7524. ATTACK = true
  7525. for i=0, 1.5, 0.1 / Animation_Speed do
  7526. Swait()
  7527. turnto(Mouse.Hit.p)
  7528. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.4 / Animation_Speed)
  7529. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  7530. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  7531. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  7532. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  7533. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  7534. end
  7535. local spear = IT("Part",Effects)
  7536. spear.Anchored = true
  7537. spear.CanCollide = false
  7538. spear.Shape = "Ball"
  7539. spear.Size = VT(0,0,0)
  7540. spear.Material = "Neon"
  7541. spear.Transparency = 0.2
  7542. spear.BrickColor = BRICKC("Institutional white")
  7543. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  7544. local inner = spear:Clone()
  7545. inner.Parent = spear
  7546. inner.Size = VT(0,0,0)
  7547. inner.BrickColor = BRICKC("Institutional white")
  7548. inner.CFrame = spear.CFrame
  7549. for i = 1, 10 do
  7550. Swait()
  7551. turnto(Mouse.Hit.p)
  7552. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  7553. inner.CFrame = spear.CFrame
  7554. spear.Size = spear.Size + VT(0.4,0.4,0.4)
  7555. inner.Size = inner.Size + VT(0.35,0.35,0.35)
  7556. end
  7557. CreateParticles2(inner,VT(0,0,0),5,1,"Smoke",true,true,1,8)
  7558. MagicSphere(25,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  7559. MagicSphere(20,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  7560. CreateSound(CUTSOUNDS[MRANDOM(1, #CUTSOUNDS)], RightArm, 6, 1)
  7561. local bv = Instance.new("BodyVelocity")
  7562. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7563. bv.velocity = CF(spear.Position,Mouse.Hit.p).lookVector*65
  7564. bv.Parent = spear
  7565. bv.Name = "MOVE"
  7566. weldBetween(spear,inner)
  7567. spear.Anchored = false
  7568. inner.Anchored = false
  7569. local harm = spear.Touched:Connect(function(hit)
  7570. if hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  7571. local cframe = spear.CFrame
  7572. coroutine.resume(coroutine.create(function()
  7573. spear.Parent = nil
  7574. coroutine.resume(coroutine.create(function()
  7575. CreateSound(RELEASESOUND, Effects, 2, 1)
  7576. MagicSphere(60,125,cframe,"Institutional white")
  7577. MagicSphere(50,125,cframe,"Institutional white")
  7578. CreateSwirl(0,6,true,0.3,125,spear,0,"Institutional white")
  7579. CreateSwirl(0,4,true,0.3,125,spear,0,"Institutional white")
  7580. CreateSwirl(0,2,true,0.3,125,spear,0,"Institutional white")
  7581. for i = 1, 15 do
  7582. Swait()
  7583. killnearest(cframe.p,15,150)
  7584. end
  7585. end))
  7586. end))
  7587. end
  7588. end)
  7589. coroutine.resume(coroutine.create(function()
  7590. repeat
  7591. Swait()
  7592. CreateSwirl(0,2,true,0.3,25,spear,0,"Institutional white")
  7593. attractnearest("Part",spear,65,70,5)
  7594. until spear.Parent == nil
  7595. end))
  7596. ATTACK = false
  7597. end
  7598.  
  7599. function WarpSpear()
  7600. ATTACK = true
  7601. for i=0, 1.5, 0.1 / Animation_Speed do
  7602. Swait()
  7603. turnto(Mouse.Hit.p)
  7604. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.4 / Animation_Speed)
  7605. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  7606. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  7607. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  7608. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  7609. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  7610. end
  7611. local spear = IT("Part",Effects)
  7612. spear.Anchored = true
  7613. spear.CanCollide = false
  7614. spear.Shape = "Ball"
  7615. spear.Size = VT(0,0,0)
  7616. spear.Material = "Neon"
  7617. spear.Transparency = 0.2
  7618. spear.BrickColor = BRICKC("Institutional white")
  7619. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  7620. local inner = spear:Clone()
  7621. inner.Parent = spear
  7622. inner.Size = VT(0,0,0)
  7623. inner.BrickColor = BRICKC("Institutional white")
  7624. inner.CFrame = spear.CFrame
  7625. for i = 1, 5 do
  7626. Swait()
  7627. turnto(Mouse.Hit.p)
  7628. spear.CFrame = RightArm.CFrame * CF(0,-4,0)
  7629. inner.CFrame = spear.CFrame
  7630. spear.Size = spear.Size + VT(0.4,0.4,0.4)
  7631. inner.Size = inner.Size + VT(0.35,0.35,0.35)
  7632. end
  7633. MagicSphere(25,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  7634. MagicSphere(20,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  7635. CreateSound(CUTSOUNDS[MRANDOM(1, #CUTSOUNDS)], RightArm, 6, 1)
  7636. local bv = Instance.new("BodyVelocity")
  7637. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7638. bv.velocity = CF(spear.Position,Mouse.Hit.p).lookVector*100
  7639. bv.Parent = spear
  7640. bv.Name = "MOVE"
  7641. weldBetween(spear,inner)
  7642. spear.Anchored = false
  7643. inner.Anchored = false
  7644. local HIT = false
  7645. local harm = spear.Touched:Connect(function(hit)
  7646. if HIT == false and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= Effects then
  7647. local cframe = spear.CFrame
  7648. HIT = true
  7649. coroutine.resume(coroutine.create(function()
  7650. spear.Parent = nil
  7651. RootPart.CFrame = CF(spear.Position,Mouse.Hit.p)
  7652. coroutine.resume(coroutine.create(function()
  7653. CreateSound(RELEASESOUND, Effects, 2, 1.5)
  7654. MagicSphere(30,105,cframe,"Institutional white")
  7655. MagicSphere(25,105,cframe,"Institutional white")
  7656. for i = 1, 15 do
  7657. Swait()
  7658. killnearest(cframe.p,7.5,150)
  7659. end
  7660. end))
  7661. end))
  7662. end
  7663. end)
  7664. coroutine.resume(coroutine.create(function()
  7665. Swait(75)
  7666. if HIT == false then
  7667. local cframe = spear.CFrame
  7668. HIT = true
  7669. coroutine.resume(coroutine.create(function()
  7670. spear.Parent = nil
  7671. RootPart.CFrame = CF(spear.Position,Mouse.Hit.p)
  7672. coroutine.resume(coroutine.create(function()
  7673. CreateSound(RELEASESOUND, Effects, 2, 1.5)
  7674. MagicSphere(30,105,cframe,"Institutional white")
  7675. MagicSphere(25,105,cframe,"Institutional white")
  7676. for i = 1, 15 do
  7677. Swait()
  7678. killnearest(cframe.p,7.5,150)
  7679. end
  7680. end))
  7681. end))
  7682. end
  7683. end))
  7684. coroutine.resume(coroutine.create(function()
  7685. local loop = 0
  7686. repeat
  7687. Swait()
  7688. loop = loop + 1
  7689. if loop == 4 then
  7690. MagicSphere(25,15,spear.CFrame,"Institutional white")
  7691. end
  7692. if loop == 7 then
  7693. loop = 0
  7694. MagicSphere(25,15,spear.CFrame,"Institutional white")
  7695. end
  7696. attractnearest("Part",spear,12.5,50,5)
  7697. until spear.Parent == nil
  7698. end))
  7699. ATTACK = false
  7700. end
  7701.  
  7702. function GravityGlobe()
  7703. ATTACK = true
  7704. Rooted = true
  7705. for i=0, 1, 0.1 / Animation_Speed do
  7706. Swait()
  7707. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
  7708. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  7709. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  7710. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  7711. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  7712. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  7713. end
  7714. coroutine.resume(coroutine.create(function()
  7715. CreateMagicCircle(100,true,0.02,50,CF(RootPart.Position) * CF(0,-2.8,0),true)
  7716. local cframe = RootPart.CFrame
  7717. CreateSound(RELEASESOUND, Effects, 2, 1)
  7718. local sphere = IT("Part",Effects)
  7719. sphere.Shape = "Ball"
  7720. sphere.Size = VT(0,0,0)
  7721. sphere.Anchored = true
  7722. sphere.CanCollide = false
  7723. sphere.Material = "Neon"
  7724. sphere.Transparency = 0.5
  7725. sphere.BrickColor = BRICKC("Institutional white")
  7726. sphere.CFrame = cframe
  7727. local sphere2 = IT("Part",Effects)
  7728. sphere2.Shape = "Ball"
  7729. sphere2.Size = VT(0,0,0)
  7730. sphere2.Anchored = true
  7731. sphere2.CanCollide = false
  7732. sphere2.Material = "Neon"
  7733. sphere2.Transparency = 0.3
  7734. sphere2.BrickColor = BRICKC("Institutional white")
  7735. sphere2.CFrame = cframe
  7736. for i = 1, 10 do
  7737. Swait(2)
  7738. attractnearest("Vector",cframe.p,50,50,10)
  7739. sphere.CFrame = cframe
  7740. sphere.Size = sphere.Size + VT(4,4,4)
  7741. sphere2.CFrame = cframe
  7742. sphere2.Size = sphere2.Size + VT(3.5,3.5,3.5)
  7743. killnearest(cframe.p,15,0)
  7744. end
  7745. local scale = 0.2
  7746. local mode = "shrink"
  7747. for i = 1, 350 do
  7748. Swait()
  7749. if mode == "shrink" then
  7750. scale = scale + scale
  7751. if scale >= - 65 then
  7752. mode = "grow"
  7753. end
  7754. elseif mode == "grow" then
  7755. scale = scale + -scale*2
  7756. if scale <= - 65 then
  7757. mode = "shrink"
  7758. end
  7759. end
  7760. CreateRing(180,5,true,0,50,sphere,0,scale,scale,"Institutional white")
  7761. sphere.Size = sphere.Size + VT(scale,scale,scale)
  7762. attractnearest("Vector",cframe.p,50,50,5)
  7763. killnearest(cframe.p,15,0)
  7764. end
  7765. for i = 1, 10 do
  7766. Swait(2)
  7767. sphere.CFrame = cframe
  7768. sphere.Size = sphere.Size - VT(5,5,5)
  7769. sphere.CFrame = cframe
  7770. sphere2.CFrame = cframe
  7771. sphere2.Size = sphere2.Size - VT(3.5,3.5,3.5)
  7772. end
  7773. sphere:remove()
  7774. sphere2:remove()
  7775. end))
  7776. for i=0, 1, 0.1 / Animation_Speed do
  7777. Swait()
  7778. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
  7779. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  7780. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  7781. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  7782. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  7783. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  7784. end
  7785. Rooted = false
  7786. ATTACK = false
  7787. end
  7788.  
  7789. function GravityBeam()
  7790. ATTACK = true
  7791. Rooted = true
  7792. for i=0, 1.5, 0.1 / Animation_Speed do
  7793. Swait()
  7794. turnto(Mouse.Hit.p)
  7795. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.4 / Animation_Speed)
  7796. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.2 / Animation_Speed)
  7797. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  7798. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  7799. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  7800. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  7801. end
  7802. local startpos = RightArm.CFrame*CF(0,-1.5,0).p
  7803. local loop = 0
  7804. local loopsound = CreateSound(CHARGESOUND, RightArm, 10, 1, true)
  7805. local loopsound2 = CreateSound("487214658", Effects, 1, 0, true)
  7806. local pos = nil
  7807. repeat
  7808. if loop < 150 then
  7809. Swait()
  7810. loop = loop + 1
  7811. turnto(Mouse.Hit.p)
  7812. MagicSphere(15,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  7813. MagicSphere(12,25,RightArm.CFrame*CF(0,-1,0),"Institutional white")
  7814. else
  7815. loopsound2.Pitch = 1
  7816. loopsound:Stop()
  7817. startpos = RightArm.CFrame*CF(0,-1.5,0).p
  7818. turnto(Mouse.Hit.p)
  7819. MagicSphere(35,25,CF(startpos),"Institutional white")
  7820. MagicSphere(32,25,CF(startpos),"Institutional white")
  7821. local RayHit, RayPos, RayNormal = CastZapRay(startpos, Mouse.Hit.p, 150, Character, false)
  7822. local distance = (startpos - RayPos).magnitude
  7823. local laser = Instance.new("Part",Effects)
  7824. laser.Transparency = 0.5
  7825. laser.CanCollide = false
  7826. laser.Anchored = true
  7827. laser.BrickColor = BrickColor.new("Institutional white")
  7828. laser.Material = "Neon"
  7829. laser.formFactor = Enum.FormFactor.Custom
  7830. laser.Size = Vector3.new(2.5, 2.5, distance)
  7831. laser.CFrame = CFrame.new(startpos, RayPos) * CFrame.new(0, 0, -distance/2)
  7832. local laser2 = Instance.new("Part",Effects)
  7833. laser2.Transparency = 0
  7834. laser2.CanCollide = false
  7835. laser2.Anchored = true
  7836. laser2.BrickColor = BrickColor.new("Institutional white")
  7837. laser2.Material = "Neon"
  7838. laser2.formFactor = Enum.FormFactor.Custom
  7839. laser2.Size = Vector3.new(2, 2, distance)
  7840. laser2.CFrame = CFrame.new(startpos, RayPos) * CFrame.new(0, 0, -distance/2)
  7841. killnearest(RayPos,5,150,true)
  7842. MagicSphere(350,2,CF(RayPos),"Institutional white")
  7843. MagicSphere(320,2,CF(RayPos),"Institutional white")
  7844. if RayHit ~= nil then
  7845. CreateWave(0,5,false,0,25,CF(RayPos),0,"Institutional white")
  7846. end
  7847. attractnearest("Vector",RayPos,40,50,10)
  7848. pos = RayPos
  7849. Swait()
  7850. laser2:remove()
  7851. laser:remove()
  7852. end
  7853. until KEYHOLD == false
  7854. if loop == 150 then
  7855. local cframe = CF(pos)
  7856. coroutine.resume(coroutine.create(function()
  7857. coroutine.resume(coroutine.create(function()
  7858. CreateSound(RELEASESOUND, Effects, 2, 1)
  7859. MagicSphere(500,55,cframe,"Institutional white")
  7860. MagicSphere(450,55,cframe,"Institutional white")
  7861. for i = 1, 15 do
  7862. Swait()
  7863. killnearest(cframe.p,75,150)
  7864. end
  7865. end))
  7866. end))
  7867. end
  7868. loopsound2:remove()
  7869. loopsound:remove()
  7870. Rooted = false
  7871. ATTACK = false
  7872. end
  7873.  
  7874. --//=================================\\
  7875. --|| ASSIGN THINGS TO KEYS
  7876. --\\=================================//
  7877.  
  7878. Humanoid.Changed:connect(function(Jump)
  7879. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  7880. Humanoid.Jump = false
  7881. end
  7882. end)
  7883.  
  7884. function MouseDown(Mouse)
  7885. if ATTACK == false then
  7886. end
  7887. end
  7888.  
  7889. function MouseUp(Mouse)
  7890. HOLD = false
  7891. end
  7892.  
  7893. function KeyDown(Key)
  7894. KEYHOLD = true
  7895. if Key == "q" and ATTACK == false then
  7896. GraviBomb()
  7897. end
  7898.  
  7899. if Key == "e" and ATTACK == false then
  7900. GraviSpear()
  7901. end
  7902.  
  7903. if Key == "r" and ATTACK == false then
  7904. GravityGlobe()
  7905. end
  7906.  
  7907. if Key == "g" and ATTACK == false then
  7908. GravityBeam()
  7909. end
  7910.  
  7911. if Key == "x" and ATTACK == false then
  7912. end
  7913.  
  7914. if Key == "c" and ATTACK == false then
  7915. WarpSpear()
  7916. end
  7917.  
  7918. if Key == "t" and ATTACK == false then
  7919. CreateSound("305685800", Head, 10, 1 ,false)
  7920. end
  7921. end
  7922.  
  7923. function KeyUp(Key)
  7924. KEYHOLD = false
  7925. end
  7926.  
  7927. Mouse.Button1Down:connect(function(NEWKEY)
  7928. MouseDown(NEWKEY)
  7929. end)
  7930. Mouse.Button1Up:connect(function(NEWKEY)
  7931. MouseUp(NEWKEY)
  7932. end)
  7933. Mouse.KeyDown:connect(function(NEWKEY)
  7934. KeyDown(NEWKEY)
  7935. end)
  7936. Mouse.KeyUp:connect(function(NEWKEY)
  7937. KeyUp(NEWKEY)
  7938. end)
  7939.  
  7940. --//=================================\\
  7941. --\\=================================//
  7942.  
  7943.  
  7944. function unanchor()
  7945. if UNANCHOR == true then
  7946. g = Character:GetChildren()
  7947. for i = 1, #g do
  7948. if g[i].ClassName == "Part" then
  7949. g[i].Anchored = false
  7950. end
  7951. end
  7952. end
  7953. end
  7954.  
  7955.  
  7956. --//=================================\\
  7957. --|| WRAP THE WHOLE SCRIPT UP
  7958. --\\=================================//
  7959.  
  7960. Humanoid.Changed:connect(function(Jump)
  7961. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  7962. Humanoid.Jump = false
  7963. end
  7964. end)
  7965.  
  7966. ANIMATE.Parent = nil
  7967. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  7968. IDLEANIMATION:Play()
  7969.  
  7970. while true do
  7971. Swait()
  7972. SINE = SINE + CHANGE
  7973. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  7974. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  7975. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  7976. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  7977. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  7978. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  7979. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  7980. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  7981. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  7982. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  7983. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  7984. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  7985. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  7986. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  7987. ----LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  7988. end
  7989. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  7990. ANIM = "Jump"
  7991. if ATTACK == false then
  7992. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  7993. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  7994. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  7995. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  7996. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  7997. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  7998. end
  7999. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  8000. ANIM = "Fall"
  8001. if ATTACK == false then
  8002. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  8003. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  8004. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  8005. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  8006. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  8007. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  8008. end
  8009. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  8010. ANIM = "Idle"
  8011. if ATTACK == false then
  8012. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  8013. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  8014. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  8015. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  8016. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  8017. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  8018. end
  8019. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  8020. ANIM = "Walk"
  8021. WALK = WALK + 1 / Animation_Speed
  8022. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  8023. WALK = 0
  8024. if WALKINGANIM == true then
  8025. WALKINGANIM = false
  8026. elseif WALKINGANIM == false then
  8027. WALKINGANIM = true
  8028. end
  8029. end
  8030. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  8031. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  8032. if ATTACK == false then
  8033. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed*3)
  8034. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  8035. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  8036. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  8037. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  8038. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  8039. end
  8040. end
  8041. if #Effects2>0 then
  8042. for e=1,#Effects2 do
  8043. if Effects2[e]~=nil then
  8044. local Thing=Effects2[e]
  8045. if Thing~=nil then
  8046. local Part=Thing[1]
  8047. local Mode=Thing[2]
  8048. local Delay=Thing[3]
  8049. local IncX=Thing[4]
  8050. local IncY=Thing[5]
  8051. local IncZ=Thing[6]
  8052. local Part2=Thing[8]
  8053. if Thing[1].Transparency<=1 then
  8054. if Thing[2]=="Block1" then
  8055. Thing[1].CFrame=Thing[1].CFrame
  8056. Mesh=Thing[1].Mesh
  8057. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  8058. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  8059. elseif Thing[2]=="Cylinder" then
  8060. Mesh=Thing[1].Mesh
  8061. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  8062. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  8063. elseif Thing[2]=="Blood" then
  8064. Mesh=Thing[7]
  8065. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  8066. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  8067. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  8068. elseif Thing[2]=="Elec" then
  8069. Mesh=Thing[1].Mesh
  8070. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  8071. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  8072. elseif Thing[2]=="Disappear" then
  8073. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  8074. end
  8075. else
  8076. Part.Parent=nil
  8077. table.remove(Effects2,e)
  8078. end
  8079. end
  8080. end
  8081. end
  8082. end
  8083. unanchor()
  8084. Humanoid.MaxHealth = "inf"
  8085. Humanoid.Health = "inf"
  8086. if Rooted == false then
  8087. Disable_Jump = false
  8088. Humanoid.WalkSpeed = Speed
  8089. elseif Rooted == true then
  8090. Disable_Jump = true
  8091. Humanoid.WalkSpeed = 0
  8092. end
  8093. --CreateMagicCircle(2 ,false,0,3,LeftLeg.CFrame * CF(0,-1.2,0),true)
  8094. end
  8095.  
  8096. --//=================================\\
  8097. --\\=================================//
  8098.  
  8099.  
  8100.  
  8101.  
  8102.  
  8103. --//====================================================\\--
  8104. --|| END OF SCRIPT
  8105. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement