Advertisement
StNight

STNIGHT SKY

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