Advertisement
Guest User

combi

a guest
Jan 20th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 146.25 KB | None | 0 0
  1. warn'Wind Nature.'
  2. plr = game.Players.LocalPlayer
  3. char = plr.Character
  4. hum = char.Humanoid
  5. local cam = game.Workspace.CurrentCamera
  6. t = char.Torso
  7. h = char.Head
  8. ra = char["Right Arm"]
  9. la = char["Left Arm"]
  10. rl = char["Right Leg"]
  11. ll = char["Left Leg"]
  12. tors = char.Torso
  13. lleg = char["Left Leg"]
  14. root = char.HumanoidRootPart
  15. hed = char.Head
  16. rleg = char["Right Leg"]
  17. rarm = char["Right Arm"]
  18. larm = char["Left Arm"]
  19. vt = Vector3.new
  20. bc = BrickColor.new
  21. br = BrickColor.random
  22. it = Instance.new
  23. cf = CFrame.new
  24.  
  25.  
  26. local Create = LoadLibrary("RbxUtility").Create
  27.  
  28. CFuncs = {
  29. ["Part"] = {
  30. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  31. local Part = Create("Part"){
  32. Parent = Parent,
  33. Reflectance = Reflectance,
  34. Transparency = Transparency,
  35. CanCollide = false,
  36. Locked = true,
  37. BrickColor = BrickColor.new(tostring(BColor)),
  38. Name = Name,
  39. Size = Size,
  40. Material = Material,
  41. }
  42. RemoveOutlines(Part)
  43. return Part
  44. end;
  45. };
  46.  
  47. ["Mesh"] = {
  48. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  49. local Msh = Create(Mesh){
  50. Parent = Part,
  51. Offset = OffSet,
  52. Scale = Scale,
  53. }
  54. if Mesh == "SpecialMesh" then
  55. Msh.MeshType = MeshType
  56. Msh.MeshId = MeshId
  57. end
  58. return Msh
  59. end;
  60. };
  61.  
  62. ["Mesh"] = {
  63. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  64. local Msh = Create(Mesh){
  65. Parent = Part,
  66. Offset = OffSet,
  67. Scale = Scale,
  68. }
  69. if Mesh == "SpecialMesh" then
  70. Msh.MeshType = MeshType
  71. Msh.MeshId = MeshId
  72. end
  73. return Msh
  74. end;
  75. };
  76.  
  77. ["Weld"] = {
  78. Create = function(Parent, Part0, Part1, C0, C1)
  79. local Weld = Create("Weld"){
  80. Parent = Parent,
  81. Part0 = Part0,
  82. Part1 = Part1,
  83. C0 = C0,
  84. C1 = C1,
  85. }
  86. return Weld
  87. end;
  88. };
  89.  
  90. ["Sound"] = {
  91. Create = function(id, par, vol, pit)
  92. coroutine.resume(coroutine.create(function()
  93. local S = Create("Sound"){
  94. Volume = vol,
  95. Pitch = pit or 1,
  96. SoundId = id,
  97. Parent = par or workspace,
  98. }
  99. wait()
  100. S:play()
  101. game:GetService("Debris"):AddItem(S, 10)
  102. end))
  103. end;
  104. };
  105.  
  106. ["ParticleEmitter"] = {
  107. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  108. local fp = Create("ParticleEmitter"){
  109. Parent = Parent,
  110. Color = ColorSequence.new(Color1, Color2),
  111. LightEmission = LightEmission,
  112. Size = Size,
  113. Texture = Texture,
  114. Transparency = Transparency,
  115. ZOffset = ZOffset,
  116. Acceleration = Accel,
  117. Drag = Drag,
  118. LockedToPart = LockedToPart,
  119. VelocityInheritance = VelocityInheritance,
  120. EmissionDirection = EmissionDirection,
  121. Enabled = Enabled,
  122. Lifetime = LifeTime,
  123. Rate = Rate,
  124. Rotation = Rotation,
  125. RotSpeed = RotSpeed,
  126. Speed = Speed,
  127. VelocitySpread = VelocitySpread,
  128. }
  129. return fp
  130. end;
  131. };
  132.  
  133. CreateTemplate = {
  134.  
  135. };
  136. }
  137.  
  138.  
  139.  
  140. New = function(Object, Parent, Name, Data)
  141. local Object = Instance.new(Object)
  142. for Index, Value in pairs(Data or {}) do
  143. Object[Index] = Value
  144. end
  145. Object.Parent = Parent
  146. Object.Name = Name
  147. return Object
  148. end
  149. local m = Instance.new("Model",char)
  150.  
  151. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  152. local p = Instance.new("Part")
  153. p.Parent = parent
  154. p.Size = Vector3.new(1,1,1)
  155. p.Transparency = transparency
  156. p.Reflectance = reflectance
  157. p.CanCollide = false
  158. p.Locked = true
  159. p.BrickColor = brickcolor
  160. p.Material = material
  161. return p
  162. end
  163.  
  164. function CreateMesh(parent,meshtype,x1,y1,z1)
  165. local mesh = Instance.new("SpecialMesh",parent)
  166. mesh.MeshType = meshtype
  167. mesh.Scale = Vector3.new(x1,y1,z1)
  168. return mesh
  169. end
  170.  
  171. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  172. local mesh = Instance.new("SpecialMesh",parent)
  173. mesh.MeshType = "FileMesh"
  174. mesh.MeshId = meshid
  175. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  176. mesh.Scale = Vector3.new(x1,y1,z1)
  177. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  178. return mesh
  179. end
  180.  
  181. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  182. local weld = Instance.new("Weld")
  183. weld.Parent = parent
  184. weld.Part0 = part0
  185. weld.Part1 = part1
  186. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  187. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  188. return weld
  189. end
  190.  
  191.  
  192. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  193. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  194. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  195. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  196.  
  197. Player=game:GetService("Players").LocalPlayer
  198. Character=Player.Character
  199. PlayerGui=Player.PlayerGui
  200. Backpack=Player.Backpack
  201. Torso=Character.Torso
  202. Head=Character.Head
  203. Humanoid=Character.Humanoid
  204. m=Instance.new('Model',Character)
  205. LeftArm=Character["Left Arm"]
  206. LeftLeg=Character["Left Leg"]
  207. RightArm=Character["Right Arm"]
  208. RightLeg=Character["Right Leg"]
  209. LS=Torso["Left Shoulder"]
  210. LH=Torso["Left Hip"]
  211. RS=Torso["Right Shoulder"]
  212. RH=Torso["Right Hip"]
  213. Face = Head.face
  214. Neck=Torso.Neck
  215. it=Instance.new
  216. attacktype=1
  217. vt=Vector3.new
  218. cf=CFrame.new
  219. euler=CFrame.fromEulerAnglesXYZ
  220. angles=CFrame.Angles
  221. cloaked=false
  222. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  223. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  224. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  225. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  226. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  227. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  228. RootPart=Character.HumanoidRootPart
  229. RootJoint=RootPart.RootJoint
  230. RootCF=euler(-1.57,0,3.14)
  231. attack = false
  232. attackdebounce = false
  233. deb=false
  234. equipped=true
  235. hand=false
  236. MMouse=nil
  237. combo=0
  238. mana=0
  239. trispeed=.2
  240. attackmode='none'
  241. local idle=0
  242. local Anim="Idle"
  243. local Effects={}
  244. local gun=false
  245. local shoot=false
  246. local sine = 0
  247. local change = 1
  248. player=nil
  249.  
  250. mouse=Player:GetMouse()
  251. --save shoulders
  252. RSH, LSH=nil, nil
  253. --welds
  254. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  255. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  256. LH=Torso["Left Hip"]
  257. RH=Torso["Right Hip"]
  258. TorsoColor=Torso.BrickColor
  259. function NoOutline(Part)
  260. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  261. end
  262. player=Player
  263. ch=Character
  264. RSH=ch.Torso["Right Shoulder"]
  265. LSH=ch.Torso["Left Shoulder"]
  266. --
  267. RSH.Parent=nil
  268. LSH.Parent=nil
  269. --
  270. RW.Name="Right Shoulder"
  271. RW.Part0=ch.Torso
  272. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  273. RW.C1=cf(0, 0.5, 0)
  274. RW.Part1=ch["Right Arm"]
  275. RW.Parent=ch.Torso
  276. --
  277. LW.Name="Left Shoulder"
  278. LW.Part0=ch.Torso
  279. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  280. LW.C1=cf(0, 0.5, 0)
  281. LW.Part1=ch["Left Arm"]
  282. LW.Parent=ch.Torso
  283.  
  284. local Stats=Instance.new("BoolValue")
  285. Stats.Name="Stats"
  286. Stats.Parent=Character
  287. local Atk=Instance.new("NumberValue")
  288. Atk.Name="Damage"
  289. Atk.Parent=Stats
  290. Atk.Value=1
  291. local Def=Instance.new("NumberValue")
  292. Def.Name="Defense"
  293. Def.Parent=Stats
  294. Def.Value=1
  295. local Speed=Instance.new("NumberValue")
  296. Speed.Name="Speed"
  297. Speed.Parent=Stats
  298. Speed.Value=1
  299. local Mvmt=Instance.new("NumberValue")
  300. Mvmt.Name="Movement"
  301. Mvmt.Parent=Stats
  302. Mvmt.Value=1
  303.  
  304. local donum=0
  305.  
  306.  
  307. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  308. local fp=it("Part")
  309. fp.formFactor=formfactor
  310. fp.Parent=parent
  311. fp.Reflectance=reflectance
  312. fp.Transparency=transparency
  313. fp.CanCollide=false
  314. fp.Locked=true
  315. fp.BrickColor=brickcolor
  316. fp.Name=name
  317. fp.Size=size
  318. fp.Position=Torso.Position
  319. NoOutline(fp)
  320. fp.Material="SmoothPlastic"
  321. fp:BreakJoints()
  322. return fp
  323. end
  324.  
  325. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  326. local mesh=it(Mesh)
  327. mesh.Parent=part
  328. if Mesh=="SpecialMesh" then
  329. mesh.MeshType=meshtype
  330. if meshid~="nil" then
  331. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  332. end
  333. end
  334. mesh.Offset=offset
  335. mesh.Scale=scale
  336. return mesh
  337. end
  338.  
  339. function weld(parent,part0,part1,c0)
  340. local weld=it("Weld")
  341. weld.Parent=parent
  342. weld.Part0=part0
  343. weld.Part1=part1
  344. weld.C0=c0
  345. return weld
  346. end
  347.  
  348. local Color1=Torso.BrickColor
  349.  
  350. local bodvel=Instance.new("BodyVelocity")
  351. local bg=Instance.new("BodyGyro")
  352.  
  353. function swait(num)
  354. if num==0 or num==nil then
  355. game:service'RunService'.Stepped:wait(0)
  356. else
  357. for i=0,num do
  358. game:service'RunService'.Stepped:wait(0)
  359. end
  360. end
  361. end
  362.  
  363.  
  364. so = function(id,par,vol,pit)
  365. coroutine.resume(coroutine.create(function()
  366. local sou = Instance.new("Sound",par or workspace)
  367. sou.Volume=vol
  368. sou.Pitch=pit or 1
  369. sou.SoundId=id
  370. swait()
  371. sou:play()
  372. game:GetService("Debris"):AddItem(sou,6)
  373. end))
  374. end
  375.  
  376. function clerp(a,b,t)
  377. local qa = {QuaternionFromCFrame(a)}
  378. local qb = {QuaternionFromCFrame(b)}
  379. local ax, ay, az = a.x, a.y, a.z
  380. local bx, by, bz = b.x, b.y, b.z
  381. local _t = 1-t
  382. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  383. end
  384.  
  385. function QuaternionFromCFrame(cf)
  386. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  387. local trace = m00 + m11 + m22
  388. if trace > 0 then
  389. local s = math.sqrt(1 + trace)
  390. local recip = 0.5/s
  391. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  392. else
  393. local i = 0
  394. if m11 > m00 then
  395. i = 1
  396. end
  397. if m22 > (i == 0 and m00 or m11) then
  398. i = 2
  399. end
  400. if i == 0 then
  401. local s = math.sqrt(m00-m11-m22+1)
  402. local recip = 0.5/s
  403. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  404. elseif i == 1 then
  405. local s = math.sqrt(m11-m22-m00+1)
  406. local recip = 0.5/s
  407. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  408. elseif i == 2 then
  409. local s = math.sqrt(m22-m00-m11+1)
  410. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  411. end
  412. end
  413. end
  414.  
  415. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  416. local xs, ys, zs = x + x, y + y, z + z
  417. local wx, wy, wz = w*xs, w*ys, w*zs
  418. local xx = x*xs
  419. local xy = x*ys
  420. local xz = x*zs
  421. local yy = y*ys
  422. local yz = y*zs
  423. local zz = z*zs
  424. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  425. end
  426.  
  427. function QuaternionSlerp(a, b, t)
  428. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  429. local startInterp, finishInterp;
  430. if cosTheta >= 0.0001 then
  431. if (1 - cosTheta) > 0.0001 then
  432. local theta = math.acos(cosTheta)
  433. local invSinTheta = 1/math.sin(theta)
  434. startInterp = math.sin((1-t)*theta)*invSinTheta
  435. finishInterp = math.sin(t*theta)*invSinTheta
  436. else
  437. startInterp = 1-t
  438. finishInterp = t
  439. end
  440. else
  441. if (1+cosTheta) > 0.0001 then
  442. local theta = math.acos(-cosTheta)
  443. local invSinTheta = 1/math.sin(theta)
  444. startInterp = math.sin((t-1)*theta)*invSinTheta
  445. finishInterp = math.sin(t*theta)*invSinTheta
  446. else
  447. startInterp = t-1
  448. finishInterp = t
  449. end
  450. end
  451. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  452. end
  453.  
  454. local function CFrameFromTopBack(at, top, back)
  455. local right = top:Cross(back)
  456. return CFrame.new(at.x, at.y, at.z,
  457. right.x, top.x, back.x,
  458. right.y, top.y, back.y,
  459. right.z, top.z, back.z)
  460. end
  461.  
  462. function Triangle(a, b, c)
  463. local edg1 = (c-a):Dot((b-a).unit)
  464. local edg2 = (a-b):Dot((c-b).unit)
  465. local edg3 = (b-c):Dot((a-c).unit)
  466. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  467. a, b, c = a, b, c
  468. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  469. a, b, c = b, c, a
  470. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  471. a, b, c = c, a, b
  472. else
  473. assert(false, "unreachable")
  474. end
  475.  
  476. local len1 = (c-a):Dot((b-a).unit)
  477. local len2 = (b-a).magnitude - len1
  478. local width = (a + (b-a).unit*len1 - c).magnitude
  479.  
  480. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  481.  
  482. local list = {}
  483.  
  484. if len1 > 0.01 then
  485. local w1 = Instance.new('WedgePart', m)
  486. game:GetService("Debris"):AddItem(w1,5)
  487. w1.Material = "SmoothPlastic"
  488. w1.FormFactor = 'Custom'
  489. w1.BrickColor = BrickColor.new("Really red")
  490. w1.Transparency = 0
  491. w1.Reflectance = 0
  492. w1.Material = "SmoothPlastic"
  493. w1.CanCollide = false
  494. local l1 = Instance.new("PointLight",w1)
  495. l1.Color = Color3.new(170,0,0)
  496. NoOutline(w1)
  497. local sz = Vector3.new(0.2, width, len1)
  498. w1.Size = sz
  499. local sp = Instance.new("SpecialMesh",w1)
  500. sp.MeshType = "Wedge"
  501. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  502. w1:BreakJoints()
  503. w1.Anchored = true
  504. w1.Parent = workspace
  505. w1.Transparency = 0.7
  506. table.insert(Effects,{w1,"Disappear",.01})
  507. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  508. table.insert(list,w1)
  509. end
  510.  
  511. if len2 > 0.01 then
  512. local w2 = Instance.new('WedgePart', m)
  513. game:GetService("Debris"):AddItem(w2,5)
  514. w2.Material = "SmoothPlastic"
  515. w2.FormFactor = 'Custom'
  516. w2.BrickColor = BrickColor.new("Really red")
  517. w2.Transparency = 0
  518. w2.Reflectance = 0
  519. w2.Material = "SmoothPlastic"
  520. w2.CanCollide = false
  521. local l2 = Instance.new("PointLight",w2)
  522. l2.Color = Color3.new(170,0,0)
  523. NoOutline(w2)
  524. local sz = Vector3.new(0.2, width, len2)
  525. w2.Size = sz
  526. local sp = Instance.new("SpecialMesh",w2)
  527. sp.MeshType = "Wedge"
  528. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  529. w2:BreakJoints()
  530. w2.Anchored = true
  531. w2.Parent = workspace
  532. w2.Transparency = 0.7
  533. table.insert(Effects,{w2,"Disappear",.01})
  534. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  535. table.insert(list,w2)
  536. end
  537. return unpack(list)
  538. end
  539.  
  540.  
  541. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  542. if hit.Parent==nil then
  543. return
  544. end
  545. h=hit.Parent:FindFirstChild("Humanoid")
  546. for _,v in pairs(hit.Parent:children()) do
  547. if v:IsA("Humanoid") then
  548. h=v
  549. end
  550. end
  551. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  552. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  553. end
  554. if hit.Parent.className=="Hat" then
  555. hit=hit.Parent.Parent:findFirstChild("Head")
  556. end
  557. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  558. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  559. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  560. return
  561. end]]
  562. -- hs(hit,1.2)
  563. c=Instance.new("ObjectValue")
  564. c.Name="creator"
  565. c.Value=game:service("Players").everymanbuthimself19
  566. c.Parent=h
  567. game:GetService("Debris"):AddItem(c,.5)
  568. Damage=math.random(minim,maxim)
  569. -- h:TakeDamage(Damage)
  570. blocked=false
  571. block=hit.Parent:findFirstChild("Block")
  572. if block~=nil then
  573. print(block.className)
  574. if block.className=="NumberValue" then
  575. if block.Value>0 then
  576. blocked=true
  577. if decreaseblock==nil then
  578. block.Value=block.Value-1
  579. end
  580. end
  581. end
  582. if block.className=="IntValue" then
  583. if block.Value>0 then
  584. blocked=true
  585. if decreaseblock~=nil then
  586. block.Value=block.Value-1
  587. end
  588. end
  589. end
  590. end
  591. if blocked==false then
  592. -- h:TakeDamage(Damage)
  593. h.Health=h.Health-Damage
  594. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  595. else
  596. h.Health=h.Health-(Damage/2)
  597. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Fog"))
  598. end
  599. if Type=="Knockdown" then
  600. hum=hit.Parent.Humanoid
  601. hum.PlatformStand=true
  602. coroutine.resume(coroutine.create(function(HHumanoid)
  603. swait(1)
  604. HHumanoid.PlatformStand=false
  605. end),hum)
  606. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  607. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  608. local bodvol=Instance.new("BodyVelocity")
  609. bodvol.velocity=angle*knockback
  610. bodvol.P=5000
  611. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  612. bodvol.Parent=hit
  613. rl=Instance.new("BodyAngularVelocity")
  614. rl.P=3000
  615. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  616. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  617. rl.Parent=hit
  618. game:GetService("Debris"):AddItem(bodvol,.5)
  619. game:GetService("Debris"):AddItem(rl,.5)
  620. elseif Type=="Normal" then
  621. vp=Instance.new("BodyVelocity")
  622. vp.P=500
  623. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  624. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  625. if KnockbackType==1 then
  626. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  627. elseif KnockbackType==2 then
  628. vp.velocity=Property.CFrame.lookVector*knockback
  629. end
  630. if knockback>0 then
  631. vp.Parent=hit.Parent.Torso
  632. end
  633. game:GetService("Debris"):AddItem(vp,.5)
  634. elseif Type=="Up" then
  635. local bodyVelocity=Instance.new("BodyVelocity")
  636. bodyVelocity.velocity=vt(0,60,0)
  637. bodyVelocity.P=5000
  638. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  639. bodyVelocity.Parent=hit
  640. game:GetService("Debris"):AddItem(bodyVelocity,1)
  641. rl=Instance.new("BodyAngularVelocity")
  642. rl.P=3000
  643. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  644. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  645. rl.Parent=hit
  646. game:GetService("Debris"):AddItem(rl,.5)
  647. elseif Type=="Snare" then
  648. bp=Instance.new("BodyPosition")
  649. bp.P=2000
  650. bp.D=100
  651. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  652. bp.position=hit.Parent.Torso.Position
  653. bp.Parent=hit.Parent.Torso
  654. game:GetService("Debris"):AddItem(bp,1)
  655. elseif Type=="Target" then
  656. if Targetting==false then
  657. ZTarget=hit.Parent.Torso
  658. coroutine.resume(coroutine.create(function(Part)
  659. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  660. swait(5)
  661. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  662. end),ZTarget)
  663. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  664. targetgui=Instance.new("BillboardGui")
  665. targetgui.Parent=ZTarget
  666. targetgui.Size=UDim2.new(10,100,10,100)
  667. targ=Instance.new("ImageLabel")
  668. targ.Parent=targetgui
  669. targ.BackgroundTransparency=1
  670. targ.Image="rbxassetid://4834067"
  671. targ.Size=UDim2.new(1,0,1,0)
  672. cam.CameraType="Scriptable"
  673. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  674. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  675. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  676. Targetting=true
  677. RocketTarget=ZTarget
  678. for i=1,Property do
  679. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  680. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  681. swait()
  682. end
  683. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  684. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  685. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  686. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  687. end
  688. Targetting=false
  689. RocketTarget=nil
  690. targetgui.Parent=nil
  691. cam.CameraType="Custom"
  692. end
  693. end
  694. debounce=Instance.new("BoolValue")
  695. debounce.Name="DebounceHit"
  696. debounce.Parent=hit.Parent
  697. debounce.Value=true
  698. game:GetService("Debris"):AddItem(debounce,Delay)
  699. c=Instance.new("ObjectValue")
  700. c.Name="creator"
  701. c.Value=Player
  702. c.Parent=h
  703. game:GetService("Debris"):AddItem(c,.5)
  704. CRIT=false
  705. hitDeb=true
  706. AttackPos=6
  707. end
  708. end
  709.  
  710. showDamage=function(Char,Dealt,du,Color)
  711. m=Instance.new("Model")
  712. m.Name=tostring(Dealt)
  713. h=Instance.new("Humanoid")
  714. h.Health=0
  715. h.MaxHealth=0
  716. h.Parent=m
  717. c=Instance.new("Part")
  718. c.Transparency=0
  719. c.BrickColor=Color
  720. c.Transparency = 1
  721. c.Name="Head"
  722. c.TopSurface=0
  723. c.BottomSurface=0
  724. c.formFactor="Plate"
  725. c.Size=Vector3.new(1,.4,1)
  726.  
  727. local txt = Instance.new("BillboardGui", c)
  728. txt.Adornee = c
  729. txt.Name = "_status"
  730. txt.Size = UDim2.new(2, 0, 1.2, 0)
  731. txt.StudsOffset = Vector3.new(-9, 8, 0)
  732. local text = Instance.new("TextLabel", txt)
  733. text.Size = UDim2.new(10, 0, 7, 0)
  734. text.FontSize = "Size12"
  735. text.TextScaled = true
  736. text.TextTransparency = 0.5
  737. text.BackgroundTransparency = 1
  738. text.TextTransparency = 0.5
  739. text.TextStrokeTransparency = 0.5
  740. text.Font = "SciFi"
  741. text.TextStrokeColor3 = Color3.new(0,0,0)
  742. v=Instance.new("Part")
  743. v.Name = "ColorBrick"
  744. v.Parent=c
  745. v.FormFactor="Symmetric"
  746. v.Anchored=true
  747. v.CanCollide=false
  748. v.BottomSurface="Smooth"
  749. v.TopSurface="Smooth"
  750. v.Size=Vector3.new(10,5,3)
  751. v.Transparency=1
  752. v.CFrame=c.CFrame
  753. v.BrickColor=BrickColor.random()
  754. v.Transparency=1
  755. text.TextColor3 = t.BrickColor.Color
  756. v.Shape="Block"
  757. text.Text = tostring(Dealt)
  758. ms=Instance.new("CylinderMesh")
  759. ms.Scale=Vector3.new(.8,.8,.8)
  760. --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  761. local rndm=math.random(1,#hitsounds)
  762. local r=rndm
  763. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
  764. if CRIT==true then
  765. ms.Scale=Vector3.new(1,1.25,1)
  766. end
  767. ms.Parent=c
  768. c.Reflectance=0
  769. Instance.new("BodyGyro").Parent=c
  770. c.Parent=m
  771. if Char:findFirstChild("Head")~=nil then
  772. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  773. elseif Char.Parent:findFirstChild("Head")~=nil then
  774. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  775. end
  776. f=Instance.new("BodyPosition")
  777. f.P=2000
  778. f.D=100
  779. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  780. f.position=c.Position+Vector3.new(0,3,0)
  781. f.Parent=c
  782. game:GetService("Debris"):AddItem(m,.5+du)
  783. c.CanCollide=false
  784. m.Parent=workspace
  785. c.CanCollide=false
  786. end
  787.  
  788. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  789. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  790. end
  791.  
  792. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  793. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  794. prt.Anchored=true
  795. prt.CFrame=cframe
  796. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  797. --http://www.roblox.com/asset/?id=4770560
  798. game:GetService("Debris"):AddItem(prt,2)
  799. CF=prt.CFrame
  800. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  801. for i=0,1,0.2 do
  802. wait()
  803. Part.CFrame=CF*cf(0,0,-0.4)
  804. end
  805. for i=0,1,delay do
  806. wait()
  807. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  808. Mesh.Scale=Mesh.Scale
  809. end
  810. for i=0,1,0.1 do
  811. wait()
  812. Part.Transparency=i
  813. end
  814. Part.Parent=nil
  815. end),prt,msh,CF)
  816. end
  817.  
  818. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  819. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  820. prt.Anchored=true
  821. prt.Material = "Neon"
  822. prt.CFrame=cframe
  823. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  824. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  825. game:GetService("Debris"):AddItem(prt,5)
  826. coroutine.resume(coroutine.create(function(Part,Mesh)
  827. for i=0,1,delay do
  828. swait()
  829. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  830. Part.Transparency=i
  831. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  832. end
  833. Part.Parent=nil
  834. end),prt,msh)
  835. end
  836.  
  837. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  838. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  839. prt.Anchored=true
  840. prt.Material = "Neon"
  841. prt.CFrame=cframe
  842. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  843. game:GetService("Debris"):AddItem(prt,5)
  844. coroutine.resume(coroutine.create(function(Part,Mesh)
  845. local rtype = rottype
  846. for i=0,1,delay do
  847. swait()
  848. if rtype == 1 then
  849. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  850. elseif rtype == 2 then
  851. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  852. end
  853. Part.Transparency=i
  854. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  855. end
  856. Part.Parent=nil
  857. end),prt,msh)
  858. end
  859.  
  860. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  861. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  862. prt.Anchored=true
  863. prt.CFrame=cframe
  864. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  865. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  866. game:GetService("Debris"):AddItem(prt,5)
  867. coroutine.resume(coroutine.create(function(Part,Mesh)
  868. for i=0,1,delay do
  869. wait()
  870. Part.Transparency=i
  871. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  872. end
  873. Part.Parent=nil
  874. end),prt,msh)
  875. end
  876.  
  877. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  878. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  879. prt.Anchored=true
  880. prt.Material = "Neon"
  881. prt.CFrame=cframe
  882. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  883. game:GetService("Debris"):AddItem(prt,5)
  884. coroutine.resume(coroutine.create(function(Part,Mesh)
  885. local rtype = rottype
  886. for i=0,1,delay do
  887. swait()
  888. if rtype == 1 then
  889. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  890. elseif rtype == 2 then
  891. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  892. end
  893. Part.Transparency=i
  894. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  895. end
  896. Part.Parent=nil
  897. end),prt,msh)
  898. end
  899.  
  900. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  901. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  902. prt.Anchored=true
  903. prt.Material = "Neon"
  904. prt.CFrame=cframe
  905. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  906. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  907. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  908. game:GetService("Debris"):AddItem(prt,5)
  909. coroutine.resume(coroutine.create(function(Part,Mesh)
  910. local rtype = rottype
  911. for i=0,1,delay do
  912. swait()
  913. if rtype == 1 then
  914. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  915. elseif rtype == 2 then
  916. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  917. end
  918. dec.Transparency=i
  919. dec2.Transparency=i
  920. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  921. end
  922. Part.Parent=nil
  923. end),prt,msh)
  924. end
  925.  
  926. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  927. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  928. prt.Anchored=true
  929. prt.Material = "Neon"
  930. prt.CFrame=cframe
  931. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  932. game:GetService("Debris"):AddItem(prt,5)
  933. coroutine.resume(coroutine.create(function(Part,Mesh)
  934. local rtype = rottype
  935. for i=0,1,delay do
  936. swait()
  937. if rtype == 1 then
  938. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  939. elseif rtype == 2 then
  940. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  941. end
  942. prt.Transparency=i
  943. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  944. end
  945. Part.Parent=nil
  946. end),prt,msh)
  947. end
  948.  
  949. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  950. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  951. prt.Anchored=true
  952. prt.Material = "Neon"
  953. prt.CFrame=cframe
  954. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  955. game:GetService("Debris"):AddItem(prt,5)
  956. coroutine.resume(coroutine.create(function(Part,Mesh)
  957. local rtype = rottype
  958. for i=0,1,delay do
  959. swait()
  960. if rtype == 1 then
  961. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  962. elseif rtype == 2 then
  963. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  964. end
  965. prt.Transparency=i
  966. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  967. end
  968. Part.Parent=nil
  969. end),prt,msh)
  970. end
  971.  
  972. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  973. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  974. prt.Anchored=true
  975. prt.Material = "Neon"
  976. prt.CFrame=cframe
  977. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  978. game:GetService("Debris"):AddItem(prt,5)
  979. coroutine.resume(coroutine.create(function(Part,Mesh)
  980. local rtype = rottype
  981. for i=0,1,delay do
  982. swait()
  983. if rtype == 1 then
  984. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  985. elseif rtype == 2 then
  986. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  987. end
  988. prt.Transparency=i
  989. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  990. end
  991. Part.Parent=nil
  992. end),prt,msh)
  993. end
  994.  
  995. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  996. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  997. prt.Anchored=false
  998. prt.CFrame=cframe
  999. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1000. local wld=weld(prt,prt,Parent,cframe)
  1001. game:GetService("Debris"):AddItem(prt,5)
  1002. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1003. for i=0,1,delay do
  1004. wait()
  1005. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1006. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1007. Part.Transparency=i
  1008. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1009. end
  1010. Part.Parent=nil
  1011. end),prt,msh,wld)
  1012. end
  1013.  
  1014. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1015. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1016. prt.Anchored=false
  1017. prt.CFrame=cframe
  1018. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1019. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1020. game:GetService("Debris"):AddItem(prt,5)
  1021. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1022. for i=0,1,delay do
  1023. wait()
  1024. Weld.C0=euler(i*20,0,0)
  1025. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1026. Part.Transparency=i
  1027. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1028. end
  1029. Part.Parent=nil
  1030. end),prt,msh,wld)
  1031. end
  1032.  
  1033. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1034. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1035. prt.Anchored=true
  1036. prt.CFrame=cframe
  1037. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1038. game:GetService("Debris"):AddItem(prt,2)
  1039. coroutine.resume(coroutine.create(function(Part,Mesh)
  1040. for i=0,1,delay do
  1041. wait()
  1042. Part.CFrame=Part.CFrame
  1043. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1044. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1045. prt2.Anchored=true
  1046. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1047. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1048. game:GetService("Debris"):AddItem(prt2,2)
  1049. coroutine.resume(coroutine.create(function(Part,Mesh)
  1050. for i=0,1,0.1 do
  1051. wait()
  1052. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1053. end
  1054. Part.Parent=nil
  1055. end),prt2,msh2)
  1056. end
  1057. for i=0,1,delay*2 do
  1058. wait()
  1059. Part.CFrame=Part.CFrame
  1060. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1061. end
  1062. Part.Parent=nil
  1063. end),prt,msh)
  1064. end
  1065.  
  1066. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1067. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1068. prt.Anchored=true
  1069. prt.CFrame=cframe
  1070. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1071. game:GetService("Debris"):AddItem(prt,2)
  1072. coroutine.resume(coroutine.create(function(Part,Mesh)
  1073. for i=0,1,delay do
  1074. wait()
  1075. Part.CFrame=Part.CFrame
  1076. Part.Transparency=i
  1077. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1078. end
  1079. Part.Parent=nil
  1080. end),prt,msh)
  1081. end
  1082.  
  1083. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1084. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1085. prt.Anchored=true
  1086. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1087. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1088. game:GetService("Debris"):AddItem(prt,2)
  1089. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1090. CF=Part.CFrame
  1091. Numbb=0
  1092. randnumb=math.random()/10
  1093. rand1=math.random()/10
  1094. for i=0,1,rand1 do
  1095. wait()
  1096. CF=CF*cf(0,math.random()/2,0)
  1097. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1098. Part.CFrame=CF*euler(Numbb,0,0)
  1099. Part.Transparency=i
  1100. Numbb=Numbb+randnumb
  1101. end
  1102. Part.Parent=nil
  1103. end),prt,CF,Numbb,randnumb)
  1104. end
  1105.  
  1106. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1107. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1108. prt.Anchored=true
  1109. prt.CFrame=cframe
  1110. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1111. game:GetService("Debris"):AddItem(prt,5)
  1112. coroutine.resume(coroutine.create(function(Part,Mesh)
  1113. for i=0,1,delay do
  1114. wait()
  1115. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1116. Part.Transparency=i
  1117. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1118. end
  1119. Part.Parent=nil
  1120. end),prt,msh)
  1121. end
  1122.  
  1123. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1124. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1125. prt.Anchored=true
  1126. prt.CFrame=cframe
  1127. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1128. game:GetService("Debris"):AddItem(prt,2)
  1129. coroutine.resume(coroutine.create(function(Part,Mesh)
  1130. for i=0,1,delay do
  1131. wait()
  1132. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1133. Part.Transparency=i
  1134. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1135. end
  1136. Part.Parent=nil
  1137. end),prt,msh)
  1138. end
  1139.  
  1140. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1141. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1142. prt.Anchored=true
  1143. prt.CFrame=cframe*cf(x,y,z)
  1144. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1145. game:GetService("Debris"):AddItem(prt,5)
  1146. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1147. local num=math.random()
  1148. local num2=math.random(-3,2)+math.random()
  1149. local numm=0
  1150. for i=0,1,delay*2 do
  1151. swait()
  1152. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1153. Part.Transparency=i
  1154. numm=numm+0.01
  1155. end
  1156. Part.Parent=nil
  1157. Mesh.Parent=nil
  1158. end),prt,msh,x,y,z)
  1159. end
  1160.  
  1161. function dmgstart(dmg,what)
  1162. hitcon = what.Touched:connect(function(hit)
  1163. local hum = hit.Parent:FindFirstChild("Humanoid")
  1164. if hum and not hum:IsDescendantOf(Character) then
  1165. hum:TakeDamage(dmg)
  1166. end
  1167. end)
  1168. end
  1169.  
  1170. function dmgstop()
  1171. hitcon:disconnect()
  1172. end
  1173.  
  1174. function Cloak()
  1175. Face.Parent=nil
  1176. cloaked=true
  1177. for _,v in pairs(Torso.Parent:children()) do
  1178. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1179. coroutine.resume(coroutine.create(function()
  1180. for i=0,1,0.2 do
  1181. wait()
  1182. v.Transparency=i
  1183. end
  1184. v.Transparency=1
  1185. end))
  1186. end
  1187. if v.className=="Hat" then
  1188. hatp=v.Handle
  1189. coroutine.resume(coroutine.create(function(derp)
  1190. for i=0,1,0.2 do
  1191. wait()
  1192. derp.Transparency=i
  1193. end
  1194. derp.Transparency=1
  1195. end),hatp)
  1196. end
  1197. end
  1198. for _,v in pairs(m:children()) do
  1199. if v.className=="Part" then
  1200. coroutine.resume(coroutine.create(function()
  1201. for i=0,1,0.2 do
  1202. wait()
  1203. v.Transparency=i
  1204. end
  1205. v.Transparency=1
  1206. end))
  1207. end
  1208. end
  1209. end
  1210.  
  1211. function UnCloak()
  1212. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1213. Face.Parent=Head
  1214. cloaked=false
  1215. for _,v in pairs(Torso.Parent:children()) do
  1216. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1217. coroutine.resume(coroutine.create(function()
  1218. for i=0,1,0.1 do
  1219. wait()
  1220. v.Transparency=v.Transparency-0.1
  1221. end
  1222. v.Transparency=0
  1223. end))
  1224. end
  1225. if v.className=="Hat" then
  1226. hatp=v.Handle
  1227. coroutine.resume(coroutine.create(function(derp)
  1228. for i=0,1,0.1 do
  1229. wait()
  1230. derp.Transparency=derp.Transparency-0.1
  1231. end
  1232. derp.Transparency=0
  1233. end),hatp)
  1234. end
  1235. end
  1236. for _,v in pairs(m:children()) do
  1237. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1238. coroutine.resume(coroutine.create(function()
  1239. for i=0,1,0.1 do
  1240. wait()
  1241. v.Transparency=v.Transparency-0.1
  1242. end
  1243. v.Transparency=0
  1244. end))
  1245. v.Transparency=0
  1246. end
  1247. end
  1248. end
  1249.  
  1250. local jumped = false
  1251. function jump()
  1252. attack = true
  1253. jumped = true
  1254. hum.WalkSpeed = 0
  1255. MagicBlock(bc("Fog"),root.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1256. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1257. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1258. for i = 0,15,0.1 do
  1259. swait()
  1260. MagicBlock(bc("Fog"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1261. MagicBlock(bc("Fog"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1262. RH.C0=clerp(RH.C0,cf(1,0.45,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(50)),.05)
  1263. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(15)),.05)
  1264. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(50),math.rad(0),math.rad(0)),0.05)
  1265. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.05)
  1266. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1267. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1268. end
  1269. local bv = Instance.new("BodyVelocity")
  1270. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1271. bv.velocity = Vector3.new(0,500,0)
  1272. bv.Parent = root
  1273. game:GetService("Debris"):AddItem(bv, 0.5)
  1274. local rng = Instance.new("Part", char)
  1275. rng.Anchored = true
  1276. rng.BrickColor = BrickColor.new("Fog")
  1277. rng.CanCollide = false
  1278. rng.FormFactor = 3
  1279. rng.Name = "Ring"
  1280. rng.Size = Vector3.new(1, 1, 1)
  1281. rng.Transparency = 0
  1282. rng.TopSurface = 0
  1283. rng.BottomSurface = 0
  1284. rng.Position = root.Position
  1285. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1286. local rngm = Instance.new("SpecialMesh", rng)
  1287. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1288. local rng2 = rng:Clone()
  1289. rng2.Parent = char
  1290. local rng2m = rng2.Mesh
  1291. local rng3 = rng:Clone()
  1292. rng3.Parent = char
  1293. local rng3m = rng3.Mesh
  1294. local rng4 = rng:Clone()
  1295. rng4.Parent = char
  1296. local rng4m = rng4.Mesh
  1297. local rng5 = rng:Clone()
  1298. rng5.Parent = char
  1299. local rng5m = rng5.Mesh
  1300. CFuncs["Sound"].Create("rbxassetid://324867021", rng, 10, 1)
  1301. wait()
  1302. local scaler = 10
  1303. local scaler2 = 10
  1304. game:GetService("Debris"):AddItem(bv, 2.4)
  1305. hum.WalkSpeed = 50
  1306. MagicBlock(bc("Fog"),root.CFrame,15,15,15,10,10,10,0.015)
  1307. for i = 0,10,0.1 do
  1308. swait()
  1309. rng.Transparency = rng.Transparency + 0.01
  1310. rng2.Transparency = rng2.Transparency + 0.01
  1311. rng3.Transparency = rng3.Transparency + 0.01
  1312. rng4.Transparency = rng4.Transparency + 0.01
  1313. rng5.Transparency = rng5.Transparency + 0.01
  1314. scaler = scaler - 0.125
  1315. scaler2 = scaler2 - 0.1
  1316. rng2m.Scale = rng2m.Scale + Vector3.new(scaler/1.25, scaler/1.25, 20)
  1317. rng3m.Scale = rng3m.Scale + Vector3.new(scaler/1.5, scaler/1.5, 30)
  1318. rng4m.Scale = rng4m.Scale + Vector3.new(scaler/1.75, scaler/1.75, 40)
  1319. rng5m.Scale = rng5m.Scale + Vector3.new(scaler/2, scaler/2, 50)
  1320. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1321. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5)
  1322. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5)
  1323. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.5)
  1324. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.5)
  1325. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  1326. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.5)
  1327. end
  1328. game:GetService("Debris"):AddItem(rng, 0.1)
  1329. game:GetService("Debris"):AddItem(rng2, 0.1)
  1330. game:GetService("Debris"):AddItem(rng3, 0.1)
  1331. game:GetService("Debris"):AddItem(rng4, 0.1)
  1332. game:GetService("Debris"):AddItem(rng5, 0.1)
  1333. hum.WalkSpeed = 16
  1334. attack = false
  1335. jumped = false
  1336. end
  1337.  
  1338. function dash()
  1339. attack = true
  1340. jumped = true
  1341. hum.WalkSpeed = 0
  1342. local bv = Instance.new("BodyVelocity")
  1343. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1344. bv.velocity = root.CFrame.lookVector*150
  1345. bv.Parent = root
  1346. game:GetService("Debris"):AddItem(bv, 1)
  1347. local rng = Instance.new("Part", char)
  1348. rng.Anchored = true
  1349. rng.BrickColor = BrickColor.new("Fog")
  1350. rng.CanCollide = false
  1351. rng.FormFactor = 3
  1352. rng.Name = "Ring"
  1353. rng.Size = Vector3.new(1, 1, 1)
  1354. rng.Transparency = 0
  1355. rng.TopSurface = 0
  1356. rng.BottomSurface = 0
  1357. rng.CFrame = root.CFrame
  1358. local rngm = Instance.new("SpecialMesh", rng)
  1359. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1360. local rng2 = rng:Clone()
  1361. rng2.Parent = char
  1362. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  1363. local rng2m = rng2.Mesh
  1364. local rng3 = rng:Clone()
  1365. rng3.Parent = char
  1366. rng3.CFrame = root.CFrame + root.CFrame.lookVector*20
  1367. local rng3m = rng3.Mesh
  1368. local rng4 = rng:Clone()
  1369. rng4.Parent = char
  1370. rng4.CFrame = root.CFrame + root.CFrame.lookVector*30
  1371. local rng4m = rng4.Mesh
  1372. local rng5 = rng:Clone()
  1373. rng5.Parent = char
  1374. rng5.CFrame = root.CFrame + root.CFrame.lookVector*40
  1375. local rng5m = rng5.Mesh
  1376. CFuncs["Sound"].Create("rbxassetid://324867021", root, 1, 1)
  1377. wait()
  1378. local scaler = 10/5
  1379. local scaler2 = 10/5
  1380. local hit = larm.Touched:connect(function(hit)
  1381. Damagefunc(hit,25,34,math.random(10,20),"Normal",root,.2,1)
  1382. end)
  1383. for i = 0,10,0.1 do
  1384. swait()
  1385. MagicBlock(bc("Fog"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1386. rng.Transparency = rng.Transparency + 0.01
  1387. rng2.Transparency = rng2.Transparency + 0.01
  1388. rng3.Transparency = rng3.Transparency + 0.01
  1389. rng4.Transparency = rng4.Transparency + 0.01
  1390. rng5.Transparency = rng5.Transparency + 0.01
  1391. scaler = scaler - 0.125/5
  1392. scaler2 = scaler2 - 0.1/5
  1393. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 0)
  1394. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1395. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  1396. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1397. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1398. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-25)),.5)
  1399. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5)
  1400. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-80)),0.5)
  1401. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
  1402. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  1403. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-110)), 0.5)
  1404. end
  1405. game:GetService("Debris"):AddItem(rng, 0.1)
  1406. game:GetService("Debris"):AddItem(rng2, 0.1)
  1407. game:GetService("Debris"):AddItem(rng3, 0.1)
  1408. game:GetService("Debris"):AddItem(rng4, 0.1)
  1409. game:GetService("Debris"):AddItem(rng5, 0.1)
  1410. hum.WalkSpeed = 16
  1411. hit:disconnect()
  1412. attack = false
  1413. jumped = false
  1414. end
  1415.  
  1416. function boom()
  1417. attack = true
  1418. jumped = true
  1419. hum.WalkSpeed = 0
  1420. MagicBlock(bc("Fog"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1421. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1422. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1423. for i = 0,15,0.1 do
  1424. swait()
  1425. MagicBlock(bc("Fog"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1426. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1427. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1428. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1429. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1430. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1431. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1432. end
  1433. local rng = Instance.new("Part", char)
  1434. rng.Anchored = true
  1435. rng.BrickColor = BrickColor.new("Fog")
  1436. rng.CanCollide = false
  1437. rng.FormFactor = 3
  1438. rng.Name = "Ring"
  1439. rng.Size = Vector3.new(1, 1, 1)
  1440. rng.Transparency = 0
  1441. rng.TopSurface = 0
  1442. rng.BottomSurface = 0
  1443. rng.Position = root.Position
  1444. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1445. local rngm = Instance.new("SpecialMesh", rng)
  1446. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1447. local rng2 = rng:Clone()
  1448. rng2.Parent = char
  1449. local rng2m = rng2.Mesh
  1450. local rng3 = rng:Clone()
  1451. rng3.Parent = char
  1452. local rng3m = rng3.Mesh
  1453. local rng4 = rng:Clone()
  1454. rng4.Parent = char
  1455. local rng4m = rng4.Mesh
  1456. local rng5 = rng:Clone()
  1457. rng5.Parent = char
  1458. local rng5m = rng5.Mesh
  1459. local hit = rng5.Touched:connect(function(hit)
  1460. Damagefunc(hit,10,25,math.random(10,20),"Normal",root,.2,1)
  1461. end)
  1462. MagicBlock(bc("Fog"),root.CFrame,15,15,15,5,5,5,0.015)
  1463. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 10, 1)
  1464. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 5, 0.85)
  1465. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 10, 1)
  1466. wait()
  1467. local scaler = 10
  1468. local scaler2 = 10
  1469. for i = 0,10,0.1 do
  1470. swait()
  1471. rng.Transparency = rng.Transparency + 0.01
  1472. rng2.Transparency = rng2.Transparency + 0.01
  1473. rng3.Transparency = rng3.Transparency + 0.01
  1474. rng4.Transparency = rng4.Transparency + 0.01
  1475. rng5.Transparency = rng5.Transparency + 0.01
  1476. scaler = scaler - 0.125
  1477. scaler2 = scaler2 - 0.1
  1478. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4)
  1479. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3)
  1480. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2)
  1481. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1)
  1482. rng5.Size = rng5m.Scale
  1483. rng5.CFrame = rng.CFrame
  1484. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5)
  1485. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  1486. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5)
  1487. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5)
  1488. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1489. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5)
  1490. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5)
  1491. end
  1492. hit:disconnect()
  1493. game:GetService("Debris"):AddItem(rng, 1)
  1494. game:GetService("Debris"):AddItem(rng2, 1)
  1495. game:GetService("Debris"):AddItem(rng3, 1)
  1496. game:GetService("Debris"):AddItem(rng4, 1)
  1497. game:GetService("Debris"):AddItem(rng5, 1)
  1498. hum.WalkSpeed = 16
  1499. attack = false
  1500. jumped = false
  1501. end
  1502.  
  1503. function shooty()
  1504. attack = true
  1505. MagicBlock(bc("Fog"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1506. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1507. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1508. for i = 0,15,0.1 do
  1509. swait()
  1510. MagicBlock(bc("Fog"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1511. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1512. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1513. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1514. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1515. end
  1516. CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1)
  1517. local a = Instance.new("Part",Character)
  1518. a.Name = "Direction"
  1519. a.Anchored = true
  1520. a.BrickColor = bc("Bright red")
  1521. a.Material = "Neon"
  1522. a.Transparency = 1
  1523. a.CanCollide = false
  1524. local ray = Ray.new(
  1525. root.CFrame.p, -- origin
  1526. (mouse.Hit.p - root.CFrame.p).unit * 500 -- direction
  1527. )
  1528. local ignore = Character
  1529. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1530. a.BottomSurface = 10
  1531. a.TopSurface = 10
  1532. local distance = (root.CFrame.p - position).magnitude
  1533. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1534. a.CFrame = CFrame.new(root.CFrame.p, position) * CFrame.new(0, 0, 0)
  1535. local lb = Instance.new("Part")
  1536. lb.Parent = char
  1537. lb.BrickColor = bc("Fog")
  1538. lb.CanCollide = false
  1539. lb.Material = "Neon"
  1540. lb.Anchored = true
  1541. lb.TopSurface = 0
  1542. lb.BottomSurface = 0
  1543. lb.Transparency = 0
  1544. lb.Size = vt(0.5,0.5,0.5)
  1545. lb.CFrame = sorb.CFrame
  1546. lb.Anchored = false
  1547. local thingery = Instance.new("SpecialMesh",lb)
  1548. thingery.MeshType = "Sphere"
  1549. thingery.Scale = vt(25,25,25)
  1550. game:GetService("Debris"):AddItem(lb, 10)
  1551. local bv = Instance.new("BodyVelocity")
  1552. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1553. bv.velocity = a.CFrame.lookVector*150
  1554. bv.Parent = lb
  1555. game:GetService("Debris"):AddItem(a, 0.1)
  1556. wait(0.05)
  1557. local hitted = false
  1558. lb.Touched:connect(function(hit)
  1559. if hitted == false then
  1560. hitted = true
  1561. lb.Anchored = true
  1562. lb.Transparency = 1
  1563. local rng = Instance.new("Part", char)
  1564. rng.Anchored = true
  1565. rng.BrickColor = BrickColor.new("Fog")
  1566. rng.CanCollide = false
  1567. rng.FormFactor = 3
  1568. rng.Name = "Ring"
  1569. rng.Size = Vector3.new(1, 1, 1)
  1570. rng.Transparency = 0
  1571. rng.TopSurface = 0
  1572. rng.BottomSurface = 0
  1573. rng.CFrame = lb.CFrame
  1574. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1575. local rngm = Instance.new("SpecialMesh", rng)
  1576. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1577. local rng2 = rng:Clone()
  1578. rng2.Parent = char
  1579. local rng2m = rng2.Mesh
  1580. local rng3 = rng:Clone()
  1581. rng3.Parent = char
  1582. local rng3m = rng3.Mesh
  1583. local rng4 = rng:Clone()
  1584. rng4.Parent = char
  1585. local rng4m = rng4.Mesh
  1586. local rng5 = rng:Clone()
  1587. rng5.Parent = char
  1588. rng5.CFrame = rng5.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1589. local rng5m = rng5.Mesh
  1590. rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1591. rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1592. rng4.CFrame = rng4.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1593. MagicBlock(bc("Fog"),lb.CFrame,15,15,15,5,5,5,0.015)
  1594. local rng6 = rng:Clone()
  1595. rng6.Material = "Neon"
  1596. rng6.Parent = char
  1597. local rng6m = rng6.Mesh
  1598. rng6m.Scale = vt(1,1,1)
  1599. rng6m.MeshType = "Sphere"
  1600. local hita = rng6.Touched:connect(function(hit)
  1601. Damagefunc(hit,10,25,math.random(10,20),"Normal",root,.2,1)
  1602. end)
  1603. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 1)
  1604. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 5, 0.75)
  1605. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 5, 1)
  1606. local scaler = 5
  1607. local scaler2 = 5
  1608. for i = 0,20,0.1 do
  1609. swait()
  1610. rng.Transparency = rng.Transparency + 0.005
  1611. rng2.Transparency = rng2.Transparency + 0.005
  1612. rng3.Transparency = rng3.Transparency + 0.005
  1613. rng4.Transparency = rng4.Transparency + 0.005
  1614. rng5.Transparency = rng5.Transparency + 0.005
  1615. rng6.Transparency = rng6.Transparency + 0.005
  1616. scaler = scaler - 0.005/2
  1617. scaler2 = scaler2 - 0.05/2
  1618. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  1619. rng6.CFrame = rng.CFrame
  1620. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1621. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1622. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1623. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  1624. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1625. end
  1626. hita:disconnect()
  1627. game:GetService("Debris"):AddItem(rng, 1)
  1628. game:GetService("Debris"):AddItem(rng2, 1)
  1629. game:GetService("Debris"):AddItem(rng3, 1)
  1630. game:GetService("Debris"):AddItem(rng4, 1)
  1631. game:GetService("Debris"):AddItem(rng5, 1)
  1632. game:GetService("Debris"):AddItem(rng6, 1)
  1633. end
  1634. end)
  1635. for i = 0,2,0.1 do
  1636. swait()
  1637. MagicBlock(bc("Fog"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1638. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1639. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1640. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1641. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1642. end
  1643. attack = false
  1644. end
  1645.  
  1646. function superpunch()
  1647. attack = true
  1648. jumped = true
  1649. hum.WalkSpeed = 0
  1650. MagicBlock(bc("Fog"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1651. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1652. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1653. for i = 0,15,0.1 do
  1654. swait()
  1655. MagicBlock(bc("Fog"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1656. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1657. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1658. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1659. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1660. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1661. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1662. end
  1663. local rng = Instance.new("Part", char)
  1664. rng.Anchored = true
  1665. rng.BrickColor = BrickColor.new("Fog")
  1666. rng.CanCollide = false
  1667. rng.FormFactor = 3
  1668. rng.Name = "Ring"
  1669. rng.Size = Vector3.new(1, 1, 1)
  1670. rng.Transparency = 0
  1671. rng.TopSurface = 0
  1672. rng.BottomSurface = 0
  1673. rng.CFrame = root.CFrame
  1674. local rngm = Instance.new("SpecialMesh", rng)
  1675. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1676. local rng2 = rng:Clone()
  1677. rng2.Parent = char
  1678. local rng2m = rng2.Mesh
  1679. local rng3 = rng:Clone()
  1680. rng3.Parent = char
  1681. local rng3m = rng3.Mesh
  1682. local rng4 = rng:Clone()
  1683. rng4.Parent = char
  1684. local rng4m = rng4.Mesh
  1685. local rng5 = rng:Clone()
  1686. rng5.Parent = char
  1687. local rng5m = rng5.Mesh
  1688. local rng6 = rng:Clone()
  1689. rng6.Material = "Neon"
  1690. rng6.Parent = char
  1691. local rng6m = rng6.Mesh
  1692. rng6m.Scale = vt(1,1,1)
  1693. rng6m.MeshType = "Sphere"
  1694. local hita = rng6.Touched:connect(function(hit)
  1695. Damagefunc(hit,10,25,math.random(10,20),"Normal",root,.2,1)
  1696. end)
  1697. rng2.CFrame = root.CFrame
  1698. rng3.CFrame = root.CFrame
  1699. rng4.CFrame = root.CFrame
  1700. rng5.CFrame = root.CFrame
  1701. rng6.CFrame = root.CFrame
  1702. CFuncs["Sound"].Create("rbxassetid://260430117", rng, 5, 1)
  1703. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 0.85)
  1704. CFuncs["Sound"].Create("rbxassetid://169628396", rng, 5, 1)
  1705. CFuncs["Sound"].Create("rbxassetid://137994058", rng, 5, 1)
  1706. CFuncs["Sound"].Create("rbxassetid://138186576", rng, 5, 1)
  1707. wait()
  1708. local scaler = 10/5
  1709. local scaler2 = 10/5
  1710. MagicBlock(bc("Fog"),root.CFrame,15,15,15,5,5,5,0.015)
  1711. for i = 0,10,0.1 do
  1712. swait()
  1713. MagicBlock(bc("Fog"),rng6.CFrame,5,5,5,5,5,5,0.1)
  1714. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2
  1715. rng2.CFrame = rng2.CFrame + rng2.CFrame.lookVector*scaler2/1.25
  1716. rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/1.5
  1717. rng4.CFrame = rng4.CFrame + rng4.CFrame.lookVector*scaler2/1.75
  1718. rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/2
  1719. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  1720. rng6.CFrame = rng.CFrame
  1721. rng.Transparency = rng.Transparency + 0.01
  1722. rng2.Transparency = rng2.Transparency + 0.01
  1723. rng3.Transparency = rng3.Transparency + 0.01
  1724. rng4.Transparency = rng4.Transparency + 0.01
  1725. rng5.Transparency = rng5.Transparency + 0.01
  1726. rng6.Transparency = rng6.Transparency + 0.01
  1727. scaler = scaler - 0.125/5
  1728. scaler2 = scaler2 - 0.1/5
  1729. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 1.5)
  1730. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1)
  1731. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0.5)
  1732. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  1733. rngm.Scale = rngm.Scale + Vector3.new(scaler2/3, scaler2/3, 2)
  1734. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1735. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1736. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1737. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1738. end
  1739. hita:disconnect()
  1740. game:GetService("Debris"):AddItem(rng, 1)
  1741. game:GetService("Debris"):AddItem(rng2, 1)
  1742. game:GetService("Debris"):AddItem(rng3, 1)
  1743. game:GetService("Debris"):AddItem(rng4, 1)
  1744. game:GetService("Debris"):AddItem(rng5, 1)
  1745. hum.WalkSpeed = 16
  1746. attack = false
  1747. jumped = false
  1748. end
  1749.  
  1750.  
  1751. mouse.KeyDown:connect(function(k)
  1752. if k == "z" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  1753. jump()
  1754. end
  1755. if k == "x" and attack == false then
  1756. dash()
  1757. end
  1758. if k == "c" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  1759. boom()
  1760. end
  1761. if k == "v" and attack == false then
  1762. shooty()
  1763. end
  1764. if k == "b" and attack == false then
  1765. superpunch()
  1766. end
  1767. end)
  1768. Humanoid.Animator.Parent = nil
  1769. idleanim=.4
  1770. while true do
  1771. swait()
  1772. sine = sine + change
  1773. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1774. local velderp=RootPart.Velocity.y
  1775. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1776. if equipped==true or equipped==false then
  1777. if attack==false then
  1778. idle=idle+1
  1779. else
  1780. idle=0
  1781. end
  1782. if idle>=500 then
  1783. if attack==false then
  1784. --Sheath()
  1785. end
  1786. end
  1787. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1788. Anim="Jump"
  1789. if attack==false then
  1790. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1791. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1792. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1793. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1794. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1795. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1796. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1797. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1798. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1799. end
  1800. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1801. Anim="Fall"
  1802. if attack==false then
  1803. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1804. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1805. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1806. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1807. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1808. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1809. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1810. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1811. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1812. end
  1813. elseif torvel<1 and hitfloor~=nil then
  1814. Anim="Idle"
  1815. if jumped == false then
  1816. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  1817. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  1818. end
  1819. if attack==false then
  1820. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1821. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  1822. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(5 + 2.5 * math.cos(sine / 25))),.3)
  1823. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.3)
  1824. end
  1825. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1826. Anim="Walk"
  1827. if jumped == false then
  1828. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  1829. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  1830. end
  1831. if attack==false then
  1832. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  1833. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1834. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3)
  1835. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3)
  1836. end
  1837. elseif torvel>=22 and hitfloor~=nil then
  1838. Anim="Run"
  1839. if jumped == false then
  1840. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  1841. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  1842. end
  1843. if attack==false then
  1844. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  1845. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1846. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  1847. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  1848. end
  1849. end
  1850. end
  1851. end
  1852.  
  1853.  
  1854. local p = game.Players.LocalPlayer
  1855. local char = p.Character
  1856. local hed = char.Head
  1857. local LocalPlayer = p
  1858.  
  1859. local naeeym = Instance.new("BillboardGui",char)
  1860. naeeym.Size = UDim2.new(0,100,0,40)
  1861. naeeym.StudsOffset = Vector3.new(0,5,0)
  1862. naeeym.Adornee = char.Head
  1863. local tecks = Instance.new("TextLabel",naeeym)
  1864. tecks.BackgroundTransparency = 1
  1865. tecks.BorderSizePixel = 0
  1866. tecks.Text = LocalPlayer.Name
  1867. tecks.Font = "ArialBold"
  1868. tecks.FontSize = "Size24"
  1869. tecks.TextStrokeTransparency = 0
  1870. tecks.TextStrokeColor3 = Color3.new(0,0,0)
  1871. tecks.TextColor3 = Color3.new(255,255,255)
  1872. tecks.Size = UDim2.new(1,0,0.5,0)
  1873.  
  1874. local Player = game.Players.localPlayer
  1875. local Character = p.Character
  1876. local LeftArm2 = Character["Left Arm"]
  1877. local RightArm2 = Character["Right Arm"]
  1878. local LeftLeg2 = Character["Left Leg"]
  1879. local RightLeg2 = Character["Right Leg"]
  1880. local Head2 = Character.Head
  1881. local Torso2 = Character.Torso
  1882.  
  1883. --created by SoldierJoao
  1884. --Credits to metabee for the knives edit
  1885. cut = Instance.new("Sound", Character)
  1886. cut.SoundId = "https://www.roblox.com/asset/?id=97095069"
  1887. cut.Volume = 1.5
  1888. thri = Instance.new("Sound", Character)
  1889. thri.SoundId = "https://www.roblox.com/asset/?id=186311262"
  1890. thri.Volume = 2.5
  1891. WRY = Instance.new("Sound", Character)
  1892. WRY.SoundId = "https://www.roblox.com/asset/?id=276152532"
  1893. WRY.Volume = 5
  1894.  
  1895. local Players=game:service'Players'
  1896. local Player=Players.LocalPlayer
  1897. local Mouse=Player:GetMouse''
  1898. local RenderStepped=game:service'RunService'.RenderStepped
  1899.  
  1900. local MeshId='http://www.roblox.com/asset?id=202083123'
  1901. local TextureId='http://www.roblox.com/asset/?id=189436355'
  1902.  
  1903. local BeeSpeed= 100
  1904.  
  1905. local QHold=false
  1906. local EHold=false
  1907.  
  1908. Mouse.Button1Down:connect(function()
  1909. cut:Play()
  1910. if Mouse.Target then
  1911. local Bee=Instance.new('Part',Player.Character)
  1912. Bee.CanCollide=false
  1913. Bee.Size=Vector3.new(2,2,2)
  1914. Bee.CFrame=Player.Character.Torso.CFrame
  1915. local BeeMesh=Instance.new('SpecialMesh',Bee)
  1916. BeeMesh.MeshType='FileMesh'
  1917. BeeMesh.MeshId=MeshId
  1918. BeeMesh.TextureId=TextureId
  1919. BeeMesh.Scale=Vector3.new(1,1,1)
  1920. local BodyVel=Instance.new('BodyVelocity',Bee)
  1921. BodyVel.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1922. local BodyGyro=Instance.new('BodyGyro',Bee)
  1923. BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1924. BodyGyro.P=2e4
  1925. coroutine.wrap(function()
  1926. RenderStepped:connect(function()
  1927. BodyGyro.cframe=CFrame.new(Bee.Position,Mouse.Hit.p)
  1928. BodyVel.velocity=Bee.CFrame.lookVector*BeeSpeed
  1929. end)
  1930. end)()
  1931. Bee.Touched:connect(function(p)
  1932. if p.Parent~=Player.Character and p.Parent:FindFirstChild'Humanoid'then
  1933. p.Parent:BreakJoints()
  1934. Bee:Destroy''
  1935. thri:Play()
  1936. end
  1937. end)
  1938. end
  1939. end)
  1940.  
  1941.  
  1942. Mouse.KeyDown:connect(function(k)
  1943. local Key=k:lower''
  1944. if Key=='q'then
  1945. QHold=true
  1946. elseif Key=='e'then
  1947. EHold=true
  1948. end
  1949. end)
  1950.  
  1951. Mouse.KeyUp:connect(function(k)
  1952. local Key=k:lower''
  1953. if Key=='q'then
  1954. QHold=false
  1955. elseif Key=='e'then
  1956. EHold=false
  1957. end
  1958. end)
  1959.  
  1960. coroutine.wrap(function()
  1961. RenderStepped:connect(function()
  1962. if QHold then
  1963. if BeeSpeed>0 then
  1964. BeeSpeed=BeeSpeed-1
  1965. end
  1966. elseif EHold then
  1967. BeeSpeed=BeeSpeed+1
  1968. end
  1969. end)
  1970. end)()
  1971.  
  1972.  
  1973.  
  1974.  
  1975. mse = Player:GetMouse()
  1976.  
  1977. sound = Instance.new("Sound", Character)
  1978. sound.SoundId = "https://www.roblox.com/asset/?id=290807425"
  1979. sound.Volume = 2.5
  1980. sound2 = Instance.new("Sound", Character)
  1981. sound2.SoundId = "https://www.roblox.com/asset/?id=290810519"
  1982. sound2.Volume = 2.5
  1983. sound3 = Instance.new("Sound", Character)
  1984. sound3.SoundId = "https://www.roblox.com/asset/?id=290807377"
  1985. sound3.Volume = 1.8
  1986. sound4 = Instance.new("Sound", Character)
  1987. sound4.SoundId = "https://www.roblox.com/asset/?id=290807397"
  1988. sound4.Volume = 2
  1989. TSTheme = Instance.new("Sound", Character)
  1990. TSTheme.SoundId = "https://www.roblox.com/asset/?id=172374380"
  1991. TSTheme.Volume = 2
  1992. canworld = true
  1993. mse.KeyDown:connect(function(key)
  1994. key = key:lower()
  1995. if key == "t" then
  1996. if canworld == false then return end
  1997. if canworld then
  1998. canworld = false
  1999. sound3:Play()
  2000. tecks.Text = "THE WORLD STOP TIME!"
  2001. wait(2)
  2002. tecks.Text = LocalPlayer.Name
  2003. sound:Play()
  2004. sound4:Play()
  2005. TSTheme:Play()
  2006.  
  2007. local function spawnpart()
  2008. sphere = Instance.new("Part")
  2009. --game.Debris:AddItem(sphere,3)
  2010. local sm = Instance.new("SpecialMesh", sphere)
  2011. sm.MeshType = "Sphere"
  2012. sphere.Transparency = 0.5
  2013. sphere.Anchored = true
  2014. sphere.CanCollide = false
  2015. sphere.Material = "Neon"
  2016. sphere.BrickColor = BrickColor.new("Black")
  2017. end
  2018.  
  2019. local function weld(lol)
  2020. local weld = Instance.new("Weld", Player.Character.Torso)
  2021. weld.Part0 = Player.Character.Torso
  2022. weld.Part1 = lol
  2023. weld.C0 = Player.Character.Torso.CFrame:inverse()
  2024. weld.C1 = lol.CFrame:inverse()
  2025. end
  2026. wait()
  2027. spawnpart()
  2028. for i, v in pairs(game.Players:GetChildren()) do
  2029. t = v.Character:FindFirstChild("Torso")
  2030. if t then
  2031. t.Anchored = true
  2032. Player.Character:FindFirstChild("Torso").Anchored = false
  2033. end
  2034. RA = v.Character:FindFirstChild("Right Arm")
  2035. if RA then
  2036. RA.Anchored = true
  2037. Player.Character:FindFirstChild("Right Arm").Anchored = false
  2038. end
  2039. LA = v.Character:FindFirstChild("Left Arm")
  2040. if LA then
  2041. LA.Anchored = true
  2042. Player.Character:FindFirstChild("Left Arm").Anchored = false
  2043. end
  2044. RL = v.Character:FindFirstChild("Right Leg")
  2045. if RL then
  2046. RL.Anchored = true
  2047. Player.Character:FindFirstChild("Right Leg").Anchored = false
  2048. end
  2049. LL = v.Character:FindFirstChild("Left Leg")
  2050. if LL then
  2051. LL.Anchored = true
  2052. Player.Character:FindFirstChild("Left Leg").Anchored = false
  2053. end
  2054. end
  2055. weld(sphere)
  2056. cce = Instance.new("ColorCorrectionEffect", game.Lighting)
  2057. cce.Saturation = -5
  2058. --game.Debris:AddItem(cce, 5)
  2059. sphere.Parent = Character.Torso
  2060. for i = 1,3 do
  2061. sphere.Size = sphere.Size + Vector3.new(50,50,50)
  2062. wait()
  2063. end
  2064. wait()
  2065. sphere:Destroy()
  2066. BeeSpeed = 0
  2067. cce.Saturation = -0.1
  2068. wait(0.3)
  2069. cce.Saturation = -0.2
  2070. wait(0.3)
  2071. cce.Saturation = -0.3
  2072. wait(0.2)
  2073. cce.Saturation = -1.5
  2074. wait()
  2075. end
  2076. end
  2077. end
  2078. )
  2079.  
  2080. tecks.Text = LocalPlayer.Name
  2081.  
  2082. mse.KeyDown:connect(function(key)
  2083. key = key:lower()
  2084. if key == "y" then
  2085. canworld = true
  2086. tecks.Text = "Time continues moving again."
  2087. sound2:Play()
  2088. wait()
  2089. BeeSpeed = 1
  2090. cce.Saturation = -1.3
  2091. wait(0.5)
  2092. BeeSpeed = 1.2
  2093. cce.Saturation = -0.5
  2094. wait(0.5)
  2095. BeeSpeed = 1.4
  2096. cce.Saturation = -0.4
  2097. wait(0.3)
  2098. BeeSpeed = 1.5
  2099. cce.Saturation = -0.2
  2100. wait(0.2)
  2101. cce.Saturation = 0
  2102.  
  2103. for i, v in pairs(game.Players:GetChildren()) do
  2104. t = v.Character:FindFirstChild("Torso")
  2105. if t then
  2106. t.Anchored = false
  2107. end
  2108. RA = v.Character:FindFirstChild("Right Arm")
  2109. if RA then
  2110. RA.Anchored = false
  2111. end
  2112. LA = v.Character:FindFirstChild("Left Arm")
  2113. if LA then
  2114. LA.Anchored = false
  2115. end
  2116. RL = v.Character:FindFirstChild("Right Leg")
  2117. if RL then
  2118. RL.Anchored = false
  2119. end
  2120. LL = v.Character:FindFirstChild("Left Leg")
  2121. if LL then
  2122. LL.Anchored = false
  2123. end
  2124. end
  2125. BeeSpeed = 100
  2126. tecks.Text = LocalPlayer.Name
  2127. TSTheme:Stop()
  2128. end
  2129. end)
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135. warn'The Abyss Runs Through Your Veins'
  2136. plr = game.Players.LocalPlayer
  2137. char = plr.Character
  2138. hum = char.Humanoid
  2139. local cam = game.Workspace.CurrentCamera
  2140. t = char.Torso
  2141. h = char.Head
  2142. ra = char["Right Arm"]
  2143. la = char["Left Arm"]
  2144. rl = char["Right Leg"]
  2145. ll = char["Left Leg"]
  2146. tors = char.Torso
  2147. lleg = char["Left Leg"]
  2148. root = char.HumanoidRootPart
  2149. hed = char.Head
  2150. rleg = char["Right Leg"]
  2151. rarm = char["Right Arm"]
  2152. larm = char["Left Arm"]
  2153. vt = Vector3.new
  2154. bc = BrickColor.new
  2155. br = BrickColor.random
  2156. it = Instance.new
  2157. cf = CFrame.new
  2158.  
  2159.  
  2160. local Create = LoadLibrary("RbxUtility").Create
  2161.  
  2162. CFuncs = {
  2163. ["Part"] = {
  2164. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2165. local Part = Create("Part"){
  2166. Parent = Parent,
  2167. Reflectance = Reflectance,
  2168. Transparency = Transparency,
  2169. CanCollide = false,
  2170. Locked = true,
  2171. BrickColor = BrickColor.new(tostring(BColor)),
  2172. Name = Name,
  2173. Size = Size,
  2174. Material = Material,
  2175. }
  2176. RemoveOutlines(Part)
  2177. return Part
  2178. end;
  2179. };
  2180.  
  2181. ["Mesh"] = {
  2182. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2183. local Msh = Create(Mesh){
  2184. Parent = Part,
  2185. Offset = OffSet,
  2186. Scale = Scale,
  2187. }
  2188. if Mesh == "SpecialMesh" then
  2189. Msh.MeshType = MeshType
  2190. Msh.MeshId = MeshId
  2191. end
  2192. return Msh
  2193. end;
  2194. };
  2195.  
  2196. ["Mesh"] = {
  2197. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2198. local Msh = Create(Mesh){
  2199. Parent = Part,
  2200. Offset = OffSet,
  2201. Scale = Scale,
  2202. }
  2203. if Mesh == "SpecialMesh" then
  2204. Msh.MeshType = MeshType
  2205. Msh.MeshId = MeshId
  2206. end
  2207. return Msh
  2208. end;
  2209. };
  2210.  
  2211. ["Weld"] = {
  2212. Create = function(Parent, Part0, Part1, C0, C1)
  2213. local Weld = Create("Weld"){
  2214. Parent = Parent,
  2215. Part0 = Part0,
  2216. Part1 = Part1,
  2217. C0 = C0,
  2218. C1 = C1,
  2219. }
  2220. return Weld
  2221. end;
  2222. };
  2223.  
  2224. ["Sound"] = {
  2225. Create = function(id, par, vol, pit)
  2226. coroutine.resume(coroutine.create(function()
  2227. local S = Create("Sound"){
  2228. Volume = vol,
  2229. Pitch = pit or 1,
  2230. SoundId = id,
  2231. Parent = par or workspace,
  2232. }
  2233. wait()
  2234. S:play()
  2235. game:GetService("Debris"):AddItem(S, 10)
  2236. end))
  2237. end;
  2238. };
  2239.  
  2240. ["ParticleEmitter"] = {
  2241. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  2242. local fp = Create("ParticleEmitter"){
  2243. Parent = Parent,
  2244. Color = ColorSequence.new(Color1, Color2),
  2245. LightEmission = LightEmission,
  2246. Size = Size,
  2247. Texture = Texture,
  2248. Transparency = Transparency,
  2249. ZOffset = ZOffset,
  2250. Acceleration = Accel,
  2251. Drag = Drag,
  2252. LockedToPart = LockedToPart,
  2253. VelocityInheritance = VelocityInheritance,
  2254. EmissionDirection = EmissionDirection,
  2255. Enabled = Enabled,
  2256. Lifetime = LifeTime,
  2257. Rate = Rate,
  2258. Rotation = Rotation,
  2259. RotSpeed = RotSpeed,
  2260. Speed = Speed,
  2261. VelocitySpread = VelocitySpread,
  2262. }
  2263. return fp
  2264. end;
  2265. };
  2266.  
  2267. CreateTemplate = {
  2268.  
  2269. };
  2270. }
  2271.  
  2272.  
  2273.  
  2274. New = function(Object, Parent, Name, Data)
  2275. local Object = Instance.new(Object)
  2276. for Index, Value in pairs(Data or {}) do
  2277. Object[Index] = Value
  2278. end
  2279. Object.Parent = Parent
  2280. Object.Name = Name
  2281. return Object
  2282. end
  2283. local halocolor = BrickColor.new("Dark indigo")
  2284. local wepcolor = BrickColor.new("Really black")
  2285. local m = Instance.new("Model",char)
  2286.  
  2287. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  2288. local p = Instance.new("Part")
  2289. p.TopSurface = 0
  2290. p.BottomSurface = 0
  2291. p.Parent = parent
  2292. p.Size = Vector3.new(1,1,1)
  2293. p.Transparency = transparency
  2294. p.Reflectance = reflectance
  2295. p.CanCollide = false
  2296. p.Locked = true
  2297. p.BrickColor = brickcolor
  2298. p.Material = material
  2299. return p
  2300. end
  2301.  
  2302. function CreateMesh(parent,meshtype,x1,y1,z1)
  2303. local mesh = Instance.new("SpecialMesh",parent)
  2304. mesh.MeshType = meshtype
  2305. mesh.Scale = Vector3.new(x1,y1,z1)
  2306. return mesh
  2307. end
  2308.  
  2309. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  2310. local mesh = Instance.new("SpecialMesh",parent)
  2311. mesh.MeshType = "FileMesh"
  2312. mesh.MeshId = meshid
  2313. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  2314. mesh.Scale = Vector3.new(x1,y1,z1)
  2315. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  2316. return mesh
  2317. end
  2318.  
  2319. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  2320. local weld = Instance.new("Weld")
  2321. weld.Parent = parent
  2322. weld.Part0 = part0
  2323. weld.Part1 = part1
  2324. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  2325. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  2326. return weld
  2327. end
  2328.  
  2329.  
  2330. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  2331. 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))
  2332. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  2333. 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))
  2334.  
  2335. function RemoveOutlines(part)
  2336. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2337. end
  2338. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2339. local Part = Create("Part")({
  2340. Parent = Parent,
  2341. Reflectance = Reflectance,
  2342. Transparency = Transparency,
  2343. CanCollide = false,
  2344. Locked = true,
  2345. BrickColor = BrickColor.new(tostring(BColor)),
  2346. Name = Name,
  2347. Size = Size,
  2348. Material = Material
  2349. })
  2350. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  2351. RemoveOutlines(Part)
  2352. return Part
  2353. end
  2354. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2355. local Msh = Create(Mesh)({
  2356. Parent = Part,
  2357. Offset = OffSet,
  2358. Scale = Scale
  2359. })
  2360. if Mesh == "SpecialMesh" then
  2361. Msh.MeshType = MeshType
  2362. Msh.MeshId = MeshId
  2363. end
  2364. return Msh
  2365. end
  2366. function CreateWeld(Parent, Part0, Part1, C0, C1)
  2367. local Weld = Create("Weld")({
  2368. Parent = Parent,
  2369. Part0 = Part0,
  2370. Part1 = Part1,
  2371. C0 = C0,
  2372. C1 = C1
  2373. })
  2374. return Weld
  2375. end
  2376.  
  2377. Player=game:GetService("Players").LocalPlayer
  2378. Character=Player.Character
  2379. PlayerGui=Player.PlayerGui
  2380. Backpack=Player.Backpack
  2381. Torso=Character.Torso
  2382. Head=Character.Head
  2383. Humanoid=Character.Humanoid
  2384. m=Instance.new('Model',Character)
  2385. LeftArm=Character["Left Arm"]
  2386. LeftLeg=Character["Left Leg"]
  2387. RightArm=Character["Right Arm"]
  2388. RightLeg=Character["Right Leg"]
  2389. LS=Torso["Left Shoulder"]
  2390. LH=Torso["Left Hip"]
  2391. RS=Torso["Right Shoulder"]
  2392. RH=Torso["Right Hip"]
  2393. Face = Head.face
  2394. Neck=Torso.Neck
  2395. it=Instance.new
  2396. attacktype=1
  2397. vt=Vector3.new
  2398. cf=CFrame.new
  2399. euler=CFrame.fromEulerAnglesXYZ
  2400. angles=CFrame.Angles
  2401. cloaked=false
  2402. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2403. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2404. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  2405. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  2406. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  2407. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  2408. RootPart=Character.HumanoidRootPart
  2409. RootJoint=RootPart.RootJoint
  2410. RootCF=euler(-1.57,0,3.14)
  2411. attack = false
  2412. attackdebounce = false
  2413. deb=false
  2414. equipped=true
  2415. hand=false
  2416. MMouse=nil
  2417. combo=0
  2418. mana=0
  2419. trispeed=.2
  2420. attackmode='none'
  2421. local idle=0
  2422. local Anim="Idle"
  2423. local Effects={}
  2424. local gun=false
  2425. local shoot=false
  2426. local sine = 0
  2427. local change = 1
  2428. player=nil
  2429.  
  2430. mouse=Player:GetMouse()
  2431. --save shoulders
  2432. RSH, LSH=nil, nil
  2433. --welds
  2434. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  2435. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  2436. LH=Torso["Left Hip"]
  2437. RH=Torso["Right Hip"]
  2438. TorsoColor=Torso.BrickColor
  2439. function NoOutline(Part)
  2440. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  2441. end
  2442. player=Player
  2443. ch=Character
  2444. RSH=ch.Torso["Right Shoulder"]
  2445. LSH=ch.Torso["Left Shoulder"]
  2446. --
  2447. RSH.Parent=nil
  2448. LSH.Parent=nil
  2449. --
  2450. RW.Name="Right Shoulder"
  2451. RW.Part0=ch.Torso
  2452. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2453. RW.C1=cf(0, 0.5, 0)
  2454. RW.Part1=ch["Right Arm"]
  2455. RW.Parent=ch.Torso
  2456. --
  2457. LW.Name="Left Shoulder"
  2458. LW.Part0=ch.Torso
  2459. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2460. LW.C1=cf(0, 0.5, 0)
  2461. LW.Part1=ch["Left Arm"]
  2462. LW.Parent=ch.Torso
  2463.  
  2464. local Stats=Instance.new("BoolValue")
  2465. Stats.Name="Stats"
  2466. Stats.Parent=Character
  2467. local Atk=Instance.new("NumberValue")
  2468. Atk.Name="Damage"
  2469. Atk.Parent=Stats
  2470. Atk.Value=1
  2471. local Def=Instance.new("NumberValue")
  2472. Def.Name="Defense"
  2473. Def.Parent=Stats
  2474. Def.Value=1
  2475. local Speed=Instance.new("NumberValue")
  2476. Speed.Name="Speed"
  2477. Speed.Parent=Stats
  2478. Speed.Value=1
  2479. local Mvmt=Instance.new("NumberValue")
  2480. Mvmt.Name="Movement"
  2481. Mvmt.Parent=Stats
  2482. Mvmt.Value=1
  2483.  
  2484. local donum=0
  2485.  
  2486.  
  2487. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  2488. local fp=it("Part")
  2489. fp.formFactor=formfactor
  2490. fp.Parent=parent
  2491. fp.Reflectance=reflectance
  2492. fp.Transparency=transparency
  2493. fp.CanCollide=false
  2494. fp.Locked=true
  2495. fp.BrickColor=brickcolor
  2496. fp.Name=name
  2497. fp.Size=size
  2498. fp.Position=Torso.Position
  2499. NoOutline(fp)
  2500. fp.Material="SmoothPlastic"
  2501. fp:BreakJoints()
  2502. return fp
  2503. end
  2504.  
  2505. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2506. local mesh=it(Mesh)
  2507. mesh.Parent=part
  2508. if Mesh=="SpecialMesh" then
  2509. mesh.MeshType=meshtype
  2510. if meshid~="nil" then
  2511. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  2512. end
  2513. end
  2514. mesh.Offset=offset
  2515. mesh.Scale=scale
  2516. return mesh
  2517. end
  2518.  
  2519. function weld(parent,part0,part1,c0)
  2520. local weld=it("Weld")
  2521. weld.Parent=parent
  2522. weld.Part0=part0
  2523. weld.Part1=part1
  2524. weld.C0=c0
  2525. return weld
  2526. end
  2527.  
  2528. local Color1=Torso.BrickColor
  2529.  
  2530. local bodvel=Instance.new("BodyVelocity")
  2531. local bg=Instance.new("BodyGyro")
  2532.  
  2533. function swait(num)
  2534. if num==0 or num==nil then
  2535. game:service'RunService'.Stepped:wait(0)
  2536. else
  2537. for i=0,num do
  2538. game:service'RunService'.Stepped:wait(0)
  2539. end
  2540. end
  2541. end
  2542.  
  2543.  
  2544. so = function(id,par,vol,pit)
  2545. coroutine.resume(coroutine.create(function()
  2546. local sou = Instance.new("Sound",par or workspace)
  2547. sou.Volume=vol
  2548. sou.Pitch=pit or 1
  2549. sou.SoundId=id
  2550. swait()
  2551. sou:play()
  2552. game:GetService("Debris"):AddItem(sou,6)
  2553. end))
  2554. end
  2555.  
  2556. function clerp(a,b,t)
  2557. local qa = {QuaternionFromCFrame(a)}
  2558. local qb = {QuaternionFromCFrame(b)}
  2559. local ax, ay, az = a.x, a.y, a.z
  2560. local bx, by, bz = b.x, b.y, b.z
  2561. local _t = 1-t
  2562. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  2563. end
  2564.  
  2565. function QuaternionFromCFrame(cf)
  2566. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2567. local trace = m00 + m11 + m22
  2568. if trace > 0 then
  2569. local s = math.sqrt(1 + trace)
  2570. local recip = 0.5/s
  2571. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  2572. else
  2573. local i = 0
  2574. if m11 > m00 then
  2575. i = 1
  2576. end
  2577. if m22 > (i == 0 and m00 or m11) then
  2578. i = 2
  2579. end
  2580. if i == 0 then
  2581. local s = math.sqrt(m00-m11-m22+1)
  2582. local recip = 0.5/s
  2583. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  2584. elseif i == 1 then
  2585. local s = math.sqrt(m11-m22-m00+1)
  2586. local recip = 0.5/s
  2587. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  2588. elseif i == 2 then
  2589. local s = math.sqrt(m22-m00-m11+1)
  2590. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  2591. end
  2592. end
  2593. end
  2594.  
  2595. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2596. local xs, ys, zs = x + x, y + y, z + z
  2597. local wx, wy, wz = w*xs, w*ys, w*zs
  2598. local xx = x*xs
  2599. local xy = x*ys
  2600. local xz = x*zs
  2601. local yy = y*ys
  2602. local yz = y*zs
  2603. local zz = z*zs
  2604. 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))
  2605. end
  2606.  
  2607. function QuaternionSlerp(a, b, t)
  2608. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2609. local startInterp, finishInterp;
  2610. if cosTheta >= 0.0001 then
  2611. if (1 - cosTheta) > 0.0001 then
  2612. local theta = math.acos(cosTheta)
  2613. local invSinTheta = 1/math.sin(theta)
  2614. startInterp = math.sin((1-t)*theta)*invSinTheta
  2615. finishInterp = math.sin(t*theta)*invSinTheta
  2616. else
  2617. startInterp = 1-t
  2618. finishInterp = t
  2619. end
  2620. else
  2621. if (1+cosTheta) > 0.0001 then
  2622. local theta = math.acos(-cosTheta)
  2623. local invSinTheta = 1/math.sin(theta)
  2624. startInterp = math.sin((t-1)*theta)*invSinTheta
  2625. finishInterp = math.sin(t*theta)*invSinTheta
  2626. else
  2627. startInterp = t-1
  2628. finishInterp = t
  2629. end
  2630. end
  2631. 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
  2632. end
  2633.  
  2634. local function CFrameFromTopBack(at, top, back)
  2635. local right = top:Cross(back)
  2636. return CFrame.new(at.x, at.y, at.z,
  2637. right.x, top.x, back.x,
  2638. right.y, top.y, back.y,
  2639. right.z, top.z, back.z)
  2640. end
  2641.  
  2642. function Triangle(a, b, c)
  2643. local edg1 = (c-a):Dot((b-a).unit)
  2644. local edg2 = (a-b):Dot((c-b).unit)
  2645. local edg3 = (b-c):Dot((a-c).unit)
  2646. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2647. a, b, c = a, b, c
  2648. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2649. a, b, c = b, c, a
  2650. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2651. a, b, c = c, a, b
  2652. else
  2653. assert(false, "unreachable")
  2654. end
  2655.  
  2656. local len1 = (c-a):Dot((b-a).unit)
  2657. local len2 = (b-a).magnitude - len1
  2658. local width = (a + (b-a).unit*len1 - c).magnitude
  2659.  
  2660. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2661.  
  2662. local list = {}
  2663.  
  2664. if len1 > 0.01 then
  2665. local w1 = Instance.new('WedgePart', m)
  2666. game:GetService("Debris"):AddItem(w1,5)
  2667. w1.Material = "SmoothPlastic"
  2668. w1.FormFactor = 'Custom'
  2669. w1.BrickColor = BrickColor.new("Really red")
  2670. w1.Transparency = 0
  2671. w1.Reflectance = 0
  2672. w1.Material = "SmoothPlastic"
  2673. w1.CanCollide = false
  2674. local l1 = Instance.new("PointLight",w1)
  2675. l1.Color = Color3.new(170,0,0)
  2676. NoOutline(w1)
  2677. local sz = Vector3.new(0.2, width, len1)
  2678. w1.Size = sz
  2679. local sp = Instance.new("SpecialMesh",w1)
  2680. sp.MeshType = "Wedge"
  2681. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2682. w1:BreakJoints()
  2683. w1.Anchored = true
  2684. w1.Parent = workspace
  2685. w1.Transparency = 0.7
  2686. table.insert(Effects,{w1,"Disappear",.01})
  2687. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2688. table.insert(list,w1)
  2689. end
  2690.  
  2691. if len2 > 0.01 then
  2692. local w2 = Instance.new('WedgePart', m)
  2693. game:GetService("Debris"):AddItem(w2,5)
  2694. w2.Material = "SmoothPlastic"
  2695. w2.FormFactor = 'Custom'
  2696. w2.BrickColor = BrickColor.new("Really red")
  2697. w2.Transparency = 0
  2698. w2.Reflectance = 0
  2699. w2.Material = "SmoothPlastic"
  2700. w2.CanCollide = false
  2701. local l2 = Instance.new("PointLight",w2)
  2702. l2.Color = Color3.new(170,0,0)
  2703. NoOutline(w2)
  2704. local sz = Vector3.new(0.2, width, len2)
  2705. w2.Size = sz
  2706. local sp = Instance.new("SpecialMesh",w2)
  2707. sp.MeshType = "Wedge"
  2708. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2709. w2:BreakJoints()
  2710. w2.Anchored = true
  2711. w2.Parent = workspace
  2712. w2.Transparency = 0.7
  2713. table.insert(Effects,{w2,"Disappear",.01})
  2714. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2715. table.insert(list,w2)
  2716. end
  2717. return unpack(list)
  2718. end
  2719.  
  2720.  
  2721. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  2722. if hit.Parent == nil then
  2723. return
  2724. end
  2725. local h = hit.Parent:FindFirstChild("Humanoid")
  2726. for _, v in pairs(hit.Parent:children()) do
  2727. if v:IsA("Humanoid") then
  2728. h = v
  2729. end
  2730. end
  2731. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2732. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2733. return
  2734. end
  2735. local c = Create("ObjectValue")({
  2736. Name = "creator",
  2737. Value = game:service("Players").LocalPlayer,
  2738. Parent = h
  2739. })
  2740. game:GetService("Debris"):AddItem(c, 0.5)
  2741. if HitSound ~= nil and HitPitch ~= nil then
  2742. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  2743. end
  2744. local Damage = math.random(minim, maxim)
  2745. local blocked = false
  2746. local block = hit.Parent:findFirstChild("Block")
  2747. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  2748. blocked = true
  2749. block.Value = block.Value - 1
  2750. print(block.Value)
  2751. end
  2752. if blocked == false then
  2753. HitHealth = h.Health
  2754. h.Health = h.Health - Damage
  2755. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  2756. print("gained kill")
  2757. end
  2758. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2759. else
  2760. h.Health = h.Health - Damage / 2
  2761. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2762. end
  2763. if Type == "Knockdown" then
  2764. local hum = hit.Parent.Humanoid
  2765. hum.PlatformStand = true
  2766. coroutine.resume(coroutine.create(function(HHumanoid)
  2767. swait(1)
  2768. HHumanoid.PlatformStand = false
  2769. end), hum)
  2770. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2771. local bodvol = Create("BodyVelocity")({
  2772. velocity = angle * knockback,
  2773. P = 5000,
  2774. maxForce = Vector3.new(8000, 8000, 8000),
  2775. Parent = hit
  2776. })
  2777. local rl = Create("BodyAngularVelocity")({
  2778. P = 3000,
  2779. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2780. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2781. Parent = hit
  2782. })
  2783. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2784. game:GetService("Debris"):AddItem(rl, 0.5)
  2785. elseif Type == "Normal" then
  2786. local vp = Create("BodyVelocity")({
  2787. P = 500,
  2788. maxForce = Vector3.new(math.huge, 0, math.huge),
  2789. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2790. })
  2791. if knockback > 0 then
  2792. vp.Parent = hit.Parent.Torso
  2793. end
  2794. game:GetService("Debris"):AddItem(vp, 0.5)
  2795. elseif Type == "Up" then
  2796. local bodyVelocity = Create("BodyVelocity")({
  2797. velocity = Vector3.new(0, 20, 0),
  2798. P = 5000,
  2799. maxForce = Vector3.new(8000, 8000, 8000),
  2800. Parent = hit
  2801. })
  2802. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2803. local bodyVelocity = Create("BodyVelocity")({
  2804. velocity = Vector3.new(0, 20, 0),
  2805. P = 5000,
  2806. maxForce = Vector3.new(8000, 8000, 8000),
  2807. Parent = hit
  2808. })
  2809. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2810. elseif Type == "Leech" then
  2811. local hum = hit.Parent.Humanoid
  2812. if hum ~= nil then
  2813. for i = 0, 2 do
  2814. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  2815. end
  2816. Humanoid.Health = Humanoid.Health + 10
  2817. end
  2818. elseif Type == "UpKnock" then
  2819. local hum = hit.Parent.Humanoid
  2820. hum.PlatformStand = true
  2821. if hum ~= nil then
  2822. hitr = true
  2823. end
  2824. coroutine.resume(coroutine.create(function(HHumanoid)
  2825. swait(5)
  2826. HHumanoid.PlatformStand = false
  2827. hitr = false
  2828. end), hum)
  2829. local bodyVelocity = Create("BodyVelocity")({
  2830. velocity = Vector3.new(0, 20, 0),
  2831. P = 5000,
  2832. maxForce = Vector3.new(8000, 8000, 8000),
  2833. Parent = hit
  2834. })
  2835. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2836. local bodyVelocity = Create("BodyVelocity")({
  2837. velocity = Vector3.new(0, 20, 0),
  2838. P = 5000,
  2839. maxForce = Vector3.new(8000, 8000, 8000),
  2840. Parent = hit
  2841. })
  2842. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2843. elseif Type == "Snare" then
  2844. local bp = Create("BodyPosition")({
  2845. P = 2000,
  2846. D = 100,
  2847. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2848. position = hit.Parent.Torso.Position,
  2849. Parent = hit.Parent.Torso
  2850. })
  2851. game:GetService("Debris"):AddItem(bp, 1)
  2852. elseif Type == "Slashnare" then
  2853. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  2854. for i = 1, math.random(4, 5) do
  2855. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  2856. end
  2857. local bp = Create("BodyPosition")({
  2858. P = 2000,
  2859. D = 100,
  2860. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2861. position = hit.Parent.Torso.Position,
  2862. Parent = hit.Parent.Torso
  2863. })
  2864. game:GetService("Debris"):AddItem(bp, 1)
  2865. elseif Type == "Spike" then
  2866. CreateBigIceSword(hit.Parent.Torso.CFrame)
  2867. local bp = Create("BodyPosition")({
  2868. P = 2000,
  2869. D = 100,
  2870. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2871. position = hit.Parent.Torso.Position,
  2872. Parent = hit.Parent.Torso
  2873. })
  2874. game:GetService("Debris"):AddItem(bp, 1)
  2875. elseif Type == "Freeze" then
  2876. local BodPos = Create("BodyPosition")({
  2877. P = 50000,
  2878. D = 1000,
  2879. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2880. position = hit.Parent.Torso.Position,
  2881. Parent = hit.Parent.Torso
  2882. })
  2883. local BodGy = Create("BodyGyro")({
  2884. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2885. P = 20000,
  2886. Parent = hit.Parent.Torso,
  2887. cframe = hit.Parent.Torso.CFrame
  2888. })
  2889. hit.Parent.Torso.Anchored = true
  2890. coroutine.resume(coroutine.create(function(Part)
  2891. swait(1.5)
  2892. Part.Anchored = false
  2893. end), hit.Parent.Torso)
  2894. game:GetService("Debris"):AddItem(BodPos, 3)
  2895. game:GetService("Debris"):AddItem(BodGy, 3)
  2896. end
  2897. local debounce = Create("BoolValue")({
  2898. Name = "DebounceHit",
  2899. Parent = hit.Parent,
  2900. Value = true
  2901. })
  2902. game:GetService("Debris"):AddItem(debounce, Delay)
  2903. c = Instance.new("ObjectValue")
  2904. c.Name = "creator"
  2905. c.Value = Player
  2906. c.Parent = h
  2907. game:GetService("Debris"):AddItem(c, 0.5)
  2908. end
  2909. end
  2910. function ShowDamage(Pos, Text, Time, Color)
  2911. local Rate = 0.03333333333333333
  2912. local Pos = Pos or Vector3.new(0, 0, 0)
  2913. local Text = Text or ""
  2914. local Time = Time or 2
  2915. local Color = Color or Color3.new(1, 0, 1)
  2916. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2917. EffectPart.Anchored = true
  2918. local BillboardGui = Create("BillboardGui")({
  2919. Size = UDim2.new(3, 0, 3, 0),
  2920. Adornee = EffectPart,
  2921. Parent = EffectPart
  2922. })
  2923. local TextLabel = Create("TextLabel")({
  2924. BackgroundTransparency = 1,
  2925. Size = UDim2.new(1, 0, 1, 0),
  2926. Text = Text,
  2927. TextColor3 = Color,
  2928. TextScaled = true,
  2929. Font = Enum.Font.ArialBold,
  2930. Parent = BillboardGui
  2931. })
  2932. game.Debris:AddItem(EffectPart, Time + 0.1)
  2933. EffectPart.Parent = game:GetService("Workspace")
  2934. delay(0, function()
  2935. local Frames = Time / Rate
  2936. for Frame = 1, Frames do
  2937. wait(Rate)
  2938. local Percent = Frame / Frames
  2939. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2940. TextLabel.TextTransparency = Percent
  2941. end
  2942. if EffectPart and EffectPart.Parent then
  2943. EffectPart:Destroy()
  2944. end
  2945. end)
  2946. end
  2947. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2948. for _, c in pairs(workspace:children()) do
  2949. local hum = c:findFirstChild("Humanoid")
  2950. if hum ~= nil then
  2951. local head = c:findFirstChild("Torso")
  2952. if head ~= nil then
  2953. local targ = head.Position - Part.Position
  2954. local mag = targ.magnitude
  2955. if magni >= mag and c.Name ~= Player.Name then
  2956. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2957. end
  2958. end
  2959. end
  2960. end
  2961. end
  2962.  
  2963. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2964. for _, c in pairs(workspace:children()) do
  2965. local hum = c:findFirstChild("Humanoid")
  2966. if hum ~= nil then
  2967. local head = c:findFirstChild("Torso")
  2968. if head ~= nil then
  2969. local targ = head.Position - Part.Position
  2970. local mag = targ.magnitude
  2971. if magni >= mag and c.Name ~= Player.Name then
  2972. MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
  2973. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2974. end
  2975. end
  2976. end
  2977. end
  2978. end
  2979.  
  2980. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2981. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2982. end
  2983.  
  2984. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2985. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2986. prt.Anchored=true
  2987. prt.CFrame=cframe
  2988. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2989. --http://www.roblox.com/asset/?id=4770560
  2990. game:GetService("Debris"):AddItem(prt,2)
  2991. CF=prt.CFrame
  2992. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2993. for i=0,1,0.2 do
  2994. wait()
  2995. Part.CFrame=CF*cf(0,0,-0.4)
  2996. end
  2997. for i=0,1,delay do
  2998. wait()
  2999. --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)
  3000. Mesh.Scale=Mesh.Scale
  3001. end
  3002. for i=0,1,0.1 do
  3003. wait()
  3004. Part.Transparency=i
  3005. end
  3006. Part.Parent=nil
  3007. end),prt,msh,CF)
  3008. end
  3009.  
  3010. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3011. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3012. prt.Anchored=true
  3013. prt.Material = "Neon"
  3014. prt.CFrame=cframe
  3015. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3016. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3017. game:GetService("Debris"):AddItem(prt,5)
  3018. coroutine.resume(coroutine.create(function(Part,Mesh)
  3019. for i=0,1,delay do
  3020. swait()
  3021. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3022. Part.Transparency=i
  3023. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3024. end
  3025. Part.Parent=nil
  3026. end),prt,msh)
  3027. end
  3028.  
  3029. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  3030. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3031. prt.Anchored=true
  3032. prt.Material = "Neon"
  3033. prt.CFrame=cframe
  3034. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3035. game:GetService("Debris"):AddItem(prt,5)
  3036. coroutine.resume(coroutine.create(function(Part,Mesh)
  3037. local rtype = rottype
  3038. for i=0,1,delay do
  3039. swait()
  3040. if rtype == 1 then
  3041. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  3042. elseif rtype == 2 then
  3043. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  3044. end
  3045. Part.Transparency=i
  3046. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3047. end
  3048. Part.Parent=nil
  3049. end),prt,msh)
  3050. end
  3051.  
  3052. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3053. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3054. prt.Anchored=true
  3055. prt.CFrame=cframe
  3056. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3057. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  3058. game:GetService("Debris"):AddItem(prt,5)
  3059. coroutine.resume(coroutine.create(function(Part,Mesh)
  3060. for i=0,1,delay do
  3061. wait()
  3062. Part.Transparency=i
  3063. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3064. end
  3065. Part.Parent=nil
  3066. end),prt,msh)
  3067. end
  3068.  
  3069. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  3070. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3071. prt.Anchored=true
  3072. prt.Material = "Neon"
  3073. prt.CFrame=cframe
  3074. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3075. game:GetService("Debris"):AddItem(prt,5)
  3076. coroutine.resume(coroutine.create(function(Part,Mesh)
  3077. local rtype = rottype
  3078. for i=0,1,delay do
  3079. swait()
  3080. if rtype == 1 then
  3081. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  3082. elseif rtype == 2 then
  3083. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  3084. end
  3085. Part.Transparency=i
  3086. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3087. end
  3088. Part.Parent=nil
  3089. end),prt,msh)
  3090. end
  3091.  
  3092. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  3093. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3094. prt.Anchored=true
  3095. prt.Material = "Neon"
  3096. prt.CFrame=cframe
  3097. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  3098. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  3099. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  3100. game:GetService("Debris"):AddItem(prt,5)
  3101. coroutine.resume(coroutine.create(function(Part,Mesh)
  3102. local rtype = rottype
  3103. for i=0,1,delay do
  3104. swait()
  3105. if rtype == 1 then
  3106. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  3107. elseif rtype == 2 then
  3108. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  3109. end
  3110. dec.Transparency=i
  3111. dec2.Transparency=i
  3112. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  3113. end
  3114. Part.Parent=nil
  3115. end),prt,msh)
  3116. end
  3117.  
  3118. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  3119. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3120. prt.Anchored=true
  3121. prt.Material = "Neon"
  3122. prt.CFrame=cframe
  3123. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  3124. game:GetService("Debris"):AddItem(prt,5)
  3125. coroutine.resume(coroutine.create(function(Part,Mesh)
  3126. local rtype = rottype
  3127. for i=0,1,delay do
  3128. swait()
  3129. if rtype == 1 then
  3130. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  3131. elseif rtype == 2 then
  3132. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  3133. end
  3134. prt.Transparency=i
  3135. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  3136. end
  3137. Part.Parent=nil
  3138. end),prt,msh)
  3139. end
  3140.  
  3141. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  3142. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3143. prt.Anchored=true
  3144. prt.Material = "Neon"
  3145. prt.CFrame=cframe
  3146. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  3147. game:GetService("Debris"):AddItem(prt,5)
  3148. coroutine.resume(coroutine.create(function(Part,Mesh)
  3149. local rtype = rottype
  3150. for i=0,1,delay do
  3151. swait()
  3152. if rtype == 1 then
  3153. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  3154. elseif rtype == 2 then
  3155. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  3156. end
  3157. prt.Transparency=i
  3158. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  3159. end
  3160. Part.Parent=nil
  3161. end),prt,msh)
  3162. end
  3163.  
  3164. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  3165. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3166. prt.Anchored=true
  3167. prt.Material = "Neon"
  3168. prt.CFrame=cframe
  3169. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3170. game:GetService("Debris"):AddItem(prt,5)
  3171. coroutine.resume(coroutine.create(function(Part,Mesh)
  3172. local rtype = rottype
  3173. for i=0,1,delay do
  3174. swait()
  3175. if rtype == 1 then
  3176. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  3177. elseif rtype == 2 then
  3178. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  3179. end
  3180. prt.Transparency=i
  3181. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  3182. end
  3183. Part.Parent=nil
  3184. end),prt,msh)
  3185. end
  3186.  
  3187. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  3188. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3189. prt.Anchored=true
  3190. prt.Material = "Neon"
  3191. prt.CFrame=cframe
  3192. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3193. game:GetService("Debris"):AddItem(prt,5)
  3194. coroutine.resume(coroutine.create(function(Part,Mesh)
  3195. local rtype = rottype
  3196. for i=0,1,delay do
  3197. swait()
  3198. if rtype == 1 then
  3199. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  3200. elseif rtype == 2 then
  3201. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  3202. end
  3203. prt.Transparency=i
  3204. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3205. end
  3206. Part.Parent=nil
  3207. end),prt,msh)
  3208. end
  3209.  
  3210. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  3211. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3212. prt.Anchored=false
  3213. prt.CFrame=cframe
  3214. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3215. local wld=weld(prt,prt,Parent,cframe)
  3216. game:GetService("Debris"):AddItem(prt,5)
  3217. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  3218. for i=0,1,delay do
  3219. wait()
  3220. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  3221. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3222. Part.Transparency=i
  3223. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3224. end
  3225. Part.Parent=nil
  3226. end),prt,msh,wld)
  3227. end
  3228.  
  3229. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  3230. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3231. prt.Anchored=false
  3232. prt.CFrame=cframe
  3233. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3234. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  3235. game:GetService("Debris"):AddItem(prt,5)
  3236. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  3237. for i=0,1,delay do
  3238. wait()
  3239. Weld.C0=euler(i*20,0,0)
  3240. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3241. Part.Transparency=i
  3242. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3243. end
  3244. Part.Parent=nil
  3245. end),prt,msh,wld)
  3246. end
  3247.  
  3248. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3249. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3250. prt.Anchored=true
  3251. prt.CFrame=cframe
  3252. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3253. game:GetService("Debris"):AddItem(prt,2)
  3254. coroutine.resume(coroutine.create(function(Part,Mesh)
  3255. for i=0,1,delay do
  3256. wait()
  3257. Part.CFrame=Part.CFrame
  3258. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3259. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3260. prt2.Anchored=true
  3261. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3262. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  3263. game:GetService("Debris"):AddItem(prt2,2)
  3264. coroutine.resume(coroutine.create(function(Part,Mesh)
  3265. for i=0,1,0.1 do
  3266. wait()
  3267. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  3268. end
  3269. Part.Parent=nil
  3270. end),prt2,msh2)
  3271. end
  3272. for i=0,1,delay*2 do
  3273. wait()
  3274. Part.CFrame=Part.CFrame
  3275. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  3276. end
  3277. Part.Parent=nil
  3278. end),prt,msh)
  3279. end
  3280.  
  3281. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3282. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3283. prt.Anchored=true
  3284. prt.CFrame=cframe
  3285. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  3286. game:GetService("Debris"):AddItem(prt,2)
  3287. coroutine.resume(coroutine.create(function(Part,Mesh)
  3288. for i=0,1,delay do
  3289. wait()
  3290. Part.CFrame=Part.CFrame
  3291. Part.Transparency=i
  3292. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3293. end
  3294. Part.Parent=nil
  3295. end),prt,msh)
  3296. end
  3297.  
  3298. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  3299. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3300. prt.Anchored=true
  3301. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3302. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  3303. game:GetService("Debris"):AddItem(prt,2)
  3304. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  3305. CF=Part.CFrame
  3306. Numbb=0
  3307. randnumb=math.random()/10
  3308. rand1=math.random()/10
  3309. for i=0,1,rand1 do
  3310. wait()
  3311. CF=CF*cf(0,math.random()/2,0)
  3312. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  3313. Part.CFrame=CF*euler(Numbb,0,0)
  3314. Part.Transparency=i
  3315. Numbb=Numbb+randnumb
  3316. end
  3317. Part.Parent=nil
  3318. end),prt,CF,Numbb,randnumb)
  3319. end
  3320.  
  3321. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3322. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3323. prt.Anchored=true
  3324. prt.CFrame=cframe
  3325. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  3326. game:GetService("Debris"):AddItem(prt,5)
  3327. coroutine.resume(coroutine.create(function(Part,Mesh)
  3328. for i=0,1,delay do
  3329. wait()
  3330. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  3331. Part.Transparency=i
  3332. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3333. end
  3334. Part.Parent=nil
  3335. end),prt,msh)
  3336. end
  3337.  
  3338. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3339. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3340. prt.Anchored=true
  3341. prt.CFrame=cframe
  3342. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  3343. game:GetService("Debris"):AddItem(prt,2)
  3344. coroutine.resume(coroutine.create(function(Part,Mesh)
  3345. for i=0,1,delay do
  3346. wait()
  3347. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  3348. Part.Transparency=i
  3349. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3350. end
  3351. Part.Parent=nil
  3352. end),prt,msh)
  3353. end
  3354.  
  3355. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  3356. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3357. prt.Anchored=true
  3358. prt.CFrame=cframe*cf(x,y,z)
  3359. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  3360. game:GetService("Debris"):AddItem(prt,5)
  3361. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  3362. local num=math.random()
  3363. local num2=math.random(-3,2)+math.random()
  3364. local numm=0
  3365. for i=0,1,delay*2 do
  3366. swait()
  3367. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  3368. Part.Transparency=i
  3369. numm=numm+0.01
  3370. end
  3371. Part.Parent=nil
  3372. Mesh.Parent=nil
  3373. end),prt,msh,x,y,z)
  3374. end
  3375.  
  3376. function dmgstart(dmg,what)
  3377. hitcon = what.Touched:connect(function(hit)
  3378. local hum = hit.Parent:FindFirstChild("Humanoid")
  3379. if hum and not hum:IsDescendantOf(Character) then
  3380. hum:TakeDamage(dmg)
  3381. end
  3382. end)
  3383. end
  3384.  
  3385. function dmgstop()
  3386. hitcon:disconnect()
  3387. end
  3388.  
  3389. function Cloak()
  3390. Face.Parent=nil
  3391. cloaked=true
  3392. for _,v in pairs(Torso.Parent:children()) do
  3393. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  3394. coroutine.resume(coroutine.create(function()
  3395. for i=0,1,0.2 do
  3396. wait()
  3397. v.Transparency=i
  3398. end
  3399. v.Transparency=1
  3400. end))
  3401. end
  3402. if v.className=="Hat" then
  3403. hatp=v.Handle
  3404. coroutine.resume(coroutine.create(function(derp)
  3405. for i=0,1,0.2 do
  3406. wait()
  3407. derp.Transparency=i
  3408. end
  3409. derp.Transparency=1
  3410. end),hatp)
  3411. end
  3412. end
  3413. for _,v in pairs(m:children()) do
  3414. if v.className=="Part" then
  3415. coroutine.resume(coroutine.create(function()
  3416. for i=0,1,0.2 do
  3417. wait()
  3418. v.Transparency=i
  3419. end
  3420. v.Transparency=1
  3421. end))
  3422. end
  3423. end
  3424. end
  3425.  
  3426. function UnCloak()
  3427. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  3428. Face.Parent=Head
  3429. cloaked=false
  3430. for _,v in pairs(Torso.Parent:children()) do
  3431. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  3432. coroutine.resume(coroutine.create(function()
  3433. for i=0,1,0.1 do
  3434. wait()
  3435. v.Transparency=v.Transparency-0.1
  3436. end
  3437. v.Transparency=0
  3438. end))
  3439. end
  3440. if v.className=="Hat" then
  3441. hatp=v.Handle
  3442. coroutine.resume(coroutine.create(function(derp)
  3443. for i=0,1,0.1 do
  3444. wait()
  3445. derp.Transparency=derp.Transparency-0.1
  3446. end
  3447. derp.Transparency=0
  3448. end),hatp)
  3449. end
  3450. end
  3451. for _,v in pairs(m:children()) do
  3452. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  3453. coroutine.resume(coroutine.create(function()
  3454. for i=0,1,0.1 do
  3455. wait()
  3456. v.Transparency=v.Transparency-0.1
  3457. end
  3458. v.Transparency=0
  3459. end))
  3460. v.Transparency=0
  3461. end
  3462. end
  3463. end
  3464.  
  3465. local origcolor = BrickColor.new("Dark indigo")
  3466. ---- This section of explosions.
  3467. function Explode(rad,par,pitch,vol,mindam,maxdam)
  3468. local expart = Instance.new("Part",char)
  3469. local expart2 = Instance.new("Part",char)
  3470. local rin = Instance.new("Part",char)
  3471. local rin2 = Instance.new("Part",char)
  3472. local partMesh = Instance.new("SpecialMesh",expart)
  3473. partMesh.MeshType = "Sphere"
  3474. local partMesh2 = Instance.new("SpecialMesh",expart2)
  3475. partMesh2.MeshType = "Sphere"
  3476. local partMesh3 = Instance.new("SpecialMesh",rin)
  3477. partMesh3.MeshType = "Sphere"
  3478. local partMesh4 = Instance.new("SpecialMesh",rin2)
  3479. partMesh4.MeshType = "Sphere"
  3480. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  3481. partMesh.Scale = vt(rad,rad,rad)
  3482. expart.Size = vt(1,1,1)
  3483. expart.Transparency = 0
  3484. expart.Anchored = true
  3485. expart.Material = "Neon"
  3486. expart.BrickColor = bc("White")
  3487. expart.CFrame = par.CFrame
  3488. partMesh2.Scale = vt(rad,rad,rad)
  3489. expart2.Size = vt(1.15,1.15,1.15)
  3490. expart2.Transparency = 0.5
  3491. expart2.Anchored = true
  3492. expart2.Material = "Neon"
  3493. expart2.BrickColor = par.BrickColor
  3494. expart2.CFrame = par.CFrame
  3495. rin.Size = vt(1.15,1.15,1.15)
  3496. rin.Transparency = 0.75
  3497. rin.Anchored = true
  3498. rin.Material = "Neon"
  3499. rin.BrickColor = par.BrickColor
  3500. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3501. rin2.Size = vt(1.15,1.15,1.15)
  3502. rin2.Transparency = 0.75
  3503. rin2.Anchored = true
  3504. rin2.Material = "Neon"
  3505. rin2.BrickColor = par.BrickColor
  3506. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3507. partMesh3.Scale = vt(0,1,0)
  3508. partMesh4.Scale = vt(0,1,0)
  3509. expart.CanCollide = false
  3510. expart2.CanCollide = false
  3511. rin.CanCollide = false
  3512. rin2.CanCollide = false
  3513. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  3514. local value = 1*rad/6.5
  3515. for i = 0, 199 do
  3516. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  3517. expart.CFrame = expart.CFrame
  3518. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  3519. expart2.CFrame = expart.CFrame
  3520. value = value - 0.035*rad/30
  3521. if value < 7.5 then
  3522. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  3523. rin.CFrame = rin.CFrame
  3524. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  3525. rin2.CFrame = rin2.CFrame
  3526. end
  3527. if value < 0 then
  3528. expart.Transparency = expart.Transparency + 0.025
  3529. expart2.Transparency = expart2.Transparency + 0.025
  3530. rin.Transparency = rin.Transparency + 0.025
  3531. rin2.Transparency = rin2.Transparency + 0.025
  3532. end
  3533. swait()
  3534. end
  3535. game:GetService("Debris"):AddItem(expart, 1)
  3536. game:GetService("Debris"):AddItem(expart2, 1)
  3537. game:GetService("Debris"):AddItem(rin, 1)
  3538. game:GetService("Debris"):AddItem(rin2, 1)
  3539. end
  3540.  
  3541. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  3542. local expart = Instance.new("Part",char)
  3543. local expart2 = Instance.new("Part",char)
  3544. local partMesh = Instance.new("SpecialMesh",expart)
  3545. partMesh.MeshType = "Sphere"
  3546. local partMesh2 = Instance.new("SpecialMesh",expart2)
  3547. partMesh2.MeshType = "Sphere"
  3548. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  3549. partMesh.Scale = vt(rad,rad,rad)
  3550. expart.Size = vt(1,1,1)
  3551. expart.Transparency = 0
  3552. expart.Anchored = true
  3553. expart.Material = "Neon"
  3554. expart.BrickColor = bc("White")
  3555. expart.CFrame = par.CFrame
  3556. partMesh2.Scale = vt(rad,rad,rad)
  3557. expart2.Size = vt(1.15,1.15,1.15)
  3558. expart2.Transparency = 0.5
  3559. expart2.Anchored = true
  3560. expart2.Material = "Neon"
  3561. expart2.BrickColor = par.BrickColor
  3562. expart2.CFrame = par.CFrame
  3563. expart.CanCollide = false
  3564. expart2.CanCollide = false
  3565. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  3566. local value = 1*rad/6.5
  3567. for i = 0, 75 do
  3568. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  3569. expart.CFrame = expart.CFrame
  3570. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  3571. expart2.CFrame = expart.CFrame
  3572. value = value - 0.035*rad/5
  3573. if value < 0 then
  3574. value = 0
  3575. expart.Transparency = expart.Transparency + 0.05
  3576. expart2.Transparency = expart2.Transparency + 0.05
  3577. end
  3578. swait()
  3579. end
  3580. game:GetService("Debris"):AddItem(expart, 1)
  3581. game:GetService("Debris"):AddItem(expart2, 1)
  3582. end
  3583.  
  3584. function AreaDanger(rad,par,mindam,maxdam)
  3585. local expart = Instance.new("Part",char)
  3586. local partMesh = Instance.new("SpecialMesh",expart)
  3587. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  3588. partMesh.MeshType = "Sphere"
  3589. partMesh.Scale = vt(rad,rad,rad)
  3590. expart.Size = vt(1,1,1)
  3591. expart.Transparency = 0.5
  3592. expart.Anchored = true
  3593. expart.Material = "Neon"
  3594. expart.BrickColor = par.BrickColor
  3595. expart.CFrame = par.CFrame
  3596. local value = 1*rad/5
  3597. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  3598. for i = 0, 14 do
  3599. wait()
  3600. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  3601. expart.CFrame = expart.CFrame
  3602. value = value - 0.035*rad
  3603. if value < 0 then
  3604. value = 0
  3605. end
  3606. end
  3607. wait(0.25)
  3608. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  3609. wait(0.5)
  3610. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  3611. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  3612. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  3613. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  3614. for i = 0, 14 do
  3615. wait()
  3616. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  3617. expart.CFrame = expart.CFrame
  3618. value = value - 0.035*rad/2
  3619. end
  3620. expart.Transparency = 1
  3621. game:GetService("Debris"):AddItem(expart, 5)
  3622. end
  3623.  
  3624. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  3625. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  3626. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  3627. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  3628. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  3629. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  3630. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  3631. for i = 0, 24 do
  3632. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  3633. end
  3634. for i = 0, 24 do
  3635. local expart = Instance.new("Part",char)
  3636. expart.Transparency = 1
  3637. expart.Anchored = true
  3638. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  3639. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  3640. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  3641. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  3642. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  3643. for i = 0, 9 do
  3644. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  3645. end
  3646. game:GetService("Debris"):AddItem(expart, 2)
  3647. wait(0.1)
  3648. end
  3649. end
  3650. ----
  3651. function bullit()
  3652. attack = true
  3653. for i = 0,1,0.1 do
  3654. swait()
  3655. MagicBlock(origcolor,sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  3656. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.3)
  3657. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.3)
  3658. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3)
  3659. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.3)
  3660. end
  3661. CFuncs["Sound"].Create("rbxassetid://558640653", sorb, 1.5, 1)
  3662. local a = Instance.new("Part",Character)
  3663. a.Name = "Direction"
  3664. a.Anchored = true
  3665. a.BrickColor = bc("Bright red")
  3666. a.Material = "Neon"
  3667. a.Transparency = 1
  3668. a.CanCollide = false
  3669. local ray = Ray.new(
  3670. sorb.CFrame.p, -- origin
  3671. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3672. )
  3673. local ignore = Character
  3674. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3675. a.BottomSurface = 10
  3676. a.TopSurface = 10
  3677. local distance = (root.CFrame.p - position).magnitude
  3678. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3679. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3680. local lb = Instance.new("Part")
  3681. lb.Parent = char
  3682. lb.BrickColor = origcolor
  3683. lb.CanCollide = false
  3684. lb.Material = "Neon"
  3685. lb.Anchored = true
  3686. lb.TopSurface = 0
  3687. lb.BottomSurface = 0
  3688. lb.Transparency = 0
  3689. lb.Size = vt(0.5,0.5,0.5)
  3690. lb.CFrame = a.CFrame
  3691. lb.Anchored = false
  3692. local thingery = Instance.new("SpecialMesh",lb)
  3693. thingery.MeshType = "Sphere"
  3694. thingery.Scale = vt(10,10,10)
  3695. game:GetService("Debris"):AddItem(lb, 10)
  3696. local bv = Instance.new("BodyVelocity")
  3697. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3698. bv.velocity = a.CFrame.lookVector*150
  3699. bv.Parent = lb
  3700. local hitted = false
  3701. coroutine.resume(coroutine.create(function()
  3702. while wait() do
  3703. if hitted == false or lb.Parent ~= nil then
  3704. MagicShockTrailAlt(lb.BrickColor,lb.CFrame + lb.CFrame.lookVector*-1,5,5,12.5,-0.25,-0.25,0.05,math.random(1,2))
  3705. end
  3706. if hitted == true or lb.Parent == nil then
  3707. break
  3708. end
  3709. end
  3710. end))
  3711. game:GetService("Debris"):AddItem(a, 0.1)
  3712. wait(0.01)
  3713. lb.Touched:connect(function(hit)
  3714. if hitted == false then
  3715. hitted = true
  3716. lb.Anchored = true
  3717. lb.Transparency = 1
  3718. Explode(7.5,lb,1,1,10,15)
  3719. end
  3720. end)
  3721. for i = 0,2,0.1 do
  3722. swait()
  3723. MagicBlock(origcolor,sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  3724. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  3725. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  3726. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  3727. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  3728. end
  3729. attack = false
  3730. end
  3731.  
  3732. function snipe()
  3733. attack = true
  3734. for i = 0,2,0.1 do
  3735. swait()
  3736. MagicBlock(origcolor,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  3737. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  3738. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  3739. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3740. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  3741. end
  3742. CFuncs["Sound"].Create("rbxassetid://171137312", sorb, 2.5, 1)
  3743. local a = Instance.new("Part",Character)
  3744. a.Name = "Direction"
  3745. a.Anchored = true
  3746. a.BrickColor = bc("Bright red")
  3747. a.Material = "Neon"
  3748. a.Transparency = 1
  3749. a.CanCollide = false
  3750. local ray = Ray.new(
  3751. sorb.CFrame.p, -- origin
  3752. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3753. )
  3754. local ignore = Character
  3755. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3756. a.BottomSurface = 10
  3757. a.TopSurface = 10
  3758. local distance = (root.CFrame.p - position).magnitude
  3759. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3760. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3761. local lb = Instance.new("Part")
  3762. lb.Parent = char
  3763. lb.BrickColor = origcolor
  3764. lb.CanCollide = false
  3765. lb.Material = "Neon"
  3766. lb.Anchored = true
  3767. lb.TopSurface = 0
  3768. lb.BottomSurface = 0
  3769. lb.Transparency = 1
  3770. lb.Size = vt(0.5,0.5,0.5)
  3771. lb.CFrame = a.CFrame
  3772. lb.Anchored = false
  3773. local thingery = Instance.new("SpecialMesh",lb)
  3774. thingery.MeshType = "Sphere"
  3775. thingery.Scale = vt(2.5,2.5,2.5)
  3776. game:GetService("Debris"):AddItem(lb, 3)
  3777. local bv = Instance.new("BodyVelocity")
  3778. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3779. bv.velocity = a.CFrame.lookVector*250*1.5
  3780. bv.Parent = lb
  3781. local hitted = false
  3782. game:GetService("Debris"):AddItem(a, 0.1)
  3783. coroutine.resume(coroutine.create(function()
  3784. while wait() do
  3785. if hitted == false or lb.Parent ~= nil then
  3786. MagicShockTrailAlt(lb.BrickColor,lb.CFrame + lb.CFrame.lookVector*-1,2.5,2.5,22.5*1.5,-0.125,-0.125,0.075,math.random(1,2))
  3787. end
  3788. if hitted == true or lb.Parent == nil then
  3789. break
  3790. end
  3791. end
  3792. end))
  3793. wait(0.01)
  3794. lb.Touched:connect(function(hit)
  3795. if hitted == false then
  3796. hitted = true
  3797. lb.Anchored = true
  3798. lb.Transparency = 1
  3799. ExplodeShort(3.5,lb,1,2.5,15,42)
  3800. end
  3801. end)
  3802. for i = 0,1,0.5 do
  3803. swait()
  3804. MagicBlock(origcolor,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  3805. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5)
  3806. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  3807. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  3808. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.5)
  3809. end
  3810. attack = false
  3811. end
  3812.  
  3813. function crystalinestring()
  3814. attack = true
  3815. for i = 0,2,0.1 do
  3816. swait()
  3817. MagicBlock(origcolor,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  3818. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  3819. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  3820. RW.C0 = clerp(RW.C0, CFrame.new(1.05, 0.5,- 0.5) * angles(math.rad(0), math.rad(0), math.rad(-120)), 0.3)
  3821. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  3822. end
  3823. CFuncs["Sound"].Create("rbxassetid://240429289", sorb, 2.5, 0.85)
  3824. local a = Instance.new("Part",Character)
  3825. a.Name = "Direction"
  3826. a.Anchored = true
  3827. a.BrickColor = bc("Bright red")
  3828. a.Material = "Neon"
  3829. a.Transparency = 1
  3830. a.CanCollide = false
  3831. local ray = Ray.new(
  3832. sorb.CFrame.p, -- origin
  3833. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3834. )
  3835. local ignore = Character
  3836. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3837. a.BottomSurface = 10
  3838. a.TopSurface = 10
  3839. local distance = (root.CFrame.p - position).magnitude
  3840. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3841. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3842. local lb = Instance.new("Part")
  3843. lb.Parent = char
  3844. lb.BrickColor = origcolor
  3845. lb.CanCollide = false
  3846. lb.Material = "Neon"
  3847. lb.Anchored = true
  3848. lb.TopSurface = 0
  3849. lb.BottomSurface = 0
  3850. lb.Transparency = 0
  3851. lb.Size = vt(0.5,0.5,0.5)
  3852. lb.CFrame = a.CFrame
  3853. lb.Anchored = false
  3854. local thingery = Instance.new("SpecialMesh",lb)
  3855. thingery.MeshType = "FileMesh"
  3856. thingery.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  3857. thingery.Scale = vt(2,2,5)
  3858. game:GetService("Debris"):AddItem(lb, 3)
  3859. local bv = Instance.new("BodyVelocity")
  3860. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3861. bv.velocity = a.CFrame.lookVector*250/2.5
  3862. bv.Parent = lb
  3863. local hitted = false
  3864. game:GetService("Debris"):AddItem(a, 0.1)
  3865. coroutine.resume(coroutine.create(function()
  3866. while wait() do
  3867. if hitted == false or lb.Parent ~= nil then
  3868. MagicShockTrailAlt(lb.BrickColor,lb.CFrame + lb.CFrame.lookVector*-1,2.5,2.5,22.5/2.5,0.5,0.5,0.05,math.random(1,2))
  3869. end
  3870. if hitted == true or lb.Parent == nil then
  3871. break
  3872. end
  3873. end
  3874. end))
  3875. wait(0.01)
  3876. lb.Touched:connect(function(hit)
  3877. if hitted == false then
  3878. hitted = true
  3879. lb.Anchored = true
  3880. lb.Transparency = 1
  3881. Swarmsplosions(-25,25,lb,10,15)
  3882. end
  3883. end)
  3884. for i = 0,1,0.1 do
  3885. swait()
  3886. MagicBlock(origcolor,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  3887. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.3)
  3888. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  3889. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.3)
  3890. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  3891. end
  3892. attack = false
  3893. end
  3894.  
  3895. function areabul()
  3896. attack = true
  3897. for i = 0,2,0.1 do
  3898. swait()
  3899. MagicBlock(origcolor,sorb.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  3900. MagicBlock(origcolor,sorb2.CFrame,1,1,1,0.05,0.05,0.05,0.05)
  3901. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),0.3)
  3902. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-15)),.3)
  3903. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0.25) * angles(math.rad(0), math.rad(110), math.rad(70)), 0.3)
  3904. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(0), math.rad(40), math.rad(80)), 0.3)
  3905. end
  3906. for i = 0,2,0.1 do
  3907. swait()
  3908. MagicBlock(origcolor,sorb.CFrame,2,2,2,0.05,0.05,0.05,0.05)
  3909. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  3910. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
  3911. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3912. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  3913. end
  3914. CFuncs["Sound"].Create("rbxassetid://240429289", sorb, 2.5, 0.85)
  3915. local a = Instance.new("Part",Character)
  3916. a.Name = "Direction"
  3917. a.Anchored = true
  3918. a.BrickColor = bc("Bright red")
  3919. a.Material = "Neon"
  3920. a.Transparency = 1
  3921. a.CanCollide = false
  3922. local ray = Ray.new(
  3923. sorb.CFrame.p, -- origin
  3924. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3925. )
  3926. local ignore = Character
  3927. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3928. a.BottomSurface = 10
  3929. a.TopSurface = 10
  3930. local distance = (root.CFrame.p - position).magnitude
  3931. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3932. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3933. local lb = Instance.new("Part")
  3934. lb.Parent = char
  3935. lb.BrickColor = origcolor
  3936. lb.CanCollide = false
  3937. lb.Material = "Neon"
  3938. lb.Anchored = true
  3939. lb.TopSurface = 0
  3940. lb.BottomSurface = 0
  3941. lb.Transparency = 1
  3942. lb.Size = vt(0.5,0.5,0.5)
  3943. lb.CFrame = a.CFrame
  3944. lb.Anchored = false
  3945. local thingery = Instance.new("SpecialMesh",lb)
  3946. thingery.MeshType = "Sphere"
  3947. thingery.Scale = vt(2.5,2.5,2.5)
  3948. game:GetService("Debris"):AddItem(lb, 3)
  3949. local bv = Instance.new("BodyVelocity")
  3950. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3951. bv.velocity = a.CFrame.lookVector*250/2
  3952. bv.Parent = lb
  3953. local hitted = false
  3954. MagicShockTrailAlt(origcolor,lb.CFrame,1,1,0.1,1,1,0.075,math.random(1,2))
  3955. game:GetService("Debris"):AddItem(a, 0.1)
  3956. coroutine.resume(coroutine.create(function()
  3957. while wait() do
  3958. if hitted == false or lb.Parent ~= nil then
  3959. MagicShockTrailAlt(lb.BrickColor,lb.CFrame + lb.CFrame.lookVector*-1,2.5*1.,2.5*1.5,22.5/2,0,0,0.075,math.random(1,2))
  3960. end
  3961. if hitted == true or lb.Parent == nil then
  3962. break
  3963. end
  3964. end
  3965. end))
  3966. wait(0.01)
  3967. lb.Touched:connect(function(hit)
  3968. if hitted == false then
  3969. hitted = true
  3970. lb.Anchored = true
  3971. lb.Transparency = 1
  3972. AreaDanger(25,lb,12,18)
  3973. end
  3974. end)
  3975. for i = 0,2,0.1 do
  3976. swait()
  3977. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  3978. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  3979. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.3)
  3980. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  3981. end
  3982. attack = false
  3983. end
  3984.  
  3985. local transforming = false
  3986. local transformed = false
  3987. function tran()
  3988. hum.WalkSpeed = 0
  3989. hum.JumpPower = 0
  3990. attack = true
  3991. transforming = true
  3992. transformed = true
  3993. hum.MaxHealth = math.huge
  3994. CFuncs["Sound"].Create("rbxassetid://588718963", root, 1, 1)
  3995. for i = 0,5,0.1 do
  3996. swait()
  3997. MagicShockTrailAlt(origcolor,root.CFrame*CFrame.new(0,5,0)*CFrame.Angles(math.rad(90),0,0),1,1,0.1,1,1,0.05,math.random(1,2))
  3998. 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(-10)),.1)
  3999. 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(-10)),.1)
  4000. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.1)
  4001. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(-80)),.1)
  4002. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(190)), 0.1)
  4003. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.1)
  4004. end
  4005. CFuncs["Sound"].Create("rbxassetid://231917784", root, 1,0.5)
  4006. CFuncs["Sound"].Create("rbxassetid://588737825", root, 0.25, 0.25)
  4007. CFuncs["Sound"].Create("rbxassetid://588737825", root, 0.5, 2)
  4008. CFuncs["Sound"].Create("rbxassetid://233856106", root, 1, 1)
  4009. MagicBlock(origcolor,root.CFrame*CFrame.new(0,5,0),2,2,2,1,1,1,0.1)
  4010. for i = 0,10,0.1 do
  4011. swait()
  4012. MagicBlock(origcolor,sorb.CFrame,2,2,2,0.05,0.05,0.05,0.05)
  4013. 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(-10)),.2)
  4014. 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(-10)),.2)
  4015. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),0.2)
  4016. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.2)
  4017. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.25) * angles(math.rad(0), math.rad(110), math.rad(110)), 0.2)
  4018. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.2)
  4019. end
  4020. for i = 0,5,0.1 do
  4021. swait()
  4022. MagicBlock(origcolor,sorb.CFrame,2,2,2,0.05,0.05,0.05,0.05)
  4023. 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(-10)),.2)
  4024. 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(-10)),.2)
  4025. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.2)
  4026. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-30)),.2)
  4027. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(170)), 0.2)
  4028. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.2)
  4029. end
  4030. MagicBlock(origcolor,sorb.CFrame,2,2,2,5,5,5,0.05)
  4031. CFuncs["Sound"].Create("rbxassetid://231917784", root, 1,0.5)
  4032. CFuncs["Sound"].Create("rbxassetid://588737825", root, 0.5, 2)
  4033. CFuncs["Sound"].Create("rbxassetid://233856106", root, 1, 1)
  4034. for i = 0,2.5,0.1 do
  4035. swait()
  4036. MagicShockTrailAlt2(origcolor,root.CFrame*CFrame.new(math.random(-25,25),-3,math.random(-25,25))*CFrame.Angles(math.rad(90),0,0),1,1,5,-0.01,-0.01,10,0.05,math.random(1,2))
  4037. RH.C0=clerp(RH.C0,cf(1,-0.25, -0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  4038. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  4039. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  4040. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-0)),.3)
  4041. RW.C0 = clerp(RW.C0, CFrame.new(1.05, 0.5, -0.25) * angles(math.rad(0), math.rad(-50), math.rad(-120)), 0.3)
  4042. LW.C0 = clerp(LW.C0, CFrame.new(-1.05, 0.5, -0.25) * angles(math.rad(0), math.rad(50), math.rad(120)), 0.3)
  4043. end
  4044. MagicBlock(origcolor,tors.CFrame,2,2,2,5,5,5,0.05)
  4045. CFuncs["Sound"].Create("rbxassetid://231917784", root, 1,0.75)
  4046. CFuncs["Sound"].Create("rbxassetid://588737825", root, 1.5, 0.25)
  4047. CFuncs["Sound"].Create("rbxassetid://588737825", root, 1, 0.225)
  4048. local sphscale = 1
  4049. for i = 0,25,0.1 do
  4050. swait()
  4051. MagicShockTrailAlt2(origcolor,root.CFrame*CFrame.new(math.random(-25,25),-3,math.random(-25,25))*CFrame.Angles(math.rad(90),0,0),1,1,5,-0.01,-0.01,10,0.05,math.random(1,2))
  4052. sphscale = sphscale + 0.05
  4053. MagicShockTrailAlt(origcolor,root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(90),0,0),1,1,0.1,1*sphscale/5,1*sphscale/5,0.025,math.random(1,2))
  4054. MagicBlock(origcolor,tors.CFrame,sphscale,sphscale,sphscale,0.05,0.05,0.05,0.05)
  4055. RH.C0=clerp(RH.C0,cf(1,-1, 0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(-30)),.05)
  4056. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(20)),.05)
  4057. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,2)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.05)
  4058. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(-0)),.05)
  4059. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(60)), 0.05)
  4060. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-60)), 0.05)
  4061. end
  4062. CFuncs["Sound"].Create("rbxassetid://588737825", root, 3, 0.25)
  4063. MagicBlock(origcolor,sorb.CFrame,sphscale,sphscale,sphscale,5,5,5,0.1)
  4064. for z = 0, 9 do
  4065. MagniDamageWithEffect(root, 25, 3, 6, 0, "Normal")
  4066. CFuncs["Sound"].Create("rbxassetid://231917784", root, 2.5,0.75)
  4067. CFuncs["Sound"].Create("rbxassetid://240429289", root, 5, 0.2)
  4068. MagicBlock(origcolor,tors.CFrame,sphscale,sphscale,sphscale,5,5,5,0.1)
  4069. for i = 0,5,0.1 do
  4070. swait()
  4071. MagicShockTrailAlt2(origcolor,root.CFrame*CFrame.new(math.random(-25,25),-3,math.random(-25,25))*CFrame.Angles(math.rad(90),0,0),1,1,5,-0.01,-0.01,10,0.05,math.random(1,2))
  4072. MagicBlock(origcolor,tors.CFrame,sphscale,sphscale,sphscale,0.05,0.05,0.05,0.05)
  4073. MagicShockTrailAlt(origcolor,root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(90),0,0),1,1,0.1,1*sphscale/5,1*sphscale/5,0.025,math.random(1,2))
  4074. RH.C0=clerp(RH.C0,cf(1,-0.25, -0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  4075. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  4076. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,2)* angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  4077. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-0)),.3)
  4078. RW.C0 = clerp(RW.C0, CFrame.new(1.05, 0.5, -0.25) * angles(math.rad(0), math.rad(-50), math.rad(-120)), 0.3)
  4079. LW.C0 = clerp(LW.C0, CFrame.new(-1.05, 0.5, -0.25) * angles(math.rad(0), math.rad(50), math.rad(120)), 0.3)
  4080. end
  4081. end
  4082. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 0.7)
  4083. for i = 0,20,0.1 do
  4084. swait()
  4085. MagicShockTrailAlt2(origcolor,root.CFrame*CFrame.new(math.random(-25,25),-3,math.random(-25,25))*CFrame.Angles(math.rad(90),0,0),1,1,5,-0.01,-0.01,10,0.05,math.random(1,2))
  4086. MagicShockTrailAlt2(origcolor,tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,-0.01,-0.01,5,0.025,math.random(1,2))
  4087. MagicBlock(origcolor,tors.CFrame,sphscale,sphscale,sphscale,0.05,0.05,0.05,0.05)
  4088. MagicShockTrailAlt(origcolor,root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(90),0,0),1,1,0.1,1*sphscale/5,1*sphscale/5,0.025,math.random(1,2))
  4089. RH.C0=clerp(RH.C0,cf(1,-0.25, -0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  4090. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  4091. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,2)* angles(math.rad(20),math.rad(0),math.rad(0)),0.3)
  4092. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-0)),.3)
  4093. RW.C0 = clerp(RW.C0, CFrame.new(1.05, 0.5, -0.25) * angles(math.rad(0), math.rad(-50), math.rad(-120)), 0.3)
  4094. LW.C0 = clerp(LW.C0, CFrame.new(-1.05, 0.5, -0.25) * angles(math.rad(0), math.rad(50), math.rad(120)), 0.3)
  4095. end
  4096. ---- Change?
  4097. -- [yes] [no] [maybe]
  4098. -- if you want it then ok:
  4099.  
  4100. ---- okay then
  4101. -- ill be leaving this around
  4102. MagicBlock(origcolor,tors.CFrame,sphscale,sphscale,sphscale,0.5,0.5,0.5,0.005)
  4103. MagicBlock(origcolor,tors.CFrame,sphscale,sphscale,sphscale,0.5,0.5,0.5,0.005)
  4104. CFuncs["Sound"].Create("rbxassetid://588737825", root, 2.5, 0.5)
  4105. CFuncs["Sound"].Create("rbxassetid://231917784", root, 5,0.5)
  4106. CFuncs["Sound"].Create("rbxassetid://231917744", root, 5,0.5)
  4107. CFuncs["Sound"].Create("rbxassetid://233856106", root, 5, 0.5)
  4108. MagniDamageWithEffect(root, 150, 35, 49, 0, "Normal")
  4109. for i = 0, 24 do
  4110. MagicShockTrailAlt2(origcolor,tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,5,-0.05,-0.05,25,0.005,math.random(1,2))
  4111. end
  4112. for i = 0,15,0.1 do
  4113. swait()
  4114. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-30)),.3)
  4115. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(20)),.3)
  4116. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,2.5)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.3)
  4117. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(-0)),.3)
  4118. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3)
  4119. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  4120. end
  4121. hum.WalkSpeed = 16
  4122. hum.JumpPower = 50
  4123. attack = false
  4124. transforming = false
  4125. hum.MaxHealth = 5000
  4126. end
  4127.  
  4128.  
  4129. mouse.KeyDown:connect(function(k)
  4130. if k == "z" and attack == false then
  4131. bullit()
  4132. end
  4133. if k == "x" and attack == false then
  4134. snipe()
  4135. end
  4136. if k == "c" and attack == false then
  4137. areabul()
  4138. end
  4139. if k == "v" and attack == false then
  4140. crystalinestring()
  4141. end
  4142. if k == "p" and attack == false and transformed == false and plr.Name == "IllumunatiLoverTDM" then
  4143. tran()
  4144. end
  4145. end)
  4146. Humanoid.Animator.Parent = nil
  4147. idleanim=.4
  4148. while true do
  4149. swait()
  4150. if transformed == true then
  4151. if transforming == false then
  4152. MagicShockTrailAlt2(origcolor,root.CFrame*CFrame.new(math.random(-5,5),-3,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),0.5,0.5,0,-0.01,-0.01,5,0.1,math.random(1,2))
  4153. end
  4154. end
  4155. sine = sine + change
  4156. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4157. local velderp=RootPart.Velocity.y
  4158. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4159. if equipped==true or equipped==false then
  4160. if attack==false then
  4161. idle=idle+1
  4162. else
  4163. idle=0
  4164. end
  4165. if idle>=500 then
  4166. if attack==false then
  4167. --Sheath()
  4168. end
  4169. end
  4170. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4171. Anim="Jump"
  4172. if attack==false then
  4173. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  4174. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4175. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4176. 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)
  4177. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4178. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  4179. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4180. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  4181. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  4182. end
  4183. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4184. Anim="Fall"
  4185. if attack==false then
  4186. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  4187. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4188. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  4189. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  4190. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4191. 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)
  4192. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4193. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  4194. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  4195. end
  4196. elseif torvel<1 and hitfloor~=nil then
  4197. Anim="Idle"
  4198. if transforming == false then
  4199. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.3)
  4200. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  4201. end
  4202. if attack==false then
  4203. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  4204. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-20)),.3)
  4205. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 25),-0.65)*angles(math.rad(30),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 25))),.3)
  4206. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 25),-0.65)*angles(math.rad(40),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 25))),.3)
  4207. end
  4208. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  4209. Anim="Walk"
  4210. if transforming == false then
  4211. 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)
  4212. 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)
  4213. end
  4214. if attack==false then
  4215. 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)
  4216. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4217. 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)
  4218. 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)
  4219. end
  4220. elseif torvel>=22 and hitfloor~=nil then
  4221. Anim="Run"
  4222. if transforming == false then
  4223. 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)
  4224. 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)
  4225. end
  4226. if attack==false then
  4227. 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)
  4228. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4229. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  4230. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  4231. end
  4232. end
  4233. end
  4234. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement