Advertisement
JRKPastesBins

Untitled

Sep 16th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.66 KB | None | 0 0
  1. game.Workspace.Likebossfromdk.Humanoid.MaxHealth = math.huge
  2. warn'any options for magic'
  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. local s = Instance.new("Sound",char)
  26. s.Name = "BGMusic"
  27. s.SoundId = "rbxassetid://1016122649"
  28. s.Pitch = 1
  29. s.Volume = 8
  30. s.Looped = true
  31. s.archivable = false
  32. s.Parent = char.Head
  33. wait(0.1)
  34. s:play()
  35. local ignlist = {}
  36. local stab = {}
  37. local tstab = {}
  38. local tsstab = {}
  39.  
  40.  
  41. local Create = LoadLibrary("RbxUtility").Create
  42.  
  43. CFuncs = {
  44. ["Part"] = {
  45. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  46. local Part = Create("Part"){
  47. Parent = Parent,
  48. Reflectance = Reflectance,
  49. Transparency = Transparency,
  50. CanCollide = false,
  51. Locked = true,
  52. BrickColor = BrickColor.new(tostring(BColor)),
  53. Name = Name,
  54. Size = Size,
  55. Material = Material,
  56. }
  57. RemoveOutlines(Part)
  58. return Part
  59. end;
  60. };
  61.  
  62. ["Mesh"] = {
  63. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  64. local Msh = Create(Mesh){
  65. Parent = Part,
  66. Offset = OffSet,
  67. Scale = Scale,
  68. }
  69. if Mesh == "SpecialMesh" then
  70. Msh.MeshType = MeshType
  71. Msh.MeshId = MeshId
  72. end
  73. return Msh
  74. end;
  75. };
  76.  
  77. ["Mesh"] = {
  78. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  79. local Msh = Create(Mesh){
  80. Parent = Part,
  81. Offset = OffSet,
  82. Scale = Scale,
  83. }
  84. if Mesh == "SpecialMesh" then
  85. Msh.MeshType = MeshType
  86. Msh.MeshId = MeshId
  87. end
  88. return Msh
  89. end;
  90. };
  91.  
  92. ["Weld"] = {
  93. Create = function(Parent, Part0, Part1, C0, C1)
  94. local Weld = Create("Weld"){
  95. Parent = Parent,
  96. Part0 = Part0,
  97. Part1 = Part1,
  98. C0 = C0,
  99. C1 = C1,
  100. }
  101. return Weld
  102. end;
  103. };
  104.  
  105. ["Sound"] = {
  106. Create = function(id, par, vol, pit)
  107. coroutine.resume(coroutine.create(function()
  108. local S = Create("Sound"){
  109. Volume = vol,
  110. Pitch = pit or 1,
  111. SoundId = id,
  112. Parent = par or workspace,
  113. }
  114. wait()
  115. S:play()
  116. game:GetService("Debris"):AddItem(S, 10)
  117. end))
  118. end;
  119. };
  120.  
  121. ["ParticleEmitter"] = {
  122. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  123. local fp = Create("ParticleEmitter"){
  124. Parent = Parent,
  125. Color = ColorSequence.new(Color1, Color2),
  126. LightEmission = LightEmission,
  127. Size = Size,
  128. Texture = Texture,
  129. Transparency = Transparency,
  130. ZOffset = ZOffset,
  131. Acceleration = Accel,
  132. Drag = Drag,
  133. LockedToPart = LockedToPart,
  134. VelocityInheritance = VelocityInheritance,
  135. EmissionDirection = EmissionDirection,
  136. Enabled = Enabled,
  137. Lifetime = LifeTime,
  138. Rate = Rate,
  139. Rotation = Rotation,
  140. RotSpeed = RotSpeed,
  141. Speed = Speed,
  142. VelocitySpread = VelocitySpread,
  143. }
  144. return fp
  145. end;
  146. };
  147.  
  148. CreateTemplate = {
  149.  
  150. };
  151. }
  152.  
  153.  
  154.  
  155. New = function(Object, Parent, Name, Data)
  156. local Object = Instance.new(Object)
  157. for Index, Value in pairs(Data or {}) do
  158. Object[Index] = Value
  159. end
  160. Object.Parent = Parent
  161. Object.Name = Name
  162. return Object
  163. end
  164. local m = Instance.new("Model",char)
  165.  
  166. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  167. local p = Instance.new("Part")
  168. p.Parent = parent
  169. p.Size = Vector3.new(1,1,1)
  170. p.Transparency = transparency
  171. p.Reflectance = reflectance
  172. p.CanCollide = false
  173. p.Locked = true
  174. p.BrickColor = brickcolor
  175. p.Material = material
  176. return p
  177. end
  178.  
  179. function CreateMesh(parent,meshtype,x1,y1,z1)
  180. local mesh = Instance.new("SpecialMesh",parent)
  181. mesh.MeshType = meshtype
  182. mesh.Scale = Vector3.new(x1,y1,z1)
  183. return mesh
  184. end
  185.  
  186. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  187. local mesh = Instance.new("SpecialMesh",parent)
  188. mesh.MeshType = "FileMesh"
  189. mesh.MeshId = meshid
  190. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  191. mesh.Scale = Vector3.new(x1,y1,z1)
  192. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  193. return mesh
  194. end
  195.  
  196. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  197. local weld = Instance.new("Weld")
  198. weld.Parent = parent
  199. weld.Part0 = part0
  200. weld.Part1 = part1
  201. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  202. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  203. return weld
  204. end
  205.  
  206.  
  207. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  208. 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))
  209. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  210. 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))
  211.  
  212. Player=game:GetService("Players").LocalPlayer
  213. Character=Player.Character
  214. PlayerGui=Player.PlayerGui
  215. Backpack=Player.Backpack
  216. Torso=Character.Torso
  217. Head=Character.Head
  218. Humanoid=Character.Humanoid
  219. m=Instance.new('Model',Character)
  220. LeftArm=Character["Left Arm"]
  221. LeftLeg=Character["Left Leg"]
  222. RightArm=Character["Right Arm"]
  223. RightLeg=Character["Right Leg"]
  224. LS=Torso["Left Shoulder"]
  225. LH=Torso["Left Hip"]
  226. RS=Torso["Right Shoulder"]
  227. RH=Torso["Right Hip"]
  228. Face = Head.face
  229. Neck=Torso.Neck
  230. it=Instance.new
  231. attacktype=1
  232. vt=Vector3.new
  233. cf=CFrame.new
  234. euler=CFrame.fromEulerAnglesXYZ
  235. angles=CFrame.Angles
  236. cloaked=false
  237. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  238. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  239. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  240. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  241. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  242. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  243. RootPart=Character.HumanoidRootPart
  244. RootJoint=RootPart.RootJoint
  245. RootCF=euler(-1.57,0,3.14)
  246. attack = false
  247. attackdebounce = false
  248. deb=false
  249. equipped=true
  250. hand=false
  251. MMouse=nil
  252. combo=0
  253. mana=0
  254. trispeed=.2
  255. attackmode='none'
  256. local idle=0
  257. local Anim="Idle"
  258. local Effects={}
  259. local gun=false
  260. local shoot=false
  261. local sine = 0
  262. local change = 1
  263. player=nil
  264.  
  265. mouse=Player:GetMouse()
  266. --save shoulders
  267. RSH, LSH=nil, nil
  268. --welds
  269. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  270. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  271. LH=Torso["Left Hip"]
  272. RH=Torso["Right Hip"]
  273. TorsoColor=Torso.BrickColor
  274. function NoOutline(Part)
  275. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  276. end
  277. player=Player
  278. ch=Character
  279. RSH=ch.Torso["Right Shoulder"]
  280. LSH=ch.Torso["Left Shoulder"]
  281. --
  282. RSH.Parent=nil
  283. LSH.Parent=nil
  284. --
  285. RW.Name="Right Shoulder"
  286. RW.Part0=ch.Torso
  287. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  288. RW.C1=cf(0, 0.5, 0)
  289. RW.Part1=ch["Right Arm"]
  290. RW.Parent=ch.Torso
  291. --
  292. LW.Name="Left Shoulder"
  293. LW.Part0=ch.Torso
  294. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  295. LW.C1=cf(0, 0.5, 0)
  296. LW.Part1=ch["Left Arm"]
  297. LW.Parent=ch.Torso
  298.  
  299. local Stats=Instance.new("BoolValue")
  300. Stats.Name="Stats"
  301. Stats.Parent=Character
  302. local Atk=Instance.new("NumberValue")
  303. Atk.Name="Damage"
  304. Atk.Parent=Stats
  305. Atk.Value=1
  306. local Def=Instance.new("NumberValue")
  307. Def.Name="Defense"
  308. Def.Parent=Stats
  309. Def.Value=1
  310. local Speed=Instance.new("NumberValue")
  311. Speed.Name="Speed"
  312. Speed.Parent=Stats
  313. Speed.Value=1
  314. local Mvmt=Instance.new("NumberValue")
  315. Mvmt.Name="Movement"
  316. Mvmt.Parent=Stats
  317. Mvmt.Value=1
  318.  
  319. local donum=0
  320.  
  321.  
  322. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  323. local fp=it("Part")
  324. fp.formFactor=formfactor
  325. fp.Parent=parent
  326. fp.Reflectance=reflectance
  327. fp.Transparency=transparency
  328. fp.CanCollide=false
  329. fp.Locked=true
  330. fp.BrickColor=brickcolor
  331. fp.Name=name
  332. fp.Size=size
  333. fp.Position=Torso.Position
  334. NoOutline(fp)
  335. fp.Material="SmoothPlastic"
  336. fp:BreakJoints()
  337. return fp
  338. end
  339.  
  340. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  341. local mesh=it(Mesh)
  342. mesh.Parent=part
  343. if Mesh=="SpecialMesh" then
  344. mesh.MeshType=meshtype
  345. if meshid~="nil" then
  346. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  347. end
  348. end
  349. mesh.Offset=offset
  350. mesh.Scale=scale
  351. return mesh
  352. end
  353.  
  354. function weld(parent,part0,part1,c0)
  355. local weld=it("Weld")
  356. weld.Parent=parent
  357. weld.Part0=part0
  358. weld.Part1=part1
  359. weld.C0=c0
  360. return weld
  361. end
  362.  
  363. local Color1=Torso.BrickColor
  364.  
  365. local bodvel=Instance.new("BodyVelocity")
  366. local bg=Instance.new("BodyGyro")
  367.  
  368. function swait(num)
  369. if num==0 or num==nil then
  370. game:service'RunService'.Stepped:wait(0)
  371. else
  372. for i=0,num do
  373. game:service'RunService'.Stepped:wait(0)
  374. end
  375. end
  376. end
  377.  
  378.  
  379. so = function(id,par,vol,pit)
  380. coroutine.resume(coroutine.create(function()
  381. local sou = Instance.new("Sound",par or workspace)
  382. sou.Volume=vol
  383. sou.Pitch=pit or 1
  384. sou.SoundId=id
  385. swait()
  386. sou:play()
  387. game:GetService("Debris"):AddItem(sou,6)
  388. end))
  389. end
  390.  
  391. function clerp(a,b,t)
  392. local qa = {QuaternionFromCFrame(a)}
  393. local qb = {QuaternionFromCFrame(b)}
  394. local ax, ay, az = a.x, a.y, a.z
  395. local bx, by, bz = b.x, b.y, b.z
  396. local _t = 1-t
  397. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  398. end
  399.  
  400. function QuaternionFromCFrame(cf)
  401. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  402. local trace = m00 + m11 + m22
  403. if trace > 0 then
  404. local s = math.sqrt(1 + trace)
  405. local recip = 0.5/s
  406. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  407. else
  408. local i = 0
  409. if m11 > m00 then
  410. i = 1
  411. end
  412. if m22 > (i == 0 and m00 or m11) then
  413. i = 2
  414. end
  415. if i == 0 then
  416. local s = math.sqrt(m00-m11-m22+1)
  417. local recip = 0.5/s
  418. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  419. elseif i == 1 then
  420. local s = math.sqrt(m11-m22-m00+1)
  421. local recip = 0.5/s
  422. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  423. elseif i == 2 then
  424. local s = math.sqrt(m22-m00-m11+1)
  425. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  426. end
  427. end
  428. end
  429.  
  430. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  431. local xs, ys, zs = x + x, y + y, z + z
  432. local wx, wy, wz = w*xs, w*ys, w*zs
  433. local xx = x*xs
  434. local xy = x*ys
  435. local xz = x*zs
  436. local yy = y*ys
  437. local yz = y*zs
  438. local zz = z*zs
  439. 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))
  440. end
  441.  
  442. function QuaternionSlerp(a, b, t)
  443. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  444. local startInterp, finishInterp;
  445. if cosTheta >= 0.0001 then
  446. if (1 - cosTheta) > 0.0001 then
  447. local theta = math.acos(cosTheta)
  448. local invSinTheta = 1/math.sin(theta)
  449. startInterp = math.sin((1-t)*theta)*invSinTheta
  450. finishInterp = math.sin(t*theta)*invSinTheta
  451. else
  452. startInterp = 1-t
  453. finishInterp = t
  454. end
  455. else
  456. if (1+cosTheta) > 0.0001 then
  457. local theta = math.acos(-cosTheta)
  458. local invSinTheta = 1/math.sin(theta)
  459. startInterp = math.sin((t-1)*theta)*invSinTheta
  460. finishInterp = math.sin(t*theta)*invSinTheta
  461. else
  462. startInterp = t-1
  463. finishInterp = t
  464. end
  465. end
  466. 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
  467. end
  468.  
  469. local function CFrameFromTopBack(at, top, back)
  470. local right = top:Cross(back)
  471. return CFrame.new(at.x, at.y, at.z,
  472. right.x, top.x, back.x,
  473. right.y, top.y, back.y,
  474. right.z, top.z, back.z)
  475. end
  476.  
  477. function Triangle(a, b, c)
  478. local edg1 = (c-a):Dot((b-a).unit)
  479. local edg2 = (a-b):Dot((c-b).unit)
  480. local edg3 = (b-c):Dot((a-c).unit)
  481. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  482. a, b, c = a, b, c
  483. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  484. a, b, c = b, c, a
  485. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  486. a, b, c = c, a, b
  487. else
  488. assert(false, "unreachable")
  489. end
  490.  
  491. local len1 = (c-a):Dot((b-a).unit)
  492. local len2 = (b-a).magnitude - len1
  493. local width = (a + (b-a).unit*len1 - c).magnitude
  494.  
  495. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  496.  
  497. local list = {}
  498.  
  499. if len1 > 0.01 then
  500. local w1 = Instance.new('WedgePart', m)
  501. game:GetService("Debris"):AddItem(w1,5)
  502. w1.Material = "SmoothPlastic"
  503. w1.FormFactor = 'Custom'
  504. w1.BrickColor = BrickColor.new("Really black")
  505. w1.Transparency = 0
  506. w1.Reflectance = 0
  507. w1.Material = "SmoothPlastic"
  508. w1.CanCollide = false
  509. local l1 = Instance.new("PointLight",w1)
  510. l1.Color = Color3.new(170,0,0)
  511. NoOutline(w1)
  512. local sz = Vector3.new(0.2, width, len1)
  513. w1.Size = sz
  514. local sp = Instance.new("SpecialMesh",w1)
  515. sp.MeshType = "Wedge"
  516. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  517. w1:BreakJoints()
  518. w1.Anchored = true
  519. w1.Parent = workspace
  520. w1.Transparency = 0.7
  521. table.insert(Effects,{w1,"Disappear",.01})
  522. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  523. table.insert(list,w1)
  524. end
  525.  
  526. if len2 > 0.01 then
  527. local w2 = Instance.new('WedgePart', m)
  528. game:GetService("Debris"):AddItem(w2,5)
  529. w2.Material = "SmoothPlastic"
  530. w2.FormFactor = 'Custom'
  531. w2.BrickColor = BrickColor.new("Really black")
  532. w2.Transparency = 0
  533. w2.Reflectance = 0
  534. w2.Material = "SmoothPlastic"
  535. w2.CanCollide = false
  536. local l2 = Instance.new("PointLight",w2)
  537. l2.Color = Color3.new(170,0,0)
  538. NoOutline(w2)
  539. local sz = Vector3.new(0.2, width, len2)
  540. w2.Size = sz
  541. local sp = Instance.new("SpecialMesh",w2)
  542. sp.MeshType = "Wedge"
  543. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  544. w2:BreakJoints()
  545. w2.Anchored = true
  546. w2.Parent = workspace
  547. w2.Transparency = 0.7
  548. table.insert(Effects,{w2,"Disappear",.01})
  549. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  550. table.insert(list,w2)
  551. end
  552. return unpack(list)
  553. end
  554.  
  555.  
  556. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  557. if hit.Parent==nil then
  558. return
  559. end
  560. h=hit.Parent:FindFirstChild("Humanoid")
  561. for _,v in pairs(hit.Parent:children()) do
  562. if v:IsA("Humanoid") then
  563. h=v
  564. end
  565. end
  566. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  567. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  568. end
  569. if hit.Parent.className=="Hat" then
  570. hit=hit.Parent.Parent:findFirstChild("Head")
  571. end
  572. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  573. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  574. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  575. return
  576. end]]
  577. -- hs(hit,1.2)
  578. c=Instance.new("ObjectValue")
  579. c.Name="creator"
  580. c.Value=game:service("Players").LocalPlayer
  581. c.Parent=h
  582. game:GetService("Debris"):AddItem(c,.5)
  583. Damage=math.random(minim,maxim)
  584. -- h:TakeDamage(Damage)
  585. blocked=false
  586. block=hit.Parent:findFirstChild("Block")
  587. if block~=nil then
  588. print(block.className)
  589. if block.className=="NumberValue" then
  590. if block.Value>0 then
  591. blocked=true
  592. if decreaseblock==nil then
  593. block.Value=block.Value-1
  594. end
  595. end
  596. end
  597. if block.className=="IntValue" then
  598. if block.Value>0 then
  599. blocked=true
  600. if decreaseblock~=nil then
  601. block.Value=block.Value-1
  602. end
  603. end
  604. end
  605. end
  606. if blocked==false then
  607. -- h:TakeDamage(Damage)
  608. h.Health=h.Health-Damage
  609. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really black"))
  610. else
  611. h.Health=h.Health-(Damage/2)
  612. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Black"))
  613. end
  614. if Type=="Knockdown" then
  615. hum=hit.Parent.Humanoid
  616. hum.PlatformStand=true
  617. coroutine.resume(coroutine.create(function(HHumanoid)
  618. swait(1)
  619. HHumanoid.PlatformStand=false
  620. end),hum)
  621. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  622. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  623. local bodvol=Instance.new("BodyVelocity")
  624. bodvol.velocity=angle*knockback
  625. bodvol.P=5000
  626. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  627. bodvol.Parent=hit
  628. rl=Instance.new("BodyAngularVelocity")
  629. rl.P=3000
  630. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  631. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  632. rl.Parent=hit
  633. game:GetService("Debris"):AddItem(bodvol,.5)
  634. game:GetService("Debris"):AddItem(rl,.5)
  635. elseif Type=="Normal" then
  636. vp=Instance.new("BodyVelocity")
  637. vp.P=500
  638. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  639. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  640. if KnockbackType==1 then
  641. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  642. elseif KnockbackType==2 then
  643. vp.velocity=Property.CFrame.lookVector*knockback
  644. end
  645. if knockback>0 then
  646. vp.Parent=hit.Parent.Torso
  647. end
  648. game:GetService("Debris"):AddItem(vp,.5)
  649. elseif Type=="Up" then
  650. local bodyVelocity=Instance.new("BodyVelocity")
  651. bodyVelocity.velocity=vt(0,60,0)
  652. bodyVelocity.P=5000
  653. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  654. bodyVelocity.Parent=hit
  655. game:GetService("Debris"):AddItem(bodyVelocity,1)
  656. rl=Instance.new("BodyAngularVelocity")
  657. rl.P=3000
  658. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  659. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  660. rl.Parent=hit
  661. game:GetService("Debris"):AddItem(rl,.5)
  662. elseif Type=="Snare" then
  663. bp=Instance.new("BodyPosition")
  664. bp.P=2000
  665. bp.D=100
  666. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  667. bp.position=hit.Parent.Torso.Position
  668. bp.Parent=hit.Parent.Torso
  669. game:GetService("Debris"):AddItem(bp,1)
  670. elseif Type=="Target" then
  671. if Targetting==false then
  672. ZTarget=hit.Parent.Torso
  673. coroutine.resume(coroutine.create(function(Part)
  674. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  675. swait(5)
  676. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  677. end),ZTarget)
  678. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  679. targetgui=Instance.new("BillboardGui")
  680. targetgui.Parent=ZTarget
  681. targetgui.Size=UDim2.new(10,100,10,100)
  682. targ=Instance.new("ImageLabel")
  683. targ.Parent=targetgui
  684. targ.BackgroundTransparency=1
  685. targ.Image="rbxassetid://4834067"
  686. targ.Size=UDim2.new(1,0,1,0)
  687. cam.CameraType="Scriptable"
  688. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  689. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  690. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  691. Targetting=true
  692. RocketTarget=ZTarget
  693. for i=1,Property do
  694. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  695. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  696. swait()
  697. end
  698. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  699. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  700. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  701. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  702. end
  703. Targetting=false
  704. RocketTarget=nil
  705. targetgui.Parent=nil
  706. cam.CameraType="Custom"
  707. end
  708. end
  709. debounce=Instance.new("BoolValue")
  710. debounce.Name="DebounceHit"
  711. debounce.Parent=hit.Parent
  712. debounce.Value=true
  713. game:GetService("Debris"):AddItem(debounce,Delay)
  714. c=Instance.new("ObjectValue")
  715. c.Name="creator"
  716. c.Value=Player
  717. c.Parent=h
  718. game:GetService("Debris"):AddItem(c,.5)
  719. CRIT=false
  720. hitDeb=true
  721. AttackPos=6
  722. end
  723. end
  724.  
  725. showDamage=function(Char,Dealt,du,Color)
  726. m=Instance.new("Model")
  727. m.Name=tostring(Dealt)
  728. h=Instance.new("Humanoid")
  729. h.Health=0
  730. h.MaxHealth=0
  731. h.Parent=m
  732. c=Instance.new("Part")
  733. c.Transparency=0
  734. c.BrickColor=Color
  735. c.Transparency = 1
  736. c.Name="Head"
  737. c.TopSurface=0
  738. c.BottomSurface=0
  739. c.formFactor="Plate"
  740. c.Size=Vector3.new(1,.4,1)
  741.  
  742. local txt = Instance.new("BillboardGui", c)
  743. txt.Adornee = c
  744. txt.Name = "_status"
  745. txt.Size = UDim2.new(2, 0, 1.2, 0)
  746. txt.StudsOffset = Vector3.new(-9, 8, 0)
  747. local text = Instance.new("TextLabel", txt)
  748. text.Size = UDim2.new(10, 0, 7, 0)
  749. text.FontSize = "Size12"
  750. text.TextScaled = true
  751. text.TextTransparency = 0.5
  752. text.BackgroundTransparency = 1
  753. text.TextTransparency = 0.5
  754. text.TextStrokeTransparency = 0.5
  755. text.Font = "SciFi"
  756. text.TextStrokeColor3 = Color3.new(0,0,0)
  757. v=Instance.new("Part")
  758. v.Name = "ColorBrick"
  759. v.Parent=c
  760. v.FormFactor="Symmetric"
  761. v.Anchored=true
  762. v.CanCollide=false
  763. v.BottomSurface="Smooth"
  764. v.TopSurface="Smooth"
  765. v.Size=Vector3.new(10,5,3)
  766. v.Transparency=1
  767. v.CFrame=c.CFrame
  768. v.BrickColor=BrickColor.random()
  769. v.Transparency=1
  770. text.TextColor3 = t.BrickColor.Color
  771. v.Shape="Block"
  772. text.Text = tostring(Dealt)
  773. ms=Instance.new("CylinderMesh")
  774. ms.Scale=Vector3.new(.8,.8,.8)
  775. --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  776. local rndm=math.random(1,#hitsounds)
  777. local r=rndm
  778. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
  779. if CRIT==true then
  780. ms.Scale=Vector3.new(1,1.25,1)
  781. end
  782. ms.Parent=c
  783. c.Reflectance=0
  784. Instance.new("BodyGyro").Parent=c
  785. c.Parent=m
  786. if Char:findFirstChild("Head")~=nil then
  787. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  788. elseif Char.Parent:findFirstChild("Head")~=nil then
  789. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  790. end
  791. f=Instance.new("BodyPosition")
  792. f.P=2000
  793. f.D=100
  794. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  795. f.position=c.Position+Vector3.new(0,3,0)
  796. f.Parent=c
  797. game:GetService("Debris"):AddItem(m,.5+du)
  798. c.CanCollide=false
  799. m.Parent=workspace
  800. c.CanCollide=false
  801. end
  802.  
  803. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  804. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  805. end
  806.  
  807. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  808. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  809. prt.Anchored=true
  810. prt.CFrame=cframe
  811. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  812. --http://www.roblox.com/asset/?id=4770560
  813. game:GetService("Debris"):AddItem(prt,2)
  814. CF=prt.CFrame
  815. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  816. for i=0,1,0.2 do
  817. wait()
  818. Part.CFrame=CF*cf(0,0,-0.4)
  819. end
  820. for i=0,1,delay do
  821. wait()
  822. --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)
  823. Mesh.Scale=Mesh.Scale
  824. end
  825. for i=0,1,0.1 do
  826. wait()
  827. Part.Transparency=i
  828. end
  829. Part.Parent=nil
  830. end),prt,msh,CF)
  831. end
  832.  
  833. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  834. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  835. prt.Anchored=true
  836. prt.Material = "Neon"
  837. prt.CFrame=cframe
  838. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  839. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  840. game:GetService("Debris"):AddItem(prt,5)
  841. coroutine.resume(coroutine.create(function(Part,Mesh)
  842. for i=0,1,delay do
  843. swait()
  844. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  845. Part.Transparency=i
  846. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  847. end
  848. Part.Parent=nil
  849. end),prt,msh)
  850. end
  851.  
  852. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  853. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  854. prt.Anchored=true
  855. prt.Material = "Neon"
  856. prt.CFrame=cframe
  857. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  858. game:GetService("Debris"):AddItem(prt,5)
  859. coroutine.resume(coroutine.create(function(Part,Mesh)
  860. local rtype = rottype
  861. for i=0,1,delay do
  862. swait()
  863. if rtype == 1 then
  864. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  865. elseif rtype == 2 then
  866. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  867. end
  868. Part.Transparency=i
  869. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  870. end
  871. Part.Parent=nil
  872. end),prt,msh)
  873. end
  874.  
  875. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  876. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  877. prt.Anchored=true
  878. prt.CFrame=cframe
  879. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  880. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  881. game:GetService("Debris"):AddItem(prt,5)
  882. coroutine.resume(coroutine.create(function(Part,Mesh)
  883. for i=0,1,delay do
  884. wait()
  885. Part.Transparency=i
  886. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  887. end
  888. Part.Parent=nil
  889. end),prt,msh)
  890. end
  891.  
  892. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  893. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  894. prt.Anchored=true
  895. prt.Material = "Neon"
  896. prt.CFrame=cframe
  897. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  898. game:GetService("Debris"):AddItem(prt,5)
  899. coroutine.resume(coroutine.create(function(Part,Mesh)
  900. local rtype = rottype
  901. for i=0,1,delay do
  902. swait()
  903. if rtype == 1 then
  904. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  905. elseif rtype == 2 then
  906. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  907. end
  908. Part.Transparency=i
  909. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  910. end
  911. Part.Parent=nil
  912. end),prt,msh)
  913. end
  914.  
  915. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  916. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  917. prt.Anchored=true
  918. prt.Material = "Neon"
  919. prt.CFrame=cframe
  920. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  921. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  922. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  923. game:GetService("Debris"):AddItem(prt,5)
  924. coroutine.resume(coroutine.create(function(Part,Mesh)
  925. local rtype = rottype
  926. for i=0,1,delay do
  927. swait()
  928. if rtype == 1 then
  929. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  930. elseif rtype == 2 then
  931. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  932. end
  933. dec.Transparency=i
  934. dec2.Transparency=i
  935. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  936. end
  937. Part.Parent=nil
  938. end),prt,msh)
  939. end
  940.  
  941. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  942. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  943. prt.Anchored=true
  944. prt.Material = "Neon"
  945. prt.CFrame=cframe
  946. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  947. game:GetService("Debris"):AddItem(prt,5)
  948. coroutine.resume(coroutine.create(function(Part,Mesh)
  949. local rtype = rottype
  950. for i=0,1,delay do
  951. swait()
  952. if rtype == 1 then
  953. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  954. elseif rtype == 2 then
  955. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  956. end
  957. prt.Transparency=i
  958. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  959. end
  960. Part.Parent=nil
  961. end),prt,msh)
  962. end
  963.  
  964. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  965. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  966. prt.Anchored=true
  967. prt.Material = "Neon"
  968. prt.CFrame=cframe
  969. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  970. game:GetService("Debris"):AddItem(prt,5)
  971. coroutine.resume(coroutine.create(function(Part,Mesh)
  972. local rtype = rottype
  973. for i=0,1,delay do
  974. swait()
  975. if rtype == 1 then
  976. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  977. elseif rtype == 2 then
  978. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  979. end
  980. prt.Transparency=i
  981. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  982. end
  983. Part.Parent=nil
  984. end),prt,msh)
  985. end
  986.  
  987. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  988. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  989. prt.Anchored=true
  990. prt.Material = "Neon"
  991. prt.CFrame=cframe
  992. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  993. game:GetService("Debris"):AddItem(prt,5)
  994. coroutine.resume(coroutine.create(function(Part,Mesh)
  995. local rtype = rottype
  996. for i=0,1,delay do
  997. swait()
  998. if rtype == 1 then
  999. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1000. elseif rtype == 2 then
  1001. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1002. end
  1003. prt.Transparency=i
  1004. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1005. end
  1006. Part.Parent=nil
  1007. end),prt,msh)
  1008. end
  1009.  
  1010. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1011. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1012. prt.Anchored=false
  1013. prt.CFrame=cframe
  1014. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1015. local wld=weld(prt,prt,Parent,cframe)
  1016. game:GetService("Debris"):AddItem(prt,5)
  1017. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1018. for i=0,1,delay do
  1019. wait()
  1020. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1021. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1022. Part.Transparency=i
  1023. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1024. end
  1025. Part.Parent=nil
  1026. end),prt,msh,wld)
  1027. end
  1028.  
  1029. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1030. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1031. prt.Anchored=false
  1032. prt.CFrame=cframe
  1033. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1034. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1035. game:GetService("Debris"):AddItem(prt,5)
  1036. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1037. for i=0,1,delay do
  1038. wait()
  1039. Weld.C0=euler(i*20,0,0)
  1040. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1041. Part.Transparency=i
  1042. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1043. end
  1044. Part.Parent=nil
  1045. end),prt,msh,wld)
  1046. end
  1047.  
  1048. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1049. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1050. prt.Anchored=true
  1051. prt.CFrame=cframe
  1052. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1053. game:GetService("Debris"):AddItem(prt,2)
  1054. coroutine.resume(coroutine.create(function(Part,Mesh)
  1055. for i=0,1,delay do
  1056. wait()
  1057. Part.CFrame=Part.CFrame
  1058. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1059. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1060. prt2.Anchored=true
  1061. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1062. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1063. game:GetService("Debris"):AddItem(prt2,2)
  1064. coroutine.resume(coroutine.create(function(Part,Mesh)
  1065. for i=0,1,0.1 do
  1066. wait()
  1067. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1068. end
  1069. Part.Parent=nil
  1070. end),prt2,msh2)
  1071. end
  1072. for i=0,1,delay*2 do
  1073. wait()
  1074. Part.CFrame=Part.CFrame
  1075. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1076. end
  1077. Part.Parent=nil
  1078. end),prt,msh)
  1079. end
  1080.  
  1081. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1082. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1083. prt.Anchored=true
  1084. prt.CFrame=cframe
  1085. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1086. game:GetService("Debris"):AddItem(prt,2)
  1087. coroutine.resume(coroutine.create(function(Part,Mesh)
  1088. for i=0,1,delay do
  1089. wait()
  1090. Part.CFrame=Part.CFrame
  1091. Part.Transparency=i
  1092. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1093. end
  1094. Part.Parent=nil
  1095. end),prt,msh)
  1096. end
  1097.  
  1098. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1099. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1100. prt.Anchored=true
  1101. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1102. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1103. game:GetService("Debris"):AddItem(prt,2)
  1104. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1105. CF=Part.CFrame
  1106. Numbb=0
  1107. randnumb=math.random()/10
  1108. rand1=math.random()/10
  1109. for i=0,1,rand1 do
  1110. wait()
  1111. CF=CF*cf(0,math.random()/2,0)
  1112. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1113. Part.CFrame=CF*euler(Numbb,0,0)
  1114. Part.Transparency=i
  1115. Numbb=Numbb+randnumb
  1116. end
  1117. Part.Parent=nil
  1118. end),prt,CF,Numbb,randnumb)
  1119. end
  1120.  
  1121. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1122. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1123. prt.Anchored=true
  1124. prt.CFrame=cframe
  1125. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1126. game:GetService("Debris"):AddItem(prt,5)
  1127. coroutine.resume(coroutine.create(function(Part,Mesh)
  1128. for i=0,1,delay do
  1129. wait()
  1130. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1131. Part.Transparency=i
  1132. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1133. end
  1134. Part.Parent=nil
  1135. end),prt,msh)
  1136. end
  1137.  
  1138. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1139. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1140. prt.Anchored=true
  1141. prt.CFrame=cframe
  1142. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1143. game:GetService("Debris"):AddItem(prt,2)
  1144. coroutine.resume(coroutine.create(function(Part,Mesh)
  1145. for i=0,1,delay do
  1146. wait()
  1147. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1148. Part.Transparency=i
  1149. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1150. end
  1151. Part.Parent=nil
  1152. end),prt,msh)
  1153. end
  1154.  
  1155. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1156. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1157. prt.Anchored=true
  1158. prt.CFrame=cframe*cf(x,y,z)
  1159. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1160. game:GetService("Debris"):AddItem(prt,5)
  1161. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1162. local num=math.random()
  1163. local num2=math.random(-3,2)+math.random()
  1164. local numm=0
  1165. for i=0,1,delay*2 do
  1166. swait()
  1167. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1168. Part.Transparency=i
  1169. numm=numm+0.01
  1170. end
  1171. Part.Parent=nil
  1172. Mesh.Parent=nil
  1173. end),prt,msh,x,y,z)
  1174. end
  1175.  
  1176. function dmgstart(dmg,what)
  1177. hitcon = what.Touched:connect(function(hit)
  1178. local hum = hit.Parent:FindFirstChild("Humanoid")
  1179. if hum and not hum:IsDescendantOf(Character) then
  1180. hum:TakeDamage(dmg)
  1181. end
  1182. end)
  1183. end
  1184.  
  1185. function dmgstop()
  1186. hitcon:disconnect()
  1187. end
  1188.  
  1189. function Cloak()
  1190. Face.Parent=nil
  1191. cloaked=true
  1192. for _,v in pairs(Torso.Parent:children()) do
  1193. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1194. coroutine.resume(coroutine.create(function()
  1195. for i=0,1,0.2 do
  1196. wait()
  1197. v.Transparency=i
  1198. end
  1199. v.Transparency=1
  1200. end))
  1201. end
  1202. if v.className=="Hat" then
  1203. hatp=v.Handle
  1204. coroutine.resume(coroutine.create(function(derp)
  1205. for i=0,1,0.2 do
  1206. wait()
  1207. derp.Transparency=i
  1208. end
  1209. derp.Transparency=1
  1210. end),hatp)
  1211. end
  1212. end
  1213. for _,v in pairs(m:children()) do
  1214. if v.className=="Part" then
  1215. coroutine.resume(coroutine.create(function()
  1216. for i=0,1,0.2 do
  1217. wait()
  1218. v.Transparency=i
  1219. end
  1220. v.Transparency=1
  1221. end))
  1222. end
  1223. end
  1224. end
  1225.  
  1226. function UnCloak()
  1227. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1228. Face.Parent=Head
  1229. cloaked=false
  1230. for _,v in pairs(Torso.Parent:children()) do
  1231. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1232. coroutine.resume(coroutine.create(function()
  1233. for i=0,1,0.1 do
  1234. wait()
  1235. v.Transparency=v.Transparency-0.1
  1236. end
  1237. v.Transparency=0
  1238. end))
  1239. end
  1240. if v.className=="Hat" then
  1241. hatp=v.Handle
  1242. coroutine.resume(coroutine.create(function(derp)
  1243. for i=0,1,0.1 do
  1244. wait()
  1245. derp.Transparency=derp.Transparency-0.1
  1246. end
  1247. derp.Transparency=0
  1248. end),hatp)
  1249. end
  1250. end
  1251. for _,v in pairs(m:children()) do
  1252. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1253. coroutine.resume(coroutine.create(function()
  1254. for i=0,1,0.1 do
  1255. wait()
  1256. v.Transparency=v.Transparency-0.1
  1257. end
  1258. v.Transparency=0
  1259. end))
  1260. v.Transparency=0
  1261. end
  1262. end
  1263. end
  1264.  
  1265. local jumped = false
  1266. function jump()
  1267. attack = true
  1268. jumped = true
  1269. hum.WalkSpeed = 0
  1270. MagicBlock(bc("Really black"),root.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1271. CFuncs["Sound"].Create("rbxassetid://169380495", root, 11, 1)
  1272. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  1273. for i = 0,15,0.1 do
  1274. swait()
  1275. MagicBlock(bc("Really black"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1276. MagicBlock(bc("Really black"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1277. 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)
  1278. 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)
  1279. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(50),math.rad(0),math.rad(0)),0.05)
  1280. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.05)
  1281. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1282. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1283. end
  1284. local bv = Instance.new("BodyVelocity")
  1285. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1286. bv.velocity = Vector3.new(0,500,0)
  1287. bv.Parent = root
  1288. game:GetService("Debris"):AddItem(bv, 0.5)
  1289. local rng = Instance.new("Part", char)
  1290. rng.Anchored = true
  1291. rng.BrickColor = BrickColor.new("Black")
  1292. rng.CanCollide = false
  1293. rng.FormFactor = 3
  1294. rng.Name = "Ring"
  1295. rng.Size = Vector3.new(1, 1, 1)
  1296. rng.Transparency = 0
  1297. rng.TopSurface = 0
  1298. rng.BottomSurface = 0
  1299. rng.Position = root.Position
  1300. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1301. local rngm = Instance.new("SpecialMesh", rng)
  1302. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1303. local rng2 = rng:Clone()
  1304. rng2.Parent = char
  1305. local rng2m = rng2.Mesh
  1306. local rng3 = rng:Clone()
  1307. rng3.Parent = char
  1308. local rng3m = rng3.Mesh
  1309. local rng4 = rng:Clone()
  1310. rng4.Parent = char
  1311. local rng4m = rng4.Mesh
  1312. local rng5 = rng:Clone()
  1313. rng5.Parent = char
  1314. local rng5m = rng5.Mesh
  1315. CFuncs["Sound"].Create("rbxassetid://324867021", rng, 10, 1)
  1316. wait()
  1317. local scaler = 10
  1318. local scaler2 = 10
  1319. game:GetService("Debris"):AddItem(bv, 2.4)
  1320. hum.WalkSpeed = 50
  1321. MagicBlock(bc("Really black"),root.CFrame,15,15,15,10,10,10,0.015)
  1322. for i = 0,10,0.1 do
  1323. swait()
  1324. rng.Transparency = rng.Transparency + 0.01
  1325. rng2.Transparency = rng2.Transparency + 0.01
  1326. rng3.Transparency = rng3.Transparency + 0.01
  1327. rng4.Transparency = rng4.Transparency + 0.01
  1328. rng5.Transparency = rng5.Transparency + 0.01
  1329. scaler = scaler - 0.125
  1330. scaler2 = scaler2 - 0.1
  1331. rng2m.Scale = rng2m.Scale + Vector3.new(scaler/1.25, scaler/1.25, 20)
  1332. rng3m.Scale = rng3m.Scale + Vector3.new(scaler/1.5, scaler/1.5, 30)
  1333. rng4m.Scale = rng4m.Scale + Vector3.new(scaler/1.75, scaler/1.75, 40)
  1334. rng5m.Scale = rng5m.Scale + Vector3.new(scaler/2, scaler/2, 50)
  1335. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1336. 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)
  1337. 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)
  1338. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.5)
  1339. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.5)
  1340. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  1341. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.5)
  1342. end
  1343. game:GetService("Debris"):AddItem(rng, 0.1)
  1344. game:GetService("Debris"):AddItem(rng2, 0.1)
  1345. game:GetService("Debris"):AddItem(rng3, 0.1)
  1346. game:GetService("Debris"):AddItem(rng4, 0.1)
  1347. game:GetService("Debris"):AddItem(rng5, 0.1)
  1348. hum.WalkSpeed = 16
  1349. attack = false
  1350. jumped = false
  1351. end
  1352.  
  1353. function dash()
  1354. attack = true
  1355. jumped = true
  1356. hum.WalkSpeed = 0
  1357. local bv = Instance.new("BodyVelocity")
  1358. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1359. bv.velocity = root.CFrame.lookVector*150
  1360. bv.Parent = root
  1361. game:GetService("Debris"):AddItem(bv, 1)
  1362. local rng = Instance.new("Part", char)
  1363. rng.Anchored = true
  1364. rng.BrickColor = BrickColor.new("Black")
  1365. rng.CanCollide = false
  1366. rng.FormFactor = 3
  1367. rng.Name = "Ring"
  1368. rng.Size = Vector3.new(1, 1, 1)
  1369. rng.Transparency = 0
  1370. rng.TopSurface = 0
  1371. rng.BottomSurface = 0
  1372. rng.CFrame = root.CFrame
  1373. local rngm = Instance.new("SpecialMesh", rng)
  1374. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1375. local rng2 = rng:Clone()
  1376. rng2.Parent = char
  1377. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  1378. local rng2m = rng2.Mesh
  1379. local rng3 = rng:Clone()
  1380. rng3.Parent = char
  1381. rng3.CFrame = root.CFrame + root.CFrame.lookVector*20
  1382. local rng3m = rng3.Mesh
  1383. local rng4 = rng:Clone()
  1384. rng4.Parent = char
  1385. rng4.CFrame = root.CFrame + root.CFrame.lookVector*30
  1386. local rng4m = rng4.Mesh
  1387. local rng5 = rng:Clone()
  1388. rng5.Parent = char
  1389. rng5.CFrame = root.CFrame + root.CFrame.lookVector*40
  1390. local rng5m = rng5.Mesh
  1391. CFuncs["Sound"].Create("rbxassetid://324867021", root, 10, 1)
  1392. wait()
  1393. local scaler = 10/5
  1394. local scaler2 = 10/5
  1395. local hit = larm.Touched:connect(function(hit)
  1396. Damagefunc(hit,25,34,math.random(10,20),"Normal",root,.2,1)
  1397. end)
  1398. for i = 0,10,0.1 do
  1399. swait()
  1400. MagicBlock(bc("Really black"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1401. rng.Transparency = rng.Transparency + 0.01
  1402. rng2.Transparency = rng2.Transparency + 0.01
  1403. rng3.Transparency = rng3.Transparency + 0.01
  1404. rng4.Transparency = rng4.Transparency + 0.01
  1405. rng5.Transparency = rng5.Transparency + 0.01
  1406. scaler = scaler - 0.125/5
  1407. scaler2 = scaler2 - 0.1/5
  1408. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 0)
  1409. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1410. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  1411. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1412. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1413. 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)
  1414. 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)
  1415. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-80)),0.5)
  1416. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
  1417. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  1418. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-110)), 0.5)
  1419. end
  1420. game:GetService("Debris"):AddItem(rng, 0.1)
  1421. game:GetService("Debris"):AddItem(rng2, 0.1)
  1422. game:GetService("Debris"):AddItem(rng3, 0.1)
  1423. game:GetService("Debris"):AddItem(rng4, 0.1)
  1424. game:GetService("Debris"):AddItem(rng5, 0.1)
  1425. hum.WalkSpeed = 16
  1426. hit:disconnect()
  1427. attack = false
  1428. jumped = false
  1429. end
  1430.  
  1431. function boom()
  1432. attack = true
  1433. jumped = true
  1434. hum.WalkSpeed = 5
  1435. MagicBlock(bc("Really black"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1436. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  1437. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  1438. for i = 0,15,0.1 do
  1439. swait()
  1440. MagicBlock(bc("Really black"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1441. 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)
  1442. 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)
  1443. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1444. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1445. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1446. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1447. end
  1448. local rng = Instance.new("Part", char)
  1449. rng.Anchored = true
  1450. rng.BrickColor = BrickColor.new("Black")
  1451. rng.CanCollide = false
  1452. rng.FormFactor = 3
  1453. rng.Name = "Ring"
  1454. rng.Size = Vector3.new(1, 1, 1)
  1455. rng.Transparency = 0
  1456. rng.TopSurface = 0
  1457. rng.BottomSurface = 0
  1458. rng.Position = root.Position
  1459. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1460. local rngm = Instance.new("SpecialMesh", rng)
  1461. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1462. local rng2 = rng:Clone()
  1463. rng2.Parent = char
  1464. local rng2m = rng2.Mesh
  1465. local rng3 = rng:Clone()
  1466. rng3.Parent = char
  1467. local rng3m = rng3.Mesh
  1468. local rng4 = rng:Clone()
  1469. rng4.Parent = char
  1470. local rng4m = rng4.Mesh
  1471. local rng5 = rng:Clone()
  1472. rng5.Parent = char
  1473. local rng5m = rng5.Mesh
  1474. local hit = rng5.Touched:connect(function(hit)
  1475. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  1476. end)
  1477. MagicBlock(bc("Really black"),root.CFrame,15,15,15,5,5,5,0.015)
  1478. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 17, 1)
  1479. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 15, 0.85)
  1480. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 17, 1)
  1481. wait()
  1482. local scaler = 10
  1483. local scaler2 = 10
  1484. for i = 0,10,0.1 do
  1485. swait()
  1486. rng.Transparency = rng.Transparency + 0.01
  1487. rng2.Transparency = rng2.Transparency + 0.01
  1488. rng3.Transparency = rng3.Transparency + 0.01
  1489. rng4.Transparency = rng4.Transparency + 0.01
  1490. rng5.Transparency = rng5.Transparency + 0.01
  1491. scaler = scaler - 0.125
  1492. scaler2 = scaler2 - 0.1
  1493. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4)
  1494. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3)
  1495. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2)
  1496. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1)
  1497. rng5.Size = rng5m.Scale
  1498. rng5.CFrame = rng.CFrame
  1499. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5)
  1500. 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)
  1501. 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)
  1502. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5)
  1503. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1504. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5)
  1505. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5)
  1506. end
  1507. hit:disconnect()
  1508. game:GetService("Debris"):AddItem(rng, 1)
  1509. game:GetService("Debris"):AddItem(rng2, 1)
  1510. game:GetService("Debris"):AddItem(rng3, 1)
  1511. game:GetService("Debris"):AddItem(rng4, 1)
  1512. game:GetService("Debris"):AddItem(rng5, 1)
  1513. hum.WalkSpeed = 16
  1514. attack = false
  1515. jumped = false
  1516. end
  1517.  
  1518. function shooty()
  1519. attack = true
  1520. hum.WalkSpeed = 30
  1521. MagicBlock(bc("Really black"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1522. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  1523. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  1524. for i = 0,15,0.1 do
  1525. swait()
  1526. MagicBlock(bc("Really black"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1527. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1528. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1529. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1530. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1531. end
  1532. CFuncs["Sound"].Create("rbxassetid://187137517", root, 10, 1)
  1533. local a = Instance.new("Part",Character)
  1534. a.Name = "Direction"
  1535. a.Anchored = true
  1536. a.BrickColor = bc("Black")
  1537. a.Material = "Neon"
  1538. a.Transparency = 1
  1539. a.CanCollide = false
  1540. local ray = Ray.new(
  1541. root.CFrame.p, -- origin
  1542. (mouse.Hit.p - root.CFrame.p).unit * 500 -- direction
  1543. )
  1544. local ignore = Character
  1545. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1546. a.BottomSurface = 10
  1547. a.TopSurface = 10
  1548. local distance = (root.CFrame.p - position).magnitude
  1549. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1550. a.CFrame = CFrame.new(root.CFrame.p, position) * CFrame.new(0, 0, 0)
  1551. local lb = Instance.new("Part")
  1552. lb.Parent = char
  1553. lb.BrickColor = bc("Black")
  1554. lb.CanCollide = false
  1555. lb.Material = "Neon"
  1556. lb.Anchored = true
  1557. lb.TopSurface = 0
  1558. lb.BottomSurface = 0
  1559. lb.Transparency = 0
  1560. lb.Size = vt(0.5,0.5,0.5)
  1561. lb.CFrame = sorb.CFrame
  1562. lb.Anchored = false
  1563. local thingery = Instance.new("SpecialMesh",lb)
  1564. thingery.MeshType = "Sphere"
  1565. thingery.Scale = vt(25,25,25)
  1566. game:GetService("Debris"):AddItem(lb, 10)
  1567. local bv = Instance.new("BodyVelocity")
  1568. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1569. bv.velocity = a.CFrame.lookVector*150
  1570. bv.Parent = lb
  1571. game:GetService("Debris"):AddItem(a, 0.1)
  1572. wait(0.05)
  1573. local hitted = false
  1574. lb.Touched:connect(function(hit)
  1575. if hitted == false then
  1576. hitted = true
  1577. lb.Anchored = true
  1578. lb.Transparency = 1
  1579. local rng = Instance.new("Part", char)
  1580. rng.Anchored = true
  1581. rng.BrickColor = BrickColor.new("Black")
  1582. rng.CanCollide = false
  1583. rng.FormFactor = 3
  1584. rng.Name = "Ring"
  1585. rng.Size = Vector3.new(1, 1, 1)
  1586. rng.Transparency = 0
  1587. rng.TopSurface = 0
  1588. rng.BottomSurface = 0
  1589. rng.CFrame = lb.CFrame
  1590. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1591. local rngm = Instance.new("SpecialMesh", rng)
  1592. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1593. local rng2 = rng:Clone()
  1594. rng2.Parent = char
  1595. local rng2m = rng2.Mesh
  1596. local rng3 = rng:Clone()
  1597. rng3.Parent = char
  1598. local rng3m = rng3.Mesh
  1599. local rng4 = rng:Clone()
  1600. rng4.Parent = char
  1601. local rng4m = rng4.Mesh
  1602. local rng5 = rng:Clone()
  1603. rng5.Parent = char
  1604. rng5.CFrame = rng5.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1605. local rng5m = rng5.Mesh
  1606. rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1607. rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1608. rng4.CFrame = rng4.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1609. MagicBlock(bc("Really black"),lb.CFrame,15,15,15,5,5,5,0.015)
  1610. local rng6 = rng:Clone()
  1611. rng6.Material = "Neon"
  1612. rng6.Parent = char
  1613. local rng6m = rng6.Mesh
  1614. rng6m.Scale = vt(1,1,1)
  1615. rng6m.MeshType = "Sphere"
  1616. local hita = rng6.Touched:connect(function(hit)
  1617. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  1618. end)
  1619. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 15, 1)
  1620. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 15, 0.75)
  1621. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 15, 1)
  1622. local scaler = 5
  1623. local scaler2 = 5
  1624. for i = 0,20,0.1 do
  1625. swait()
  1626. rng.Transparency = rng.Transparency + 0.005
  1627. rng2.Transparency = rng2.Transparency + 0.005
  1628. rng3.Transparency = rng3.Transparency + 0.005
  1629. rng4.Transparency = rng4.Transparency + 0.005
  1630. rng5.Transparency = rng5.Transparency + 0.005
  1631. rng6.Transparency = rng6.Transparency + 0.005
  1632. scaler = scaler - 0.005/2
  1633. scaler2 = scaler2 - 0.05/2
  1634. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  1635. rng6.CFrame = rng.CFrame
  1636. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1637. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1638. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1639. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  1640. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1641. end
  1642. hita:disconnect()
  1643. game:GetService("Debris"):AddItem(rng, 1)
  1644. game:GetService("Debris"):AddItem(rng2, 1)
  1645. game:GetService("Debris"):AddItem(rng3, 1)
  1646. game:GetService("Debris"):AddItem(rng4, 1)
  1647. game:GetService("Debris"):AddItem(rng5, 1)
  1648. game:GetService("Debris"):AddItem(rng6, 1)
  1649. end
  1650. end)
  1651. for i = 0,2,0.1 do
  1652. swait()
  1653. MagicBlock(bc("Really black"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1654. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1655. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1656. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1657. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1658. end
  1659. attack = false
  1660. end
  1661.  
  1662. function superpunch()
  1663. attack = true
  1664. jumped = true
  1665. hum.WalkSpeed = 5
  1666. MagicBlock(bc("Really black"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1667. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  1668. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  1669. for i = 0,15,0.1 do
  1670. swait()
  1671. MagicBlock(bc("Really black"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1672. 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)
  1673. 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)
  1674. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1675. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1676. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1677. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1678. end
  1679. local rng = Instance.new("Part", char)
  1680. rng.Anchored = true
  1681. rng.BrickColor = BrickColor.new("Black")
  1682. rng.CanCollide = false
  1683. rng.FormFactor = 3
  1684. rng.Name = "Ring"
  1685. rng.Size = Vector3.new(1, 1, 1)
  1686. rng.Transparency = 0
  1687. rng.TopSurface = 0
  1688. rng.BottomSurface = 0
  1689. rng.CFrame = root.CFrame
  1690. local rngm = Instance.new("SpecialMesh", rng)
  1691. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1692. local rng2 = rng:Clone()
  1693. rng2.Parent = char
  1694. local rng2m = rng2.Mesh
  1695. local rng3 = rng:Clone()
  1696. rng3.Parent = char
  1697. local rng3m = rng3.Mesh
  1698. local rng4 = rng:Clone()
  1699. rng4.Parent = char
  1700. local rng4m = rng4.Mesh
  1701. local rng5 = rng:Clone()
  1702. rng5.Parent = char
  1703. local rng5m = rng5.Mesh
  1704. local rng6 = rng:Clone()
  1705. rng6.Material = "Neon"
  1706. rng6.Parent = char
  1707. local rng6m = rng6.Mesh
  1708. rng6m.Scale = vt(1,1,1)
  1709. rng6m.MeshType = "Sphere"
  1710. local hita = rng6.Touched:connect(function(hit)
  1711. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  1712. end)
  1713. rng2.CFrame = root.CFrame
  1714. rng3.CFrame = root.CFrame
  1715. rng4.CFrame = root.CFrame
  1716. rng5.CFrame = root.CFrame
  1717. rng6.CFrame = root.CFrame
  1718. CFuncs["Sound"].Create("rbxassetid://260430117", rng, 15, 1)
  1719. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 15, 0.85)
  1720. CFuncs["Sound"].Create("rbxassetid://169628396", rng, 15, 1)
  1721. CFuncs["Sound"].Create("rbxassetid://137994058", rng, 15, 1)
  1722. CFuncs["Sound"].Create("rbxassetid://138186576", rng, 15, 1)
  1723. wait()
  1724. local scaler = 10/5
  1725. local scaler2 = 10/5
  1726. MagicBlock(bc("Really black"),root.CFrame,15,15,15,5,5,5,0.015)
  1727. for i = 0,10,0.1 do
  1728. swait()
  1729. MagicBlock(bc("Really black"),rng6.CFrame,5,5,5,5,5,5,0.1)
  1730. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2
  1731. rng2.CFrame = rng2.CFrame + rng2.CFrame.lookVector*scaler2/1.25
  1732. rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/1.5
  1733. rng4.CFrame = rng4.CFrame + rng4.CFrame.lookVector*scaler2/1.75
  1734. rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/2
  1735. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  1736. rng6.CFrame = rng.CFrame
  1737. rng.Transparency = rng.Transparency + 0.01
  1738. rng2.Transparency = rng2.Transparency + 0.01
  1739. rng3.Transparency = rng3.Transparency + 0.01
  1740. rng4.Transparency = rng4.Transparency + 0.01
  1741. rng5.Transparency = rng5.Transparency + 0.01
  1742. rng6.Transparency = rng6.Transparency + 0.01
  1743. scaler = scaler - 0.125/5
  1744. scaler2 = scaler2 - 0.1/5
  1745. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 1.5)
  1746. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1)
  1747. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0.5)
  1748. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  1749. rngm.Scale = rngm.Scale + Vector3.new(scaler2/3, scaler2/3, 2)
  1750. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1751. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1752. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1753. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1754. end
  1755. hita:disconnect()
  1756. game:GetService("Debris"):AddItem(rng, 1)
  1757. game:GetService("Debris"):AddItem(rng2, 1)
  1758. game:GetService("Debris"):AddItem(rng3, 1)
  1759. game:GetService("Debris"):AddItem(rng4, 1)
  1760. game:GetService("Debris"):AddItem(rng5, 1)
  1761. hum.WalkSpeed = 16
  1762. attack = false
  1763. jumped = false
  1764. end
  1765.  
  1766.  
  1767. mouse.KeyDown:connect(function(k)
  1768. if k == "z" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  1769. jump()
  1770. end
  1771. if k == "x" and attack == false then
  1772. dash()
  1773. end
  1774. if k == "c" and attack == false then
  1775. boom()
  1776. end
  1777. if k == "v" and attack == false then
  1778. shooty()
  1779. end
  1780. if k == "b" and attack == false then
  1781. superpunch()
  1782. end
  1783. end)
  1784. Humanoid.Animator.Parent = nil
  1785. idleanim=.4
  1786. while true do
  1787. swait()
  1788. sine = sine + change
  1789. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1790. local velderp=RootPart.Velocity.y
  1791. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1792. if equipped==true or equipped==false then
  1793. if attack==false then
  1794. idle=idle+1
  1795. else
  1796. idle=0
  1797. end
  1798. if idle>=500 then
  1799. if attack==false then
  1800. --Sheath()
  1801. end
  1802. end
  1803. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1804. Anim="Jump"
  1805. if attack==false then
  1806. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1807. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1808. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1809. 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)
  1810. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1811. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1812. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1813. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1814. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1815. end
  1816. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1817. Anim="Fall"
  1818. if attack==false then
  1819. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1820. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1821. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1822. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1823. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1824. 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)
  1825. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1826. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1827. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1828. end
  1829. elseif torvel<1 and hitfloor~=nil then
  1830. Anim="Idle"
  1831. if jumped == false then
  1832. 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)
  1833. 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)
  1834. end
  1835. if attack==false then
  1836. 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)
  1837. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  1838. 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)
  1839. 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)
  1840. end
  1841. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1842. Anim="Walk"
  1843. if jumped == false then
  1844. 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)
  1845. 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)
  1846. end
  1847. if attack==false then
  1848. 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)
  1849. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1850. 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)
  1851. 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)
  1852. end
  1853. elseif torvel>=22 and hitfloor~=nil then
  1854. Anim="Run"
  1855. if jumped == false then
  1856. 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)
  1857. 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)
  1858. end
  1859. if attack==false then
  1860. 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)
  1861. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1862. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  1863. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  1864.  
  1865. function plrIgnore(char)
  1866. for i,v in pairs(char:GetChildren()) do
  1867. if #v:GetChildren() >= 1 then
  1868. plrIgnore(v)
  1869. end
  1870. table.insert(ignlist,v)
  1871. end
  1872. end
  1873.  
  1874. function timeStop(target)
  1875. for i,v in pairs(target:GetChildren()) do
  1876. if #v:GetChildren() >= 1 then
  1877. timeStop(v)
  1878. end
  1879. local isinign = false
  1880. for i,b in pairs(ignlist) do
  1881. if b == v then
  1882. isinign = true
  1883. end
  1884. end
  1885. if isinign == false then
  1886. if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("UnionOperation") then
  1887. if v.Anchored == false then
  1888. table.insert(tstab,v)
  1889. v.Anchored = true
  1890. end
  1891. end
  1892. if v:IsA("Sound") then
  1893. local isintab = false
  1894. for i,b in pairs(stab) do
  1895. if v == b[1] then
  1896. isintab = true
  1897. end
  1898. end
  1899. if isintab == false then
  1900. table.insert(stab,{v,v.Pitch})
  1901. end
  1902. end
  1903. --[[if v:IsA("Script") or v:IsA("LocalScript") then
  1904. if v.Disabled == false then
  1905. table.insert(tsstab,v)
  1906. v.Disabled = true
  1907. end
  1908. end]]
  1909. end
  1910. end
  1911. local isinign = false
  1912. for i,b in pairs(ignlist) do
  1913. if b == target then
  1914. isinign = true
  1915. end
  1916. end
  1917. if isinign == false then
  1918. if target:IsA("Part") or target:IsA("WedgePart") or target:IsA("UnionOperation") then
  1919. if target.Anchored == false then
  1920. table.insert(tstab,target)
  1921. target.Anchored = true
  1922. end
  1923. end
  1924. if target:IsA("Sound") then
  1925. table.insert(stab,{target,target.Pitch})
  1926. end
  1927. end
  1928. end
  1929.  
  1930. plr:GetMouse().KeyDown:connect(function(key)
  1931. if key == "g" then
  1932. if deb == true then
  1933. deb = false
  1934. else
  1935. print("R!")
  1936. deb = true
  1937.  
  1938. --[[local s = Instance.new("Sound",game:GetService("Workspace"))
  1939. s.SoundId = "rbxassetid://576124533"
  1940. s.Volume = 0.5
  1941. s:Play()
  1942.  
  1943. wait(1.5)]]
  1944.  
  1945. print("ZA WARUDO!")
  1946. local cc = Instance.new("ColorCorrectionEffect",game:GetService("Lighting"))
  1947. spawn(function()
  1948. plr.Character.Humanoid.WalkSpeed = 0
  1949. plr.Character.Humanoid.JumpPower = 0
  1950. local p = Instance.new("Part",plr.Character)
  1951. p.Transparency = 0.5
  1952. p.BrickColor = BrickColor.new("Institutional white")
  1953. p.Size = Vector3.new(0.2,0.2,0.2)
  1954. p.Anchored = true
  1955. p.CanCollide = false
  1956. p.CFrame = plr.Character.Torso.CFrame
  1957. local m = Instance.new("SpecialMesh",p)
  1958. m.MeshType = Enum.MeshType.Sphere
  1959.  
  1960. local r = 255
  1961. local g = 255
  1962. local b = 255
  1963. local contrast = 0
  1964.  
  1965. for i=1,50 do
  1966. m.Scale = m.Scale + Vector3.new(50,50,50)
  1967. p.Transparency = p.Transparency + 0.5/50
  1968. r = r - ((255-42)/50)
  1969. g = g - ((255-0)/50)
  1970. b = b - ((255-255)/50)
  1971. contrast = contrast - 2/50
  1972. --cc.TintColor = Color3.fromRGB(r,g,b)
  1973. cc.Contrast = contrast
  1974. for i,v in pairs(stab) do
  1975. v[1].Pitch = v[1].Pitch - (v[2]/50)
  1976. end
  1977. wait()
  1978. end
  1979. p:Destroy()
  1980. plr.Character.Humanoid.WalkSpeed = 16
  1981. plr.Character.Humanoid.JumpPower = 50
  1982. end)
  1983. local sHp = plr.Character.Humanoid.Health
  1984. local hplock = plr.Character.Humanoid.HealthChanged:connect(function()
  1985. plr.Character.Humanoid.Health = sHp
  1986. end)
  1987.  
  1988. local aNew = game:GetService("Workspace").ChildAdded:connect(function(c)
  1989. timeStop(c)
  1990. end)
  1991.  
  1992. for i,v in pairs(ignlist) do
  1993. table.remove(ignlist,1)
  1994. end
  1995. plrIgnore(plr.Character)
  1996. timeStop(game:GetService("Workspace"))
  1997. while deb ~= false do wait() end
  1998. --spawn(function()
  1999. local r = 42
  2000. local g = 0
  2001. local b = 255
  2002. local contrast = -2
  2003. for i=1,50 do
  2004. r = r + ((255-42)/50)
  2005. g = g + ((255-0)/50)
  2006. b = b + ((255-255)/50)
  2007. contrast = contrast + 2/50
  2008. --cc.TintColor = Color3.fromRGB(r,g,b)
  2009. cc.Contrast = contrast
  2010. for i,v in pairs(stab) do
  2011. v[1].Pitch = v[1].Pitch + (v[2]/50)
  2012. end
  2013. wait()
  2014. end
  2015. cc:Destroy()
  2016. --end)
  2017. for i,v in pairs(tstab) do
  2018. v.Anchored = false
  2019. end
  2020. for i,v in pairs(tstab) do
  2021. table.remove(tstab,1)
  2022. end
  2023. --table.foreach(stab,print)
  2024. for i,v in pairs(stab) do
  2025. table.remove(stab,1)
  2026. end
  2027. --print("---------")
  2028. --table.foreach(stab,print)
  2029. --[[for i,v in pairs(tsstab) do
  2030. v.Disabled = false
  2031. end
  2032. for i,v in pairs(tsstab) do
  2033. table.remove(tsstab,1)
  2034. end]]
  2035. hplock:Disconnect()
  2036. aNew:Disconnect()
  2037. deb = false
  2038. end
  2039. end
  2040. end)
  2041.  
  2042. local asd = game:service'Players'.LocalPlayer
  2043. repeat wait() until asd.Character
  2044. local asdchar = asd.Character
  2045. local Head = asdchar:findFirstChild("Head")
  2046. z = Instance.new("Sound", Head)
  2047. z.SoundId = "rbxassetid://172374380" -- Put Music ID Here.
  2048. z.Looped = true
  2049. z.Volume = 4
  2050. wait(.1)
  2051. z:Play()
  2052. local transPoints = {NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.207, 0.594, 0.0187), NumberSequenceKeypoint.new(0.4, 0.55, 0.031), NumberSequenceKeypoint.new(0.57, 0.619, 0.05), NumberSequenceKeypoint.new(0.76, 0.8, 0.0375), NumberSequenceKeypoint.new(1, 1, 0)}
  2053. local sizePoints = {NumberSequenceKeypoint.new(0, 1.9, 0), NumberSequenceKeypoint.new(1, 0, 0)}
  2054. local Size = NumberSequence.new(sizePoints)
  2055. local Transparency = NumberSequence.new(transPoints)
  2056. efxBlock = Instance.new("Part", asdchar)
  2057. efxBlock.CanCollide = false
  2058. efxBlock.Material = "Neon"
  2059. efxBlock.FormFactor = "Custom"
  2060. efxBlock.Transparency = 1
  2061. efxBlock.Size = Vector3.new(0.25, 0.25, 0.25)
  2062. local mesh = Instance.new("SpecialMesh", efxBlock)
  2063. mesh.MeshType = Enum.MeshType.Sphere
  2064. mesh.Scale = Vector3.new(1, 1, 1)
  2065. local particles = Instance.new("ParticleEmitter", efxBlock)
  2066. particles.LightEmission = 0
  2067. particles.Size = Size
  2068. particles.Name = "Fire"
  2069. particles.Transparency = Transparency
  2070. particles.LockedToPart = false
  2071. particles.VelocityInheritance = -0.5
  2072. particles.LockedToPart = false
  2073. particles.Rate = 2
  2074. particles.Texture = "rbxassetid://262850915"
  2075. particles.Lifetime = NumberRange.new(3, 3)
  2076. particles.Speed = NumberRange.new(3, 3)
  2077. particles.VelocitySpread = 25
  2078. local offset = Vector3.new(0, 0, 0)
  2079. local weld = Instance.new("Weld", asdchar.Torso)
  2080. weld.Part0 = asdchar.Torso
  2081. weld.Part1 = efxBlock
  2082. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40), math.rad(40), math.rad(40))
  2083.  
  2084. end
  2085. end
  2086. end
  2087. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement