Advertisement
memberhero

wind magic

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