JRKPastesBins

Untitled

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