Advertisement
JRKPastesBins

Untitled

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