Advertisement
JRKPastesBins

Untitled

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