Advertisement
JRKPastesBins

Untitled

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