Advertisement
JRKPastesBins

Untitled

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