Advertisement
JRKPastesBins

Untitled

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