Advertisement
JRKPastesBins

Untitled

Sep 16th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 195.10 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://409640553"
  28. s.Pitch = 1
  29. s.Volume = 5
  30. s.Looped = true
  31. s.archivable = false
  32. s.Parent = char.Head
  33. wait(0.1)
  34. s:play()
  35.  
  36. local Create = LoadLibrary("RbxUtility").Create
  37.  
  38. CFuncs = {
  39. ["Part"] = {
  40. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  41. local Part = Create("Part"){
  42. Parent = Parent,
  43. Reflectance = Reflectance,
  44. Transparency = Transparency,
  45. CanCollide = false,
  46. Locked = true,
  47. BrickColor = BrickColor.new(tostring(BColor)),
  48. Name = Name,
  49. Size = Size,
  50. Material = Material,
  51. }
  52. RemoveOutlines(Part)
  53. return Part
  54. end;
  55. };
  56.  
  57. ["Mesh"] = {
  58. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  59. local Msh = Create(Mesh){
  60. Parent = Part,
  61. Offset = OffSet,
  62. Scale = Scale,
  63. }
  64. if Mesh == "SpecialMesh" then
  65. Msh.MeshType = MeshType
  66. Msh.MeshId = MeshId
  67. end
  68. return Msh
  69. end;
  70. };
  71.  
  72. ["Mesh"] = {
  73. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  74. local Msh = Create(Mesh){
  75. Parent = Part,
  76. Offset = OffSet,
  77. Scale = Scale,
  78. }
  79. if Mesh == "SpecialMesh" then
  80. Msh.MeshType = MeshType
  81. Msh.MeshId = MeshId
  82. end
  83. return Msh
  84. end;
  85. };
  86.  
  87. ["Weld"] = {
  88. Create = function(Parent, Part0, Part1, C0, C1)
  89. local Weld = Create("Weld"){
  90. Parent = Parent,
  91. Part0 = Part0,
  92. Part1 = Part1,
  93. C0 = C0,
  94. C1 = C1,
  95. }
  96. return Weld
  97. end;
  98. };
  99.  
  100. ["Sound"] = {
  101. Create = function(id, par, vol, pit)
  102. coroutine.resume(coroutine.create(function()
  103. local S = Create("Sound"){
  104. Volume = vol,
  105. Pitch = pit or 1,
  106. SoundId = id,
  107. Parent = par or workspace,
  108. }
  109. wait()
  110. S:play()
  111. game:GetService("Debris"):AddItem(S, 10)
  112. end))
  113. end;
  114. };
  115.  
  116. ["ParticleEmitter"] = {
  117. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  118. local fp = Create("ParticleEmitter"){
  119. Parent = Parent,
  120. Color = ColorSequence.new(Color1, Color2),
  121. LightEmission = LightEmission,
  122. Size = Size,
  123. Texture = Texture,
  124. Transparency = Transparency,
  125. ZOffset = ZOffset,
  126. Acceleration = Accel,
  127. Drag = Drag,
  128. LockedToPart = LockedToPart,
  129. VelocityInheritance = VelocityInheritance,
  130. EmissionDirection = EmissionDirection,
  131. Enabled = Enabled,
  132. Lifetime = LifeTime,
  133. Rate = Rate,
  134. Rotation = Rotation,
  135. RotSpeed = RotSpeed,
  136. Speed = Speed,
  137. VelocitySpread = VelocitySpread,
  138. }
  139. return fp
  140. end;
  141. };
  142.  
  143. CreateTemplate = {
  144.  
  145. };
  146. }
  147.  
  148.  
  149.  
  150. New = function(Object, Parent, Name, Data)
  151. local Object = Instance.new(Object)
  152. for Index, Value in pairs(Data or {}) do
  153. Object[Index] = Value
  154. end
  155. Object.Parent = Parent
  156. Object.Name = Name
  157. return Object
  158. end
  159. local m = Instance.new("Model",char)
  160.  
  161. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  162. local p = Instance.new("Part")
  163. p.Parent = parent
  164. p.Size = Vector3.new(1,1,1)
  165. p.Transparency = transparency
  166. p.Reflectance = reflectance
  167. p.CanCollide = false
  168. p.Locked = true
  169. p.BrickColor = brickcolor
  170. p.Material = material
  171. return p
  172. end
  173.  
  174. function CreateMesh(parent,meshtype,x1,y1,z1)
  175. local mesh = Instance.new("SpecialMesh",parent)
  176. mesh.MeshType = meshtype
  177. mesh.Scale = Vector3.new(x1,y1,z1)
  178. return mesh
  179. end
  180.  
  181. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  182. local mesh = Instance.new("SpecialMesh",parent)
  183. mesh.MeshType = "FileMesh"
  184. mesh.MeshId = meshid
  185. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  186. mesh.Scale = Vector3.new(x1,y1,z1)
  187. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  188. return mesh
  189. end
  190.  
  191. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  192. local weld = Instance.new("Weld")
  193. weld.Parent = parent
  194. weld.Part0 = part0
  195. weld.Part1 = part1
  196. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  197. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  198. return weld
  199. end
  200.  
  201.  
  202. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  203. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  204. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  205. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  206.  
  207. Player=game:GetService("Players").LocalPlayer
  208. Character=Player.Character
  209. PlayerGui=Player.PlayerGui
  210. Backpack=Player.Backpack
  211. Torso=Character.Torso
  212. Head=Character.Head
  213. Humanoid=Character.Humanoid
  214. m=Instance.new('Model',Character)
  215. LeftArm=Character["Left Arm"]
  216. LeftLeg=Character["Left Leg"]
  217. RightArm=Character["Right Arm"]
  218. RightLeg=Character["Right Leg"]
  219. LS=Torso["Left Shoulder"]
  220. LH=Torso["Left Hip"]
  221. RS=Torso["Right Shoulder"]
  222. RH=Torso["Right Hip"]
  223. Face = Head.face
  224. Neck=Torso.Neck
  225. it=Instance.new
  226. attacktype=1
  227. vt=Vector3.new
  228. cf=CFrame.new
  229. euler=CFrame.fromEulerAnglesXYZ
  230. angles=CFrame.Angles
  231. cloaked=false
  232. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  233. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  234. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  235. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  236. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  237. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  238. RootPart=Character.HumanoidRootPart
  239. RootJoint=RootPart.RootJoint
  240. RootCF=euler(-1.57,0,3.14)
  241. attack = false
  242. attackdebounce = false
  243. deb=false
  244. equipped=true
  245. hand=false
  246. MMouse=nil
  247. combo=0
  248. mana=0
  249. trispeed=.2
  250. attackmode='none'
  251. local idle=0
  252. local Anim="Idle"
  253. local Effects={}
  254. local gun=false
  255. local shoot=false
  256. local sine = 0
  257. local change = 1
  258. player=nil
  259.  
  260. mouse=Player:GetMouse()
  261. --save shoulders
  262. RSH, LSH=nil, nil
  263. --welds
  264. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  265. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  266. LH=Torso["Left Hip"]
  267. RH=Torso["Right Hip"]
  268. TorsoColor=Torso.BrickColor
  269. function NoOutline(Part)
  270. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  271. end
  272. player=Player
  273. ch=Character
  274. RSH=ch.Torso["Right Shoulder"]
  275. LSH=ch.Torso["Left Shoulder"]
  276. --
  277. RSH.Parent=nil
  278. LSH.Parent=nil
  279. --
  280. RW.Name="Right Shoulder"
  281. RW.Part0=ch.Torso
  282. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  283. RW.C1=cf(0, 0.5, 0)
  284. RW.Part1=ch["Right Arm"]
  285. RW.Parent=ch.Torso
  286. --
  287. LW.Name="Left Shoulder"
  288. LW.Part0=ch.Torso
  289. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  290. LW.C1=cf(0, 0.5, 0)
  291. LW.Part1=ch["Left Arm"]
  292. LW.Parent=ch.Torso
  293.  
  294. local Stats=Instance.new("BoolValue")
  295. Stats.Name="Stats"
  296. Stats.Parent=Character
  297. local Atk=Instance.new("NumberValue")
  298. Atk.Name="Damage"
  299. Atk.Parent=Stats
  300. Atk.Value=1
  301. local Def=Instance.new("NumberValue")
  302. Def.Name="Defense"
  303. Def.Parent=Stats
  304. Def.Value=1
  305. local Speed=Instance.new("NumberValue")
  306. Speed.Name="Speed"
  307. Speed.Parent=Stats
  308. Speed.Value=1
  309. local Mvmt=Instance.new("NumberValue")
  310. Mvmt.Name="Movement"
  311. Mvmt.Parent=Stats
  312. Mvmt.Value=1
  313.  
  314. local donum=0
  315.  
  316.  
  317. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  318. local fp=it("Part")
  319. fp.formFactor=formfactor
  320. fp.Parent=parent
  321. fp.Reflectance=reflectance
  322. fp.Transparency=transparency
  323. fp.CanCollide=false
  324. fp.Locked=true
  325. fp.BrickColor=brickcolor
  326. fp.Name=name
  327. fp.Size=size
  328. fp.Position=Torso.Position
  329. NoOutline(fp)
  330. fp.Material="SmoothPlastic"
  331. fp:BreakJoints()
  332. return fp
  333. end
  334.  
  335. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  336. local mesh=it(Mesh)
  337. mesh.Parent=part
  338. if Mesh=="SpecialMesh" then
  339. mesh.MeshType=meshtype
  340. if meshid~="nil" then
  341. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  342. end
  343. end
  344. mesh.Offset=offset
  345. mesh.Scale=scale
  346. return mesh
  347. end
  348.  
  349. function weld(parent,part0,part1,c0)
  350. local weld=it("Weld")
  351. weld.Parent=parent
  352. weld.Part0=part0
  353. weld.Part1=part1
  354. weld.C0=c0
  355. return weld
  356. end
  357.  
  358. local Color1=Torso.BrickColor
  359.  
  360. local bodvel=Instance.new("BodyVelocity")
  361. local bg=Instance.new("BodyGyro")
  362.  
  363. function swait(num)
  364. if num==0 or num==nil then
  365. game:service'RunService'.Stepped:wait(0)
  366. else
  367. for i=0,num do
  368. game:service'RunService'.Stepped:wait(0)
  369. end
  370. end
  371. end
  372.  
  373.  
  374. so = function(id,par,vol,pit)
  375. coroutine.resume(coroutine.create(function()
  376. local sou = Instance.new("Sound",par or workspace)
  377. sou.Volume=vol
  378. sou.Pitch=pit or 1
  379. sou.SoundId=id
  380. swait()
  381. sou:play()
  382. game:GetService("Debris"):AddItem(sou,6)
  383. end))
  384. end
  385.  
  386. function clerp(a,b,t)
  387. local qa = {QuaternionFromCFrame(a)}
  388. local qb = {QuaternionFromCFrame(b)}
  389. local ax, ay, az = a.x, a.y, a.z
  390. local bx, by, bz = b.x, b.y, b.z
  391. local _t = 1-t
  392. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  393. end
  394.  
  395. function QuaternionFromCFrame(cf)
  396. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  397. local trace = m00 + m11 + m22
  398. if trace > 0 then
  399. local s = math.sqrt(1 + trace)
  400. local recip = 0.5/s
  401. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  402. else
  403. local i = 0
  404. if m11 > m00 then
  405. i = 1
  406. end
  407. if m22 > (i == 0 and m00 or m11) then
  408. i = 2
  409. end
  410. if i == 0 then
  411. local s = math.sqrt(m00-m11-m22+1)
  412. local recip = 0.5/s
  413. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  414. elseif i == 1 then
  415. local s = math.sqrt(m11-m22-m00+1)
  416. local recip = 0.5/s
  417. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  418. elseif i == 2 then
  419. local s = math.sqrt(m22-m00-m11+1)
  420. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  421. end
  422. end
  423. end
  424.  
  425. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  426. local xs, ys, zs = x + x, y + y, z + z
  427. local wx, wy, wz = w*xs, w*ys, w*zs
  428. local xx = x*xs
  429. local xy = x*ys
  430. local xz = x*zs
  431. local yy = y*ys
  432. local yz = y*zs
  433. local zz = z*zs
  434. 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))
  435. end
  436.  
  437. function QuaternionSlerp(a, b, t)
  438. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  439. local startInterp, finishInterp;
  440. if cosTheta >= 0.0001 then
  441. if (1 - cosTheta) > 0.0001 then
  442. local theta = math.acos(cosTheta)
  443. local invSinTheta = 1/math.sin(theta)
  444. startInterp = math.sin((1-t)*theta)*invSinTheta
  445. finishInterp = math.sin(t*theta)*invSinTheta
  446. else
  447. startInterp = 1-t
  448. finishInterp = t
  449. end
  450. else
  451. if (1+cosTheta) > 0.0001 then
  452. local theta = math.acos(-cosTheta)
  453. local invSinTheta = 1/math.sin(theta)
  454. startInterp = math.sin((t-1)*theta)*invSinTheta
  455. finishInterp = math.sin(t*theta)*invSinTheta
  456. else
  457. startInterp = t-1
  458. finishInterp = t
  459. end
  460. end
  461. 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
  462. end
  463.  
  464. local function CFrameFromTopBack(at, top, back)
  465. local right = top:Cross(back)
  466. return CFrame.new(at.x, at.y, at.z,
  467. right.x, top.x, back.x,
  468. right.y, top.y, back.y,
  469. right.z, top.z, back.z)
  470. end
  471.  
  472. function Triangle(a, b, c)
  473. local edg1 = (c-a):Dot((b-a).unit)
  474. local edg2 = (a-b):Dot((c-b).unit)
  475. local edg3 = (b-c):Dot((a-c).unit)
  476. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  477. a, b, c = a, b, c
  478. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  479. a, b, c = b, c, a
  480. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  481. a, b, c = c, a, b
  482. else
  483. assert(false, "unreachable")
  484. end
  485.  
  486. local len1 = (c-a):Dot((b-a).unit)
  487. local len2 = (b-a).magnitude - len1
  488. local width = (a + (b-a).unit*len1 - c).magnitude
  489.  
  490. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  491.  
  492. local list = {}
  493.  
  494. if len1 > 0.01 then
  495. local w1 = Instance.new('WedgePart', m)
  496. game:GetService("Debris"):AddItem(w1,5)
  497. w1.Material = "SmoothPlastic"
  498. w1.FormFactor = 'Custom'
  499. w1.BrickColor = BrickColor.new("Really red")
  500. w1.Transparency = 0
  501. w1.Reflectance = 0
  502. w1.Material = "SmoothPlastic"
  503. w1.CanCollide = false
  504. local l1 = Instance.new("PointLight",w1)
  505. l1.Color = Color3.new(170,0,0)
  506. NoOutline(w1)
  507. local sz = Vector3.new(0.2, width, len1)
  508. w1.Size = sz
  509. local sp = Instance.new("SpecialMesh",w1)
  510. sp.MeshType = "Wedge"
  511. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  512. w1:BreakJoints()
  513. w1.Anchored = true
  514. w1.Parent = workspace
  515. w1.Transparency = 0.7
  516. table.insert(Effects,{w1,"Disappear",.01})
  517. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  518. table.insert(list,w1)
  519. end
  520.  
  521. if len2 > 0.01 then
  522. local w2 = Instance.new('WedgePart', m)
  523. game:GetService("Debris"):AddItem(w2,5)
  524. w2.Material = "SmoothPlastic"
  525. w2.FormFactor = 'Custom'
  526. w2.BrickColor = BrickColor.new("Really red")
  527. w2.Transparency = 0
  528. w2.Reflectance = 0
  529. w2.Material = "SmoothPlastic"
  530. w2.CanCollide = false
  531. local l2 = Instance.new("PointLight",w2)
  532. l2.Color = Color3.new(170,0,0)
  533. NoOutline(w2)
  534. local sz = Vector3.new(0.2, width, len2)
  535. w2.Size = sz
  536. local sp = Instance.new("SpecialMesh",w2)
  537. sp.MeshType = "Wedge"
  538. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  539. w2:BreakJoints()
  540. w2.Anchored = true
  541. w2.Parent = workspace
  542. w2.Transparency = 0.7
  543. table.insert(Effects,{w2,"Disappear",.01})
  544. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  545. table.insert(list,w2)
  546. end
  547. return unpack(list)
  548. end
  549.  
  550.  
  551. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  552. if hit.Parent==nil then
  553. return
  554. end
  555. h=hit.Parent:FindFirstChild("Humanoid")
  556. for _,v in pairs(hit.Parent:children()) do
  557. if v:IsA("Humanoid") then
  558. h=v
  559. end
  560. end
  561. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  562. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  563. end
  564. if hit.Parent.className=="Hat" then
  565. hit=hit.Parent.Parent:findFirstChild("Head")
  566. end
  567. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  568. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  569. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  570. return
  571. end]]
  572. -- hs(hit,1.2)
  573. c=Instance.new("ObjectValue")
  574. c.Name="creator"
  575. c.Value=game:service("Players").LocalPlayer
  576. c.Parent=h
  577. game:GetService("Debris"):AddItem(c,.5)
  578. Damage=math.random(minim,maxim)
  579. -- h:TakeDamage(Damage)
  580. blocked=false
  581. block=hit.Parent:findFirstChild("Block")
  582. if block~=nil then
  583. print(block.className)
  584. if block.className=="NumberValue" then
  585. if block.Value>0 then
  586. blocked=true
  587. if decreaseblock==nil then
  588. block.Value=block.Value-1
  589. end
  590. end
  591. end
  592. if block.className=="IntValue" then
  593. if block.Value>0 then
  594. blocked=true
  595. if decreaseblock~=nil then
  596. block.Value=block.Value-1
  597. end
  598. end
  599. end
  600. end
  601. if blocked==false then
  602. -- h:TakeDamage(Damage)
  603. h.Health=h.Health-Damage
  604. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  605. else
  606. h.Health=h.Health-(Damage/2)
  607. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  608. end
  609. if Type=="Knockdown" then
  610. hum=hit.Parent.Humanoid
  611. hum.PlatformStand=true
  612. coroutine.resume(coroutine.create(function(HHumanoid)
  613. swait(1)
  614. HHumanoid.PlatformStand=false
  615. end),hum)
  616. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  617. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  618. local bodvol=Instance.new("BodyVelocity")
  619. bodvol.velocity=angle*knockback
  620. bodvol.P=5000
  621. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  622. bodvol.Parent=hit
  623. rl=Instance.new("BodyAngularVelocity")
  624. rl.P=3000
  625. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  626. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  627. rl.Parent=hit
  628. game:GetService("Debris"):AddItem(bodvol,.5)
  629. game:GetService("Debris"):AddItem(rl,.5)
  630. elseif Type=="Normal" then
  631. vp=Instance.new("BodyVelocity")
  632. vp.P=500
  633. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  634. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  635. if KnockbackType==1 then
  636. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  637. elseif KnockbackType==2 then
  638. vp.velocity=Property.CFrame.lookVector*knockback
  639. end
  640. if knockback>0 then
  641. vp.Parent=hit.Parent.Torso
  642. end
  643. game:GetService("Debris"):AddItem(vp,.5)
  644. elseif Type=="Up" then
  645. local bodyVelocity=Instance.new("BodyVelocity")
  646. bodyVelocity.velocity=vt(0,60,0)
  647. bodyVelocity.P=5000
  648. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  649. bodyVelocity.Parent=hit
  650. game:GetService("Debris"):AddItem(bodyVelocity,1)
  651. rl=Instance.new("BodyAngularVelocity")
  652. rl.P=3000
  653. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  654. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  655. rl.Parent=hit
  656. game:GetService("Debris"):AddItem(rl,.5)
  657. elseif Type=="Snare" then
  658. bp=Instance.new("BodyPosition")
  659. bp.P=2000
  660. bp.D=100
  661. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  662. bp.position=hit.Parent.Torso.Position
  663. bp.Parent=hit.Parent.Torso
  664. game:GetService("Debris"):AddItem(bp,1)
  665. elseif Type=="Target" then
  666. if Targetting==false then
  667. ZTarget=hit.Parent.Torso
  668. coroutine.resume(coroutine.create(function(Part)
  669. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  670. swait(5)
  671. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  672. end),ZTarget)
  673. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  674. targetgui=Instance.new("BillboardGui")
  675. targetgui.Parent=ZTarget
  676. targetgui.Size=UDim2.new(10,100,10,100)
  677. targ=Instance.new("ImageLabel")
  678. targ.Parent=targetgui
  679. targ.BackgroundTransparency=1
  680. targ.Image="rbxassetid://4834067"
  681. targ.Size=UDim2.new(1,0,1,0)
  682. cam.CameraType="Scriptable"
  683. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  684. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  685. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  686. Targetting=true
  687. RocketTarget=ZTarget
  688. for i=1,Property do
  689. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  690. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  691. swait()
  692. end
  693. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  694. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  695. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  696. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  697. end
  698. Targetting=false
  699. RocketTarget=nil
  700. targetgui.Parent=nil
  701. cam.CameraType="Custom"
  702. end
  703. end
  704. debounce=Instance.new("BoolValue")
  705. debounce.Name="DebounceHit"
  706. debounce.Parent=hit.Parent
  707. debounce.Value=true
  708. game:GetService("Debris"):AddItem(debounce,Delay)
  709. c=Instance.new("ObjectValue")
  710. c.Name="creator"
  711. c.Value=Player
  712. c.Parent=h
  713. game:GetService("Debris"):AddItem(c,.5)
  714. CRIT=false
  715. hitDeb=true
  716. AttackPos=6
  717. end
  718. end
  719.  
  720. showDamage=function(Char,Dealt,du,Color)
  721. m=Instance.new("Model")
  722. m.Name=tostring(Dealt)
  723. h=Instance.new("Humanoid")
  724. h.Health=0
  725. h.MaxHealth=0
  726. h.Parent=m
  727. c=Instance.new("Part")
  728. c.Transparency=0
  729. c.BrickColor=Color
  730. c.Transparency = 1
  731. c.Name="Head"
  732. c.TopSurface=0
  733. c.BottomSurface=0
  734. c.formFactor="Plate"
  735. c.Size=Vector3.new(1,.4,1)
  736.  
  737. local txt = Instance.new("BillboardGui", c)
  738. txt.Adornee = c
  739. txt.Name = "_status"
  740. txt.Size = UDim2.new(2, 0, 1.2, 0)
  741. txt.StudsOffset = Vector3.new(-9, 8, 0)
  742. local text = Instance.new("TextLabel", txt)
  743. text.Size = UDim2.new(10, 0, 7, 0)
  744. text.FontSize = "Size12"
  745. text.TextScaled = true
  746. text.TextTransparency = 0.5
  747. text.BackgroundTransparency = 1
  748. text.TextTransparency = 0.5
  749. text.TextStrokeTransparency = 0.5
  750. text.Font = "SciFi"
  751. text.TextStrokeColor3 = Color3.new(0,0,0)
  752. v=Instance.new("Part")
  753. v.Name = "ColorBrick"
  754. v.Parent=c
  755. v.FormFactor="Symmetric"
  756. v.Anchored=true
  757. v.CanCollide=false
  758. v.BottomSurface="Smooth"
  759. v.TopSurface="Smooth"
  760. v.Size=Vector3.new(10,5,3)
  761. v.Transparency=1
  762. v.CFrame=c.CFrame
  763. v.BrickColor=BrickColor.random()
  764. v.Transparency=1
  765. text.TextColor3 = t.BrickColor.Color
  766. v.Shape="Block"
  767. text.Text = tostring(Dealt)
  768. ms=Instance.new("CylinderMesh")
  769. ms.Scale=Vector3.new(.8,.8,.8)
  770. --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  771. local rndm=math.random(1,#hitsounds)
  772. local r=rndm
  773. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
  774. if CRIT==true then
  775. ms.Scale=Vector3.new(1,1.25,1)
  776. end
  777. ms.Parent=c
  778. c.Reflectance=0
  779. Instance.new("BodyGyro").Parent=c
  780. c.Parent=m
  781. if Char:findFirstChild("Head")~=nil then
  782. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  783. elseif Char.Parent:findFirstChild("Head")~=nil then
  784. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  785. end
  786. f=Instance.new("BodyPosition")
  787. f.P=2000
  788. f.D=100
  789. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  790. f.position=c.Position+Vector3.new(0,3,0)
  791. f.Parent=c
  792. game:GetService("Debris"):AddItem(m,.5+du)
  793. c.CanCollide=false
  794. m.Parent=workspace
  795. c.CanCollide=false
  796. end
  797.  
  798. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  799. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  800. end
  801.  
  802. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  803. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  804. prt.Anchored=true
  805. prt.CFrame=cframe
  806. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  807. --http://www.roblox.com/asset/?id=4770560
  808. game:GetService("Debris"):AddItem(prt,2)
  809. CF=prt.CFrame
  810. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  811. for i=0,1,0.2 do
  812. wait()
  813. Part.CFrame=CF*cf(0,0,-0.4)
  814. end
  815. for i=0,1,delay do
  816. wait()
  817. --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)
  818. Mesh.Scale=Mesh.Scale
  819. end
  820. for i=0,1,0.1 do
  821. wait()
  822. Part.Transparency=i
  823. end
  824. Part.Parent=nil
  825. end),prt,msh,CF)
  826. end
  827.  
  828. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  829. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  830. prt.Anchored=true
  831. prt.Material = "Neon"
  832. prt.CFrame=cframe
  833. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  834. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  835. game:GetService("Debris"):AddItem(prt,5)
  836. coroutine.resume(coroutine.create(function(Part,Mesh)
  837. for i=0,1,delay do
  838. swait()
  839. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  840. Part.Transparency=i
  841. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  842. end
  843. Part.Parent=nil
  844. end),prt,msh)
  845. end
  846.  
  847. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  848. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  849. prt.Anchored=true
  850. prt.Material = "Neon"
  851. prt.CFrame=cframe
  852. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  853. game:GetService("Debris"):AddItem(prt,5)
  854. coroutine.resume(coroutine.create(function(Part,Mesh)
  855. local rtype = rottype
  856. for i=0,1,delay do
  857. swait()
  858. if rtype == 1 then
  859. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  860. elseif rtype == 2 then
  861. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  862. end
  863. Part.Transparency=i
  864. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  865. end
  866. Part.Parent=nil
  867. end),prt,msh)
  868. end
  869.  
  870. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  871. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  872. prt.Anchored=true
  873. prt.CFrame=cframe
  874. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  875. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  876. game:GetService("Debris"):AddItem(prt,5)
  877. coroutine.resume(coroutine.create(function(Part,Mesh)
  878. for i=0,1,delay do
  879. wait()
  880. Part.Transparency=i
  881. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  882. end
  883. Part.Parent=nil
  884. end),prt,msh)
  885. end
  886.  
  887. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  888. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  889. prt.Anchored=true
  890. prt.Material = "Neon"
  891. prt.CFrame=cframe
  892. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  893. game:GetService("Debris"):AddItem(prt,5)
  894. coroutine.resume(coroutine.create(function(Part,Mesh)
  895. local rtype = rottype
  896. for i=0,1,delay do
  897. swait()
  898. if rtype == 1 then
  899. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  900. elseif rtype == 2 then
  901. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  902. end
  903. Part.Transparency=i
  904. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  905. end
  906. Part.Parent=nil
  907. end),prt,msh)
  908. end
  909.  
  910. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  911. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  912. prt.Anchored=true
  913. prt.Material = "Neon"
  914. prt.CFrame=cframe
  915. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  916. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  917. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  918. game:GetService("Debris"):AddItem(prt,5)
  919. coroutine.resume(coroutine.create(function(Part,Mesh)
  920. local rtype = rottype
  921. for i=0,1,delay do
  922. swait()
  923. if rtype == 1 then
  924. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  925. elseif rtype == 2 then
  926. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  927. end
  928. dec.Transparency=i
  929. dec2.Transparency=i
  930. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  931. end
  932. Part.Parent=nil
  933. end),prt,msh)
  934. end
  935.  
  936. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  937. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  938. prt.Anchored=true
  939. prt.Material = "Neon"
  940. prt.CFrame=cframe
  941. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  942. game:GetService("Debris"):AddItem(prt,5)
  943. coroutine.resume(coroutine.create(function(Part,Mesh)
  944. local rtype = rottype
  945. for i=0,1,delay do
  946. swait()
  947. if rtype == 1 then
  948. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  949. elseif rtype == 2 then
  950. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  951. end
  952. prt.Transparency=i
  953. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  954. end
  955. Part.Parent=nil
  956. end),prt,msh)
  957. end
  958.  
  959. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  960. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  961. prt.Anchored=true
  962. prt.Material = "Neon"
  963. prt.CFrame=cframe
  964. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  965. game:GetService("Debris"):AddItem(prt,5)
  966. coroutine.resume(coroutine.create(function(Part,Mesh)
  967. local rtype = rottype
  968. for i=0,1,delay do
  969. swait()
  970. if rtype == 1 then
  971. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  972. elseif rtype == 2 then
  973. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  974. end
  975. prt.Transparency=i
  976. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  977. end
  978. Part.Parent=nil
  979. end),prt,msh)
  980. end
  981.  
  982. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  983. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  984. prt.Anchored=true
  985. prt.Material = "Neon"
  986. prt.CFrame=cframe
  987. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  988. game:GetService("Debris"):AddItem(prt,5)
  989. coroutine.resume(coroutine.create(function(Part,Mesh)
  990. local rtype = rottype
  991. for i=0,1,delay do
  992. swait()
  993. if rtype == 1 then
  994. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  995. elseif rtype == 2 then
  996. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  997. end
  998. prt.Transparency=i
  999. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1000. end
  1001. Part.Parent=nil
  1002. end),prt,msh)
  1003. end
  1004.  
  1005. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1006. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1007. prt.Anchored=false
  1008. prt.CFrame=cframe
  1009. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1010. local wld=weld(prt,prt,Parent,cframe)
  1011. game:GetService("Debris"):AddItem(prt,5)
  1012. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1013. for i=0,1,delay do
  1014. wait()
  1015. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1016. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1017. Part.Transparency=i
  1018. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1019. end
  1020. Part.Parent=nil
  1021. end),prt,msh,wld)
  1022. end
  1023.  
  1024. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1025. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1026. prt.Anchored=false
  1027. prt.CFrame=cframe
  1028. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1029. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1030. game:GetService("Debris"):AddItem(prt,5)
  1031. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1032. for i=0,1,delay do
  1033. wait()
  1034. Weld.C0=euler(i*20,0,0)
  1035. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1036. Part.Transparency=i
  1037. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1038. end
  1039. Part.Parent=nil
  1040. end),prt,msh,wld)
  1041. end
  1042.  
  1043. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1044. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1045. prt.Anchored=true
  1046. prt.CFrame=cframe
  1047. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1048. game:GetService("Debris"):AddItem(prt,2)
  1049. coroutine.resume(coroutine.create(function(Part,Mesh)
  1050. for i=0,1,delay do
  1051. wait()
  1052. Part.CFrame=Part.CFrame
  1053. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1054. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1055. prt2.Anchored=true
  1056. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1057. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1058. game:GetService("Debris"):AddItem(prt2,2)
  1059. coroutine.resume(coroutine.create(function(Part,Mesh)
  1060. for i=0,1,0.1 do
  1061. wait()
  1062. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1063. end
  1064. Part.Parent=nil
  1065. end),prt2,msh2)
  1066. end
  1067. for i=0,1,delay*2 do
  1068. wait()
  1069. Part.CFrame=Part.CFrame
  1070. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1071. end
  1072. Part.Parent=nil
  1073. end),prt,msh)
  1074. end
  1075.  
  1076. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1077. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1078. prt.Anchored=true
  1079. prt.CFrame=cframe
  1080. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1081. game:GetService("Debris"):AddItem(prt,2)
  1082. coroutine.resume(coroutine.create(function(Part,Mesh)
  1083. for i=0,1,delay do
  1084. wait()
  1085. Part.CFrame=Part.CFrame
  1086. Part.Transparency=i
  1087. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1088. end
  1089. Part.Parent=nil
  1090. end),prt,msh)
  1091. end
  1092.  
  1093. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1094. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1095. prt.Anchored=true
  1096. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1097. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1098. game:GetService("Debris"):AddItem(prt,2)
  1099. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1100. CF=Part.CFrame
  1101. Numbb=0
  1102. randnumb=math.random()/10
  1103. rand1=math.random()/10
  1104. for i=0,1,rand1 do
  1105. wait()
  1106. CF=CF*cf(0,math.random()/2,0)
  1107. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1108. Part.CFrame=CF*euler(Numbb,0,0)
  1109. Part.Transparency=i
  1110. Numbb=Numbb+randnumb
  1111. end
  1112. Part.Parent=nil
  1113. end),prt,CF,Numbb,randnumb)
  1114. end
  1115.  
  1116. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1117. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1118. prt.Anchored=true
  1119. prt.CFrame=cframe
  1120. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1121. game:GetService("Debris"):AddItem(prt,5)
  1122. coroutine.resume(coroutine.create(function(Part,Mesh)
  1123. for i=0,1,delay do
  1124. wait()
  1125. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1126. Part.Transparency=i
  1127. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1128. end
  1129. Part.Parent=nil
  1130. end),prt,msh)
  1131. end
  1132.  
  1133. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1134. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1135. prt.Anchored=true
  1136. prt.CFrame=cframe
  1137. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1138. game:GetService("Debris"):AddItem(prt,2)
  1139. coroutine.resume(coroutine.create(function(Part,Mesh)
  1140. for i=0,1,delay do
  1141. wait()
  1142. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1143. Part.Transparency=i
  1144. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1145. end
  1146. Part.Parent=nil
  1147. end),prt,msh)
  1148. end
  1149.  
  1150. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1151. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1152. prt.Anchored=true
  1153. prt.CFrame=cframe*cf(x,y,z)
  1154. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1155. game:GetService("Debris"):AddItem(prt,5)
  1156. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1157. local num=math.random()
  1158. local num2=math.random(-3,2)+math.random()
  1159. local numm=0
  1160. for i=0,1,delay*2 do
  1161. swait()
  1162. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1163. Part.Transparency=i
  1164. numm=numm+0.01
  1165. end
  1166. Part.Parent=nil
  1167. Mesh.Parent=nil
  1168. end),prt,msh,x,y,z)
  1169. end
  1170.  
  1171. function dmgstart(dmg,what)
  1172. hitcon = what.Touched:connect(function(hit)
  1173. local hum = hit.Parent:FindFirstChild("Humanoid")
  1174. if hum and not hum:IsDescendantOf(Character) then
  1175. hum:TakeDamage(dmg)
  1176. end
  1177. end)
  1178. end
  1179.  
  1180. function dmgstop()
  1181. hitcon:disconnect()
  1182. end
  1183.  
  1184. function Cloak()
  1185. Face.Parent=nil
  1186. cloaked=true
  1187. for _,v in pairs(Torso.Parent:children()) do
  1188. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1189. coroutine.resume(coroutine.create(function()
  1190. for i=0,1,0.2 do
  1191. wait()
  1192. v.Transparency=i
  1193. end
  1194. v.Transparency=1
  1195. end))
  1196. end
  1197. if v.className=="Hat" then
  1198. hatp=v.Handle
  1199. coroutine.resume(coroutine.create(function(derp)
  1200. for i=0,1,0.2 do
  1201. wait()
  1202. derp.Transparency=i
  1203. end
  1204. derp.Transparency=1
  1205. end),hatp)
  1206. end
  1207. end
  1208. for _,v in pairs(m:children()) do
  1209. if v.className=="Part" then
  1210. coroutine.resume(coroutine.create(function()
  1211. for i=0,1,0.2 do
  1212. wait()
  1213. v.Transparency=i
  1214. end
  1215. v.Transparency=1
  1216. end))
  1217. end
  1218. end
  1219. end
  1220.  
  1221. function UnCloak()
  1222. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1223. Face.Parent=Head
  1224. cloaked=false
  1225. for _,v in pairs(Torso.Parent:children()) do
  1226. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1227. coroutine.resume(coroutine.create(function()
  1228. for i=0,1,0.1 do
  1229. wait()
  1230. v.Transparency=v.Transparency-0.1
  1231. end
  1232. v.Transparency=0
  1233. end))
  1234. end
  1235. if v.className=="Hat" then
  1236. hatp=v.Handle
  1237. coroutine.resume(coroutine.create(function(derp)
  1238. for i=0,1,0.1 do
  1239. wait()
  1240. derp.Transparency=derp.Transparency-0.1
  1241. end
  1242. derp.Transparency=0
  1243. end),hatp)
  1244. end
  1245. end
  1246. for _,v in pairs(m:children()) do
  1247. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1248. coroutine.resume(coroutine.create(function()
  1249. for i=0,1,0.1 do
  1250. wait()
  1251. v.Transparency=v.Transparency-0.1
  1252. end
  1253. v.Transparency=0
  1254. end))
  1255. v.Transparency=0
  1256. end
  1257. end
  1258. end
  1259.  
  1260. local jumped = false
  1261. function jump()
  1262. attack = true
  1263. jumped = true
  1264. hum.WalkSpeed = 0
  1265. MagicBlock(bc("Really red"),root.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1266. CFuncs["Sound"].Create("rbxassetid://169380495", root, 11, 1)
  1267. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  1268. for i = 0,15,0.1 do
  1269. swait()
  1270. MagicBlock(bc("Really red"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1271. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1272. 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)
  1273. 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)
  1274. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(50),math.rad(0),math.rad(0)),0.05)
  1275. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.05)
  1276. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1277. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1278. end
  1279. local bv = Instance.new("BodyVelocity")
  1280. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1281. bv.velocity = Vector3.new(0,500,0)
  1282. bv.Parent = root
  1283. game:GetService("Debris"):AddItem(bv, 0.5)
  1284. local rng = Instance.new("Part", char)
  1285. rng.Anchored = true
  1286. rng.BrickColor = BrickColor.new("Bright red")
  1287. rng.CanCollide = false
  1288. rng.FormFactor = 3
  1289. rng.Name = "Ring"
  1290. rng.Size = Vector3.new(1, 1, 1)
  1291. rng.Transparency = 0
  1292. rng.TopSurface = 0
  1293. rng.BottomSurface = 0
  1294. rng.Position = root.Position
  1295. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1296. local rngm = Instance.new("SpecialMesh", rng)
  1297. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1298. local rng2 = rng:Clone()
  1299. rng2.Parent = char
  1300. local rng2m = rng2.Mesh
  1301. local rng3 = rng:Clone()
  1302. rng3.Parent = char
  1303. local rng3m = rng3.Mesh
  1304. local rng4 = rng:Clone()
  1305. rng4.Parent = char
  1306. local rng4m = rng4.Mesh
  1307. local rng5 = rng:Clone()
  1308. rng5.Parent = char
  1309. local rng5m = rng5.Mesh
  1310. CFuncs["Sound"].Create("rbxassetid://324867021", rng, 10, 1)
  1311. wait()
  1312. local scaler = 10
  1313. local scaler2 = 10
  1314. game:GetService("Debris"):AddItem(bv, 2.4)
  1315. hum.WalkSpeed = 50
  1316. MagicBlock(bc("Really red"),root.CFrame,15,15,15,10,10,10,0.015)
  1317. for i = 0,10,0.1 do
  1318. swait()
  1319. rng.Transparency = rng.Transparency + 0.01
  1320. rng2.Transparency = rng2.Transparency + 0.01
  1321. rng3.Transparency = rng3.Transparency + 0.01
  1322. rng4.Transparency = rng4.Transparency + 0.01
  1323. rng5.Transparency = rng5.Transparency + 0.01
  1324. scaler = scaler - 0.125
  1325. scaler2 = scaler2 - 0.1
  1326. rng2m.Scale = rng2m.Scale + Vector3.new(scaler/1.25, scaler/1.25, 20)
  1327. rng3m.Scale = rng3m.Scale + Vector3.new(scaler/1.5, scaler/1.5, 30)
  1328. rng4m.Scale = rng4m.Scale + Vector3.new(scaler/1.75, scaler/1.75, 40)
  1329. rng5m.Scale = rng5m.Scale + Vector3.new(scaler/2, scaler/2, 50)
  1330. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1331. 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)
  1332. 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)
  1333. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.5)
  1334. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.5)
  1335. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  1336. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.5)
  1337. end
  1338. game:GetService("Debris"):AddItem(rng, 0.1)
  1339. game:GetService("Debris"):AddItem(rng2, 0.1)
  1340. game:GetService("Debris"):AddItem(rng3, 0.1)
  1341. game:GetService("Debris"):AddItem(rng4, 0.1)
  1342. game:GetService("Debris"):AddItem(rng5, 0.1)
  1343. hum.WalkSpeed = 16
  1344. attack = false
  1345. jumped = false
  1346. end
  1347.  
  1348. function dash()
  1349. attack = true
  1350. jumped = true
  1351. hum.WalkSpeed = 0
  1352. local bv = Instance.new("BodyVelocity")
  1353. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1354. bv.velocity = root.CFrame.lookVector*150
  1355. bv.Parent = root
  1356. game:GetService("Debris"):AddItem(bv, 1)
  1357. local rng = Instance.new("Part", char)
  1358. rng.Anchored = true
  1359. rng.BrickColor = BrickColor.new("Bright red")
  1360. rng.CanCollide = false
  1361. rng.FormFactor = 3
  1362. rng.Name = "Ring"
  1363. rng.Size = Vector3.new(1, 1, 1)
  1364. rng.Transparency = 0
  1365. rng.TopSurface = 0
  1366. rng.BottomSurface = 0
  1367. rng.CFrame = root.CFrame
  1368. local rngm = Instance.new("SpecialMesh", rng)
  1369. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1370. local rng2 = rng:Clone()
  1371. rng2.Parent = char
  1372. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  1373. local rng2m = rng2.Mesh
  1374. local rng3 = rng:Clone()
  1375. rng3.Parent = char
  1376. rng3.CFrame = root.CFrame + root.CFrame.lookVector*20
  1377. local rng3m = rng3.Mesh
  1378. local rng4 = rng:Clone()
  1379. rng4.Parent = char
  1380. rng4.CFrame = root.CFrame + root.CFrame.lookVector*30
  1381. local rng4m = rng4.Mesh
  1382. local rng5 = rng:Clone()
  1383. rng5.Parent = char
  1384. rng5.CFrame = root.CFrame + root.CFrame.lookVector*40
  1385. local rng5m = rng5.Mesh
  1386. CFuncs["Sound"].Create("rbxassetid://324867021", root, 10, 1)
  1387. wait()
  1388. local scaler = 10/5
  1389. local scaler2 = 10/5
  1390. local hit = larm.Touched:connect(function(hit)
  1391. Damagefunc(hit,25,34,math.random(10,20),"Normal",root,.2,1)
  1392. end)
  1393. for i = 0,10,0.1 do
  1394. swait()
  1395. MagicBlock(bc("Really red"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1396. rng.Transparency = rng.Transparency + 0.01
  1397. rng2.Transparency = rng2.Transparency + 0.01
  1398. rng3.Transparency = rng3.Transparency + 0.01
  1399. rng4.Transparency = rng4.Transparency + 0.01
  1400. rng5.Transparency = rng5.Transparency + 0.01
  1401. scaler = scaler - 0.125/5
  1402. scaler2 = scaler2 - 0.1/5
  1403. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 0)
  1404. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1405. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  1406. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1407. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1408. 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)
  1409. 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)
  1410. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-80)),0.5)
  1411. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
  1412. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  1413. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-110)), 0.5)
  1414. end
  1415. game:GetService("Debris"):AddItem(rng, 0.1)
  1416. game:GetService("Debris"):AddItem(rng2, 0.1)
  1417. game:GetService("Debris"):AddItem(rng3, 0.1)
  1418. game:GetService("Debris"):AddItem(rng4, 0.1)
  1419. game:GetService("Debris"):AddItem(rng5, 0.1)
  1420. hum.WalkSpeed = 16
  1421. hit:disconnect()
  1422. attack = false
  1423. jumped = false
  1424. end
  1425.  
  1426. function boom()
  1427. attack = true
  1428. jumped = true
  1429. hum.WalkSpeed = 5
  1430. MagicBlock(bc("Bright red"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1431. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  1432. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  1433. for i = 0,15,0.1 do
  1434. swait()
  1435. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1436. 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)
  1437. 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)
  1438. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1439. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1440. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1441. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1442. end
  1443. local rng = Instance.new("Part", char)
  1444. rng.Anchored = true
  1445. rng.BrickColor = BrickColor.new("Bright red")
  1446. rng.CanCollide = false
  1447. rng.FormFactor = 3
  1448. rng.Name = "Ring"
  1449. rng.Size = Vector3.new(1, 1, 1)
  1450. rng.Transparency = 0
  1451. rng.TopSurface = 0
  1452. rng.BottomSurface = 0
  1453. rng.Position = root.Position
  1454. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1455. local rngm = Instance.new("SpecialMesh", rng)
  1456. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1457. local rng2 = rng:Clone()
  1458. rng2.Parent = char
  1459. local rng2m = rng2.Mesh
  1460. local rng3 = rng:Clone()
  1461. rng3.Parent = char
  1462. local rng3m = rng3.Mesh
  1463. local rng4 = rng:Clone()
  1464. rng4.Parent = char
  1465. local rng4m = rng4.Mesh
  1466. local rng5 = rng:Clone()
  1467. rng5.Parent = char
  1468. local rng5m = rng5.Mesh
  1469. local hit = rng5.Touched:connect(function(hit)
  1470. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  1471. end)
  1472. MagicBlock(bc("Really red"),root.CFrame,15,15,15,5,5,5,0.015)
  1473. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 17, 1)
  1474. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 15, 0.85)
  1475. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 17, 1)
  1476. wait()
  1477. local scaler = 10
  1478. local scaler2 = 10
  1479. for i = 0,10,0.1 do
  1480. swait()
  1481. rng.Transparency = rng.Transparency + 0.01
  1482. rng2.Transparency = rng2.Transparency + 0.01
  1483. rng3.Transparency = rng3.Transparency + 0.01
  1484. rng4.Transparency = rng4.Transparency + 0.01
  1485. rng5.Transparency = rng5.Transparency + 0.01
  1486. scaler = scaler - 0.125
  1487. scaler2 = scaler2 - 0.1
  1488. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4)
  1489. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3)
  1490. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2)
  1491. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1)
  1492. rng5.Size = rng5m.Scale
  1493. rng5.CFrame = rng.CFrame
  1494. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5)
  1495. 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)
  1496. 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)
  1497. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5)
  1498. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1499. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5)
  1500. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5)
  1501. end
  1502. hit:disconnect()
  1503. game:GetService("Debris"):AddItem(rng, 1)
  1504. game:GetService("Debris"):AddItem(rng2, 1)
  1505. game:GetService("Debris"):AddItem(rng3, 1)
  1506. game:GetService("Debris"):AddItem(rng4, 1)
  1507. game:GetService("Debris"):AddItem(rng5, 1)
  1508. hum.WalkSpeed = 16
  1509. attack = false
  1510. jumped = false
  1511. end
  1512.  
  1513. function shooty()
  1514. attack = true
  1515. hum.WalkSpeed = 30
  1516. MagicBlock(bc("Really red"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1517. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  1518. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  1519. for i = 0,15,0.1 do
  1520. swait()
  1521. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1522. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1523. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1524. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1525. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1526. end
  1527. CFuncs["Sound"].Create("rbxassetid://187137517", root, 10, 1)
  1528. local a = Instance.new("Part",Character)
  1529. a.Name = "Direction"
  1530. a.Anchored = true
  1531. a.BrickColor = bc("Bright red")
  1532. a.Material = "Neon"
  1533. a.Transparency = 1
  1534. a.CanCollide = false
  1535. local ray = Ray.new(
  1536. root.CFrame.p, -- origin
  1537. (mouse.Hit.p - root.CFrame.p).unit * 500 -- direction
  1538. )
  1539. local ignore = Character
  1540. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1541. a.BottomSurface = 10
  1542. a.TopSurface = 10
  1543. local distance = (root.CFrame.p - position).magnitude
  1544. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1545. a.CFrame = CFrame.new(root.CFrame.p, position) * CFrame.new(0, 0, 0)
  1546. local lb = Instance.new("Part")
  1547. lb.Parent = char
  1548. lb.BrickColor = bc("Bright red")
  1549. lb.CanCollide = false
  1550. lb.Material = "Neon"
  1551. lb.Anchored = true
  1552. lb.TopSurface = 0
  1553. lb.BottomSurface = 0
  1554. lb.Transparency = 0
  1555. lb.Size = vt(0.5,0.5,0.5)
  1556. lb.CFrame = sorb.CFrame
  1557. lb.Anchored = false
  1558. local thingery = Instance.new("SpecialMesh",lb)
  1559. thingery.MeshType = "Sphere"
  1560. thingery.Scale = vt(25,25,25)
  1561. game:GetService("Debris"):AddItem(lb, 10)
  1562. local bv = Instance.new("BodyVelocity")
  1563. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1564. bv.velocity = a.CFrame.lookVector*150
  1565. bv.Parent = lb
  1566. game:GetService("Debris"):AddItem(a, 0.1)
  1567. wait(0.05)
  1568. local hitted = false
  1569. lb.Touched:connect(function(hit)
  1570. if hitted == false then
  1571. hitted = true
  1572. lb.Anchored = true
  1573. lb.Transparency = 1
  1574. local rng = Instance.new("Part", char)
  1575. rng.Anchored = true
  1576. rng.BrickColor = BrickColor.new("Bright red")
  1577. rng.CanCollide = false
  1578. rng.FormFactor = 3
  1579. rng.Name = "Ring"
  1580. rng.Size = Vector3.new(1, 1, 1)
  1581. rng.Transparency = 0
  1582. rng.TopSurface = 0
  1583. rng.BottomSurface = 0
  1584. rng.CFrame = lb.CFrame
  1585. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1586. local rngm = Instance.new("SpecialMesh", rng)
  1587. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1588. local rng2 = rng:Clone()
  1589. rng2.Parent = char
  1590. local rng2m = rng2.Mesh
  1591. local rng3 = rng:Clone()
  1592. rng3.Parent = char
  1593. local rng3m = rng3.Mesh
  1594. local rng4 = rng:Clone()
  1595. rng4.Parent = char
  1596. local rng4m = rng4.Mesh
  1597. local rng5 = rng:Clone()
  1598. rng5.Parent = char
  1599. rng5.CFrame = rng5.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1600. local rng5m = rng5.Mesh
  1601. rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1602. rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1603. rng4.CFrame = rng4.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1604. MagicBlock(bc("Really red"),lb.CFrame,15,15,15,5,5,5,0.015)
  1605. local rng6 = rng:Clone()
  1606. rng6.Material = "Neon"
  1607. rng6.Parent = char
  1608. local rng6m = rng6.Mesh
  1609. rng6m.Scale = vt(1,1,1)
  1610. rng6m.MeshType = "Sphere"
  1611. local hita = rng6.Touched:connect(function(hit)
  1612. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  1613. end)
  1614. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 15, 1)
  1615. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 15, 0.75)
  1616. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 15, 1)
  1617. local scaler = 5
  1618. local scaler2 = 5
  1619. for i = 0,20,0.1 do
  1620. swait()
  1621. rng.Transparency = rng.Transparency + 0.005
  1622. rng2.Transparency = rng2.Transparency + 0.005
  1623. rng3.Transparency = rng3.Transparency + 0.005
  1624. rng4.Transparency = rng4.Transparency + 0.005
  1625. rng5.Transparency = rng5.Transparency + 0.005
  1626. rng6.Transparency = rng6.Transparency + 0.005
  1627. scaler = scaler - 0.005/2
  1628. scaler2 = scaler2 - 0.05/2
  1629. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  1630. rng6.CFrame = rng.CFrame
  1631. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1632. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1633. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1634. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  1635. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1636. end
  1637. hita:disconnect()
  1638. game:GetService("Debris"):AddItem(rng, 1)
  1639. game:GetService("Debris"):AddItem(rng2, 1)
  1640. game:GetService("Debris"):AddItem(rng3, 1)
  1641. game:GetService("Debris"):AddItem(rng4, 1)
  1642. game:GetService("Debris"):AddItem(rng5, 1)
  1643. game:GetService("Debris"):AddItem(rng6, 1)
  1644. end
  1645. end)
  1646. for i = 0,2,0.1 do
  1647. swait()
  1648. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1649. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1650. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1651. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1652. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1653. end
  1654. attack = false
  1655. end
  1656.  
  1657. function superpunch()
  1658. attack = true
  1659. jumped = true
  1660. hum.WalkSpeed = 5
  1661. MagicBlock(bc("Really red"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1662. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  1663. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  1664. for i = 0,15,0.1 do
  1665. swait()
  1666. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1667. 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)
  1668. 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)
  1669. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1670. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1671. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1672. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1673. end
  1674. local rng = Instance.new("Part", char)
  1675. rng.Anchored = true
  1676. rng.BrickColor = BrickColor.new("Bright red")
  1677. rng.CanCollide = false
  1678. rng.FormFactor = 3
  1679. rng.Name = "Ring"
  1680. rng.Size = Vector3.new(1, 1, 1)
  1681. rng.Transparency = 0
  1682. rng.TopSurface = 0
  1683. rng.BottomSurface = 0
  1684. rng.CFrame = root.CFrame
  1685. local rngm = Instance.new("SpecialMesh", rng)
  1686. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1687. local rng2 = rng:Clone()
  1688. rng2.Parent = char
  1689. local rng2m = rng2.Mesh
  1690. local rng3 = rng:Clone()
  1691. rng3.Parent = char
  1692. local rng3m = rng3.Mesh
  1693. local rng4 = rng:Clone()
  1694. rng4.Parent = char
  1695. local rng4m = rng4.Mesh
  1696. local rng5 = rng:Clone()
  1697. rng5.Parent = char
  1698. local rng5m = rng5.Mesh
  1699. local rng6 = rng:Clone()
  1700. rng6.Material = "Neon"
  1701. rng6.Parent = char
  1702. local rng6m = rng6.Mesh
  1703. rng6m.Scale = vt(1,1,1)
  1704. rng6m.MeshType = "Sphere"
  1705. local hita = rng6.Touched:connect(function(hit)
  1706. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  1707. end)
  1708. rng2.CFrame = root.CFrame
  1709. rng3.CFrame = root.CFrame
  1710. rng4.CFrame = root.CFrame
  1711. rng5.CFrame = root.CFrame
  1712. rng6.CFrame = root.CFrame
  1713. CFuncs["Sound"].Create("rbxassetid://260430117", rng, 15, 1)
  1714. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 15, 0.85)
  1715. CFuncs["Sound"].Create("rbxassetid://169628396", rng, 15, 1)
  1716. CFuncs["Sound"].Create("rbxassetid://137994058", rng, 15, 1)
  1717. CFuncs["Sound"].Create("rbxassetid://138186576", rng, 15, 1)
  1718. wait()
  1719. local scaler = 10/5
  1720. local scaler2 = 10/5
  1721. MagicBlock(bc("Really red"),root.CFrame,15,15,15,5,5,5,0.015)
  1722. for i = 0,10,0.1 do
  1723. swait()
  1724. MagicBlock(bc("Really red"),rng6.CFrame,5,5,5,5,5,5,0.1)
  1725. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2
  1726. rng2.CFrame = rng2.CFrame + rng2.CFrame.lookVector*scaler2/1.25
  1727. rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/1.5
  1728. rng4.CFrame = rng4.CFrame + rng4.CFrame.lookVector*scaler2/1.75
  1729. rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/2
  1730. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  1731. rng6.CFrame = rng.CFrame
  1732. rng.Transparency = rng.Transparency + 0.01
  1733. rng2.Transparency = rng2.Transparency + 0.01
  1734. rng3.Transparency = rng3.Transparency + 0.01
  1735. rng4.Transparency = rng4.Transparency + 0.01
  1736. rng5.Transparency = rng5.Transparency + 0.01
  1737. rng6.Transparency = rng6.Transparency + 0.01
  1738. scaler = scaler - 0.125/5
  1739. scaler2 = scaler2 - 0.1/5
  1740. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 1.5)
  1741. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1)
  1742. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0.5)
  1743. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  1744. rngm.Scale = rngm.Scale + Vector3.new(scaler2/3, scaler2/3, 2)
  1745. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1746. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1747. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1748. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1749. end
  1750. hita:disconnect()
  1751. game:GetService("Debris"):AddItem(rng, 1)
  1752. game:GetService("Debris"):AddItem(rng2, 1)
  1753. game:GetService("Debris"):AddItem(rng3, 1)
  1754. game:GetService("Debris"):AddItem(rng4, 1)
  1755. game:GetService("Debris"):AddItem(rng5, 1)
  1756. hum.WalkSpeed = 16
  1757. attack = false
  1758. jumped = false
  1759. end
  1760.  
  1761.  
  1762. mouse.KeyDown:connect(function(k)
  1763. if k == "z" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  1764. jump()
  1765. end
  1766. if k == "x" and attack == false then
  1767. dash()
  1768. end
  1769. if k == "c" and attack == false then
  1770. boom()
  1771. end
  1772. if k == "v" and attack == false then
  1773. shooty()
  1774. end
  1775. if k == "b" and attack == false then
  1776. superpunch()
  1777. end
  1778. end)
  1779. Humanoid.Animator.Parent = nil
  1780. idleanim=.4
  1781. while true do
  1782. swait()
  1783. sine = sine + change
  1784. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1785. local velderp=RootPart.Velocity.y
  1786. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1787. if equipped==true or equipped==false then
  1788. if attack==false then
  1789. idle=idle+1
  1790. else
  1791. idle=0
  1792. end
  1793. if idle>=500 then
  1794. if attack==false then
  1795. --Sheath()
  1796. end
  1797. end
  1798. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1799. Anim="Jump"
  1800. if attack==false then
  1801. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1802. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1803. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1804. 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)
  1805. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1806. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1807. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1808. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1809. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1810. end
  1811. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1812. Anim="Fall"
  1813. if attack==false then
  1814. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1815. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1816. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1817. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1818. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1819. 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)
  1820. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1821. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1822. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1823. end
  1824. elseif torvel<1 and hitfloor~=nil then
  1825. Anim="Idle"
  1826. if jumped == false then
  1827. 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)
  1828. 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)
  1829. end
  1830. if attack==false then
  1831. 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)
  1832. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  1833. 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)
  1834. 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)
  1835. end
  1836. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1837. Anim="Walk"
  1838. if jumped == false then
  1839. 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)
  1840. 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)
  1841. end
  1842. if attack==false then
  1843. 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)
  1844. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1845. 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)
  1846. 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)
  1847. end
  1848. elseif torvel>=22 and hitfloor~=nil then
  1849. Anim="Run"
  1850. if jumped == false then
  1851. 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)
  1852. 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)
  1853. end
  1854. if attack==false then
  1855. 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)
  1856. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1857. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50),math.rad(-60),math.rad(25)),.3)
  1858. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  1859. end
  1860. end
  1861. end
  1862. endgame.Workspace.Likebossfromdk.Humanoid.MaxHealth = math.huge
  1863. warn'any options for magic'
  1864. plr = game.Players.LocalPlayer
  1865. char = plr.Character
  1866. hum = char.Humanoid
  1867. local cam = game.Workspace.CurrentCamera
  1868. t = char.Torso
  1869. h = char.Head
  1870. ra = char["Right Arm"]
  1871. la = char["Left Arm"]
  1872. rl = char["Right Leg"]
  1873. ll = char["Left Leg"]
  1874. tors = char.Torso
  1875. lleg = char["Left Leg"]
  1876. root = char.HumanoidRootPart
  1877. hed = char.Head
  1878. rleg = char["Right Leg"]
  1879. rarm = char["Right Arm"]
  1880. larm = char["Left Arm"]
  1881. vt = Vector3.new
  1882. bc = BrickColor.new
  1883. br = BrickColor.random
  1884. it = Instance.new
  1885. cf = CFrame.new
  1886. local s = Instance.new("Sound",char)
  1887. s.Name = "BGMusic"
  1888. s.SoundId = "rbxassetid://409640553"
  1889. s.Pitch = 1
  1890. s.Volume = 5
  1891. s.Looped = true
  1892. s.archivable = false
  1893. s.Parent = char.Head
  1894. wait(0.1)
  1895. s:play()
  1896.  
  1897. local Create = LoadLibrary("RbxUtility").Create
  1898.  
  1899. CFuncs = {
  1900. ["Part"] = {
  1901. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1902. local Part = Create("Part"){
  1903. Parent = Parent,
  1904. Reflectance = Reflectance,
  1905. Transparency = Transparency,
  1906. CanCollide = false,
  1907. Locked = true,
  1908. BrickColor = BrickColor.new(tostring(BColor)),
  1909. Name = Name,
  1910. Size = Size,
  1911. Material = Material,
  1912. }
  1913. RemoveOutlines(Part)
  1914. return Part
  1915. end;
  1916. };
  1917.  
  1918. ["Mesh"] = {
  1919. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1920. local Msh = Create(Mesh){
  1921. Parent = Part,
  1922. Offset = OffSet,
  1923. Scale = Scale,
  1924. }
  1925. if Mesh == "SpecialMesh" then
  1926. Msh.MeshType = MeshType
  1927. Msh.MeshId = MeshId
  1928. end
  1929. return Msh
  1930. end;
  1931. };
  1932.  
  1933. ["Mesh"] = {
  1934. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1935. local Msh = Create(Mesh){
  1936. Parent = Part,
  1937. Offset = OffSet,
  1938. Scale = Scale,
  1939. }
  1940. if Mesh == "SpecialMesh" then
  1941. Msh.MeshType = MeshType
  1942. Msh.MeshId = MeshId
  1943. end
  1944. return Msh
  1945. end;
  1946. };
  1947.  
  1948. ["Weld"] = {
  1949. Create = function(Parent, Part0, Part1, C0, C1)
  1950. local Weld = Create("Weld"){
  1951. Parent = Parent,
  1952. Part0 = Part0,
  1953. Part1 = Part1,
  1954. C0 = C0,
  1955. C1 = C1,
  1956. }
  1957. return Weld
  1958. end;
  1959. };
  1960.  
  1961. ["Sound"] = {
  1962. Create = function(id, par, vol, pit)
  1963. coroutine.resume(coroutine.create(function()
  1964. local S = Create("Sound"){
  1965. Volume = vol,
  1966. Pitch = pit or 1,
  1967. SoundId = id,
  1968. Parent = par or workspace,
  1969. }
  1970. wait()
  1971. S:play()
  1972. game:GetService("Debris"):AddItem(S, 10)
  1973. end))
  1974. end;
  1975. };
  1976.  
  1977. ["ParticleEmitter"] = {
  1978. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1979. local fp = Create("ParticleEmitter"){
  1980. Parent = Parent,
  1981. Color = ColorSequence.new(Color1, Color2),
  1982. LightEmission = LightEmission,
  1983. Size = Size,
  1984. Texture = Texture,
  1985. Transparency = Transparency,
  1986. ZOffset = ZOffset,
  1987. Acceleration = Accel,
  1988. Drag = Drag,
  1989. LockedToPart = LockedToPart,
  1990. VelocityInheritance = VelocityInheritance,
  1991. EmissionDirection = EmissionDirection,
  1992. Enabled = Enabled,
  1993. Lifetime = LifeTime,
  1994. Rate = Rate,
  1995. Rotation = Rotation,
  1996. RotSpeed = RotSpeed,
  1997. Speed = Speed,
  1998. VelocitySpread = VelocitySpread,
  1999. }
  2000. return fp
  2001. end;
  2002. };
  2003.  
  2004. CreateTemplate = {
  2005.  
  2006. };
  2007. }
  2008.  
  2009.  
  2010.  
  2011. New = function(Object, Parent, Name, Data)
  2012. local Object = Instance.new(Object)
  2013. for Index, Value in pairs(Data or {}) do
  2014. Object[Index] = Value
  2015. end
  2016. Object.Parent = Parent
  2017. Object.Name = Name
  2018. return Object
  2019. end
  2020. local m = Instance.new("Model",char)
  2021.  
  2022. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  2023. local p = Instance.new("Part")
  2024. p.Parent = parent
  2025. p.Size = Vector3.new(1,1,1)
  2026. p.Transparency = transparency
  2027. p.Reflectance = reflectance
  2028. p.CanCollide = false
  2029. p.Locked = true
  2030. p.BrickColor = brickcolor
  2031. p.Material = material
  2032. return p
  2033. end
  2034.  
  2035. function CreateMesh(parent,meshtype,x1,y1,z1)
  2036. local mesh = Instance.new("SpecialMesh",parent)
  2037. mesh.MeshType = meshtype
  2038. mesh.Scale = Vector3.new(x1,y1,z1)
  2039. return mesh
  2040. end
  2041.  
  2042. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  2043. local mesh = Instance.new("SpecialMesh",parent)
  2044. mesh.MeshType = "FileMesh"
  2045. mesh.MeshId = meshid
  2046. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  2047. mesh.Scale = Vector3.new(x1,y1,z1)
  2048. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  2049. return mesh
  2050. end
  2051.  
  2052. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  2053. local weld = Instance.new("Weld")
  2054. weld.Parent = parent
  2055. weld.Part0 = part0
  2056. weld.Part1 = part1
  2057. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  2058. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  2059. return weld
  2060. end
  2061.  
  2062.  
  2063. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  2064. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  2065. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  2066. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  2067.  
  2068. Player=game:GetService("Players").LocalPlayer
  2069. Character=Player.Character
  2070. PlayerGui=Player.PlayerGui
  2071. Backpack=Player.Backpack
  2072. Torso=Character.Torso
  2073. Head=Character.Head
  2074. Humanoid=Character.Humanoid
  2075. m=Instance.new('Model',Character)
  2076. LeftArm=Character["Left Arm"]
  2077. LeftLeg=Character["Left Leg"]
  2078. RightArm=Character["Right Arm"]
  2079. RightLeg=Character["Right Leg"]
  2080. LS=Torso["Left Shoulder"]
  2081. LH=Torso["Left Hip"]
  2082. RS=Torso["Right Shoulder"]
  2083. RH=Torso["Right Hip"]
  2084. Face = Head.face
  2085. Neck=Torso.Neck
  2086. it=Instance.new
  2087. attacktype=1
  2088. vt=Vector3.new
  2089. cf=CFrame.new
  2090. euler=CFrame.fromEulerAnglesXYZ
  2091. angles=CFrame.Angles
  2092. cloaked=false
  2093. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2094. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2095. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  2096. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  2097. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  2098. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  2099. RootPart=Character.HumanoidRootPart
  2100. RootJoint=RootPart.RootJoint
  2101. RootCF=euler(-1.57,0,3.14)
  2102. attack = false
  2103. attackdebounce = false
  2104. deb=false
  2105. equipped=true
  2106. hand=false
  2107. MMouse=nil
  2108. combo=0
  2109. mana=0
  2110. trispeed=.2
  2111. attackmode='none'
  2112. local idle=0
  2113. local Anim="Idle"
  2114. local Effects={}
  2115. local gun=false
  2116. local shoot=false
  2117. local sine = 0
  2118. local change = 1
  2119. player=nil
  2120.  
  2121. mouse=Player:GetMouse()
  2122. --save shoulders
  2123. RSH, LSH=nil, nil
  2124. --welds
  2125. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  2126. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  2127. LH=Torso["Left Hip"]
  2128. RH=Torso["Right Hip"]
  2129. TorsoColor=Torso.BrickColor
  2130. function NoOutline(Part)
  2131. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2132. end
  2133. player=Player
  2134. ch=Character
  2135. RSH=ch.Torso["Right Shoulder"]
  2136. LSH=ch.Torso["Left Shoulder"]
  2137. --
  2138. RSH.Parent=nil
  2139. LSH.Parent=nil
  2140. --
  2141. RW.Name="Right Shoulder"
  2142. RW.Part0=ch.Torso
  2143. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2144. RW.C1=cf(0, 0.5, 0)
  2145. RW.Part1=ch["Right Arm"]
  2146. RW.Parent=ch.Torso
  2147. --
  2148. LW.Name="Left Shoulder"
  2149. LW.Part0=ch.Torso
  2150. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2151. LW.C1=cf(0, 0.5, 0)
  2152. LW.Part1=ch["Left Arm"]
  2153. LW.Parent=ch.Torso
  2154.  
  2155. local Stats=Instance.new("BoolValue")
  2156. Stats.Name="Stats"
  2157. Stats.Parent=Character
  2158. local Atk=Instance.new("NumberValue")
  2159. Atk.Name="Damage"
  2160. Atk.Parent=Stats
  2161. Atk.Value=1
  2162. local Def=Instance.new("NumberValue")
  2163. Def.Name="Defense"
  2164. Def.Parent=Stats
  2165. Def.Value=1
  2166. local Speed=Instance.new("NumberValue")
  2167. Speed.Name="Speed"
  2168. Speed.Parent=Stats
  2169. Speed.Value=1
  2170. local Mvmt=Instance.new("NumberValue")
  2171. Mvmt.Name="Movement"
  2172. Mvmt.Parent=Stats
  2173. Mvmt.Value=1
  2174.  
  2175. local donum=0
  2176.  
  2177.  
  2178. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  2179. local fp=it("Part")
  2180. fp.formFactor=formfactor
  2181. fp.Parent=parent
  2182. fp.Reflectance=reflectance
  2183. fp.Transparency=transparency
  2184. fp.CanCollide=false
  2185. fp.Locked=true
  2186. fp.BrickColor=brickcolor
  2187. fp.Name=name
  2188. fp.Size=size
  2189. fp.Position=Torso.Position
  2190. NoOutline(fp)
  2191. fp.Material="SmoothPlastic"
  2192. fp:BreakJoints()
  2193. return fp
  2194. end
  2195.  
  2196. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2197. local mesh=it(Mesh)
  2198. mesh.Parent=part
  2199. if Mesh=="SpecialMesh" then
  2200. mesh.MeshType=meshtype
  2201. if meshid~="nil" then
  2202. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  2203. end
  2204. end
  2205. mesh.Offset=offset
  2206. mesh.Scale=scale
  2207. return mesh
  2208. end
  2209.  
  2210. function weld(parent,part0,part1,c0)
  2211. local weld=it("Weld")
  2212. weld.Parent=parent
  2213. weld.Part0=part0
  2214. weld.Part1=part1
  2215. weld.C0=c0
  2216. return weld
  2217. end
  2218.  
  2219. local Color1=Torso.BrickColor
  2220.  
  2221. local bodvel=Instance.new("BodyVelocity")
  2222. local bg=Instance.new("BodyGyro")
  2223.  
  2224. function swait(num)
  2225. if num==0 or num==nil then
  2226. game:service'RunService'.Stepped:wait(0)
  2227. else
  2228. for i=0,num do
  2229. game:service'RunService'.Stepped:wait(0)
  2230. end
  2231. end
  2232. end
  2233.  
  2234.  
  2235. so = function(id,par,vol,pit)
  2236. coroutine.resume(coroutine.create(function()
  2237. local sou = Instance.new("Sound",par or workspace)
  2238. sou.Volume=vol
  2239. sou.Pitch=pit or 1
  2240. sou.SoundId=id
  2241. swait()
  2242. sou:play()
  2243. game:GetService("Debris"):AddItem(sou,6)
  2244. end))
  2245. end
  2246.  
  2247. function clerp(a,b,t)
  2248. local qa = {QuaternionFromCFrame(a)}
  2249. local qb = {QuaternionFromCFrame(b)}
  2250. local ax, ay, az = a.x, a.y, a.z
  2251. local bx, by, bz = b.x, b.y, b.z
  2252. local _t = 1-t
  2253. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  2254. end
  2255.  
  2256. function QuaternionFromCFrame(cf)
  2257. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2258. local trace = m00 + m11 + m22
  2259. if trace > 0 then
  2260. local s = math.sqrt(1 + trace)
  2261. local recip = 0.5/s
  2262. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  2263. else
  2264. local i = 0
  2265. if m11 > m00 then
  2266. i = 1
  2267. end
  2268. if m22 > (i == 0 and m00 or m11) then
  2269. i = 2
  2270. end
  2271. if i == 0 then
  2272. local s = math.sqrt(m00-m11-m22+1)
  2273. local recip = 0.5/s
  2274. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  2275. elseif i == 1 then
  2276. local s = math.sqrt(m11-m22-m00+1)
  2277. local recip = 0.5/s
  2278. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  2279. elseif i == 2 then
  2280. local s = math.sqrt(m22-m00-m11+1)
  2281. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  2282. end
  2283. end
  2284. end
  2285.  
  2286. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2287. local xs, ys, zs = x + x, y + y, z + z
  2288. local wx, wy, wz = w*xs, w*ys, w*zs
  2289. local xx = x*xs
  2290. local xy = x*ys
  2291. local xz = x*zs
  2292. local yy = y*ys
  2293. local yz = y*zs
  2294. local zz = z*zs
  2295. 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))
  2296. end
  2297.  
  2298. function QuaternionSlerp(a, b, t)
  2299. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2300. local startInterp, finishInterp;
  2301. if cosTheta >= 0.0001 then
  2302. if (1 - cosTheta) > 0.0001 then
  2303. local theta = math.acos(cosTheta)
  2304. local invSinTheta = 1/math.sin(theta)
  2305. startInterp = math.sin((1-t)*theta)*invSinTheta
  2306. finishInterp = math.sin(t*theta)*invSinTheta
  2307. else
  2308. startInterp = 1-t
  2309. finishInterp = t
  2310. end
  2311. else
  2312. if (1+cosTheta) > 0.0001 then
  2313. local theta = math.acos(-cosTheta)
  2314. local invSinTheta = 1/math.sin(theta)
  2315. startInterp = math.sin((t-1)*theta)*invSinTheta
  2316. finishInterp = math.sin(t*theta)*invSinTheta
  2317. else
  2318. startInterp = t-1
  2319. finishInterp = t
  2320. end
  2321. end
  2322. 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
  2323. end
  2324.  
  2325. local function CFrameFromTopBack(at, top, back)
  2326. local right = top:Cross(back)
  2327. return CFrame.new(at.x, at.y, at.z,
  2328. right.x, top.x, back.x,
  2329. right.y, top.y, back.y,
  2330. right.z, top.z, back.z)
  2331. end
  2332.  
  2333. function Triangle(a, b, c)
  2334. local edg1 = (c-a):Dot((b-a).unit)
  2335. local edg2 = (a-b):Dot((c-b).unit)
  2336. local edg3 = (b-c):Dot((a-c).unit)
  2337. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2338. a, b, c = a, b, c
  2339. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2340. a, b, c = b, c, a
  2341. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2342. a, b, c = c, a, b
  2343. else
  2344. assert(false, "unreachable")
  2345. end
  2346.  
  2347. local len1 = (c-a):Dot((b-a).unit)
  2348. local len2 = (b-a).magnitude - len1
  2349. local width = (a + (b-a).unit*len1 - c).magnitude
  2350.  
  2351. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2352.  
  2353. local list = {}
  2354.  
  2355. if len1 > 0.01 then
  2356. local w1 = Instance.new('WedgePart', m)
  2357. game:GetService("Debris"):AddItem(w1,5)
  2358. w1.Material = "SmoothPlastic"
  2359. w1.FormFactor = 'Custom'
  2360. w1.BrickColor = BrickColor.new("Really red")
  2361. w1.Transparency = 0
  2362. w1.Reflectance = 0
  2363. w1.Material = "SmoothPlastic"
  2364. w1.CanCollide = false
  2365. local l1 = Instance.new("PointLight",w1)
  2366. l1.Color = Color3.new(170,0,0)
  2367. NoOutline(w1)
  2368. local sz = Vector3.new(0.2, width, len1)
  2369. w1.Size = sz
  2370. local sp = Instance.new("SpecialMesh",w1)
  2371. sp.MeshType = "Wedge"
  2372. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2373. w1:BreakJoints()
  2374. w1.Anchored = true
  2375. w1.Parent = workspace
  2376. w1.Transparency = 0.7
  2377. table.insert(Effects,{w1,"Disappear",.01})
  2378. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2379. table.insert(list,w1)
  2380. end
  2381.  
  2382. if len2 > 0.01 then
  2383. local w2 = Instance.new('WedgePart', m)
  2384. game:GetService("Debris"):AddItem(w2,5)
  2385. w2.Material = "SmoothPlastic"
  2386. w2.FormFactor = 'Custom'
  2387. w2.BrickColor = BrickColor.new("Really red")
  2388. w2.Transparency = 0
  2389. w2.Reflectance = 0
  2390. w2.Material = "SmoothPlastic"
  2391. w2.CanCollide = false
  2392. local l2 = Instance.new("PointLight",w2)
  2393. l2.Color = Color3.new(170,0,0)
  2394. NoOutline(w2)
  2395. local sz = Vector3.new(0.2, width, len2)
  2396. w2.Size = sz
  2397. local sp = Instance.new("SpecialMesh",w2)
  2398. sp.MeshType = "Wedge"
  2399. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2400. w2:BreakJoints()
  2401. w2.Anchored = true
  2402. w2.Parent = workspace
  2403. w2.Transparency = 0.7
  2404. table.insert(Effects,{w2,"Disappear",.01})
  2405. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2406. table.insert(list,w2)
  2407. end
  2408. return unpack(list)
  2409. end
  2410.  
  2411.  
  2412. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  2413. if hit.Parent==nil then
  2414. return
  2415. end
  2416. h=hit.Parent:FindFirstChild("Humanoid")
  2417. for _,v in pairs(hit.Parent:children()) do
  2418. if v:IsA("Humanoid") then
  2419. h=v
  2420. end
  2421. end
  2422. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2423. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2424. end
  2425. if hit.Parent.className=="Hat" then
  2426. hit=hit.Parent.Parent:findFirstChild("Head")
  2427. end
  2428. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2429. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2430. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2431. return
  2432. end]]
  2433. -- hs(hit,1.2)
  2434. c=Instance.new("ObjectValue")
  2435. c.Name="creator"
  2436. c.Value=game:service("Players").LocalPlayer
  2437. c.Parent=h
  2438. game:GetService("Debris"):AddItem(c,.5)
  2439. Damage=math.random(minim,maxim)
  2440. -- h:TakeDamage(Damage)
  2441. blocked=false
  2442. block=hit.Parent:findFirstChild("Block")
  2443. if block~=nil then
  2444. print(block.className)
  2445. if block.className=="NumberValue" then
  2446. if block.Value>0 then
  2447. blocked=true
  2448. if decreaseblock==nil then
  2449. block.Value=block.Value-1
  2450. end
  2451. end
  2452. end
  2453. if block.className=="IntValue" then
  2454. if block.Value>0 then
  2455. blocked=true
  2456. if decreaseblock~=nil then
  2457. block.Value=block.Value-1
  2458. end
  2459. end
  2460. end
  2461. end
  2462. if blocked==false then
  2463. -- h:TakeDamage(Damage)
  2464. h.Health=h.Health-Damage
  2465. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  2466. else
  2467. h.Health=h.Health-(Damage/2)
  2468. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  2469. end
  2470. if Type=="Knockdown" then
  2471. hum=hit.Parent.Humanoid
  2472. hum.PlatformStand=true
  2473. coroutine.resume(coroutine.create(function(HHumanoid)
  2474. swait(1)
  2475. HHumanoid.PlatformStand=false
  2476. end),hum)
  2477. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2478. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2479. local bodvol=Instance.new("BodyVelocity")
  2480. bodvol.velocity=angle*knockback
  2481. bodvol.P=5000
  2482. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2483. bodvol.Parent=hit
  2484. rl=Instance.new("BodyAngularVelocity")
  2485. rl.P=3000
  2486. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2487. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2488. rl.Parent=hit
  2489. game:GetService("Debris"):AddItem(bodvol,.5)
  2490. game:GetService("Debris"):AddItem(rl,.5)
  2491. elseif Type=="Normal" then
  2492. vp=Instance.new("BodyVelocity")
  2493. vp.P=500
  2494. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2495. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2496. if KnockbackType==1 then
  2497. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2498. elseif KnockbackType==2 then
  2499. vp.velocity=Property.CFrame.lookVector*knockback
  2500. end
  2501. if knockback>0 then
  2502. vp.Parent=hit.Parent.Torso
  2503. end
  2504. game:GetService("Debris"):AddItem(vp,.5)
  2505. elseif Type=="Up" then
  2506. local bodyVelocity=Instance.new("BodyVelocity")
  2507. bodyVelocity.velocity=vt(0,60,0)
  2508. bodyVelocity.P=5000
  2509. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2510. bodyVelocity.Parent=hit
  2511. game:GetService("Debris"):AddItem(bodyVelocity,1)
  2512. rl=Instance.new("BodyAngularVelocity")
  2513. rl.P=3000
  2514. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2515. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  2516. rl.Parent=hit
  2517. game:GetService("Debris"):AddItem(rl,.5)
  2518. elseif Type=="Snare" then
  2519. bp=Instance.new("BodyPosition")
  2520. bp.P=2000
  2521. bp.D=100
  2522. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2523. bp.position=hit.Parent.Torso.Position
  2524. bp.Parent=hit.Parent.Torso
  2525. game:GetService("Debris"):AddItem(bp,1)
  2526. elseif Type=="Target" then
  2527. if Targetting==false then
  2528. ZTarget=hit.Parent.Torso
  2529. coroutine.resume(coroutine.create(function(Part)
  2530. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2531. swait(5)
  2532. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2533. end),ZTarget)
  2534. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  2535. targetgui=Instance.new("BillboardGui")
  2536. targetgui.Parent=ZTarget
  2537. targetgui.Size=UDim2.new(10,100,10,100)
  2538. targ=Instance.new("ImageLabel")
  2539. targ.Parent=targetgui
  2540. targ.BackgroundTransparency=1
  2541. targ.Image="rbxassetid://4834067"
  2542. targ.Size=UDim2.new(1,0,1,0)
  2543. cam.CameraType="Scriptable"
  2544. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2545. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2546. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2547. Targetting=true
  2548. RocketTarget=ZTarget
  2549. for i=1,Property do
  2550. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  2551. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  2552. swait()
  2553. end
  2554. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  2555. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2556. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2557. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  2558. end
  2559. Targetting=false
  2560. RocketTarget=nil
  2561. targetgui.Parent=nil
  2562. cam.CameraType="Custom"
  2563. end
  2564. end
  2565. debounce=Instance.new("BoolValue")
  2566. debounce.Name="DebounceHit"
  2567. debounce.Parent=hit.Parent
  2568. debounce.Value=true
  2569. game:GetService("Debris"):AddItem(debounce,Delay)
  2570. c=Instance.new("ObjectValue")
  2571. c.Name="creator"
  2572. c.Value=Player
  2573. c.Parent=h
  2574. game:GetService("Debris"):AddItem(c,.5)
  2575. CRIT=false
  2576. hitDeb=true
  2577. AttackPos=6
  2578. end
  2579. end
  2580.  
  2581. showDamage=function(Char,Dealt,du,Color)
  2582. m=Instance.new("Model")
  2583. m.Name=tostring(Dealt)
  2584. h=Instance.new("Humanoid")
  2585. h.Health=0
  2586. h.MaxHealth=0
  2587. h.Parent=m
  2588. c=Instance.new("Part")
  2589. c.Transparency=0
  2590. c.BrickColor=Color
  2591. c.Transparency = 1
  2592. c.Name="Head"
  2593. c.TopSurface=0
  2594. c.BottomSurface=0
  2595. c.formFactor="Plate"
  2596. c.Size=Vector3.new(1,.4,1)
  2597.  
  2598. local txt = Instance.new("BillboardGui", c)
  2599. txt.Adornee = c
  2600. txt.Name = "_status"
  2601. txt.Size = UDim2.new(2, 0, 1.2, 0)
  2602. txt.StudsOffset = Vector3.new(-9, 8, 0)
  2603. local text = Instance.new("TextLabel", txt)
  2604. text.Size = UDim2.new(10, 0, 7, 0)
  2605. text.FontSize = "Size12"
  2606. text.TextScaled = true
  2607. text.TextTransparency = 0.5
  2608. text.BackgroundTransparency = 1
  2609. text.TextTransparency = 0.5
  2610. text.TextStrokeTransparency = 0.5
  2611. text.Font = "SciFi"
  2612. text.TextStrokeColor3 = Color3.new(0,0,0)
  2613. v=Instance.new("Part")
  2614. v.Name = "ColorBrick"
  2615. v.Parent=c
  2616. v.FormFactor="Symmetric"
  2617. v.Anchored=true
  2618. v.CanCollide=false
  2619. v.BottomSurface="Smooth"
  2620. v.TopSurface="Smooth"
  2621. v.Size=Vector3.new(10,5,3)
  2622. v.Transparency=1
  2623. v.CFrame=c.CFrame
  2624. v.BrickColor=BrickColor.random()
  2625. v.Transparency=1
  2626. text.TextColor3 = t.BrickColor.Color
  2627. v.Shape="Block"
  2628. text.Text = tostring(Dealt)
  2629. ms=Instance.new("CylinderMesh")
  2630. ms.Scale=Vector3.new(.8,.8,.8)
  2631. --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  2632. local rndm=math.random(1,#hitsounds)
  2633. local r=rndm
  2634. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
  2635. if CRIT==true then
  2636. ms.Scale=Vector3.new(1,1.25,1)
  2637. end
  2638. ms.Parent=c
  2639. c.Reflectance=0
  2640. Instance.new("BodyGyro").Parent=c
  2641. c.Parent=m
  2642. if Char:findFirstChild("Head")~=nil then
  2643. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2644. elseif Char.Parent:findFirstChild("Head")~=nil then
  2645. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2646. end
  2647. f=Instance.new("BodyPosition")
  2648. f.P=2000
  2649. f.D=100
  2650. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2651. f.position=c.Position+Vector3.new(0,3,0)
  2652. f.Parent=c
  2653. game:GetService("Debris"):AddItem(m,.5+du)
  2654. c.CanCollide=false
  2655. m.Parent=workspace
  2656. c.CanCollide=false
  2657. end
  2658.  
  2659. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2660. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2661. end
  2662.  
  2663. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2664. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2665. prt.Anchored=true
  2666. prt.CFrame=cframe
  2667. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2668. --http://www.roblox.com/asset/?id=4770560
  2669. game:GetService("Debris"):AddItem(prt,2)
  2670. CF=prt.CFrame
  2671. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2672. for i=0,1,0.2 do
  2673. wait()
  2674. Part.CFrame=CF*cf(0,0,-0.4)
  2675. end
  2676. for i=0,1,delay do
  2677. wait()
  2678. --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)
  2679. Mesh.Scale=Mesh.Scale
  2680. end
  2681. for i=0,1,0.1 do
  2682. wait()
  2683. Part.Transparency=i
  2684. end
  2685. Part.Parent=nil
  2686. end),prt,msh,CF)
  2687. end
  2688.  
  2689. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2690. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2691. prt.Anchored=true
  2692. prt.Material = "Neon"
  2693. prt.CFrame=cframe
  2694. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2695. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2696. game:GetService("Debris"):AddItem(prt,5)
  2697. coroutine.resume(coroutine.create(function(Part,Mesh)
  2698. for i=0,1,delay do
  2699. swait()
  2700. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2701. Part.Transparency=i
  2702. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2703. end
  2704. Part.Parent=nil
  2705. end),prt,msh)
  2706. end
  2707.  
  2708. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2709. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2710. prt.Anchored=true
  2711. prt.Material = "Neon"
  2712. prt.CFrame=cframe
  2713. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2714. game:GetService("Debris"):AddItem(prt,5)
  2715. coroutine.resume(coroutine.create(function(Part,Mesh)
  2716. local rtype = rottype
  2717. for i=0,1,delay do
  2718. swait()
  2719. if rtype == 1 then
  2720. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2721. elseif rtype == 2 then
  2722. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2723. end
  2724. Part.Transparency=i
  2725. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2726. end
  2727. Part.Parent=nil
  2728. end),prt,msh)
  2729. end
  2730.  
  2731. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2732. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2733. prt.Anchored=true
  2734. prt.CFrame=cframe
  2735. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2736. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2737. game:GetService("Debris"):AddItem(prt,5)
  2738. coroutine.resume(coroutine.create(function(Part,Mesh)
  2739. for i=0,1,delay do
  2740. wait()
  2741. Part.Transparency=i
  2742. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2743. end
  2744. Part.Parent=nil
  2745. end),prt,msh)
  2746. end
  2747.  
  2748. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2749. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2750. prt.Anchored=true
  2751. prt.Material = "Neon"
  2752. prt.CFrame=cframe
  2753. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2754. game:GetService("Debris"):AddItem(prt,5)
  2755. coroutine.resume(coroutine.create(function(Part,Mesh)
  2756. local rtype = rottype
  2757. for i=0,1,delay do
  2758. swait()
  2759. if rtype == 1 then
  2760. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2761. elseif rtype == 2 then
  2762. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2763. end
  2764. Part.Transparency=i
  2765. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2766. end
  2767. Part.Parent=nil
  2768. end),prt,msh)
  2769. end
  2770.  
  2771. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2772. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2773. prt.Anchored=true
  2774. prt.Material = "Neon"
  2775. prt.CFrame=cframe
  2776. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2777. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2778. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2779. game:GetService("Debris"):AddItem(prt,5)
  2780. coroutine.resume(coroutine.create(function(Part,Mesh)
  2781. local rtype = rottype
  2782. for i=0,1,delay do
  2783. swait()
  2784. if rtype == 1 then
  2785. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2786. elseif rtype == 2 then
  2787. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2788. end
  2789. dec.Transparency=i
  2790. dec2.Transparency=i
  2791. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2792. end
  2793. Part.Parent=nil
  2794. end),prt,msh)
  2795. end
  2796.  
  2797. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2798. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2799. prt.Anchored=true
  2800. prt.Material = "Neon"
  2801. prt.CFrame=cframe
  2802. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2803. game:GetService("Debris"):AddItem(prt,5)
  2804. coroutine.resume(coroutine.create(function(Part,Mesh)
  2805. local rtype = rottype
  2806. for i=0,1,delay do
  2807. swait()
  2808. if rtype == 1 then
  2809. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2810. elseif rtype == 2 then
  2811. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2812. end
  2813. prt.Transparency=i
  2814. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2815. end
  2816. Part.Parent=nil
  2817. end),prt,msh)
  2818. end
  2819.  
  2820. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2821. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2822. prt.Anchored=true
  2823. prt.Material = "Neon"
  2824. prt.CFrame=cframe
  2825. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2826. game:GetService("Debris"):AddItem(prt,5)
  2827. coroutine.resume(coroutine.create(function(Part,Mesh)
  2828. local rtype = rottype
  2829. for i=0,1,delay do
  2830. swait()
  2831. if rtype == 1 then
  2832. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2833. elseif rtype == 2 then
  2834. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2835. end
  2836. prt.Transparency=i
  2837. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2838. end
  2839. Part.Parent=nil
  2840. end),prt,msh)
  2841. end
  2842.  
  2843. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2844. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2845. prt.Anchored=true
  2846. prt.Material = "Neon"
  2847. prt.CFrame=cframe
  2848. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2849. game:GetService("Debris"):AddItem(prt,5)
  2850. coroutine.resume(coroutine.create(function(Part,Mesh)
  2851. local rtype = rottype
  2852. for i=0,1,delay do
  2853. swait()
  2854. if rtype == 1 then
  2855. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2856. elseif rtype == 2 then
  2857. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2858. end
  2859. prt.Transparency=i
  2860. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2861. end
  2862. Part.Parent=nil
  2863. end),prt,msh)
  2864. end
  2865.  
  2866. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2867. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2868. prt.Anchored=false
  2869. prt.CFrame=cframe
  2870. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2871. local wld=weld(prt,prt,Parent,cframe)
  2872. game:GetService("Debris"):AddItem(prt,5)
  2873. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2874. for i=0,1,delay do
  2875. wait()
  2876. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2877. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2878. Part.Transparency=i
  2879. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2880. end
  2881. Part.Parent=nil
  2882. end),prt,msh,wld)
  2883. end
  2884.  
  2885. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2886. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2887. prt.Anchored=false
  2888. prt.CFrame=cframe
  2889. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2890. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2891. game:GetService("Debris"):AddItem(prt,5)
  2892. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2893. for i=0,1,delay do
  2894. wait()
  2895. Weld.C0=euler(i*20,0,0)
  2896. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2897. Part.Transparency=i
  2898. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2899. end
  2900. Part.Parent=nil
  2901. end),prt,msh,wld)
  2902. end
  2903.  
  2904. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2905. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2906. prt.Anchored=true
  2907. prt.CFrame=cframe
  2908. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2909. game:GetService("Debris"):AddItem(prt,2)
  2910. coroutine.resume(coroutine.create(function(Part,Mesh)
  2911. for i=0,1,delay do
  2912. wait()
  2913. Part.CFrame=Part.CFrame
  2914. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2915. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2916. prt2.Anchored=true
  2917. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2918. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2919. game:GetService("Debris"):AddItem(prt2,2)
  2920. coroutine.resume(coroutine.create(function(Part,Mesh)
  2921. for i=0,1,0.1 do
  2922. wait()
  2923. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2924. end
  2925. Part.Parent=nil
  2926. end),prt2,msh2)
  2927. end
  2928. for i=0,1,delay*2 do
  2929. wait()
  2930. Part.CFrame=Part.CFrame
  2931. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2932. end
  2933. Part.Parent=nil
  2934. end),prt,msh)
  2935. end
  2936.  
  2937. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2938. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2939. prt.Anchored=true
  2940. prt.CFrame=cframe
  2941. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2942. game:GetService("Debris"):AddItem(prt,2)
  2943. coroutine.resume(coroutine.create(function(Part,Mesh)
  2944. for i=0,1,delay do
  2945. wait()
  2946. Part.CFrame=Part.CFrame
  2947. Part.Transparency=i
  2948. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2949. end
  2950. Part.Parent=nil
  2951. end),prt,msh)
  2952. end
  2953.  
  2954. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2955. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2956. prt.Anchored=true
  2957. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2958. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2959. game:GetService("Debris"):AddItem(prt,2)
  2960. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2961. CF=Part.CFrame
  2962. Numbb=0
  2963. randnumb=math.random()/10
  2964. rand1=math.random()/10
  2965. for i=0,1,rand1 do
  2966. wait()
  2967. CF=CF*cf(0,math.random()/2,0)
  2968. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2969. Part.CFrame=CF*euler(Numbb,0,0)
  2970. Part.Transparency=i
  2971. Numbb=Numbb+randnumb
  2972. end
  2973. Part.Parent=nil
  2974. end),prt,CF,Numbb,randnumb)
  2975. end
  2976.  
  2977. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2978. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2979. prt.Anchored=true
  2980. prt.CFrame=cframe
  2981. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2982. game:GetService("Debris"):AddItem(prt,5)
  2983. coroutine.resume(coroutine.create(function(Part,Mesh)
  2984. for i=0,1,delay do
  2985. wait()
  2986. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2987. Part.Transparency=i
  2988. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2989. end
  2990. Part.Parent=nil
  2991. end),prt,msh)
  2992. end
  2993.  
  2994. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2995. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2996. prt.Anchored=true
  2997. prt.CFrame=cframe
  2998. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2999. game:GetService("Debris"):AddItem(prt,2)
  3000. coroutine.resume(coroutine.create(function(Part,Mesh)
  3001. for i=0,1,delay do
  3002. wait()
  3003. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  3004. Part.Transparency=i
  3005. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3006. end
  3007. Part.Parent=nil
  3008. end),prt,msh)
  3009. end
  3010.  
  3011. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  3012. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3013. prt.Anchored=true
  3014. prt.CFrame=cframe*cf(x,y,z)
  3015. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  3016. game:GetService("Debris"):AddItem(prt,5)
  3017. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  3018. local num=math.random()
  3019. local num2=math.random(-3,2)+math.random()
  3020. local numm=0
  3021. for i=0,1,delay*2 do
  3022. swait()
  3023. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  3024. Part.Transparency=i
  3025. numm=numm+0.01
  3026. end
  3027. Part.Parent=nil
  3028. Mesh.Parent=nil
  3029. end),prt,msh,x,y,z)
  3030. end
  3031.  
  3032. function dmgstart(dmg,what)
  3033. hitcon = what.Touched:connect(function(hit)
  3034. local hum = hit.Parent:FindFirstChild("Humanoid")
  3035. if hum and not hum:IsDescendantOf(Character) then
  3036. hum:TakeDamage(dmg)
  3037. end
  3038. end)
  3039. end
  3040.  
  3041. function dmgstop()
  3042. hitcon:disconnect()
  3043. end
  3044.  
  3045. function Cloak()
  3046. Face.Parent=nil
  3047. cloaked=true
  3048. for _,v in pairs(Torso.Parent:children()) do
  3049. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  3050. coroutine.resume(coroutine.create(function()
  3051. for i=0,1,0.2 do
  3052. wait()
  3053. v.Transparency=i
  3054. end
  3055. v.Transparency=1
  3056. end))
  3057. end
  3058. if v.className=="Hat" then
  3059. hatp=v.Handle
  3060. coroutine.resume(coroutine.create(function(derp)
  3061. for i=0,1,0.2 do
  3062. wait()
  3063. derp.Transparency=i
  3064. end
  3065. derp.Transparency=1
  3066. end),hatp)
  3067. end
  3068. end
  3069. for _,v in pairs(m:children()) do
  3070. if v.className=="Part" then
  3071. coroutine.resume(coroutine.create(function()
  3072. for i=0,1,0.2 do
  3073. wait()
  3074. v.Transparency=i
  3075. end
  3076. v.Transparency=1
  3077. end))
  3078. end
  3079. end
  3080. end
  3081.  
  3082. function UnCloak()
  3083. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  3084. Face.Parent=Head
  3085. cloaked=false
  3086. for _,v in pairs(Torso.Parent:children()) do
  3087. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  3088. coroutine.resume(coroutine.create(function()
  3089. for i=0,1,0.1 do
  3090. wait()
  3091. v.Transparency=v.Transparency-0.1
  3092. end
  3093. v.Transparency=0
  3094. end))
  3095. end
  3096. if v.className=="Hat" then
  3097. hatp=v.Handle
  3098. coroutine.resume(coroutine.create(function(derp)
  3099. for i=0,1,0.1 do
  3100. wait()
  3101. derp.Transparency=derp.Transparency-0.1
  3102. end
  3103. derp.Transparency=0
  3104. end),hatp)
  3105. end
  3106. end
  3107. for _,v in pairs(m:children()) do
  3108. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  3109. coroutine.resume(coroutine.create(function()
  3110. for i=0,1,0.1 do
  3111. wait()
  3112. v.Transparency=v.Transparency-0.1
  3113. end
  3114. v.Transparency=0
  3115. end))
  3116. v.Transparency=0
  3117. end
  3118. end
  3119. end
  3120.  
  3121. local jumped = false
  3122. function jump()
  3123. attack = true
  3124. jumped = true
  3125. hum.WalkSpeed = 0
  3126. MagicBlock(bc("Really red"),root.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  3127. CFuncs["Sound"].Create("rbxassetid://169380495", root, 11, 1)
  3128. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  3129. for i = 0,15,0.1 do
  3130. swait()
  3131. MagicBlock(bc("Really red"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  3132. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  3133. 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)
  3134. 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)
  3135. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(50),math.rad(0),math.rad(0)),0.05)
  3136. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.05)
  3137. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  3138. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  3139. end
  3140. local bv = Instance.new("BodyVelocity")
  3141. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3142. bv.velocity = Vector3.new(0,500,0)
  3143. bv.Parent = root
  3144. game:GetService("Debris"):AddItem(bv, 0.5)
  3145. local rng = Instance.new("Part", char)
  3146. rng.Anchored = true
  3147. rng.BrickColor = BrickColor.new("Bright red")
  3148. rng.CanCollide = false
  3149. rng.FormFactor = 3
  3150. rng.Name = "Ring"
  3151. rng.Size = Vector3.new(1, 1, 1)
  3152. rng.Transparency = 0
  3153. rng.TopSurface = 0
  3154. rng.BottomSurface = 0
  3155. rng.Position = root.Position
  3156. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  3157. local rngm = Instance.new("SpecialMesh", rng)
  3158. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3159. local rng2 = rng:Clone()
  3160. rng2.Parent = char
  3161. local rng2m = rng2.Mesh
  3162. local rng3 = rng:Clone()
  3163. rng3.Parent = char
  3164. local rng3m = rng3.Mesh
  3165. local rng4 = rng:Clone()
  3166. rng4.Parent = char
  3167. local rng4m = rng4.Mesh
  3168. local rng5 = rng:Clone()
  3169. rng5.Parent = char
  3170. local rng5m = rng5.Mesh
  3171. CFuncs["Sound"].Create("rbxassetid://324867021", rng, 10, 1)
  3172. wait()
  3173. local scaler = 10
  3174. local scaler2 = 10
  3175. game:GetService("Debris"):AddItem(bv, 2.4)
  3176. hum.WalkSpeed = 50
  3177. MagicBlock(bc("Really red"),root.CFrame,15,15,15,10,10,10,0.015)
  3178. for i = 0,10,0.1 do
  3179. swait()
  3180. rng.Transparency = rng.Transparency + 0.01
  3181. rng2.Transparency = rng2.Transparency + 0.01
  3182. rng3.Transparency = rng3.Transparency + 0.01
  3183. rng4.Transparency = rng4.Transparency + 0.01
  3184. rng5.Transparency = rng5.Transparency + 0.01
  3185. scaler = scaler - 0.125
  3186. scaler2 = scaler2 - 0.1
  3187. rng2m.Scale = rng2m.Scale + Vector3.new(scaler/1.25, scaler/1.25, 20)
  3188. rng3m.Scale = rng3m.Scale + Vector3.new(scaler/1.5, scaler/1.5, 30)
  3189. rng4m.Scale = rng4m.Scale + Vector3.new(scaler/1.75, scaler/1.75, 40)
  3190. rng5m.Scale = rng5m.Scale + Vector3.new(scaler/2, scaler/2, 50)
  3191. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  3192. 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)
  3193. 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)
  3194. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.5)
  3195. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.5)
  3196. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  3197. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.5)
  3198. end
  3199. game:GetService("Debris"):AddItem(rng, 0.1)
  3200. game:GetService("Debris"):AddItem(rng2, 0.1)
  3201. game:GetService("Debris"):AddItem(rng3, 0.1)
  3202. game:GetService("Debris"):AddItem(rng4, 0.1)
  3203. game:GetService("Debris"):AddItem(rng5, 0.1)
  3204. hum.WalkSpeed = 16
  3205. attack = false
  3206. jumped = false
  3207. end
  3208.  
  3209. function dash()
  3210. attack = true
  3211. jumped = true
  3212. hum.WalkSpeed = 0
  3213. local bv = Instance.new("BodyVelocity")
  3214. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3215. bv.velocity = root.CFrame.lookVector*150
  3216. bv.Parent = root
  3217. game:GetService("Debris"):AddItem(bv, 1)
  3218. local rng = Instance.new("Part", char)
  3219. rng.Anchored = true
  3220. rng.BrickColor = BrickColor.new("Bright red")
  3221. rng.CanCollide = false
  3222. rng.FormFactor = 3
  3223. rng.Name = "Ring"
  3224. rng.Size = Vector3.new(1, 1, 1)
  3225. rng.Transparency = 0
  3226. rng.TopSurface = 0
  3227. rng.BottomSurface = 0
  3228. rng.CFrame = root.CFrame
  3229. local rngm = Instance.new("SpecialMesh", rng)
  3230. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3231. local rng2 = rng:Clone()
  3232. rng2.Parent = char
  3233. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  3234. local rng2m = rng2.Mesh
  3235. local rng3 = rng:Clone()
  3236. rng3.Parent = char
  3237. rng3.CFrame = root.CFrame + root.CFrame.lookVector*20
  3238. local rng3m = rng3.Mesh
  3239. local rng4 = rng:Clone()
  3240. rng4.Parent = char
  3241. rng4.CFrame = root.CFrame + root.CFrame.lookVector*30
  3242. local rng4m = rng4.Mesh
  3243. local rng5 = rng:Clone()
  3244. rng5.Parent = char
  3245. rng5.CFrame = root.CFrame + root.CFrame.lookVector*40
  3246. local rng5m = rng5.Mesh
  3247. CFuncs["Sound"].Create("rbxassetid://324867021", root, 10, 1)
  3248. wait()
  3249. local scaler = 10/5
  3250. local scaler2 = 10/5
  3251. local hit = larm.Touched:connect(function(hit)
  3252. Damagefunc(hit,25,34,math.random(10,20),"Normal",root,.2,1)
  3253. end)
  3254. for i = 0,10,0.1 do
  3255. swait()
  3256. MagicBlock(bc("Really red"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  3257. rng.Transparency = rng.Transparency + 0.01
  3258. rng2.Transparency = rng2.Transparency + 0.01
  3259. rng3.Transparency = rng3.Transparency + 0.01
  3260. rng4.Transparency = rng4.Transparency + 0.01
  3261. rng5.Transparency = rng5.Transparency + 0.01
  3262. scaler = scaler - 0.125/5
  3263. scaler2 = scaler2 - 0.1/5
  3264. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 0)
  3265. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  3266. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  3267. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  3268. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  3269. 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)
  3270. 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)
  3271. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-80)),0.5)
  3272. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
  3273. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  3274. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-110)), 0.5)
  3275. end
  3276. game:GetService("Debris"):AddItem(rng, 0.1)
  3277. game:GetService("Debris"):AddItem(rng2, 0.1)
  3278. game:GetService("Debris"):AddItem(rng3, 0.1)
  3279. game:GetService("Debris"):AddItem(rng4, 0.1)
  3280. game:GetService("Debris"):AddItem(rng5, 0.1)
  3281. hum.WalkSpeed = 16
  3282. hit:disconnect()
  3283. attack = false
  3284. jumped = false
  3285. end
  3286.  
  3287. function boom()
  3288. attack = true
  3289. jumped = true
  3290. hum.WalkSpeed = 5
  3291. MagicBlock(bc("Bright red"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  3292. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  3293. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  3294. for i = 0,15,0.1 do
  3295. swait()
  3296. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  3297. 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)
  3298. 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)
  3299. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  3300. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  3301. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  3302. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  3303. end
  3304. local rng = Instance.new("Part", char)
  3305. rng.Anchored = true
  3306. rng.BrickColor = BrickColor.new("Bright red")
  3307. rng.CanCollide = false
  3308. rng.FormFactor = 3
  3309. rng.Name = "Ring"
  3310. rng.Size = Vector3.new(1, 1, 1)
  3311. rng.Transparency = 0
  3312. rng.TopSurface = 0
  3313. rng.BottomSurface = 0
  3314. rng.Position = root.Position
  3315. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  3316. local rngm = Instance.new("SpecialMesh", rng)
  3317. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3318. local rng2 = rng:Clone()
  3319. rng2.Parent = char
  3320. local rng2m = rng2.Mesh
  3321. local rng3 = rng:Clone()
  3322. rng3.Parent = char
  3323. local rng3m = rng3.Mesh
  3324. local rng4 = rng:Clone()
  3325. rng4.Parent = char
  3326. local rng4m = rng4.Mesh
  3327. local rng5 = rng:Clone()
  3328. rng5.Parent = char
  3329. local rng5m = rng5.Mesh
  3330. local hit = rng5.Touched:connect(function(hit)
  3331. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  3332. end)
  3333. MagicBlock(bc("Really red"),root.CFrame,15,15,15,5,5,5,0.015)
  3334. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 17, 1)
  3335. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 15, 0.85)
  3336. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 17, 1)
  3337. wait()
  3338. local scaler = 10
  3339. local scaler2 = 10
  3340. for i = 0,10,0.1 do
  3341. swait()
  3342. rng.Transparency = rng.Transparency + 0.01
  3343. rng2.Transparency = rng2.Transparency + 0.01
  3344. rng3.Transparency = rng3.Transparency + 0.01
  3345. rng4.Transparency = rng4.Transparency + 0.01
  3346. rng5.Transparency = rng5.Transparency + 0.01
  3347. scaler = scaler - 0.125
  3348. scaler2 = scaler2 - 0.1
  3349. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4)
  3350. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3)
  3351. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2)
  3352. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1)
  3353. rng5.Size = rng5m.Scale
  3354. rng5.CFrame = rng.CFrame
  3355. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5)
  3356. 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)
  3357. 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)
  3358. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5)
  3359. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  3360. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5)
  3361. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5)
  3362. end
  3363. hit:disconnect()
  3364. game:GetService("Debris"):AddItem(rng, 1)
  3365. game:GetService("Debris"):AddItem(rng2, 1)
  3366. game:GetService("Debris"):AddItem(rng3, 1)
  3367. game:GetService("Debris"):AddItem(rng4, 1)
  3368. game:GetService("Debris"):AddItem(rng5, 1)
  3369. hum.WalkSpeed = 16
  3370. attack = false
  3371. jumped = false
  3372. end
  3373.  
  3374. function shooty()
  3375. attack = true
  3376. hum.WalkSpeed = 30
  3377. MagicBlock(bc("Really red"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  3378. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  3379. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  3380. for i = 0,15,0.1 do
  3381. swait()
  3382. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  3383. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  3384. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  3385. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  3386. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  3387. end
  3388. CFuncs["Sound"].Create("rbxassetid://187137517", root, 10, 1)
  3389. local a = Instance.new("Part",Character)
  3390. a.Name = "Direction"
  3391. a.Anchored = true
  3392. a.BrickColor = bc("Bright red")
  3393. a.Material = "Neon"
  3394. a.Transparency = 1
  3395. a.CanCollide = false
  3396. local ray = Ray.new(
  3397. root.CFrame.p, -- origin
  3398. (mouse.Hit.p - root.CFrame.p).unit * 500 -- direction
  3399. )
  3400. local ignore = Character
  3401. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3402. a.BottomSurface = 10
  3403. a.TopSurface = 10
  3404. local distance = (root.CFrame.p - position).magnitude
  3405. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3406. a.CFrame = CFrame.new(root.CFrame.p, position) * CFrame.new(0, 0, 0)
  3407. local lb = Instance.new("Part")
  3408. lb.Parent = char
  3409. lb.BrickColor = bc("Bright red")
  3410. lb.CanCollide = false
  3411. lb.Material = "Neon"
  3412. lb.Anchored = true
  3413. lb.TopSurface = 0
  3414. lb.BottomSurface = 0
  3415. lb.Transparency = 0
  3416. lb.Size = vt(0.5,0.5,0.5)
  3417. lb.CFrame = sorb.CFrame
  3418. lb.Anchored = false
  3419. local thingery = Instance.new("SpecialMesh",lb)
  3420. thingery.MeshType = "Sphere"
  3421. thingery.Scale = vt(25,25,25)
  3422. game:GetService("Debris"):AddItem(lb, 10)
  3423. local bv = Instance.new("BodyVelocity")
  3424. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3425. bv.velocity = a.CFrame.lookVector*150
  3426. bv.Parent = lb
  3427. game:GetService("Debris"):AddItem(a, 0.1)
  3428. wait(0.05)
  3429. local hitted = false
  3430. lb.Touched:connect(function(hit)
  3431. if hitted == false then
  3432. hitted = true
  3433. lb.Anchored = true
  3434. lb.Transparency = 1
  3435. local rng = Instance.new("Part", char)
  3436. rng.Anchored = true
  3437. rng.BrickColor = BrickColor.new("Bright red")
  3438. rng.CanCollide = false
  3439. rng.FormFactor = 3
  3440. rng.Name = "Ring"
  3441. rng.Size = Vector3.new(1, 1, 1)
  3442. rng.Transparency = 0
  3443. rng.TopSurface = 0
  3444. rng.BottomSurface = 0
  3445. rng.CFrame = lb.CFrame
  3446. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  3447. local rngm = Instance.new("SpecialMesh", rng)
  3448. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3449. local rng2 = rng:Clone()
  3450. rng2.Parent = char
  3451. local rng2m = rng2.Mesh
  3452. local rng3 = rng:Clone()
  3453. rng3.Parent = char
  3454. local rng3m = rng3.Mesh
  3455. local rng4 = rng:Clone()
  3456. rng4.Parent = char
  3457. local rng4m = rng4.Mesh
  3458. local rng5 = rng:Clone()
  3459. rng5.Parent = char
  3460. rng5.CFrame = rng5.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  3461. local rng5m = rng5.Mesh
  3462. rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  3463. rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  3464. rng4.CFrame = rng4.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  3465. MagicBlock(bc("Really red"),lb.CFrame,15,15,15,5,5,5,0.015)
  3466. local rng6 = rng:Clone()
  3467. rng6.Material = "Neon"
  3468. rng6.Parent = char
  3469. local rng6m = rng6.Mesh
  3470. rng6m.Scale = vt(1,1,1)
  3471. rng6m.MeshType = "Sphere"
  3472. local hita = rng6.Touched:connect(function(hit)
  3473. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  3474. end)
  3475. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 15, 1)
  3476. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 15, 0.75)
  3477. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 15, 1)
  3478. local scaler = 5
  3479. local scaler2 = 5
  3480. for i = 0,20,0.1 do
  3481. swait()
  3482. rng.Transparency = rng.Transparency + 0.005
  3483. rng2.Transparency = rng2.Transparency + 0.005
  3484. rng3.Transparency = rng3.Transparency + 0.005
  3485. rng4.Transparency = rng4.Transparency + 0.005
  3486. rng5.Transparency = rng5.Transparency + 0.005
  3487. rng6.Transparency = rng6.Transparency + 0.005
  3488. scaler = scaler - 0.005/2
  3489. scaler2 = scaler2 - 0.05/2
  3490. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  3491. rng6.CFrame = rng.CFrame
  3492. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  3493. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  3494. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  3495. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  3496. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  3497. end
  3498. hita:disconnect()
  3499. game:GetService("Debris"):AddItem(rng, 1)
  3500. game:GetService("Debris"):AddItem(rng2, 1)
  3501. game:GetService("Debris"):AddItem(rng3, 1)
  3502. game:GetService("Debris"):AddItem(rng4, 1)
  3503. game:GetService("Debris"):AddItem(rng5, 1)
  3504. game:GetService("Debris"):AddItem(rng6, 1)
  3505. end
  3506. end)
  3507. for i = 0,2,0.1 do
  3508. swait()
  3509. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  3510. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  3511. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  3512. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  3513. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  3514. end
  3515. attack = false
  3516. end
  3517.  
  3518. function superpunch()
  3519. attack = true
  3520. jumped = true
  3521. hum.WalkSpeed = 5
  3522. MagicBlock(bc("Really red"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  3523. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  3524. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  3525. for i = 0,15,0.1 do
  3526. swait()
  3527. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  3528. 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)
  3529. 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)
  3530. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  3531. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  3532. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  3533. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  3534. end
  3535. local rng = Instance.new("Part", char)
  3536. rng.Anchored = true
  3537. rng.BrickColor = BrickColor.new("Bright red")
  3538. rng.CanCollide = false
  3539. rng.FormFactor = 3
  3540. rng.Name = "Ring"
  3541. rng.Size = Vector3.new(1, 1, 1)
  3542. rng.Transparency = 0
  3543. rng.TopSurface = 0
  3544. rng.BottomSurface = 0
  3545. rng.CFrame = root.CFrame
  3546. local rngm = Instance.new("SpecialMesh", rng)
  3547. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3548. local rng2 = rng:Clone()
  3549. rng2.Parent = char
  3550. local rng2m = rng2.Mesh
  3551. local rng3 = rng:Clone()
  3552. rng3.Parent = char
  3553. local rng3m = rng3.Mesh
  3554. local rng4 = rng:Clone()
  3555. rng4.Parent = char
  3556. local rng4m = rng4.Mesh
  3557. local rng5 = rng:Clone()
  3558. rng5.Parent = char
  3559. local rng5m = rng5.Mesh
  3560. local rng6 = rng:Clone()
  3561. rng6.Material = "Neon"
  3562. rng6.Parent = char
  3563. local rng6m = rng6.Mesh
  3564. rng6m.Scale = vt(1,1,1)
  3565. rng6m.MeshType = "Sphere"
  3566. local hita = rng6.Touched:connect(function(hit)
  3567. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  3568. end)
  3569. rng2.CFrame = root.CFrame
  3570. rng3.CFrame = root.CFrame
  3571. rng4.CFrame = root.CFrame
  3572. rng5.CFrame = root.CFrame
  3573. rng6.CFrame = root.CFrame
  3574. CFuncs["Sound"].Create("rbxassetid://260430117", rng, 15, 1)
  3575. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 15, 0.85)
  3576. CFuncs["Sound"].Create("rbxassetid://169628396", rng, 15, 1)
  3577. CFuncs["Sound"].Create("rbxassetid://137994058", rng, 15, 1)
  3578. CFuncs["Sound"].Create("rbxassetid://138186576", rng, 15, 1)
  3579. wait()
  3580. local scaler = 10/5
  3581. local scaler2 = 10/5
  3582. MagicBlock(bc("Really red"),root.CFrame,15,15,15,5,5,5,0.015)
  3583. for i = 0,10,0.1 do
  3584. swait()
  3585. MagicBlock(bc("Really red"),rng6.CFrame,5,5,5,5,5,5,0.1)
  3586. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2
  3587. rng2.CFrame = rng2.CFrame + rng2.CFrame.lookVector*scaler2/1.25
  3588. rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/1.5
  3589. rng4.CFrame = rng4.CFrame + rng4.CFrame.lookVector*scaler2/1.75
  3590. rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/2
  3591. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  3592. rng6.CFrame = rng.CFrame
  3593. rng.Transparency = rng.Transparency + 0.01
  3594. rng2.Transparency = rng2.Transparency + 0.01
  3595. rng3.Transparency = rng3.Transparency + 0.01
  3596. rng4.Transparency = rng4.Transparency + 0.01
  3597. rng5.Transparency = rng5.Transparency + 0.01
  3598. rng6.Transparency = rng6.Transparency + 0.01
  3599. scaler = scaler - 0.125/5
  3600. scaler2 = scaler2 - 0.1/5
  3601. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 1.5)
  3602. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1)
  3603. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0.5)
  3604. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  3605. rngm.Scale = rngm.Scale + Vector3.new(scaler2/3, scaler2/3, 2)
  3606. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  3607. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  3608. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  3609. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  3610. end
  3611. hita:disconnect()
  3612. game:GetService("Debris"):AddItem(rng, 1)
  3613. game:GetService("Debris"):AddItem(rng2, 1)
  3614. game:GetService("Debris"):AddItem(rng3, 1)
  3615. game:GetService("Debris"):AddItem(rng4, 1)
  3616. game:GetService("Debris"):AddItem(rng5, 1)
  3617. hum.WalkSpeed = 16
  3618. attack = false
  3619. jumped = false
  3620. end
  3621.  
  3622.  
  3623. mouse.KeyDown:connect(function(k)
  3624. if k == "z" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  3625. jump()
  3626. end
  3627. if k == "x" and attack == false then
  3628. dash()
  3629. end
  3630. if k == "c" and attack == false then
  3631. boom()
  3632. end
  3633. if k == "v" and attack == false then
  3634. shooty()
  3635. end
  3636. if k == "b" and attack == false then
  3637. superpunch()
  3638. end
  3639. end)
  3640. Humanoid.Animator.Parent = nil
  3641. idleanim=.4
  3642. while true do
  3643. swait()
  3644. sine = sine + change
  3645. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3646. local velderp=RootPart.Velocity.y
  3647. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3648. if equipped==true or equipped==false then
  3649. if attack==false then
  3650. idle=idle+1
  3651. else
  3652. idle=0
  3653. end
  3654. if idle>=500 then
  3655. if attack==false then
  3656. --Sheath()
  3657. end
  3658. end
  3659. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3660. Anim="Jump"
  3661. if attack==false then
  3662. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  3663. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3664. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3665. 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)
  3666. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3667. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  3668. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3669. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  3670. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  3671. end
  3672. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3673. Anim="Fall"
  3674. if attack==false then
  3675. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  3676. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3677. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  3678. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  3679. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3680. 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)
  3681. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3682. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3683. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3684. end
  3685. elseif torvel<1 and hitfloor~=nil then
  3686. Anim="Idle"
  3687. if jumped == false then
  3688. 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)
  3689. 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)
  3690. end
  3691. if attack==false then
  3692. 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)
  3693. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  3694. 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)
  3695. 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)
  3696. end
  3697. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3698. Anim="Walk"
  3699. if jumped == false then
  3700. 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)
  3701. 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)
  3702. end
  3703. if attack==false then
  3704. 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)
  3705. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3706. 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)
  3707. 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)
  3708. end
  3709. elseif torvel>=22 and hitfloor~=nil then
  3710. Anim="Run"
  3711. if jumped == false then
  3712. 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)
  3713. 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)
  3714. end
  3715. if attack==false then
  3716. game.Workspace.Likebossfromdk.Humanoid.MaxHealth = math.huge
  3717. warn'any options for magic'
  3718. plr = game.Players.LocalPlayer
  3719. char = plr.Character
  3720. hum = char.Humanoid
  3721. local cam = game.Workspace.CurrentCamera
  3722. t = char.Torso
  3723. h = char.Head
  3724. ra = char["Right Arm"]
  3725. la = char["Left Arm"]
  3726. rl = char["Right Leg"]
  3727. ll = char["Left Leg"]
  3728. tors = char.Torso
  3729. lleg = char["Left Leg"]
  3730. root = char.HumanoidRootPart
  3731. hed = char.Head
  3732. rleg = char["Right Leg"]
  3733. rarm = char["Right Arm"]
  3734. larm = char["Left Arm"]
  3735. vt = Vector3.new
  3736. bc = BrickColor.new
  3737. br = BrickColor.random
  3738. it = Instance.new
  3739. cf = CFrame.new
  3740. local s = Instance.new("Sound",char)
  3741. s.Name = "BGMusic"
  3742. s.SoundId = "rbxassetid://409640553"
  3743. s.Pitch = 1
  3744. s.Volume = 5
  3745. s.Looped = true
  3746. s.archivable = false
  3747. s.Parent = char.Head
  3748. wait(0.1)
  3749. s:play()
  3750.  
  3751. local Create = LoadLibrary("RbxUtility").Create
  3752.  
  3753. CFuncs = {
  3754. ["Part"] = {
  3755. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  3756. local Part = Create("Part"){
  3757. Parent = Parent,
  3758. Reflectance = Reflectance,
  3759. Transparency = Transparency,
  3760. CanCollide = false,
  3761. Locked = true,
  3762. BrickColor = BrickColor.new(tostring(BColor)),
  3763. Name = Name,
  3764. Size = Size,
  3765. Material = Material,
  3766. }
  3767. RemoveOutlines(Part)
  3768. return Part
  3769. end;
  3770. };
  3771.  
  3772. ["Mesh"] = {
  3773. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3774. local Msh = Create(Mesh){
  3775. Parent = Part,
  3776. Offset = OffSet,
  3777. Scale = Scale,
  3778. }
  3779. if Mesh == "SpecialMesh" then
  3780. Msh.MeshType = MeshType
  3781. Msh.MeshId = MeshId
  3782. end
  3783. return Msh
  3784. end;
  3785. };
  3786.  
  3787. ["Mesh"] = {
  3788. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3789. local Msh = Create(Mesh){
  3790. Parent = Part,
  3791. Offset = OffSet,
  3792. Scale = Scale,
  3793. }
  3794. if Mesh == "SpecialMesh" then
  3795. Msh.MeshType = MeshType
  3796. Msh.MeshId = MeshId
  3797. end
  3798. return Msh
  3799. end;
  3800. };
  3801.  
  3802. ["Weld"] = {
  3803. Create = function(Parent, Part0, Part1, C0, C1)
  3804. local Weld = Create("Weld"){
  3805. Parent = Parent,
  3806. Part0 = Part0,
  3807. Part1 = Part1,
  3808. C0 = C0,
  3809. C1 = C1,
  3810. }
  3811. return Weld
  3812. end;
  3813. };
  3814.  
  3815. ["Sound"] = {
  3816. Create = function(id, par, vol, pit)
  3817. coroutine.resume(coroutine.create(function()
  3818. local S = Create("Sound"){
  3819. Volume = vol,
  3820. Pitch = pit or 1,
  3821. SoundId = id,
  3822. Parent = par or workspace,
  3823. }
  3824. wait()
  3825. S:play()
  3826. game:GetService("Debris"):AddItem(S, 10)
  3827. end))
  3828. end;
  3829. };
  3830.  
  3831. ["ParticleEmitter"] = {
  3832. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  3833. local fp = Create("ParticleEmitter"){
  3834. Parent = Parent,
  3835. Color = ColorSequence.new(Color1, Color2),
  3836. LightEmission = LightEmission,
  3837. Size = Size,
  3838. Texture = Texture,
  3839. Transparency = Transparency,
  3840. ZOffset = ZOffset,
  3841. Acceleration = Accel,
  3842. Drag = Drag,
  3843. LockedToPart = LockedToPart,
  3844. VelocityInheritance = VelocityInheritance,
  3845. EmissionDirection = EmissionDirection,
  3846. Enabled = Enabled,
  3847. Lifetime = LifeTime,
  3848. Rate = Rate,
  3849. Rotation = Rotation,
  3850. RotSpeed = RotSpeed,
  3851. Speed = Speed,
  3852. VelocitySpread = VelocitySpread,
  3853. }
  3854. return fp
  3855. end;
  3856. };
  3857.  
  3858. CreateTemplate = {
  3859.  
  3860. };
  3861. }
  3862.  
  3863.  
  3864.  
  3865. New = function(Object, Parent, Name, Data)
  3866. local Object = Instance.new(Object)
  3867. for Index, Value in pairs(Data or {}) do
  3868. Object[Index] = Value
  3869. end
  3870. Object.Parent = Parent
  3871. Object.Name = Name
  3872. return Object
  3873. end
  3874. local m = Instance.new("Model",char)
  3875.  
  3876. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  3877. local p = Instance.new("Part")
  3878. p.Parent = parent
  3879. p.Size = Vector3.new(1,1,1)
  3880. p.Transparency = transparency
  3881. p.Reflectance = reflectance
  3882. p.CanCollide = false
  3883. p.Locked = true
  3884. p.BrickColor = brickcolor
  3885. p.Material = material
  3886. return p
  3887. end
  3888.  
  3889. function CreateMesh(parent,meshtype,x1,y1,z1)
  3890. local mesh = Instance.new("SpecialMesh",parent)
  3891. mesh.MeshType = meshtype
  3892. mesh.Scale = Vector3.new(x1,y1,z1)
  3893. return mesh
  3894. end
  3895.  
  3896. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  3897. local mesh = Instance.new("SpecialMesh",parent)
  3898. mesh.MeshType = "FileMesh"
  3899. mesh.MeshId = meshid
  3900. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  3901. mesh.Scale = Vector3.new(x1,y1,z1)
  3902. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  3903. return mesh
  3904. end
  3905.  
  3906. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  3907. local weld = Instance.new("Weld")
  3908. weld.Parent = parent
  3909. weld.Part0 = part0
  3910. weld.Part1 = part1
  3911. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  3912. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  3913. return weld
  3914. end
  3915.  
  3916.  
  3917. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  3918. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3919. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  3920. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  3921.  
  3922. Player=game:GetService("Players").LocalPlayer
  3923. Character=Player.Character
  3924. PlayerGui=Player.PlayerGui
  3925. Backpack=Player.Backpack
  3926. Torso=Character.Torso
  3927. Head=Character.Head
  3928. Humanoid=Character.Humanoid
  3929. m=Instance.new('Model',Character)
  3930. LeftArm=Character["Left Arm"]
  3931. LeftLeg=Character["Left Leg"]
  3932. RightArm=Character["Right Arm"]
  3933. RightLeg=Character["Right Leg"]
  3934. LS=Torso["Left Shoulder"]
  3935. LH=Torso["Left Hip"]
  3936. RS=Torso["Right Shoulder"]
  3937. RH=Torso["Right Hip"]
  3938. Face = Head.face
  3939. Neck=Torso.Neck
  3940. it=Instance.new
  3941. attacktype=1
  3942. vt=Vector3.new
  3943. cf=CFrame.new
  3944. euler=CFrame.fromEulerAnglesXYZ
  3945. angles=CFrame.Angles
  3946. cloaked=false
  3947. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3948. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3949. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  3950. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  3951. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  3952. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  3953. RootPart=Character.HumanoidRootPart
  3954. RootJoint=RootPart.RootJoint
  3955. RootCF=euler(-1.57,0,3.14)
  3956. attack = false
  3957. attackdebounce = false
  3958. deb=false
  3959. equipped=true
  3960. hand=false
  3961. MMouse=nil
  3962. combo=0
  3963. mana=0
  3964. trispeed=.2
  3965. attackmode='none'
  3966. local idle=0
  3967. local Anim="Idle"
  3968. local Effects={}
  3969. local gun=false
  3970. local shoot=false
  3971. local sine = 0
  3972. local change = 1
  3973. player=nil
  3974.  
  3975. mouse=Player:GetMouse()
  3976. --save shoulders
  3977. RSH, LSH=nil, nil
  3978. --welds
  3979. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  3980. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  3981. LH=Torso["Left Hip"]
  3982. RH=Torso["Right Hip"]
  3983. TorsoColor=Torso.BrickColor
  3984. function NoOutline(Part)
  3985. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  3986. end
  3987. player=Player
  3988. ch=Character
  3989. RSH=ch.Torso["Right Shoulder"]
  3990. LSH=ch.Torso["Left Shoulder"]
  3991. --
  3992. RSH.Parent=nil
  3993. LSH.Parent=nil
  3994. --
  3995. RW.Name="Right Shoulder"
  3996. RW.Part0=ch.Torso
  3997. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  3998. RW.C1=cf(0, 0.5, 0)
  3999. RW.Part1=ch["Right Arm"]
  4000. RW.Parent=ch.Torso
  4001. --
  4002. LW.Name="Left Shoulder"
  4003. LW.Part0=ch.Torso
  4004. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  4005. LW.C1=cf(0, 0.5, 0)
  4006. LW.Part1=ch["Left Arm"]
  4007. LW.Parent=ch.Torso
  4008.  
  4009. local Stats=Instance.new("BoolValue")
  4010. Stats.Name="Stats"
  4011. Stats.Parent=Character
  4012. local Atk=Instance.new("NumberValue")
  4013. Atk.Name="Damage"
  4014. Atk.Parent=Stats
  4015. Atk.Value=1
  4016. local Def=Instance.new("NumberValue")
  4017. Def.Name="Defense"
  4018. Def.Parent=Stats
  4019. Def.Value=1
  4020. local Speed=Instance.new("NumberValue")
  4021. Speed.Name="Speed"
  4022. Speed.Parent=Stats
  4023. Speed.Value=1
  4024. local Mvmt=Instance.new("NumberValue")
  4025. Mvmt.Name="Movement"
  4026. Mvmt.Parent=Stats
  4027. Mvmt.Value=1
  4028.  
  4029. local donum=0
  4030.  
  4031.  
  4032. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  4033. local fp=it("Part")
  4034. fp.formFactor=formfactor
  4035. fp.Parent=parent
  4036. fp.Reflectance=reflectance
  4037. fp.Transparency=transparency
  4038. fp.CanCollide=false
  4039. fp.Locked=true
  4040. fp.BrickColor=brickcolor
  4041. fp.Name=name
  4042. fp.Size=size
  4043. fp.Position=Torso.Position
  4044. NoOutline(fp)
  4045. fp.Material="SmoothPlastic"
  4046. fp:BreakJoints()
  4047. return fp
  4048. end
  4049.  
  4050. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  4051. local mesh=it(Mesh)
  4052. mesh.Parent=part
  4053. if Mesh=="SpecialMesh" then
  4054. mesh.MeshType=meshtype
  4055. if meshid~="nil" then
  4056. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  4057. end
  4058. end
  4059. mesh.Offset=offset
  4060. mesh.Scale=scale
  4061. return mesh
  4062. end
  4063.  
  4064. function weld(parent,part0,part1,c0)
  4065. local weld=it("Weld")
  4066. weld.Parent=parent
  4067. weld.Part0=part0
  4068. weld.Part1=part1
  4069. weld.C0=c0
  4070. return weld
  4071. end
  4072.  
  4073. local Color1=Torso.BrickColor
  4074.  
  4075. local bodvel=Instance.new("BodyVelocity")
  4076. local bg=Instance.new("BodyGyro")
  4077.  
  4078. function swait(num)
  4079. if num==0 or num==nil then
  4080. game:service'RunService'.Stepped:wait(0)
  4081. else
  4082. for i=0,num do
  4083. game:service'RunService'.Stepped:wait(0)
  4084. end
  4085. end
  4086. end
  4087.  
  4088.  
  4089. so = function(id,par,vol,pit)
  4090. coroutine.resume(coroutine.create(function()
  4091. local sou = Instance.new("Sound",par or workspace)
  4092. sou.Volume=vol
  4093. sou.Pitch=pit or 1
  4094. sou.SoundId=id
  4095. swait()
  4096. sou:play()
  4097. game:GetService("Debris"):AddItem(sou,6)
  4098. end))
  4099. end
  4100.  
  4101. function clerp(a,b,t)
  4102. local qa = {QuaternionFromCFrame(a)}
  4103. local qb = {QuaternionFromCFrame(b)}
  4104. local ax, ay, az = a.x, a.y, a.z
  4105. local bx, by, bz = b.x, b.y, b.z
  4106. local _t = 1-t
  4107. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  4108. end
  4109.  
  4110. function QuaternionFromCFrame(cf)
  4111. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  4112. local trace = m00 + m11 + m22
  4113. if trace > 0 then
  4114. local s = math.sqrt(1 + trace)
  4115. local recip = 0.5/s
  4116. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  4117. else
  4118. local i = 0
  4119. if m11 > m00 then
  4120. i = 1
  4121. end
  4122. if m22 > (i == 0 and m00 or m11) then
  4123. i = 2
  4124. end
  4125. if i == 0 then
  4126. local s = math.sqrt(m00-m11-m22+1)
  4127. local recip = 0.5/s
  4128. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  4129. elseif i == 1 then
  4130. local s = math.sqrt(m11-m22-m00+1)
  4131. local recip = 0.5/s
  4132. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  4133. elseif i == 2 then
  4134. local s = math.sqrt(m22-m00-m11+1)
  4135. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  4136. end
  4137. end
  4138. end
  4139.  
  4140. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  4141. local xs, ys, zs = x + x, y + y, z + z
  4142. local wx, wy, wz = w*xs, w*ys, w*zs
  4143. local xx = x*xs
  4144. local xy = x*ys
  4145. local xz = x*zs
  4146. local yy = y*ys
  4147. local yz = y*zs
  4148. local zz = z*zs
  4149. 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))
  4150. end
  4151.  
  4152. function QuaternionSlerp(a, b, t)
  4153. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  4154. local startInterp, finishInterp;
  4155. if cosTheta >= 0.0001 then
  4156. if (1 - cosTheta) > 0.0001 then
  4157. local theta = math.acos(cosTheta)
  4158. local invSinTheta = 1/math.sin(theta)
  4159. startInterp = math.sin((1-t)*theta)*invSinTheta
  4160. finishInterp = math.sin(t*theta)*invSinTheta
  4161. else
  4162. startInterp = 1-t
  4163. finishInterp = t
  4164. end
  4165. else
  4166. if (1+cosTheta) > 0.0001 then
  4167. local theta = math.acos(-cosTheta)
  4168. local invSinTheta = 1/math.sin(theta)
  4169. startInterp = math.sin((t-1)*theta)*invSinTheta
  4170. finishInterp = math.sin(t*theta)*invSinTheta
  4171. else
  4172. startInterp = t-1
  4173. finishInterp = t
  4174. end
  4175. end
  4176. 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
  4177. end
  4178.  
  4179. local function CFrameFromTopBack(at, top, back)
  4180. local right = top:Cross(back)
  4181. return CFrame.new(at.x, at.y, at.z,
  4182. right.x, top.x, back.x,
  4183. right.y, top.y, back.y,
  4184. right.z, top.z, back.z)
  4185. end
  4186.  
  4187. function Triangle(a, b, c)
  4188. local edg1 = (c-a):Dot((b-a).unit)
  4189. local edg2 = (a-b):Dot((c-b).unit)
  4190. local edg3 = (b-c):Dot((a-c).unit)
  4191. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  4192. a, b, c = a, b, c
  4193. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  4194. a, b, c = b, c, a
  4195. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  4196. a, b, c = c, a, b
  4197. else
  4198. assert(false, "unreachable")
  4199. end
  4200.  
  4201. local len1 = (c-a):Dot((b-a).unit)
  4202. local len2 = (b-a).magnitude - len1
  4203. local width = (a + (b-a).unit*len1 - c).magnitude
  4204.  
  4205. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  4206.  
  4207. local list = {}
  4208.  
  4209. if len1 > 0.01 then
  4210. local w1 = Instance.new('WedgePart', m)
  4211. game:GetService("Debris"):AddItem(w1,5)
  4212. w1.Material = "SmoothPlastic"
  4213. w1.FormFactor = 'Custom'
  4214. w1.BrickColor = BrickColor.new("Really red")
  4215. w1.Transparency = 0
  4216. w1.Reflectance = 0
  4217. w1.Material = "SmoothPlastic"
  4218. w1.CanCollide = false
  4219. local l1 = Instance.new("PointLight",w1)
  4220. l1.Color = Color3.new(170,0,0)
  4221. NoOutline(w1)
  4222. local sz = Vector3.new(0.2, width, len1)
  4223. w1.Size = sz
  4224. local sp = Instance.new("SpecialMesh",w1)
  4225. sp.MeshType = "Wedge"
  4226. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  4227. w1:BreakJoints()
  4228. w1.Anchored = true
  4229. w1.Parent = workspace
  4230. w1.Transparency = 0.7
  4231. table.insert(Effects,{w1,"Disappear",.01})
  4232. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  4233. table.insert(list,w1)
  4234. end
  4235.  
  4236. if len2 > 0.01 then
  4237. local w2 = Instance.new('WedgePart', m)
  4238. game:GetService("Debris"):AddItem(w2,5)
  4239. w2.Material = "SmoothPlastic"
  4240. w2.FormFactor = 'Custom'
  4241. w2.BrickColor = BrickColor.new("Really red")
  4242. w2.Transparency = 0
  4243. w2.Reflectance = 0
  4244. w2.Material = "SmoothPlastic"
  4245. w2.CanCollide = false
  4246. local l2 = Instance.new("PointLight",w2)
  4247. l2.Color = Color3.new(170,0,0)
  4248. NoOutline(w2)
  4249. local sz = Vector3.new(0.2, width, len2)
  4250. w2.Size = sz
  4251. local sp = Instance.new("SpecialMesh",w2)
  4252. sp.MeshType = "Wedge"
  4253. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  4254. w2:BreakJoints()
  4255. w2.Anchored = true
  4256. w2.Parent = workspace
  4257. w2.Transparency = 0.7
  4258. table.insert(Effects,{w2,"Disappear",.01})
  4259. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  4260. table.insert(list,w2)
  4261. end
  4262. return unpack(list)
  4263. end
  4264.  
  4265.  
  4266. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  4267. if hit.Parent==nil then
  4268. return
  4269. end
  4270. h=hit.Parent:FindFirstChild("Humanoid")
  4271. for _,v in pairs(hit.Parent:children()) do
  4272. if v:IsA("Humanoid") then
  4273. h=v
  4274. end
  4275. end
  4276. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  4277. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  4278. end
  4279. if hit.Parent.className=="Hat" then
  4280. hit=hit.Parent.Parent:findFirstChild("Head")
  4281. end
  4282. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  4283. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  4284. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  4285. return
  4286. end]]
  4287. -- hs(hit,1.2)
  4288. c=Instance.new("ObjectValue")
  4289. c.Name="creator"
  4290. c.Value=game:service("Players").LocalPlayer
  4291. c.Parent=h
  4292. game:GetService("Debris"):AddItem(c,.5)
  4293. Damage=math.random(minim,maxim)
  4294. -- h:TakeDamage(Damage)
  4295. blocked=false
  4296. block=hit.Parent:findFirstChild("Block")
  4297. if block~=nil then
  4298. print(block.className)
  4299. if block.className=="NumberValue" then
  4300. if block.Value>0 then
  4301. blocked=true
  4302. if decreaseblock==nil then
  4303. block.Value=block.Value-1
  4304. end
  4305. end
  4306. end
  4307. if block.className=="IntValue" then
  4308. if block.Value>0 then
  4309. blocked=true
  4310. if decreaseblock~=nil then
  4311. block.Value=block.Value-1
  4312. end
  4313. end
  4314. end
  4315. end
  4316. if blocked==false then
  4317. -- h:TakeDamage(Damage)
  4318. h.Health=h.Health-Damage
  4319. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  4320. else
  4321. h.Health=h.Health-(Damage/2)
  4322. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  4323. end
  4324. if Type=="Knockdown" then
  4325. hum=hit.Parent.Humanoid
  4326. hum.PlatformStand=true
  4327. coroutine.resume(coroutine.create(function(HHumanoid)
  4328. swait(1)
  4329. HHumanoid.PlatformStand=false
  4330. end),hum)
  4331. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  4332. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  4333. local bodvol=Instance.new("BodyVelocity")
  4334. bodvol.velocity=angle*knockback
  4335. bodvol.P=5000
  4336. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  4337. bodvol.Parent=hit
  4338. rl=Instance.new("BodyAngularVelocity")
  4339. rl.P=3000
  4340. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  4341. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  4342. rl.Parent=hit
  4343. game:GetService("Debris"):AddItem(bodvol,.5)
  4344. game:GetService("Debris"):AddItem(rl,.5)
  4345. elseif Type=="Normal" then
  4346. vp=Instance.new("BodyVelocity")
  4347. vp.P=500
  4348. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  4349. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  4350. if KnockbackType==1 then
  4351. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  4352. elseif KnockbackType==2 then
  4353. vp.velocity=Property.CFrame.lookVector*knockback
  4354. end
  4355. if knockback>0 then
  4356. vp.Parent=hit.Parent.Torso
  4357. end
  4358. game:GetService("Debris"):AddItem(vp,.5)
  4359. elseif Type=="Up" then
  4360. local bodyVelocity=Instance.new("BodyVelocity")
  4361. bodyVelocity.velocity=vt(0,60,0)
  4362. bodyVelocity.P=5000
  4363. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  4364. bodyVelocity.Parent=hit
  4365. game:GetService("Debris"):AddItem(bodyVelocity,1)
  4366. rl=Instance.new("BodyAngularVelocity")
  4367. rl.P=3000
  4368. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  4369. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  4370. rl.Parent=hit
  4371. game:GetService("Debris"):AddItem(rl,.5)
  4372. elseif Type=="Snare" then
  4373. bp=Instance.new("BodyPosition")
  4374. bp.P=2000
  4375. bp.D=100
  4376. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  4377. bp.position=hit.Parent.Torso.Position
  4378. bp.Parent=hit.Parent.Torso
  4379. game:GetService("Debris"):AddItem(bp,1)
  4380. elseif Type=="Target" then
  4381. if Targetting==false then
  4382. ZTarget=hit.Parent.Torso
  4383. coroutine.resume(coroutine.create(function(Part)
  4384. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  4385. swait(5)
  4386. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  4387. end),ZTarget)
  4388. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  4389. targetgui=Instance.new("BillboardGui")
  4390. targetgui.Parent=ZTarget
  4391. targetgui.Size=UDim2.new(10,100,10,100)
  4392. targ=Instance.new("ImageLabel")
  4393. targ.Parent=targetgui
  4394. targ.BackgroundTransparency=1
  4395. targ.Image="rbxassetid://4834067"
  4396. targ.Size=UDim2.new(1,0,1,0)
  4397. cam.CameraType="Scriptable"
  4398. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  4399. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  4400. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  4401. Targetting=true
  4402. RocketTarget=ZTarget
  4403. for i=1,Property do
  4404. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  4405. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  4406. swait()
  4407. end
  4408. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  4409. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  4410. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  4411. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  4412. end
  4413. Targetting=false
  4414. RocketTarget=nil
  4415. targetgui.Parent=nil
  4416. cam.CameraType="Custom"
  4417. end
  4418. end
  4419. debounce=Instance.new("BoolValue")
  4420. debounce.Name="DebounceHit"
  4421. debounce.Parent=hit.Parent
  4422. debounce.Value=true
  4423. game:GetService("Debris"):AddItem(debounce,Delay)
  4424. c=Instance.new("ObjectValue")
  4425. c.Name="creator"
  4426. c.Value=Player
  4427. c.Parent=h
  4428. game:GetService("Debris"):AddItem(c,.5)
  4429. CRIT=false
  4430. hitDeb=true
  4431. AttackPos=6
  4432. end
  4433. end
  4434.  
  4435. showDamage=function(Char,Dealt,du,Color)
  4436. m=Instance.new("Model")
  4437. m.Name=tostring(Dealt)
  4438. h=Instance.new("Humanoid")
  4439. h.Health=0
  4440. h.MaxHealth=0
  4441. h.Parent=m
  4442. c=Instance.new("Part")
  4443. c.Transparency=0
  4444. c.BrickColor=Color
  4445. c.Transparency = 1
  4446. c.Name="Head"
  4447. c.TopSurface=0
  4448. c.BottomSurface=0
  4449. c.formFactor="Plate"
  4450. c.Size=Vector3.new(1,.4,1)
  4451.  
  4452. local txt = Instance.new("BillboardGui", c)
  4453. txt.Adornee = c
  4454. txt.Name = "_status"
  4455. txt.Size = UDim2.new(2, 0, 1.2, 0)
  4456. txt.StudsOffset = Vector3.new(-9, 8, 0)
  4457. local text = Instance.new("TextLabel", txt)
  4458. text.Size = UDim2.new(10, 0, 7, 0)
  4459. text.FontSize = "Size12"
  4460. text.TextScaled = true
  4461. text.TextTransparency = 0.5
  4462. text.BackgroundTransparency = 1
  4463. text.TextTransparency = 0.5
  4464. text.TextStrokeTransparency = 0.5
  4465. text.Font = "SciFi"
  4466. text.TextStrokeColor3 = Color3.new(0,0,0)
  4467. v=Instance.new("Part")
  4468. v.Name = "ColorBrick"
  4469. v.Parent=c
  4470. v.FormFactor="Symmetric"
  4471. v.Anchored=true
  4472. v.CanCollide=false
  4473. v.BottomSurface="Smooth"
  4474. v.TopSurface="Smooth"
  4475. v.Size=Vector3.new(10,5,3)
  4476. v.Transparency=1
  4477. v.CFrame=c.CFrame
  4478. v.BrickColor=BrickColor.random()
  4479. v.Transparency=1
  4480. text.TextColor3 = t.BrickColor.Color
  4481. v.Shape="Block"
  4482. text.Text = tostring(Dealt)
  4483. ms=Instance.new("CylinderMesh")
  4484. ms.Scale=Vector3.new(.8,.8,.8)
  4485. --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  4486. local rndm=math.random(1,#hitsounds)
  4487. local r=rndm
  4488. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
  4489. if CRIT==true then
  4490. ms.Scale=Vector3.new(1,1.25,1)
  4491. end
  4492. ms.Parent=c
  4493. c.Reflectance=0
  4494. Instance.new("BodyGyro").Parent=c
  4495. c.Parent=m
  4496. if Char:findFirstChild("Head")~=nil then
  4497. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  4498. elseif Char.Parent:findFirstChild("Head")~=nil then
  4499. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  4500. end
  4501. f=Instance.new("BodyPosition")
  4502. f.P=2000
  4503. f.D=100
  4504. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  4505. f.position=c.Position+Vector3.new(0,3,0)
  4506. f.Parent=c
  4507. game:GetService("Debris"):AddItem(m,.5+du)
  4508. c.CanCollide=false
  4509. m.Parent=workspace
  4510. c.CanCollide=false
  4511. end
  4512.  
  4513. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  4514. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  4515. end
  4516.  
  4517. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  4518. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4519. prt.Anchored=true
  4520. prt.CFrame=cframe
  4521. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  4522. --http://www.roblox.com/asset/?id=4770560
  4523. game:GetService("Debris"):AddItem(prt,2)
  4524. CF=prt.CFrame
  4525. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  4526. for i=0,1,0.2 do
  4527. wait()
  4528. Part.CFrame=CF*cf(0,0,-0.4)
  4529. end
  4530. for i=0,1,delay do
  4531. wait()
  4532. --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)
  4533. Mesh.Scale=Mesh.Scale
  4534. end
  4535. for i=0,1,0.1 do
  4536. wait()
  4537. Part.Transparency=i
  4538. end
  4539. Part.Parent=nil
  4540. end),prt,msh,CF)
  4541. end
  4542.  
  4543. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4544. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4545. prt.Anchored=true
  4546. prt.Material = "Neon"
  4547. prt.CFrame=cframe
  4548. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4549. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4550. game:GetService("Debris"):AddItem(prt,5)
  4551. coroutine.resume(coroutine.create(function(Part,Mesh)
  4552. for i=0,1,delay do
  4553. swait()
  4554. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4555. Part.Transparency=i
  4556. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4557. end
  4558. Part.Parent=nil
  4559. end),prt,msh)
  4560. end
  4561.  
  4562. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  4563. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4564. prt.Anchored=true
  4565. prt.Material = "Neon"
  4566. prt.CFrame=cframe
  4567. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4568. game:GetService("Debris"):AddItem(prt,5)
  4569. coroutine.resume(coroutine.create(function(Part,Mesh)
  4570. local rtype = rottype
  4571. for i=0,1,delay do
  4572. swait()
  4573. if rtype == 1 then
  4574. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4575. elseif rtype == 2 then
  4576. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4577. end
  4578. Part.Transparency=i
  4579. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4580. end
  4581. Part.Parent=nil
  4582. end),prt,msh)
  4583. end
  4584.  
  4585. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4586. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4587. prt.Anchored=true
  4588. prt.CFrame=cframe
  4589. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4590. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  4591. game:GetService("Debris"):AddItem(prt,5)
  4592. coroutine.resume(coroutine.create(function(Part,Mesh)
  4593. for i=0,1,delay do
  4594. wait()
  4595. Part.Transparency=i
  4596. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4597. end
  4598. Part.Parent=nil
  4599. end),prt,msh)
  4600. end
  4601.  
  4602. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  4603. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4604. prt.Anchored=true
  4605. prt.Material = "Neon"
  4606. prt.CFrame=cframe
  4607. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4608. game:GetService("Debris"):AddItem(prt,5)
  4609. coroutine.resume(coroutine.create(function(Part,Mesh)
  4610. local rtype = rottype
  4611. for i=0,1,delay do
  4612. swait()
  4613. if rtype == 1 then
  4614. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4615. elseif rtype == 2 then
  4616. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4617. end
  4618. Part.Transparency=i
  4619. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4620. end
  4621. Part.Parent=nil
  4622. end),prt,msh)
  4623. end
  4624.  
  4625. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  4626. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4627. prt.Anchored=true
  4628. prt.Material = "Neon"
  4629. prt.CFrame=cframe
  4630. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  4631. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  4632. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  4633. game:GetService("Debris"):AddItem(prt,5)
  4634. coroutine.resume(coroutine.create(function(Part,Mesh)
  4635. local rtype = rottype
  4636. for i=0,1,delay do
  4637. swait()
  4638. if rtype == 1 then
  4639. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4640. elseif rtype == 2 then
  4641. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4642. end
  4643. dec.Transparency=i
  4644. dec2.Transparency=i
  4645. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  4646. end
  4647. Part.Parent=nil
  4648. end),prt,msh)
  4649. end
  4650.  
  4651. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  4652. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4653. prt.Anchored=true
  4654. prt.Material = "Neon"
  4655. prt.CFrame=cframe
  4656. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  4657. game:GetService("Debris"):AddItem(prt,5)
  4658. coroutine.resume(coroutine.create(function(Part,Mesh)
  4659. local rtype = rottype
  4660. for i=0,1,delay do
  4661. swait()
  4662. if rtype == 1 then
  4663. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4664. elseif rtype == 2 then
  4665. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4666. end
  4667. prt.Transparency=i
  4668. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  4669. end
  4670. Part.Parent=nil
  4671. end),prt,msh)
  4672. end
  4673.  
  4674. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  4675. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4676. prt.Anchored=true
  4677. prt.Material = "Neon"
  4678. prt.CFrame=cframe
  4679. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  4680. game:GetService("Debris"):AddItem(prt,5)
  4681. coroutine.resume(coroutine.create(function(Part,Mesh)
  4682. local rtype = rottype
  4683. for i=0,1,delay do
  4684. swait()
  4685. if rtype == 1 then
  4686. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  4687. elseif rtype == 2 then
  4688. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  4689. end
  4690. prt.Transparency=i
  4691. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  4692. end
  4693. Part.Parent=nil
  4694. end),prt,msh)
  4695. end
  4696.  
  4697. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  4698. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4699. prt.Anchored=true
  4700. prt.Material = "Neon"
  4701. prt.CFrame=cframe
  4702. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4703. game:GetService("Debris"):AddItem(prt,5)
  4704. coroutine.resume(coroutine.create(function(Part,Mesh)
  4705. local rtype = rottype
  4706. for i=0,1,delay do
  4707. swait()
  4708. if rtype == 1 then
  4709. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  4710. elseif rtype == 2 then
  4711. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  4712. end
  4713. prt.Transparency=i
  4714. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  4715. end
  4716. Part.Parent=nil
  4717. end),prt,msh)
  4718. end
  4719.  
  4720. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  4721. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4722. prt.Anchored=false
  4723. prt.CFrame=cframe
  4724. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4725. local wld=weld(prt,prt,Parent,cframe)
  4726. game:GetService("Debris"):AddItem(prt,5)
  4727. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  4728. for i=0,1,delay do
  4729. wait()
  4730. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  4731. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4732. Part.Transparency=i
  4733. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4734. end
  4735. Part.Parent=nil
  4736. end),prt,msh,wld)
  4737. end
  4738.  
  4739. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  4740. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4741. prt.Anchored=false
  4742. prt.CFrame=cframe
  4743. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4744. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  4745. game:GetService("Debris"):AddItem(prt,5)
  4746. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  4747. for i=0,1,delay do
  4748. wait()
  4749. Weld.C0=euler(i*20,0,0)
  4750. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4751. Part.Transparency=i
  4752. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4753. end
  4754. Part.Parent=nil
  4755. end),prt,msh,wld)
  4756. end
  4757.  
  4758. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4759. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4760. prt.Anchored=true
  4761. prt.CFrame=cframe
  4762. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  4763. game:GetService("Debris"):AddItem(prt,2)
  4764. coroutine.resume(coroutine.create(function(Part,Mesh)
  4765. for i=0,1,delay do
  4766. wait()
  4767. Part.CFrame=Part.CFrame
  4768. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4769. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4770. prt2.Anchored=true
  4771. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4772. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  4773. game:GetService("Debris"):AddItem(prt2,2)
  4774. coroutine.resume(coroutine.create(function(Part,Mesh)
  4775. for i=0,1,0.1 do
  4776. wait()
  4777. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  4778. end
  4779. Part.Parent=nil
  4780. end),prt2,msh2)
  4781. end
  4782. for i=0,1,delay*2 do
  4783. wait()
  4784. Part.CFrame=Part.CFrame
  4785. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  4786. end
  4787. Part.Parent=nil
  4788. end),prt,msh)
  4789. end
  4790.  
  4791. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4792. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4793. prt.Anchored=true
  4794. prt.CFrame=cframe
  4795. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  4796. game:GetService("Debris"):AddItem(prt,2)
  4797. coroutine.resume(coroutine.create(function(Part,Mesh)
  4798. for i=0,1,delay do
  4799. wait()
  4800. Part.CFrame=Part.CFrame
  4801. Part.Transparency=i
  4802. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4803. end
  4804. Part.Parent=nil
  4805. end),prt,msh)
  4806. end
  4807.  
  4808. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  4809. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4810. prt.Anchored=true
  4811. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4812. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  4813. game:GetService("Debris"):AddItem(prt,2)
  4814. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  4815. CF=Part.CFrame
  4816. Numbb=0
  4817. randnumb=math.random()/10
  4818. rand1=math.random()/10
  4819. for i=0,1,rand1 do
  4820. wait()
  4821. CF=CF*cf(0,math.random()/2,0)
  4822. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  4823. Part.CFrame=CF*euler(Numbb,0,0)
  4824. Part.Transparency=i
  4825. Numbb=Numbb+randnumb
  4826. end
  4827. Part.Parent=nil
  4828. end),prt,CF,Numbb,randnumb)
  4829. end
  4830.  
  4831. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4832. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4833. prt.Anchored=true
  4834. prt.CFrame=cframe
  4835. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  4836. game:GetService("Debris"):AddItem(prt,5)
  4837. coroutine.resume(coroutine.create(function(Part,Mesh)
  4838. for i=0,1,delay do
  4839. wait()
  4840. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  4841. Part.Transparency=i
  4842. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4843. end
  4844. Part.Parent=nil
  4845. end),prt,msh)
  4846. end
  4847.  
  4848. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  4849. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4850. prt.Anchored=true
  4851. prt.CFrame=cframe
  4852. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  4853. game:GetService("Debris"):AddItem(prt,2)
  4854. coroutine.resume(coroutine.create(function(Part,Mesh)
  4855. for i=0,1,delay do
  4856. wait()
  4857. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  4858. Part.Transparency=i
  4859. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  4860. end
  4861. Part.Parent=nil
  4862. end),prt,msh)
  4863. end
  4864.  
  4865. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  4866. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  4867. prt.Anchored=true
  4868. prt.CFrame=cframe*cf(x,y,z)
  4869. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  4870. game:GetService("Debris"):AddItem(prt,5)
  4871. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  4872. local num=math.random()
  4873. local num2=math.random(-3,2)+math.random()
  4874. local numm=0
  4875. for i=0,1,delay*2 do
  4876. swait()
  4877. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  4878. Part.Transparency=i
  4879. numm=numm+0.01
  4880. end
  4881. Part.Parent=nil
  4882. Mesh.Parent=nil
  4883. end),prt,msh,x,y,z)
  4884. end
  4885.  
  4886. function dmgstart(dmg,what)
  4887. hitcon = what.Touched:connect(function(hit)
  4888. local hum = hit.Parent:FindFirstChild("Humanoid")
  4889. if hum and not hum:IsDescendantOf(Character) then
  4890. hum:TakeDamage(dmg)
  4891. end
  4892. end)
  4893. end
  4894.  
  4895. function dmgstop()
  4896. hitcon:disconnect()
  4897. end
  4898.  
  4899. function Cloak()
  4900. Face.Parent=nil
  4901. cloaked=true
  4902. for _,v in pairs(Torso.Parent:children()) do
  4903. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  4904. coroutine.resume(coroutine.create(function()
  4905. for i=0,1,0.2 do
  4906. wait()
  4907. v.Transparency=i
  4908. end
  4909. v.Transparency=1
  4910. end))
  4911. end
  4912. if v.className=="Hat" then
  4913. hatp=v.Handle
  4914. coroutine.resume(coroutine.create(function(derp)
  4915. for i=0,1,0.2 do
  4916. wait()
  4917. derp.Transparency=i
  4918. end
  4919. derp.Transparency=1
  4920. end),hatp)
  4921. end
  4922. end
  4923. for _,v in pairs(m:children()) do
  4924. if v.className=="Part" then
  4925. coroutine.resume(coroutine.create(function()
  4926. for i=0,1,0.2 do
  4927. wait()
  4928. v.Transparency=i
  4929. end
  4930. v.Transparency=1
  4931. end))
  4932. end
  4933. end
  4934. end
  4935.  
  4936. function UnCloak()
  4937. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  4938. Face.Parent=Head
  4939. cloaked=false
  4940. for _,v in pairs(Torso.Parent:children()) do
  4941. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  4942. coroutine.resume(coroutine.create(function()
  4943. for i=0,1,0.1 do
  4944. wait()
  4945. v.Transparency=v.Transparency-0.1
  4946. end
  4947. v.Transparency=0
  4948. end))
  4949. end
  4950. if v.className=="Hat" then
  4951. hatp=v.Handle
  4952. coroutine.resume(coroutine.create(function(derp)
  4953. for i=0,1,0.1 do
  4954. wait()
  4955. derp.Transparency=derp.Transparency-0.1
  4956. end
  4957. derp.Transparency=0
  4958. end),hatp)
  4959. end
  4960. end
  4961. for _,v in pairs(m:children()) do
  4962. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  4963. coroutine.resume(coroutine.create(function()
  4964. for i=0,1,0.1 do
  4965. wait()
  4966. v.Transparency=v.Transparency-0.1
  4967. end
  4968. v.Transparency=0
  4969. end))
  4970. v.Transparency=0
  4971. end
  4972. end
  4973. end
  4974.  
  4975. local jumped = false
  4976. function jump()
  4977. attack = true
  4978. jumped = true
  4979. hum.WalkSpeed = 0
  4980. MagicBlock(bc("Really red"),root.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  4981. CFuncs["Sound"].Create("rbxassetid://169380495", root, 11, 1)
  4982. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  4983. for i = 0,15,0.1 do
  4984. swait()
  4985. MagicBlock(bc("Really red"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  4986. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  4987. 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)
  4988. 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)
  4989. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(50),math.rad(0),math.rad(0)),0.05)
  4990. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.05)
  4991. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  4992. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  4993. end
  4994. local bv = Instance.new("BodyVelocity")
  4995. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4996. bv.velocity = Vector3.new(0,500,0)
  4997. bv.Parent = root
  4998. game:GetService("Debris"):AddItem(bv, 0.5)
  4999. local rng = Instance.new("Part", char)
  5000. rng.Anchored = true
  5001. rng.BrickColor = BrickColor.new("Bright red")
  5002. rng.CanCollide = false
  5003. rng.FormFactor = 3
  5004. rng.Name = "Ring"
  5005. rng.Size = Vector3.new(1, 1, 1)
  5006. rng.Transparency = 0
  5007. rng.TopSurface = 0
  5008. rng.BottomSurface = 0
  5009. rng.Position = root.Position
  5010. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  5011. local rngm = Instance.new("SpecialMesh", rng)
  5012. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5013. local rng2 = rng:Clone()
  5014. rng2.Parent = char
  5015. local rng2m = rng2.Mesh
  5016. local rng3 = rng:Clone()
  5017. rng3.Parent = char
  5018. local rng3m = rng3.Mesh
  5019. local rng4 = rng:Clone()
  5020. rng4.Parent = char
  5021. local rng4m = rng4.Mesh
  5022. local rng5 = rng:Clone()
  5023. rng5.Parent = char
  5024. local rng5m = rng5.Mesh
  5025. CFuncs["Sound"].Create("rbxassetid://324867021", rng, 10, 1)
  5026. wait()
  5027. local scaler = 10
  5028. local scaler2 = 10
  5029. game:GetService("Debris"):AddItem(bv, 2.4)
  5030. hum.WalkSpeed = 50
  5031. MagicBlock(bc("Really red"),root.CFrame,15,15,15,10,10,10,0.015)
  5032. for i = 0,10,0.1 do
  5033. swait()
  5034. rng.Transparency = rng.Transparency + 0.01
  5035. rng2.Transparency = rng2.Transparency + 0.01
  5036. rng3.Transparency = rng3.Transparency + 0.01
  5037. rng4.Transparency = rng4.Transparency + 0.01
  5038. rng5.Transparency = rng5.Transparency + 0.01
  5039. scaler = scaler - 0.125
  5040. scaler2 = scaler2 - 0.1
  5041. rng2m.Scale = rng2m.Scale + Vector3.new(scaler/1.25, scaler/1.25, 20)
  5042. rng3m.Scale = rng3m.Scale + Vector3.new(scaler/1.5, scaler/1.5, 30)
  5043. rng4m.Scale = rng4m.Scale + Vector3.new(scaler/1.75, scaler/1.75, 40)
  5044. rng5m.Scale = rng5m.Scale + Vector3.new(scaler/2, scaler/2, 50)
  5045. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  5046. 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)
  5047. 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)
  5048. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.5)
  5049. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.5)
  5050. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  5051. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.5)
  5052. end
  5053. game:GetService("Debris"):AddItem(rng, 0.1)
  5054. game:GetService("Debris"):AddItem(rng2, 0.1)
  5055. game:GetService("Debris"):AddItem(rng3, 0.1)
  5056. game:GetService("Debris"):AddItem(rng4, 0.1)
  5057. game:GetService("Debris"):AddItem(rng5, 0.1)
  5058. hum.WalkSpeed = 16
  5059. attack = false
  5060. jumped = false
  5061. end
  5062.  
  5063. function dash()
  5064. attack = true
  5065. jumped = true
  5066. hum.WalkSpeed = 0
  5067. local bv = Instance.new("BodyVelocity")
  5068. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5069. bv.velocity = root.CFrame.lookVector*150
  5070. bv.Parent = root
  5071. game:GetService("Debris"):AddItem(bv, 1)
  5072. local rng = Instance.new("Part", char)
  5073. rng.Anchored = true
  5074. rng.BrickColor = BrickColor.new("Bright red")
  5075. rng.CanCollide = false
  5076. rng.FormFactor = 3
  5077. rng.Name = "Ring"
  5078. rng.Size = Vector3.new(1, 1, 1)
  5079. rng.Transparency = 0
  5080. rng.TopSurface = 0
  5081. rng.BottomSurface = 0
  5082. rng.CFrame = root.CFrame
  5083. local rngm = Instance.new("SpecialMesh", rng)
  5084. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5085. local rng2 = rng:Clone()
  5086. rng2.Parent = char
  5087. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  5088. local rng2m = rng2.Mesh
  5089. local rng3 = rng:Clone()
  5090. rng3.Parent = char
  5091. rng3.CFrame = root.CFrame + root.CFrame.lookVector*20
  5092. local rng3m = rng3.Mesh
  5093. local rng4 = rng:Clone()
  5094. rng4.Parent = char
  5095. rng4.CFrame = root.CFrame + root.CFrame.lookVector*30
  5096. local rng4m = rng4.Mesh
  5097. local rng5 = rng:Clone()
  5098. rng5.Parent = char
  5099. rng5.CFrame = root.CFrame + root.CFrame.lookVector*40
  5100. local rng5m = rng5.Mesh
  5101. CFuncs["Sound"].Create("rbxassetid://324867021", root, 10, 1)
  5102. wait()
  5103. local scaler = 10/5
  5104. local scaler2 = 10/5
  5105. local hit = larm.Touched:connect(function(hit)
  5106. Damagefunc(hit,25,34,math.random(10,20),"Normal",root,.2,1)
  5107. end)
  5108. for i = 0,10,0.1 do
  5109. swait()
  5110. MagicBlock(bc("Really red"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  5111. rng.Transparency = rng.Transparency + 0.01
  5112. rng2.Transparency = rng2.Transparency + 0.01
  5113. rng3.Transparency = rng3.Transparency + 0.01
  5114. rng4.Transparency = rng4.Transparency + 0.01
  5115. rng5.Transparency = rng5.Transparency + 0.01
  5116. scaler = scaler - 0.125/5
  5117. scaler2 = scaler2 - 0.1/5
  5118. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 0)
  5119. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  5120. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  5121. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  5122. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  5123. 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)
  5124. 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)
  5125. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-80)),0.5)
  5126. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
  5127. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  5128. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-110)), 0.5)
  5129. end
  5130. game:GetService("Debris"):AddItem(rng, 0.1)
  5131. game:GetService("Debris"):AddItem(rng2, 0.1)
  5132. game:GetService("Debris"):AddItem(rng3, 0.1)
  5133. game:GetService("Debris"):AddItem(rng4, 0.1)
  5134. game:GetService("Debris"):AddItem(rng5, 0.1)
  5135. hum.WalkSpeed = 16
  5136. hit:disconnect()
  5137. attack = false
  5138. jumped = false
  5139. end
  5140.  
  5141. function boom()
  5142. attack = true
  5143. jumped = true
  5144. hum.WalkSpeed = 5
  5145. MagicBlock(bc("Bright red"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  5146. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  5147. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  5148. for i = 0,15,0.1 do
  5149. swait()
  5150. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  5151. 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)
  5152. 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)
  5153. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  5154. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  5155. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  5156. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  5157. end
  5158. local rng = Instance.new("Part", char)
  5159. rng.Anchored = true
  5160. rng.BrickColor = BrickColor.new("Bright red")
  5161. rng.CanCollide = false
  5162. rng.FormFactor = 3
  5163. rng.Name = "Ring"
  5164. rng.Size = Vector3.new(1, 1, 1)
  5165. rng.Transparency = 0
  5166. rng.TopSurface = 0
  5167. rng.BottomSurface = 0
  5168. rng.Position = root.Position
  5169. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  5170. local rngm = Instance.new("SpecialMesh", rng)
  5171. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5172. local rng2 = rng:Clone()
  5173. rng2.Parent = char
  5174. local rng2m = rng2.Mesh
  5175. local rng3 = rng:Clone()
  5176. rng3.Parent = char
  5177. local rng3m = rng3.Mesh
  5178. local rng4 = rng:Clone()
  5179. rng4.Parent = char
  5180. local rng4m = rng4.Mesh
  5181. local rng5 = rng:Clone()
  5182. rng5.Parent = char
  5183. local rng5m = rng5.Mesh
  5184. local hit = rng5.Touched:connect(function(hit)
  5185. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  5186. end)
  5187. MagicBlock(bc("Really red"),root.CFrame,15,15,15,5,5,5,0.015)
  5188. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 17, 1)
  5189. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 15, 0.85)
  5190. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 17, 1)
  5191. wait()
  5192. local scaler = 10
  5193. local scaler2 = 10
  5194. for i = 0,10,0.1 do
  5195. swait()
  5196. rng.Transparency = rng.Transparency + 0.01
  5197. rng2.Transparency = rng2.Transparency + 0.01
  5198. rng3.Transparency = rng3.Transparency + 0.01
  5199. rng4.Transparency = rng4.Transparency + 0.01
  5200. rng5.Transparency = rng5.Transparency + 0.01
  5201. scaler = scaler - 0.125
  5202. scaler2 = scaler2 - 0.1
  5203. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4)
  5204. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3)
  5205. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2)
  5206. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1)
  5207. rng5.Size = rng5m.Scale
  5208. rng5.CFrame = rng.CFrame
  5209. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5)
  5210. 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)
  5211. 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)
  5212. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5)
  5213. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  5214. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5)
  5215. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5)
  5216. end
  5217. hit:disconnect()
  5218. game:GetService("Debris"):AddItem(rng, 1)
  5219. game:GetService("Debris"):AddItem(rng2, 1)
  5220. game:GetService("Debris"):AddItem(rng3, 1)
  5221. game:GetService("Debris"):AddItem(rng4, 1)
  5222. game:GetService("Debris"):AddItem(rng5, 1)
  5223. hum.WalkSpeed = 16
  5224. attack = false
  5225. jumped = false
  5226. end
  5227.  
  5228. function shooty()
  5229. attack = true
  5230. hum.WalkSpeed = 30
  5231. MagicBlock(bc("Really red"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  5232. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  5233. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  5234. for i = 0,15,0.1 do
  5235. swait()
  5236. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  5237. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  5238. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  5239. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  5240. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  5241. end
  5242. CFuncs["Sound"].Create("rbxassetid://187137517", root, 10, 1)
  5243. local a = Instance.new("Part",Character)
  5244. a.Name = "Direction"
  5245. a.Anchored = true
  5246. a.BrickColor = bc("Bright red")
  5247. a.Material = "Neon"
  5248. a.Transparency = 1
  5249. a.CanCollide = false
  5250. local ray = Ray.new(
  5251. root.CFrame.p, -- origin
  5252. (mouse.Hit.p - root.CFrame.p).unit * 500 -- direction
  5253. )
  5254. local ignore = Character
  5255. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5256. a.BottomSurface = 10
  5257. a.TopSurface = 10
  5258. local distance = (root.CFrame.p - position).magnitude
  5259. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5260. a.CFrame = CFrame.new(root.CFrame.p, position) * CFrame.new(0, 0, 0)
  5261. local lb = Instance.new("Part")
  5262. lb.Parent = char
  5263. lb.BrickColor = bc("Bright red")
  5264. lb.CanCollide = false
  5265. lb.Material = "Neon"
  5266. lb.Anchored = true
  5267. lb.TopSurface = 0
  5268. lb.BottomSurface = 0
  5269. lb.Transparency = 0
  5270. lb.Size = vt(0.5,0.5,0.5)
  5271. lb.CFrame = sorb.CFrame
  5272. lb.Anchored = false
  5273. local thingery = Instance.new("SpecialMesh",lb)
  5274. thingery.MeshType = "Sphere"
  5275. thingery.Scale = vt(25,25,25)
  5276. game:GetService("Debris"):AddItem(lb, 10)
  5277. local bv = Instance.new("BodyVelocity")
  5278. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5279. bv.velocity = a.CFrame.lookVector*150
  5280. bv.Parent = lb
  5281. game:GetService("Debris"):AddItem(a, 0.1)
  5282. wait(0.05)
  5283. local hitted = false
  5284. lb.Touched:connect(function(hit)
  5285. if hitted == false then
  5286. hitted = true
  5287. lb.Anchored = true
  5288. lb.Transparency = 1
  5289. local rng = Instance.new("Part", char)
  5290. rng.Anchored = true
  5291. rng.BrickColor = BrickColor.new("Bright red")
  5292. rng.CanCollide = false
  5293. rng.FormFactor = 3
  5294. rng.Name = "Ring"
  5295. rng.Size = Vector3.new(1, 1, 1)
  5296. rng.Transparency = 0
  5297. rng.TopSurface = 0
  5298. rng.BottomSurface = 0
  5299. rng.CFrame = lb.CFrame
  5300. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  5301. local rngm = Instance.new("SpecialMesh", rng)
  5302. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5303. local rng2 = rng:Clone()
  5304. rng2.Parent = char
  5305. local rng2m = rng2.Mesh
  5306. local rng3 = rng:Clone()
  5307. rng3.Parent = char
  5308. local rng3m = rng3.Mesh
  5309. local rng4 = rng:Clone()
  5310. rng4.Parent = char
  5311. local rng4m = rng4.Mesh
  5312. local rng5 = rng:Clone()
  5313. rng5.Parent = char
  5314. rng5.CFrame = rng5.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  5315. local rng5m = rng5.Mesh
  5316. rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  5317. rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  5318. rng4.CFrame = rng4.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  5319. MagicBlock(bc("Really red"),lb.CFrame,15,15,15,5,5,5,0.015)
  5320. local rng6 = rng:Clone()
  5321. rng6.Material = "Neon"
  5322. rng6.Parent = char
  5323. local rng6m = rng6.Mesh
  5324. rng6m.Scale = vt(1,1,1)
  5325. rng6m.MeshType = "Sphere"
  5326. local hita = rng6.Touched:connect(function(hit)
  5327. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  5328. end)
  5329. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 15, 1)
  5330. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 15, 0.75)
  5331. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 15, 1)
  5332. local scaler = 5
  5333. local scaler2 = 5
  5334. for i = 0,20,0.1 do
  5335. swait()
  5336. rng.Transparency = rng.Transparency + 0.005
  5337. rng2.Transparency = rng2.Transparency + 0.005
  5338. rng3.Transparency = rng3.Transparency + 0.005
  5339. rng4.Transparency = rng4.Transparency + 0.005
  5340. rng5.Transparency = rng5.Transparency + 0.005
  5341. rng6.Transparency = rng6.Transparency + 0.005
  5342. scaler = scaler - 0.005/2
  5343. scaler2 = scaler2 - 0.05/2
  5344. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  5345. rng6.CFrame = rng.CFrame
  5346. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  5347. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  5348. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  5349. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  5350. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  5351. end
  5352. hita:disconnect()
  5353. game:GetService("Debris"):AddItem(rng, 1)
  5354. game:GetService("Debris"):AddItem(rng2, 1)
  5355. game:GetService("Debris"):AddItem(rng3, 1)
  5356. game:GetService("Debris"):AddItem(rng4, 1)
  5357. game:GetService("Debris"):AddItem(rng5, 1)
  5358. game:GetService("Debris"):AddItem(rng6, 1)
  5359. end
  5360. end)
  5361. for i = 0,2,0.1 do
  5362. swait()
  5363. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  5364. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  5365. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  5366. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  5367. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  5368. end
  5369. attack = false
  5370. end
  5371.  
  5372. function superpunch()
  5373. attack = true
  5374. jumped = true
  5375. hum.WalkSpeed = 5
  5376. MagicBlock(bc("Really red"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  5377. CFuncs["Sound"].Create("rbxassetid://1047709376", root, 20, 1)
  5378. CFuncs["Sound"].Create("rbxassetid://991726501", root, 20, 0.7)
  5379. for i = 0,15,0.1 do
  5380. swait()
  5381. MagicBlock(bc("Really red"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  5382. 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)
  5383. 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)
  5384. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  5385. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  5386. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  5387. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  5388. end
  5389. local rng = Instance.new("Part", char)
  5390. rng.Anchored = true
  5391. rng.BrickColor = BrickColor.new("Bright red")
  5392. rng.CanCollide = false
  5393. rng.FormFactor = 3
  5394. rng.Name = "Ring"
  5395. rng.Size = Vector3.new(1, 1, 1)
  5396. rng.Transparency = 0
  5397. rng.TopSurface = 0
  5398. rng.BottomSurface = 0
  5399. rng.CFrame = root.CFrame
  5400. local rngm = Instance.new("SpecialMesh", rng)
  5401. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  5402. local rng2 = rng:Clone()
  5403. rng2.Parent = char
  5404. local rng2m = rng2.Mesh
  5405. local rng3 = rng:Clone()
  5406. rng3.Parent = char
  5407. local rng3m = rng3.Mesh
  5408. local rng4 = rng:Clone()
  5409. rng4.Parent = char
  5410. local rng4m = rng4.Mesh
  5411. local rng5 = rng:Clone()
  5412. rng5.Parent = char
  5413. local rng5m = rng5.Mesh
  5414. local rng6 = rng:Clone()
  5415. rng6.Material = "Neon"
  5416. rng6.Parent = char
  5417. local rng6m = rng6.Mesh
  5418. rng6m.Scale = vt(1,1,1)
  5419. rng6m.MeshType = "Sphere"
  5420. local hita = rng6.Touched:connect(function(hit)
  5421. Damagefunc(hit,999999999,999999999,math.random(999999999,999999999),"Normal",root,.2,1)
  5422. end)
  5423. rng2.CFrame = root.CFrame
  5424. rng3.CFrame = root.CFrame
  5425. rng4.CFrame = root.CFrame
  5426. rng5.CFrame = root.CFrame
  5427. rng6.CFrame = root.CFrame
  5428. CFuncs["Sound"].Create("rbxassetid://260430117", rng, 15, 1)
  5429. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 15, 0.85)
  5430. CFuncs["Sound"].Create("rbxassetid://169628396", rng, 15, 1)
  5431. CFuncs["Sound"].Create("rbxassetid://137994058", rng, 15, 1)
  5432. CFuncs["Sound"].Create("rbxassetid://138186576", rng, 15, 1)
  5433. wait()
  5434. local scaler = 10/5
  5435. local scaler2 = 10/5
  5436. MagicBlock(bc("Really red"),root.CFrame,15,15,15,5,5,5,0.015)
  5437. for i = 0,10,0.1 do
  5438. swait()
  5439. MagicBlock(bc("Really red"),rng6.CFrame,5,5,5,5,5,5,0.1)
  5440. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2
  5441. rng2.CFrame = rng2.CFrame + rng2.CFrame.lookVector*scaler2/1.25
  5442. rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/1.5
  5443. rng4.CFrame = rng4.CFrame + rng4.CFrame.lookVector*scaler2/1.75
  5444. rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/2
  5445. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  5446. rng6.CFrame = rng.CFrame
  5447. rng.Transparency = rng.Transparency + 0.01
  5448. rng2.Transparency = rng2.Transparency + 0.01
  5449. rng3.Transparency = rng3.Transparency + 0.01
  5450. rng4.Transparency = rng4.Transparency + 0.01
  5451. rng5.Transparency = rng5.Transparency + 0.01
  5452. rng6.Transparency = rng6.Transparency + 0.01
  5453. scaler = scaler - 0.125/5
  5454. scaler2 = scaler2 - 0.1/5
  5455. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 1.5)
  5456. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1)
  5457. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0.5)
  5458. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  5459. rngm.Scale = rngm.Scale + Vector3.new(scaler2/3, scaler2/3, 2)
  5460. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  5461. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  5462. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  5463. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  5464. end
  5465. hita:disconnect()
  5466. game:GetService("Debris"):AddItem(rng, 1)
  5467. game:GetService("Debris"):AddItem(rng2, 1)
  5468. game:GetService("Debris"):AddItem(rng3, 1)
  5469. game:GetService("Debris"):AddItem(rng4, 1)
  5470. game:GetService("Debris"):AddItem(rng5, 1)
  5471. hum.WalkSpeed = 16
  5472. attack = false
  5473. jumped = false
  5474. end
  5475.  
  5476.  
  5477. mouse.KeyDown:connect(function(k)
  5478. if k == "z" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  5479. jump()
  5480. end
  5481. if k == "x" and attack == false then
  5482. dash()
  5483. end
  5484. if k == "c" and attack == false then
  5485. boom()
  5486. end
  5487. if k == "v" and attack == false then
  5488. shooty()
  5489. end
  5490. if k == "b" and attack == false then
  5491. superpunch()
  5492. end
  5493. end)
  5494. Humanoid.Animator.Parent = nil
  5495. idleanim=.4
  5496. while true do
  5497. swait()
  5498. sine = sine + change
  5499. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  5500. local velderp=RootPart.Velocity.y
  5501. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  5502. if equipped==true or equipped==false then
  5503. if attack==false then
  5504. idle=idle+1
  5505. else
  5506. idle=0
  5507. end
  5508. if idle>=500 then
  5509. if attack==false then
  5510. --Sheath()
  5511. end
  5512. end
  5513. if RootPart.Velocity.y > 1 and hitfloor==nil then
  5514. Anim="Jump"
  5515. if attack==false then
  5516. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  5517. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  5518. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  5519. 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)
  5520. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  5521. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  5522. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  5523. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  5524. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  5525. end
  5526. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  5527. Anim="Fall"
  5528. if attack==false then
  5529. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  5530. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  5531. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  5532. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  5533. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  5534. 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)
  5535. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  5536. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  5537. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  5538. end
  5539. elseif torvel<1 and hitfloor~=nil then
  5540. Anim="Idle"
  5541. if jumped == false then
  5542. 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)
  5543. 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)
  5544. end
  5545. if attack==false then
  5546. 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)
  5547. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  5548. 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)
  5549. 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)
  5550. end
  5551. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  5552. Anim="Walk"
  5553. if jumped == false then
  5554. 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)
  5555. 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)
  5556. end
  5557. if attack==false then
  5558. 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)
  5559. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  5560. 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)
  5561. 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)
  5562. end
  5563. elseif torvel>=22 and hitfloor~=nil then
  5564. Anim="Run"
  5565. if jumped == false then
  5566. 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)
  5567. 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)
  5568. end
  5569. if attack==false then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement