Advertisement
JRKPastesBins

Untitled

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