Advertisement
ScriptBuilderSHEHAB

demon script

Jul 26th, 2016
39,661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 77.67 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. p = game.Players.LocalPlayer
  3. char = p.Character
  4. it = Instance.new
  5. tp = true
  6. shoot = true
  7. hum = char.Humanoid
  8. Character=Player.Character
  9. PlayerGui=Player.PlayerGui
  10. Backpack=Player.Backpack
  11. Torso=Character.Torso
  12. Head=Character.Head
  13. Humanoid=Character.Humanoid
  14. m=Instance.new('Model',Character)
  15. LeftArm=Character["Left Arm"]
  16. LeftLeg=Character["Left Leg"]
  17. RightArm=Character["Right Arm"]
  18. RightLeg=Character["Right Leg"]
  19. LS=Torso["Left Shoulder"]
  20. LH=Torso["Left Hip"]
  21. RS=Torso["Right Shoulder"]
  22. RH=Torso["Right Hip"]
  23. Face = Head.face
  24. Neck=Torso.Neck
  25. it=Instance.new
  26. attacktype=1
  27. vt=Vector3.new
  28. cf=CFrame.new
  29. euler=CFrame.fromEulerAnglesXYZ
  30. angles=CFrame.Angles
  31. cloaked=false
  32. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  33. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  34. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  35. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  36. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  37. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  38. RootPart=Character.HumanoidRootPart
  39. RootJoint=RootPart.RootJoint
  40. RootCF=euler(-1.57,0,3.14)
  41. attack = false
  42. attackdebounce = false
  43. deb=false
  44. equipped=true
  45. hand=false
  46. MMouse=nil
  47. combo=0
  48. mana=0
  49. trispeed=.2
  50. attackmode='none'
  51. local idle=0
  52. local Anim="Idle"
  53. local Effects={}
  54. local gun=false
  55. local shoot=false
  56. player=nil
  57. mana=0
  58. local CurrentMode = "Unsheathed"
  59. plr = game.Players.MMOPlayerz101
  60. ws = game.Workspace.MMOPlayerz101
  61. Mouse = Player:GetMouse()
  62.  
  63. Bp = game.Players.LocalPlayer.Backpack
  64. jun = Bp.Parent
  65. local o = 0
  66.  
  67.  
  68. music = it("Sound", Character)
  69. music.SoundId = "rbxassetid://170393612"
  70. music.Volume = 20
  71. music.Looped = true
  72. wait()
  73. music:Play()
  74.  
  75. Character:WaitForChild("Humanoid").Died:connect(function()
  76. music:Stop()
  77. end)
  78. if Humanoid.Health ~= 100 then
  79. music:Stop()
  80. breath:Stop()
  81. end
  82.  
  83.  
  84. CV="Crimson"
  85.  
  86. local txt = Instance.new("BillboardGui", char)
  87. txt.Adornee = char .Head
  88. txt.Name = "_status"
  89. txt.Size = UDim2.new(2, 0, 1.2, 0)
  90. txt.StudsOffset = Vector3.new(-2, 1, 0)
  91. local text = Instance.new("TextLabel", txt)
  92. text.Size = UDim2.new(3, 0, 0.5, 0)
  93. text.FontSize = "Size8"
  94. text.TextScaled = true
  95. text.TextTransparency = 0
  96. text.BackgroundTransparency = 1
  97. text.TextTransparency = 0
  98. text.TextStrokeTransparency = 0
  99. text.Font = "Arial"
  100. text.TextStrokeColor3 = Color3.new(0,0,0)
  101.  
  102. v=Instance.new("Part")
  103. v.Name = "ColorBrick"
  104. v.Parent=p.Character
  105. v.FormFactor="Symmetric"
  106. v.Anchored=true
  107. v.CanCollide=false
  108. v.BottomSurface="Smooth"
  109. v.TopSurface="Smooth"
  110. v.Size=Vector3.new(10,5,3)
  111. v.Transparency=0.7
  112. v.CFrame=char.Torso.CFrame
  113. v.BrickColor=BrickColor.new(CV)
  114. v.Transparency=1
  115. text.TextColor3 = v.BrickColor.Color
  116. v.Shape="Block"
  117. text.Text = "Shehab the Demon God of Hell"
  118. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"This demon sword will finish you off.", "Red")
  119. wait(0.6)
  120. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"You have underestimated the Demon God.", "Red")
  121. wait(0.6)
  122. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"You will die right here, right now.", "Red")
  123. wait(0.6)
  124. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Dont think you can beat me, idiot.", "Red")
  125. wait(0.6)
  126. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"I am Shehab, THE DEMON GOD!!! DIE!!!", "Red")
  127. wait(0.6)
  128.  
  129.  
  130. BlastRing = Instance.new("Part")
  131. BlastRing.Parent = game.Lighting
  132. BlastRing.Name = "BlastRing"
  133. BlastRing.formFactor = "Symmetric"
  134. BlastRing.Size = Vector3.new(0, 0, 0)
  135. BlastRing.CanCollide = false
  136. BlastRing.TopSurface = "Smooth"
  137. BlastRing.BottomSurface = "Smooth"
  138. BlastRing.BrickColor = BrickColor.new("Really red")
  139. BlastRing.Reflectance = 0
  140. BlastRing.Anchored = true
  141. Mesh2 = Instance.new("SpecialMesh")
  142. Mesh2.Parent = BlastRing
  143. Mesh2.MeshType = "FileMesh"
  144. Mesh2.MeshId = "http://www.roblox.com/Asset/?id=9982590"
  145. Mesh2.Scale = Vector3.new(1, 1, 1)
  146.  
  147. ExsplosionRing = Instance.new("Part")
  148. ExsplosionRing.Parent = game.Lighting
  149. ExsplosionRing.Name = "Explosion Ring"
  150. ExsplosionRing.formFactor = "Symmetric"
  151. ExsplosionRing.Size = Vector3.new(0, 0, 0)
  152. ExsplosionRing.CanCollide = false
  153. ExsplosionRing.TopSurface = "Smooth"
  154. ExsplosionRing.BottomSurface = "Smooth"
  155. ExsplosionRing.BrickColor = BrickColor.new("Black")
  156. ExsplosionRing.Transparency = 0.3
  157. ExsplosionRing.Reflectance = 0
  158. ExsplosionRing.Anchored = true
  159. Mesh3 = Instance.new("SpecialMesh")
  160. Mesh3.Parent = ExsplosionRing
  161. Mesh3.MeshType = "FileMesh"
  162. Mesh3.MeshId = "http://www.roblox.com/Asset/?id=20329976"
  163. Mesh3.Scale = Vector3.new(1, 1, 1)
  164. Mesh3.Offset = Vector3.new(0,-2,0)
  165.  
  166.  
  167. jun.Character.Humanoid.WalkSpeed = 0
  168.  
  169. blastring2 = BlastRing:clone()
  170. blastring2.Parent = jun.Character
  171. blastring2.Position = jun.Character.Torso.Position
  172. blastring2.BrickColor = BrickColor.new("Really red")
  173. blastring2.Transparency = 0.5
  174. blastring2.Reflectance = 0
  175.  
  176. mk = Instance.new("Sound",blastring2)
  177. mk.Volume = 1
  178. mk.SoundId = "http://www.roblox.com/Asset?ID=211422742"
  179. mk:Play()
  180.  
  181. c = Instance.new("Sound",blastring2)
  182. c.Volume = 1
  183. c.SoundId = "http://www.roblox.com/Asset?ID=244578827"
  184. c:Play()
  185.  
  186. for i = 1, 50 do
  187. wait(0.03)
  188. blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(1.1, 1.1, 1.1)
  189. blastring2.Transparency = blastring2.Transparency + 0.01
  190. end
  191.  
  192. blastring3 = ExsplosionRing:clone()
  193. blastring3.Parent = jun.Character
  194. blastring3.Position = jun.Character.Torso.Position
  195. blastring3.BrickColor = BrickColor.new("Black")
  196. blastring3.Transparency = 0.3
  197. blastring3.Reflectance = 0
  198.  
  199. p = Instance.new("Sound",blastring3)
  200. p.Volume = 1
  201. p.SoundId = "http://www.roblox.com/Asset?ID=180120107"
  202.  
  203. for i = 1, 50 do
  204. wait(0.03)
  205. blastring3.Mesh.Scale = blastring3.Mesh.Scale + Vector3.new(3.1, 3.1, 3.1)
  206. blastring3.Transparency = blastring3.Transparency + 0.01
  207. end
  208. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"You are done for!", "Red")
  209. wait(0.6)
  210.  
  211.  
  212. c:Stop()
  213. wait(.5)
  214. mk:Stop()
  215. p:Play()
  216. blastring2:remove()
  217. blastring3:Destroy()
  218. jun.Character.Humanoid.WalkSpeed = 15
  219.  
  220. game.Workspace.Base.Material = "Marble"
  221. game.Workspace.Base.BrickColor = BrickColor.new("Really red")
  222.  
  223. char.Shirt:Remove()
  224. for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  225. for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
  226. wait()shirt = Instance.new("Shirt", char)
  227. shirt.Name = "Shirt"
  228. pants = Instance.new("Pants", char)
  229. pants.Name = "Pants"
  230.  
  231. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=246438816"
  232. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=267068334"
  233.  
  234. char.Head.Transparency = 1
  235. phat = Instance.new("Part", char.Head)
  236. phat.Name = "phat"
  237. phat.Size = Vector3.new(0.5,0.5,0.5)
  238. phat.CanCollide = false
  239. phat.Anchored = false
  240.  
  241. phatmesh = Instance.new("SpecialMesh", char.Head.phat)
  242. phatmesh.MeshId = "rbxassetid://21057410"
  243. phatmesh.TextureId = "rbxassetid://64546756"
  244.  
  245. mw1 = it("Weld", char["Head"])
  246. mw1.Part0 = char.Head.phat
  247. mw1.Part1 = Character["Head"]
  248. mw1.C0 = CFrame.new(0,0,0)*CFrame.new(0,0,0)
  249. mw1.C1 = CFrame.Angles(0, 0, 0)
  250.  
  251.  
  252. Character.Humanoid.NameDisplayDistance = 0
  253. Character.Humanoid.HealthDisplayDistance = 0
  254. Character.Head.BrickColor = BrickColor.new(255,0,0)
  255. Character.Head.Mesh.MeshId = "http://www.roblox.com/asset/?id=31101391"
  256. Character.Head.Mesh.VertexColor = Vector3.new(0.7,0.7,0.7)
  257. Character.Head.Material = "Neon"
  258. wait()
  259.  
  260.  
  261.  
  262. Player=game:GetService("Players").LocalPlayer
  263.  
  264. Character=Player.Character
  265. char.Humanoid.MaxHealth = math.huge
  266. PlayerGui=Player.PlayerGui
  267. Backpack=Player.Backpack
  268. Torso=Character.Torso
  269. Head=Character.Head
  270. Humanoid=Character.Humanoid
  271. LeftArm=Character["Left Arm"]
  272. LeftLeg=Character["Left Leg"]
  273. RightArm=Character["Right Arm"]
  274. RightLeg=Character["Right Leg"]
  275. cam=game.Workspace.CurrentCamera
  276. LS=Torso["Left Shoulder"]
  277. LH=Torso["Left Hip"]
  278. RS=Torso["Right Shoulder"]
  279. RH=Torso["Right Hip"]
  280. Face = Head.face
  281. Neck=Torso.Neck
  282. it=Instance.new
  283. attacktype=1
  284. vt=Vector3.new
  285. cf=CFrame.new
  286. euler=CFrame.fromEulerAnglesXYZ
  287. angles=CFrame.Angles
  288. cloaked=false
  289. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  290. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  291. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  292. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  293. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  294. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  295. RootPart=Character.HumanoidRootPart
  296. RootJoint=RootPart.RootJoint
  297. RootCF=euler(-1.57,0,3.14)
  298. attack = false
  299. bounce=false
  300. cooldown=false
  301. deeznuts=false
  302. attackdebounce = false
  303. deb=false
  304. equipped=true
  305. hand=false
  306. MMouse=nil
  307. combo=0
  308. mana=0
  309. trispeed=.2
  310. attackmode='none'
  311. local idle=0
  312. local Anim="Idle"
  313. local Effects={}
  314. local gun=false
  315. local shoot=false
  316. player=nil
  317. mana=0
  318. cam = workspace.CurrentCamera
  319. ZTarget = nil
  320. RocketTarget = nil
  321. local m = Instance.new("Model",Character)
  322. m.Name = "WeaponModel"
  323.  
  324. mouse=Player:GetMouse()
  325. --save shoulders
  326. RSH, LSH=nil, nil
  327. --welds
  328. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  329. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  330. LH=Torso["Left Hip"]
  331. RH=Torso["Right Hip"]
  332. TorsoColor=Torso.BrickColor
  333. function NoOutline(Part)
  334. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  335. end
  336. player=Player
  337. ch=Character
  338. RSH=ch.Torso["Right Shoulder"]
  339. LSH=ch.Torso["Left Shoulder"]
  340. --
  341. RSH.Parent=nil
  342. LSH.Parent=nil
  343. --
  344. RW.Name="Right Shoulder"
  345. RW.Part0=ch.Torso
  346. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  347. RW.C1=cf(0, 0.5, 0)
  348. RW.Part1=ch["Right Arm"]
  349. RW.Parent=ch.Torso
  350. --
  351. LW.Name="Left Shoulder"
  352. LW.Part0=ch.Torso
  353. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  354. LW.C1=cf(0, 0.5, 0)
  355. LW.Part1=ch["Left Arm"]
  356. LW.Parent=ch.Torso
  357.  
  358. function swait(num)
  359. if num==0 or num==nil then
  360. game:service'RunService'.Heartbeat:wait(0)
  361. else
  362. for i=0,num do
  363. game:service'RunService'.Heartbeat:wait(0)
  364. end
  365. end
  366. end
  367.  
  368. function nooutline(part)
  369. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  370. end
  371.  
  372. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  373. local fp=it("Part")
  374. fp.formFactor=formfactor
  375. fp.Parent=parent
  376. fp.Reflectance=reflectance
  377. fp.Transparency=transparency
  378. fp.CanCollide=false
  379. fp.Locked=true
  380. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  381. fp.Name=name
  382. fp.Size=size
  383. fp.Position=Character.Torso.Position
  384. nooutline(fp)
  385. fp.Material=material
  386. fp:BreakJoints()
  387. return fp
  388. end
  389.  
  390. function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  391. local fp = it("Part")
  392. fp.formFactor = formfactor
  393. fp.Parent = parent
  394. fp.Reflectance = reflectance
  395. fp.Transparency = transparency
  396. fp.CanCollide = false
  397. fp.Locked=true
  398. fp.BrickColor = brickcolor
  399. fp.Name = name
  400. fp.Size = size
  401. fp.Position = EffectPart.Position
  402. NoOutline(fp)
  403. fp.Material="Neon"
  404. fp:BreakJoints()
  405. return fp
  406. end
  407.  
  408. function wweld(parent,part0,part1,c0)
  409. local weld=it("Weld")
  410. weld.Parent=parent
  411. weld.Part0=part0
  412. weld.Part1=part1
  413. weld.C0=c0
  414. return weld
  415. end
  416.  
  417. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  418. local mesh=it(Mesh)
  419. mesh.Parent=part
  420. if Mesh=="SpecialMesh" then
  421. mesh.MeshType=meshtype
  422. mesh.MeshId=meshid
  423. end
  424. mesh.Offset=offset
  425. mesh.Scale=scale
  426. return mesh
  427. end
  428.  
  429. function decal(part,face,texture,transparency,shiny,specular,name)
  430. local d=it("Decal",part)
  431. d.Shiny=shiny
  432. d.Face=face
  433. d.Specular=specular
  434. d.Transparency=transparency
  435. d.Texture=texture
  436. d.Name=name
  437. return d
  438. end
  439.  
  440. function weld(parent,part0,part1,c0,c1)
  441. local weld=it("Weld")
  442. weld.Parent=parent
  443. weld.Part0=part0
  444. weld.Part1=part1
  445. weld.C0=c0
  446. weld.C1=c1
  447. return weld
  448. end
  449.  
  450.  
  451. local function CFrameFromTopBack(at, top, back)
  452. local right = top:Cross(back)
  453. return CFrame.new(at.x, at.y, at.z,
  454. right.x, top.x, back.x,
  455. right.y, top.y, back.y,
  456. right.z, top.z, back.z)
  457. end
  458.  
  459. function Triangle(a, b, c)
  460. local edg1 = (c-a):Dot((b-a).unit)
  461. local edg2 = (a-b):Dot((c-b).unit)
  462. local edg3 = (b-c):Dot((a-c).unit)
  463. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  464. a, b, c = a, b, c
  465. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  466. a, b, c = b, c, a
  467. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  468. a, b, c = c, a, b
  469. else
  470. assert(false, "unreachable")
  471. end
  472.  
  473. local len1 = (c-a):Dot((b-a).unit)
  474. local len2 = (b-a).magnitude - len1
  475. local width = (a + (b-a).unit*len1 - c).magnitude
  476.  
  477. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  478.  
  479. local list = {}
  480.  
  481. local TrailColor = ("Bright yelllow")
  482.  
  483. if len1 > 0.01 then
  484. local w1 = Instance.new('WedgePart', m)
  485. game:GetService("Debris"):AddItem(w1,5)
  486. w1.Material = "Neon"
  487. w1.FormFactor = 'Custom'
  488. w1.BrickColor = BrickColor.new(TrailColor)
  489. w1.Transparency = 0
  490. w1.Reflectance = 0
  491. w1.Material = "Neon"
  492. w1.CanCollide = false
  493. NoOutline(w1)
  494. local sz = Vector3.new(0.2, width, len1)
  495. w1.Size = sz
  496. local sp = Instance.new("SpecialMesh",w1)
  497. sp.MeshType = "Wedge"
  498. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  499. w1:BreakJoints()
  500. w1.Anchored = true
  501. w1.Parent = workspace
  502. w1.Transparency = 0.7
  503. table.insert(Effects,{w1,"Disappear",.01})
  504. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  505. table.insert(list,w1)
  506. end
  507.  
  508. if len2 > 0.01 then
  509. local w2 = Instance.new('WedgePart', m)
  510. game:GetService("Debris"):AddItem(w2,5)
  511. w2.Material = "Neon"
  512. w2.FormFactor = 'Custom'
  513. w2.BrickColor = BrickColor.new(TrailColor)
  514. w2.Transparency = 0
  515. w2.Reflectance = 0
  516. w2.Material = "Neon"
  517. w2.CanCollide = false
  518. NoOutline(w2)
  519. local sz = Vector3.new(0.2, width, len2)
  520. w2.Size = sz
  521. local sp = Instance.new("SpecialMesh",w2)
  522. sp.MeshType = "Wedge"
  523. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  524. w2:BreakJoints()
  525. w2.Anchored = true
  526. w2.Parent = workspace
  527. w2.Transparency = 0.7
  528. table.insert(Effects,{w2,"Disappear",.01})
  529. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  530. table.insert(list,w2)
  531. end
  532. return unpack(list)
  533. end
  534.  
  535.  
  536. so = function(id,par,vol,pit)
  537. coroutine.resume(coroutine.create(function()
  538. local sou = Instance.new("Sound",par or workspace)
  539. sou.Volume=vol
  540. sou.Pitch=pit or 1
  541. sou.SoundId=id
  542. swait()
  543. sou:play()
  544. game:GetService("Debris"):AddItem(sou,6)
  545. end))
  546. end
  547.  
  548. function clerp(a,b,t)
  549. local qa = {QuaternionFromCFrame(a)}
  550. local qb = {QuaternionFromCFrame(b)}
  551. local ax, ay, az = a.x, a.y, a.z
  552. local bx, by, bz = b.x, b.y, b.z
  553. local _t = 1-t
  554. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  555. end
  556.  
  557. function QuaternionFromCFrame(cf)
  558. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  559. local trace = m00 + m11 + m22
  560. if trace > 0 then
  561. local s = math.sqrt(1 + trace)
  562. local recip = 0.5/s
  563. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  564. else
  565. local i = 0
  566. if m11 > m00 then
  567. i = 1
  568. end
  569. if m22 > (i == 0 and m00 or m11) then
  570. i = 2
  571. end
  572. if i == 0 then
  573. local s = math.sqrt(m00-m11-m22+1)
  574. local recip = 0.5/s
  575. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  576. elseif i == 1 then
  577. local s = math.sqrt(m11-m22-m00+1)
  578. local recip = 0.5/s
  579. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  580. elseif i == 2 then
  581. local s = math.sqrt(m22-m00-m11+1)
  582. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  583. end
  584. end
  585. end
  586.  
  587. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  588. local xs, ys, zs = x + x, y + y, z + z
  589. local wx, wy, wz = w*xs, w*ys, w*zs
  590. local xx = x*xs
  591. local xy = x*ys
  592. local xz = x*zs
  593. local yy = y*ys
  594. local yz = y*zs
  595. local zz = z*zs
  596. 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))
  597. end
  598.  
  599. function QuaternionSlerp(a, b, t)
  600. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  601. local startInterp, finishInterp;
  602. if cosTheta >= 0.0001 then
  603. if (1 - cosTheta) > 0.0001 then
  604. local theta = math.acos(cosTheta)
  605. local invSinTheta = 1/math.sin(theta)
  606. startInterp = math.sin((1-t)*theta)*invSinTheta
  607. finishInterp = math.sin(t*theta)*invSinTheta
  608. else
  609. startInterp = 1-t
  610. finishInterp = t
  611. end
  612. else
  613. if (1+cosTheta) > 0.0001 then
  614. local theta = math.acos(-cosTheta)
  615. local invSinTheta = 1/math.sin(theta)
  616. startInterp = math.sin((t-1)*theta)*invSinTheta
  617. finishInterp = math.sin(t*theta)*invSinTheta
  618. else
  619. startInterp = t-1
  620. finishInterp = t
  621. end
  622. end
  623. 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
  624. end
  625.  
  626. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  627. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  628. end
  629.  
  630. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  631. if hit.Parent==nil then
  632. return
  633. end
  634. local h=hit.Parent:FindFirstChild("Humanoid")
  635. for _,v in pairs(hit.Parent:children()) do
  636. if v:IsA("Humanoid") then
  637. h=v
  638. end
  639. end
  640. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  641. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  642. end
  643. if hit.Parent.className=="Hat" then
  644. hit=hit.Parent.Parent:findFirstChild("Head")
  645. end
  646. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  647. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  648. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  649. return
  650. end]]
  651. -- hs(hit,1.2)
  652. local c=Instance.new("ObjectValue")
  653. c.Name="creator"
  654. c.Value=game:service("Players").LocalPlayer
  655. c.Parent=h
  656. game:GetService("Debris"):AddItem(c,.5)
  657. local Damage=math.random(minim,maxim)
  658. -- h:TakeDamage(Damage)
  659. local blocked=false
  660. local block=hit.Parent:findFirstChild("Block")
  661. if block~=nil then
  662. print(block.className)
  663. if block.className=="NumberValue" then
  664. if block.Value>0 then
  665. blocked=true
  666. if decreaseblock==nil then
  667. block.Value=block.Value-1
  668. end
  669. end
  670. end
  671. if block.className=="IntValue" then
  672. if block.Value>0 then
  673. blocked=true
  674. if decreaseblock~=nil then
  675. block.Value=block.Value-1
  676. end
  677. end
  678. end
  679. end
  680. if blocked==false then
  681. -- h:TakeDamage(Damage)
  682. h.Health=h.Health-Damage
  683. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  684. else
  685. h.Health=h.Health-(Damage/2)
  686. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright red").Color)
  687. end
  688. if Type=="Knockdown" then
  689. local hum=hit.Parent.Humanoid
  690. hum.PlatformStand=true
  691. coroutine.resume(coroutine.create(function(HHumanoid)
  692. swait(1)
  693. HHumanoid.PlatformStand=false
  694. end),hum)
  695. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  696. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  697. local bodvol=Instance.new("BodyVelocity")
  698. bodvol.velocity=angle*knockback
  699. bodvol.P=5000
  700. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  701. bodvol.Parent=hit
  702. local rl=Instance.new("BodyAngularVelocity")
  703. rl.P=3000
  704. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  705. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  706. rl.Parent=hit
  707. game:GetService("Debris"):AddItem(bodvol,.5)
  708. game:GetService("Debris"):AddItem(rl,.5)
  709. elseif Type=="Normal" then
  710. local vp=Instance.new("BodyVelocity")
  711. vp.P=500
  712. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  713. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  714. if KnockbackType==1 then
  715. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  716. elseif KnockbackType==2 then
  717. vp.velocity=Property.CFrame.lookVector*knockback
  718. end
  719. if knockback>0 then
  720. vp.Parent=hit.Parent.Torso
  721. end
  722. game:GetService("Debris"):AddItem(vp,.5)
  723. elseif Type=="Up" then
  724. local bodyVelocity=Instance.new("BodyVelocity")
  725. bodyVelocity.velocity=vt(0,60,0)
  726. bodyVelocity.P=5000
  727. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  728. bodyVelocity.Parent=hit
  729. game:GetService("Debris"):AddItem(bodyVelocity,1)
  730. local rl=Instance.new("BodyAngularVelocity")
  731. rl.P=3000
  732. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  733. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  734. rl.Parent=hit
  735. game:GetService("Debris"):AddItem(rl,.5)
  736. elseif Type=="Snare" then
  737. local bp=Instance.new("BodyPosition")
  738. bp.P=2000
  739. bp.D=100
  740. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  741. bp.position=hit.Parent.Torso.Position
  742. bp.Parent=hit.Parent.Torso
  743. game:GetService("Debris"):AddItem(bp,1)
  744. elseif Type=="Target" then
  745. local Targetting = false
  746. if Targetting==false then
  747. ZTarget=hit.Parent.Torso
  748. coroutine.resume(coroutine.create(function(Part)
  749. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  750. swait(5)
  751. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  752. end),ZTarget)
  753. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  754. local targetgui=Instance.new("BillboardGui")
  755. targetgui.Parent=ZTarget
  756. targetgui.Size=UDim2.new(10,100,10,100)
  757. local targ=Instance.new("ImageLabel")
  758. targ.Parent=targetgui
  759. targ.BackgroundTransparency=1
  760. targ.Image="rbxassetid://4834067"
  761. targ.Size=UDim2.new(1,0,1,0)
  762. cam.CameraType="Scriptable"
  763. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  764. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  765. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  766. Targetting=true
  767. RocketTarget=ZTarget
  768. for i=1,Property do
  769. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  770. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  771. swait()
  772. end
  773. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  774. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  775. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  776. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  777. end
  778. Targetting=false
  779. RocketTarget=nil
  780. targetgui.Parent=nil
  781. cam.CameraType="Custom"
  782. end
  783. end
  784. local debounce=Instance.new("BoolValue")
  785. debounce.Name="DebounceHit"
  786. debounce.Parent=hit.Parent
  787. debounce.Value=true
  788. game:GetService("Debris"):AddItem(debounce,Delay)
  789. c=Instance.new("ObjectValue")
  790. c.Name="creator"
  791. c.Value=Player
  792. c.Parent=h
  793. game:GetService("Debris"):AddItem(c,.5)
  794. end
  795. end
  796.  
  797.  
  798. function ShowDamage(Pos, Text, Time, Color)
  799. local Rate = (1 / 30)
  800. local Pos = (Pos or Vector3.new(0, 0, 0))
  801. local Text = (Text or "")
  802. local Time = (Time or 2)
  803. local Color = (Color or Color3.new(1, 0, 0))
  804. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  805. EffectPart.Anchored = true
  806. local BillboardGui = Instance.new("BillboardGui")
  807. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  808. BillboardGui.Adornee = EffectPart
  809. local TextLabel = Instance.new("TextLabel")
  810. TextLabel.BackgroundTransparency = 1
  811. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  812. TextLabel.Text = Text
  813. TextLabel.TextColor3 = Color
  814. TextLabel.TextScaled = true
  815. TextLabel.Font = Enum.Font.ArialBold
  816. TextLabel.Parent = BillboardGui
  817. BillboardGui.Parent = EffectPart
  818. game.Debris:AddItem(EffectPart, (Time + 0.1))
  819. EffectPart.Parent = game:GetService("Workspace")
  820. Delay(0, function()
  821. local Frames = (Time / Rate)
  822. for Frame = 1, Frames do
  823. wait(Rate)
  824. local Percent = (Frame / Frames)
  825. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  826. TextLabel.TextTransparency = Percent
  827. end
  828. if EffectPart and EffectPart.Parent then
  829. EffectPart:Destroy()
  830. end
  831. end)
  832. end
  833.  
  834. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003))
  835. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.995889783, -0.101109691, 0.0468789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
  836. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746))
  837. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571))
  838. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00982296467, -0.128642559, 5.57254982, -1.21753502e-007, -2.87620594e-010, 1, -1, -1.04306673e-006, -1.2175461e-007, 1.04306673e-006, -1, -2.87123214e-010))
  839. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  840. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657))
  841. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0100114346, 3.24283266, 2.64644623e-005, -2.98713599e-006, -1.63886575e-008, -1, -1.18017197e-005, -0.99999994, 1.64265153e-008, -0.99999994, 1.18017197e-005, 2.98713007e-006))
  842. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  843. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743))
  844. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00896048546, 3.24313331, -6.2584877e-006, -2.62832918e-006, -1.58840017e-008, -1, -1.16825104e-005, -0.99999994, 1.59122848e-008, -0.99999994, 1.16825104e-005, 2.62831986e-006))
  845. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  846. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723))
  847. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0080575943, -5.57459974, 0.127099097, -7.20826961e-007, -1.18548371e-009, 1, 6.25863322e-007, 1, 1.18891563e-009, -1, 6.25863322e-007, -7.20827984e-007))
  848. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  849. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715))
  850. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00858414173, -5.58866072, 0.142816901, -5.41048905e-007, -8.99582631e-010, 1, -5.96046448e-007, 0.99999994, 9.00953978e-010, -0.99999994, -5.96046448e-007, -5.41057148e-007))
  851. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  852. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057))
  853. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.011053443, -0.142930448, 5.58944941, 2.97432763e-007, 3.64387631e-010, 1, -1, 6.25863322e-007, 2.9743137e-007, -6.25863322e-007, -1, 3.63804986e-010))
  854. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  855. Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Bright red","SwordPart",Vector3.new(1, 1.20000005, 1))
  856. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.57627869e-007, -0.809324801, 1.96695328e-006, 6.20105922e-008, 2.27451835e-010, -1, 1.81795622e-006, 1, 2.27856845e-010, 1, -1.81795622e-006, 6.2011928e-008))
  857. mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298))
  858. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  859. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00226664543, 0.69951874, 1.00827909, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
  860. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  861. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  862. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487548, -0.00217807293, 3.74913216e-005, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
  863. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1))
  864. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  865. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487882, -0.00217807293, 4.00543213e-005, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
  866. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002))
  867. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601))
  868. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00595891476, -1.00750566, 1.00747085, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
  869. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  870. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  871. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00534570217, -1.00757694, -0.698815584, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
  872. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  873. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601))
  874. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000260472298, 0.6988675, -0.698937058, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
  875. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  876. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  877. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00927072763, -0.0121991634, 1.19311547, 0.999999881, -2.08614802e-006, 1.9306286e-007, -1.93059051e-007, -1.09411957e-007, 1, -2.08616257e-006, -0.999999881, -1.09408283e-007))
  878. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  879. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  880. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604586363, -0.0121991634, 1.02863288, 0.866026282, 0.499998033, 2.28958157e-007, -1.93872992e-007, -1.22099237e-007, 1, 0.499998033, -0.866026282, -8.79730777e-009))
  881. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  882. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  883. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.03790355, -0.0121991634, 0.588528812, 0.500001669, 0.866024196, 1.74744486e-007, -1.6279435e-007, -1.0777579e-007, 1, 0.866024196, -0.500001669, 8.71042545e-008))
  884. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  885. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003))
  886. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39311564, -0.0121991634, -0.00927072763, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  887. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  888. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003))
  889. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.02863288, -0.0121997595, -0.604586482, -0.499998093, 0.866026223, -6.44970513e-008, -1.45620604e-007, -9.60127267e-009, 1, 0.866026223, 0.499998093, 1.30918266e-007))
  890. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  891. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  892. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.588528991, -0.0121992826, -1.03790355, -0.866024137, 0.500001729, -9.11133142e-008, -1.16737233e-007, -1.99774206e-008, 1, 0.500001729, 0.866024137, 7.56750538e-008))
  893. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  894. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285))
  895. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00338602066, -0.736121356, -0.540583551, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
  896. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364))
  897. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285))
  898. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00803625584, -0.737174749, 0.736498654, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
  899. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408))
  900. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  901. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00594449043, 0.540397167, 0.737201214, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
  902. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408))
  903. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  904. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00681877136, 0.540436149, -0.541088939, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
  905. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364))
  906. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  907. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910848916, -0.00147974491, 0.000465214252, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
  908. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057))
  909. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright red","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  910. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910846829, -0.00147974491, 0.000467300415, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
  911. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268))
  912. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  913. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.98755074e-005, -0.86527884, -0.00526940823, 0.99999994, -3.33786011e-006, -1.61662047e-006, 3.33786011e-006, 0.99999994, -1.75251103e-009, 1.61662604e-006, 1.74897963e-009, 1))
  914. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746))
  915. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright red","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
  916. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0107657909, -3.95914412, 0.00325751305, 0.999999821, -0.000211339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
  917. EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright red","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  918. EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
  919. mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  920. EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Bright red","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  921. EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
  922.  
  923. DarkRiftF=function(par)
  924. while lol == true do
  925. wait()
  926. local PWN={}
  927. for _,v in pairs(game.Workspace:children()) do
  928. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  929. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  930. table.insert(PWN,v.Torso)
  931. end
  932. end
  933. end
  934. for _,t in pairs(PWN) do
  935. local targ=par.Position-t.Position
  936. local Mag=targ.magnitude
  937. if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
  938. if Mag<=30 then
  939. t.Parent.Humanoid:TakeDamage(.5)
  940. local rl=Instance.new("BodyAngularVelocity")
  941. rl.P=3000
  942. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  943. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  944. rl.Parent=t
  945. game:GetService("Debris"):AddItem(rl,.1)
  946. end
  947. if Mag<=20 then
  948. t.Parent.Humanoid:TakeDamage(.1)
  949. else
  950. local vl=Instance.new("BodyVelocity")
  951. vl.P=3000
  952. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  953. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  954. vl.Parent=t
  955. game:GetService("Debris"):AddItem(vl,.1)
  956. end
  957. end
  958. end
  959. wait(.08)
  960. end
  961. end
  962.  
  963. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  964. local msh1 = Instance.new("BlockMesh")
  965. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  966. local S=Instance.new("Part")
  967. S.Name="Effect"
  968. S.Material="Neon"
  969. S.formFactor=0
  970. S.Size=Vector3.new(x1,y1,z1)
  971. S.BrickColor=color
  972. S.Reflectance = 0
  973. S.TopSurface=0
  974. S.BottomSurface=0
  975. S.Transparency=0
  976. S.Anchored=false
  977. S.CanCollide=false
  978. S.CFrame=part.CFrame
  979. S.Parent=game.Workspace
  980. msh1.Parent = S
  981. local W=Instance.new("Weld")
  982. W.Parent=S
  983. W.Part0=S
  984. W.Part1=part
  985. W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  986. W.Parent=nil
  987. S.Anchored=true
  988. coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
  989. end
  990.  
  991. local function BlackHole(parent,cframe)
  992. local effectsmsh = Instance.new("SpecialMesh")
  993. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  994. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  995. effectsmsh.Scale = Vector3.new(3,3,3)
  996. local effectsg = Instance.new("Part")
  997. effectsg.formFactor = 3
  998. effectsg.CanCollide = false
  999. effectsg.Name = "Effect"
  1000. effectsg.Locked = true
  1001. effectsg.Transparency = 1
  1002. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1003. effectsg.Parent = parent
  1004. effectsg.BrickColor = BrickColor.new("Bright red")
  1005. effectsg.Material="Neon"
  1006. coroutine.resume(coroutine.create(function(Part,Mesh)
  1007. local Mesh = Instance.new("SpecialMesh")
  1008. Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  1009. Mesh.MeshType = "Sphere"
  1010. -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
  1011. Part=Instance.new("Part")
  1012. Part.Name="Effect"
  1013. Part.formFactor=0
  1014. Part.Size=Vector3.new(1,1,1)
  1015. Part.BrickColor=BrickColor.new("Bright red")
  1016. Part.Material="Neon"
  1017. Part.Reflectance = 0
  1018. Part.TopSurface=0
  1019. Part.BottomSurface=0
  1020. Part.Transparency=0
  1021. Part.Anchored=true
  1022. NoOutline(Part)
  1023. Part.CanCollide=false
  1024. Part.CFrame=cframe
  1025. Part.Parent=parent
  1026. Mesh.Parent = Part
  1027. lol=true
  1028. coroutine.resume(coroutine.create(function()
  1029. DarkRiftF(Part)
  1030. end))
  1031. for i=0,200 do
  1032. wait()
  1033. DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Bright red"))
  1034. Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
  1035. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1036. end
  1037. local fff=200
  1038. for i=0,100 do
  1039. wait()
  1040. DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Bright red"))
  1041. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1042. end
  1043. for i=0,1,0.05 do
  1044. wait()
  1045. Part.Transparency=Part.Transparency+0.05
  1046. Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
  1047. end
  1048. lol=false
  1049. Part.Parent=nil
  1050. end),nil,nil)
  1051. end
  1052.  
  1053. function makeShockwave(height,color,speed,range,pulse)
  1054. local range = range or 2000
  1055. local p = Instance.new("Part")
  1056. p.Anchored = true
  1057. p.CanCollide = false
  1058. p.FormFactor = "Custom"
  1059. p.BrickColor = color
  1060. p.Parent = workspace
  1061. local m = Instance.new("SpecialMesh",p)
  1062. m.MeshId = "rbxassetid://3270017"
  1063. local estimateSurvival = math.floor(range/speed) * 0.03
  1064. game:GetService("Debris"):AddItem(p,estimateSurvival)
  1065. Spawn(function ()
  1066. for i = 1,range,speed do
  1067. p.Transparency = 1-math.min(0.5,3-(i/500))
  1068. m.Scale = Vector3.new(i,i,i*height)
  1069. p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
  1070. wait()
  1071. end
  1072. p:Destroy()
  1073. end)
  1074. end
  1075.  
  1076. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1077. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1078. prt.Anchored=true
  1079. prt.CFrame=cframe
  1080. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
  1081. game:GetService("Debris"):AddItem(prt,2)
  1082. coroutine.resume(coroutine.create(function(Part,Mesh)
  1083. for i=0,2,delay do
  1084. wait()
  1085. Part.CFrame=Part.CFrame
  1086. Part.Transparency=i
  1087. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1088. end
  1089. Part.Parent=nil
  1090. end),prt,msh)
  1091. end
  1092.  
  1093. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1094. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1095. prt.Anchored=true
  1096. prt.CFrame=cframe
  1097. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1098. game:GetService("Debris"):AddItem(prt,5)
  1099. coroutine.resume(coroutine.create(function(Part,Mesh)
  1100. for i=0,1,delay do
  1101. wait()
  1102. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1103. Part.Transparency=i
  1104. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1105. end
  1106. Part.Parent=nil
  1107. end),prt,msh)
  1108. end
  1109.  
  1110. local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  1111. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
  1112. if Type~=2 then
  1113. prt.Anchored=true
  1114. end
  1115. prt.CFrame=cframe
  1116. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1117. game:GetService("Debris"):AddItem(prt,5)
  1118. coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  1119. local wld=nil
  1120. if dur==2 then
  1121. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  1122. end
  1123. for i=0,1,delay do
  1124. swait()
  1125. if dur==1 then
  1126. Part.CFrame=Part.CFrame
  1127. elseif dur==2 then
  1128. wld.C0=cframe
  1129. end
  1130. Part.Transparency=i
  1131. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1132. end
  1133. Part.Parent=nil
  1134. end),prt,msh,Type)
  1135. end
  1136.  
  1137. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1138. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1139. prt.Anchored=true
  1140. prt.CFrame=cframe
  1141. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1142. game:GetService("Debris"):AddItem(prt,5)
  1143. coroutine.resume(coroutine.create(function(Part,Mesh)
  1144. for i=0,1,delay do
  1145. swait()
  1146. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1147. Part.Transparency=i
  1148. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1149. end
  1150. Part.Parent=nil
  1151. end),prt,msh)
  1152. end
  1153.  
  1154. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1155. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1156. prt.Anchored=true
  1157. prt.CFrame=cframe
  1158. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1159. game:GetService("Debris"):AddItem(prt,5)
  1160. coroutine.resume(coroutine.create(function(Part,Mesh)
  1161. for i=0,1,delay do
  1162. wait()
  1163. Part.CFrame=Part.CFrame
  1164. Part.Transparency=i
  1165. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1166. end
  1167. Part.Parent=nil
  1168. end),prt,msh)
  1169. end
  1170.  
  1171. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1172. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
  1173. prt.Anchored=true
  1174. prt.CFrame=cframe
  1175. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1176. game:GetService("Debris"):AddItem(prt,5)
  1177. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1178. end
  1179.  
  1180. function Blast(parent)
  1181. MagicBlock(BrickColor.new("Bright red"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  1182. MagicWaveThing(BrickColor.new("Bright red"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  1183. end
  1184.  
  1185. function ChargeBall(parent,t)
  1186. local counter=0
  1187. local size=1
  1188. for i=0,t,1 do
  1189. swait()
  1190. counter=counter+1
  1191. if counter%10==0 then
  1192. if size==3 then
  1193. MagicRing(BrickColor.new("Bright red"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1194. elseif size==2 then
  1195. MagicRing(BrickColor.new("Bright red"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1196. end
  1197. end
  1198. if counter%5==0 then
  1199. if size==1 then
  1200. MagicBlock(BrickColor.new("Bright red"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1201. elseif size==2 then
  1202. MagicBlock(BrickColor.new("Bright red"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1203. elseif size==3 then
  1204. MagicBlock(BrickColor.new("Bright red"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1205. end
  1206. end
  1207. end
  1208. end
  1209.  
  1210. function ChargeBall2(parent,t)
  1211. local counter=0
  1212. local size=1
  1213. for i=0,t,1 do
  1214. swait()
  1215. counter=counter+1
  1216. if counter%10==0 then
  1217. if size==3 then
  1218. MagicRing(BrickColor.new("Bright red"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1219. elseif size==2 then
  1220. MagicRing(BrickColor.new("Bright red"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1221. end
  1222. end
  1223. if counter%5==0 then
  1224. if size==1 then
  1225. MagicBlock(BrickColor.new("Bright red"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1226. MagicWave(BrickColor.new("Bright red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1227. elseif size==2 then
  1228. MagicBlock(BrickColor.new("Bright red"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1229. MagicWave(BrickColor.new("Bright red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1230. elseif size==3 then
  1231. MagicBlock(BrickColor.new("Bright red"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1232. MagicWave(BrickColor.new("Bright red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1233. end
  1234. end
  1235. end
  1236. end
  1237.  
  1238. function MagniDamage(Part,dis,mind,maxd,force,knock)
  1239. for _,c in pairs(workspace:children()) do
  1240. local hum=c:findFirstChild("Humanoid")
  1241. if hum~=nil then
  1242. local head=c:findFirstChild("Torso")
  1243. if head~=nil then
  1244. local targ=head.Position-Part.Position
  1245. local mag=targ.magnitude
  1246. if mag<=dis and c.Name~=Character.Name then
  1247. Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
  1248. end
  1249. end
  1250. end
  1251. end
  1252. end
  1253.  
  1254. function computeDirection(vec)
  1255. local lenSquared = vec.magnitude * vec.magnitude
  1256. local invSqrt = 1 / math.sqrt(lenSquared)
  1257. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  1258. end
  1259.  
  1260. function attackone()
  1261. attack = true
  1262. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1263. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end)
  1264. local fx=Hitbox.Touched:connect(function(part)
  1265. local human=part.Parent:findFirstChild("Humanoid")
  1266. if human~=nil and bounce==false then
  1267. bounce=true
  1268. local rndm=math.random(1,#hitsounds)
  1269. local r=rndm
  1270. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1271. end
  1272. end)
  1273. for i = 0,1,0.1 do
  1274. swait()
  1275. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
  1276. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1277. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
  1278. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
  1279. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
  1280. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  1281. end
  1282. so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
  1283. for i = 0,1,0.1 do
  1284. swait()
  1285. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1286. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1287. local h = 5
  1288. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1289. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1290. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1291. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1292. scfr = blcf
  1293. elseif not scfr then
  1294. scfr = blcf
  1295. end
  1296. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
  1297. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
  1298. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1299. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1300. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
  1301. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
  1302. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1303. end
  1304. attack = false
  1305. bounce=false
  1306. scfr=nil
  1307. fx:disconnect()
  1308. con:disconnect()
  1309. end
  1310.  
  1311. function attacktwo()
  1312. attack=true
  1313. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1314. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end)
  1315. local fx=Hitbox.Touched:connect(function(part)
  1316. local human=part.Parent:findFirstChild("Humanoid")
  1317. if human~=nil and bounce==false then
  1318. bounce=true
  1319. local rndm=math.random(1,#hitsounds)
  1320. local r=rndm
  1321. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1322. end
  1323. end)
  1324. for i=0,1,.1 do
  1325. swait()
  1326. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  1327. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  1328. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1329. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1330. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  1331. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  1332. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1333. end
  1334. so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
  1335. for i = 0,1,0.1 do
  1336. swait()
  1337. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1338. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1339. local h = 5
  1340. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1341. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1342. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1343. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1344. scfr = blcf
  1345. elseif not scfr then
  1346. scfr = blcf
  1347. end
  1348. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  1349. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  1350. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  1351. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  1352. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  1353. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  1354. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1355. end
  1356. scfr=nil
  1357. attack=false
  1358. bounce=false
  1359. con:disconnect()
  1360. fx:disconnect()
  1361. end
  1362.  
  1363. function attackthree()
  1364. attack=true
  1365. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1366. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,6222,152222,math.random(5,5),"Normal",RootPart,.2,1) end)
  1367. local fx=Hitbox.Touched:connect(function(part)
  1368. local human=part.Parent:findFirstChild("Humanoid")
  1369. if human~=nil and bounce==false then
  1370. bounce=true
  1371. local rndm=math.random(1,#hitsounds)
  1372. local r=rndm
  1373. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1374. end
  1375. end)
  1376. for i=0,1,.1 do
  1377. swait()
  1378. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4)
  1379. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1380. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
  1381. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4)
  1382. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4)
  1383. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4)
  1384. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1385. end
  1386. so("http://www.roblox.com/asset/?id=199145913",handle,1,.9)
  1387. for i = 0,1,0.1 do
  1388. swait()
  1389. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1390. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1391. local h = 5
  1392. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1393. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1394. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1395. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1396. scfr = blcf
  1397. elseif not scfr then
  1398. scfr = blcf
  1399. end
  1400. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1401. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  1402. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4)
  1403. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
  1404. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4)
  1405. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4)
  1406. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4)
  1407. end
  1408. attack=false
  1409. bounce=false
  1410. scfr=nil
  1411. con:disconnect()
  1412. fx:disconnect()
  1413. end
  1414.  
  1415. function attackfour()
  1416. attack = true
  1417. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1418. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,9222,18222,math.random(20,30),"Normal",RootPart,.2,1) end)
  1419. local fx=Hitbox.Touched:connect(function(part)
  1420. local human=part.Parent:findFirstChild("Humanoid")
  1421. if human~=nil and bounce==false then
  1422. bounce=true
  1423. local rndm=math.random(1,#hitsounds)
  1424. local r=rndm
  1425. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1426. end
  1427. end)
  1428. for i = 0,1,0.1 do
  1429. swait()
  1430. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.3)
  1431. Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.3)
  1432. RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.3)
  1433. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3)
  1434. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.3)
  1435. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.3)
  1436. handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.3)
  1437. end
  1438. so("http://www.roblox.com/asset/?id=199145433",Hitbox,1,1.1)
  1439. local v=it("BodyVelocity",Torso)
  1440. v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1
  1441. v.velocity=RootPart.CFrame.lookVector*50
  1442. for i = 0,1,0.1 do
  1443. swait()
  1444. local blcf = Hitbox.CFrame*cf(0,0,0)
  1445. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1446. local h = 5
  1447. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1448. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1449. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1450. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1451. scfr = blcf
  1452. elseif not scfr then
  1453. scfr = blcf
  1454. end
  1455. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.3)
  1456. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1457. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.3)
  1458. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.3)
  1459. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1460. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1461. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.3)
  1462. end
  1463. v.Parent=nil
  1464. scfr=nil
  1465. attack = false
  1466. bounce=false
  1467. con:disconnect()
  1468. fx:disconnect()
  1469. end
  1470.  
  1471. function LustrisFulgo()
  1472. attack=true
  1473. Humanoid.WalkSpeed=0
  1474. for i=0,1,0.1 do
  1475. swait()
  1476. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-15),math.rad(0),math.rad(10)),.3)
  1477. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(-10)),.3)
  1478. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(7)), 0.3)
  1479. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(4), math.rad(-15)), 0.3)
  1480. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-15),math.rad(90),math.rad(0)),.3)
  1481. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-25),math.rad(-90),math.rad(0)),.3)
  1482. handleweld.C0=clerp(handleweld.C0,cf(0,0,-.5)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1483. end
  1484. local function boom()
  1485. local pprt=ppart(3,game.Workspace,0,1,BrickColor.new("Bright red"),"Effect",vt(1,1,1))
  1486. pprt.Anchored=true
  1487. pprt.CFrame=EffectPart.CFrame
  1488. game:GetService("Debris"):AddItem(pprt,2)
  1489. MagicCircle(BrickColor.new("White"),EffectPart.CFrame,20,20,20,-0.01,-0.01,-0.01,0.01)
  1490. so("http://roblox.com/asset/?id=228343412",EffectPart,1,0.6)
  1491. so("http://roblox.com/asset/?id=228343408",EffectPart,1,1.4)
  1492. local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Bright red"),"Effect",vt(1,1,1))
  1493. local waveweld=weld(game.Workspace,handle,wave,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
  1494. local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
  1495. MagniDamage(wave,20,15222,25222,math.random(20,30),"Knockdown",RootPart)
  1496. for i=0,80 do
  1497. swait()
  1498. MagicBlock(BrickColor.new("Bright red"),EffectPart.CFrame,7,7,7,-0.5,-0.5,-0.5,0.05)
  1499. MagicCircle(BrickColor.new("Bright red"),EffectPart.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,5,0),0.5,1,0.5,0.02,1,0.02,0.05)
  1500. wave.Size=vt(1+i,1+i,1+i)
  1501. wavemesh.Scale=vt(1+i,1+i,1+i)
  1502. wave.CFrame=EffectPart.CFrame
  1503. Humanoid.Health=Humanoid.Health+.15
  1504. end
  1505. wave:Destroy()
  1506. end
  1507. boom()
  1508. attack=false
  1509. Humanoid.WalkSpeed=16
  1510. end
  1511.  
  1512. function LeviterGlomus()
  1513. attack=true
  1514. for i=0,1,.1 do
  1515. swait()
  1516. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1517. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1518. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
  1519. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
  1520. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-3),math.rad(65),math.rad(0)),.3)
  1521. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(-25),math.rad(-110),math.rad(0))*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1522. handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(-35),math.rad(-15),math.rad(0)),.3)
  1523. end
  1524. so("http://www.roblox.com/asset/?id=199145659",EffectPart2,1,1)
  1525. efprt=part(Enum.FormFactor.Custom,game.Workspace,Enum.Material.Neon,0,0,"Bright red","BallEffect",Vector3.new(2, 2, 2))
  1526. weld(m,Character["Left Arm"],efprt,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
  1527. mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  1528. ChargeBall(EffectPart2,35)
  1529. for i=0,1,.1 do
  1530. swait()
  1531. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1532. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1533. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
  1534. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
  1535. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  1536. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  1537. handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(0),math.rad(-15),math.rad(0)),.3)
  1538. end
  1539. so("http://www.roblox.com/asset/?id=199145534",EffectPart2,1,1.2)
  1540. efprt:BreakJoints()
  1541. local Target=mouse.Hit.p
  1542. local direction = Target - handle.Position
  1543. direction = computeDirection(direction)
  1544. local pos = handle.Position + (direction * 10.0)
  1545. efprt.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(math.pi/2, 0, 0)
  1546. local floatForce = Instance.new("BodyForce")
  1547. floatForce.force = Vector3.new(0, efprt:GetMass() * 196.1, 0.0)
  1548. floatForce.Parent = efprt
  1549. efprt.Velocity = direction * 160
  1550. efprt.Touched:connect(function(hit)
  1551. if not hit:IsDescendantOf(Character) then
  1552. if hit.Name~="Effect" then
  1553. MagniDamage(efprt,15,12225,22225,math.random(20,30),"Knockdown",RootPart)
  1554. floatForce.Parent=nil
  1555. efprt.Anchored=true
  1556. so("http://www.roblox.com/asset/?id=228343330",hit,1,.8)
  1557. Blast(efprt)
  1558. efprt:Destroy()
  1559. end
  1560. end
  1561. end)
  1562. game:GetService("Debris"):AddItem(efprt,6)
  1563. attack=false
  1564. end
  1565.  
  1566. function PortalStorm()
  1567. Humanoid.WalkSpeed=0
  1568. attack=true
  1569. for i=0,1,.1 do
  1570. swait()
  1571. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1572. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1573. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-40)), 0.3)
  1574. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(40)), 0.3)
  1575. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(5),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1576. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1577. handleweld.C0=clerp(handleweld.C0,cf(-1,-2.3,-.4)*angles(math.rad(-165),math.rad(-15),math.rad(50)),.3)
  1578. end
  1579. so("http://www.roblox.com/asset/?id=199145446",handle,1,1)
  1580. ChargeBall2(handle,100)
  1581. makeShockwave(0.5,BrickColor.new("Bright yelllow"),30,1000,0)
  1582. MagicWave(BrickColor.new("Bright yelllow"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
  1583. so("http://www.roblox.com/asset/?id=280247455",game.Workspace,1,1)
  1584. wait(2)
  1585. so("http://www.roblox.com/asset/?id=110284742",game.Workspace,1,0)
  1586. delay(0.5,function ()
  1587. MagniDamage(Torso,2000,32225,52220,math.random(50,70),"Knockdown",RootPart)
  1588. end)
  1589. Humanoid.Health=Humanoid.Health-0
  1590. makeShockwave(4,BrickColor.new("Teal"),10,2000,1)
  1591. attack=false
  1592. Humanoid.WalkSpeed=9
  1593. wait(4)
  1594. Humanoid.WalkSpeed=16
  1595. end
  1596.  
  1597. function SolSiderea()
  1598. Humanoid.WalkSpeed=0
  1599. attack=true
  1600. so("http://www.roblox.com/asset/?id=280758833",Workspace,1,1.3)
  1601. for i=0,1,.1 do
  1602. swait()
  1603. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1604. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1605. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(95), math.rad(-10), math.rad(-17)), 0.3)
  1606. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(95), math.rad(10), math.rad(17)), 0.3)
  1607. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1608. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1609. handleweld.C0=clerp(handleweld.C0,cf(0,-2,-.5)*angles(math.rad(0),math.rad(7.5),math.rad(-75)),.3)
  1610. end
  1611. for i=0,1,.1 do
  1612. swait()
  1613. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1614. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1615. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(-5), math.rad(8)), 0.3)
  1616. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(5), math.rad(-8)), 0.3)
  1617. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1618. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1619. handleweld.C0=clerp(handleweld.C0,cf(-1.1,-4,-2)*angles(math.rad(-72),math.rad(8.5),math.rad(-92)),.3)
  1620. end
  1621. coroutine.resume(coroutine.create(function() ChargeBall(EffectPart,120) end))
  1622. local n=2
  1623. local orb=ppart(3,Character,0,1,BrickColor.new("Bright red"),"Orb",vt())
  1624. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
  1625. local owld=wweld(orb,orb,Torso,cf(-10,-150,0))
  1626. for i=1,0.3,-0.01 do
  1627. wait()
  1628. orb.Transparency=i
  1629. omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
  1630. MagicBlock(BrickColor.new("Bright red"),orb.CFrame,15,15,15,2,2,2,0.1)
  1631. local ef=ppart(3,workspace,0,0,BrickColor.new("Bright red"),"Effect",vt())
  1632. ef.Anchored=true
  1633. local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
  1634. local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0)
  1635. ef.CFrame=orb.CFrame*ceef
  1636. game:GetService("Debris"):AddItem(ef,2)
  1637. coroutine.resume(coroutine.create(function(Part,Mesh)
  1638. for i=0,1,0.1 do
  1639. wait()
  1640. Part.Transparency=i
  1641. Part.CFrame=Part.CFrame*cf(0,-1,0)
  1642. end
  1643. Part.Parent=nil
  1644. end),ef,emsh)
  1645. end
  1646. local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector
  1647. wait(.5)
  1648. orb.Parent=nil
  1649. wait(1)
  1650. local hit,pos = rayCast(orb.Position,Pos,1000,Character)
  1651. local mag=(orb.Position-pos).magnitude
  1652. BlackHole(game.Workspace,cf(pos))
  1653. coroutine.resume(coroutine.create(function()
  1654. local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Bright red"),"Effect",vt(1,1,1))
  1655. wweld(game.Workspace,wave,orb,Torso.CFrame)
  1656. local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
  1657. for i=1,100 do
  1658. swait()
  1659. wave.Size=vt(1+i,1+i,1+i)
  1660. wavemesh.Scale=vt(1+i,1+i,1+i)
  1661. wave.CFrame=cf(pos)
  1662. end
  1663. end))
  1664. coroutine.resume(coroutine.create(function()
  1665. for i=0,20 do
  1666. swait(15)
  1667. local range = 1500
  1668. local p = Instance.new("Part")
  1669. p.Anchored = true
  1670. p.CanCollide = false
  1671. p.FormFactor = "Custom"
  1672. p.BrickColor = BrickColor.new("Bright red")
  1673. p.Parent = workspace
  1674. p.Name="Effect"
  1675. p.CFrame=cf(pos)
  1676. local m = Instance.new("SpecialMesh",p)
  1677. m.MeshId = "rbxassetid://3270017"
  1678. local estimateSurvival = math.floor(range/30) * 0.03
  1679. game:GetService("Debris"):AddItem(p,estimateSurvival)
  1680. Spawn(function ()
  1681. for i = 1,range,30 do
  1682. p.Transparency = 1-math.min(0.5,3-(i/500))
  1683. m.Scale = Vector3.new(i,i,i*0.5)
  1684. p.CFrame = cf(pos) * CFrame.Angles(math.rad(90),0,0)
  1685. wait()
  1686. end
  1687. p:Destroy()
  1688. end)
  1689. end
  1690. end))
  1691. MagicCylinder(BrickColor.new("Bright yelllow"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  1692. for i=1,2 do
  1693. end
  1694. for i=1,5 do
  1695. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  1696. end
  1697. for i=0,5 do
  1698. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  1699. end
  1700. local ref=ppart(3,workspace,0,1,BrickColor.new("Bright yelllow"),"Effect",vt())
  1701. ref.CFrame=cf(pos)
  1702. coroutine.resume(coroutine.create(function(Part)
  1703. wait(1)
  1704. Part.Parent=nil
  1705. end),ref)
  1706. MagniDamage(ref,25,22220,32220,40,"Knockdown",ref)
  1707. if hit~=nil then
  1708. Damagefunc(ref,hit,5022,70222,60,"Knockdown",RootPart,0)
  1709. end
  1710. local n=2
  1711. MagicWave(BrickColor.new("Bright yelllow"),cf(pos)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
  1712. swait(75)
  1713. Humanoid.WalkSpeed=16
  1714. attack=false
  1715. end
  1716.  
  1717. attacktype=1
  1718. mouse.Button1Down:connect(function()
  1719. if attacktype==1 and attack==false then
  1720. attacktype=2
  1721. attackone()
  1722. elseif attacktype==2 and attack==false then
  1723. attacktype=3
  1724. attacktwo()
  1725. elseif attacktype==3 and attack==false then
  1726. attacktype=4
  1727. attackthree()
  1728. elseif attacktype==4 and attack==false then
  1729. attacktype=1
  1730. attackfour()
  1731. end
  1732. end)
  1733.  
  1734. mouse.KeyDown:connect(function(k)
  1735. k=k:lower()
  1736. if attack == false and k == 'e' then
  1737. LeviterGlomus()
  1738. ChargeBall(efprt,100)
  1739. end
  1740. if attack == false and k == 'q' then
  1741. LustrisFulgo()
  1742. end
  1743. if attack == false and k == 'f' and deeznuts==false then
  1744. deeznuts=true
  1745. SolSiderea()
  1746. deeznuts=false
  1747. end
  1748. if attack == false and k == 'r' and cooldown==false then
  1749. cooldown=true
  1750. PortalStorm()
  1751. cooldown=false
  1752. end
  1753. end)
  1754.  
  1755.  
  1756. local sine = 0
  1757. local change = 1
  1758. local val = 0
  1759.  
  1760. while true do
  1761. swait()
  1762. sine = sine + change
  1763. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1764. local velderp=RootPart.Velocity.y
  1765. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1766. if equipped==true or equipped==false then
  1767. if attack==false then
  1768. idle=idle+1
  1769. else
  1770. idle=0
  1771. end
  1772. if idle>=500 then
  1773. if attack==false then
  1774. end
  1775. end
  1776. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1777. Anim="Jump"
  1778. if attack==false then
  1779. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1780. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1781. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
  1782. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  1783. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1784. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1785. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1786. end
  1787. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1788. Anim="Fall"
  1789. if attack==false then
  1790. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1791. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
  1792. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
  1793. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1794. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1795. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1796. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  1797. end
  1798. elseif torvel<1 and hitfloor~=nil then
  1799. Anim="Idle"
  1800. if attack==false then
  1801. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3)
  1802. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3)
  1803. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3)
  1804. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1805. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
  1806. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3)
  1807. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2)
  1808. end
  1809. elseif torvel>2 and hitfloor~=nil then
  1810. Anim="Walk"
  1811. if attack==false then
  1812. change=3
  1813. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  1814. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3)
  1815. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3)
  1816. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30)*math.cos(sine/10), math.rad(5), math.rad(0)), 0.3)
  1817. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  1818. LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  1819. handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1820. end
  1821. end
  1822. end
  1823. if #Effects>0 then
  1824. for e=1,#Effects do
  1825. if Effects[e]~=nil then
  1826. local Thing=Effects[e]
  1827. if Thing~=nil then
  1828. local Part=Thing[1]
  1829. local Mode=Thing[2]
  1830. local Delay=Thing[3]
  1831. local IncX=Thing[4]
  1832. local IncY=Thing[5]
  1833. local IncZ=Thing[6]
  1834. if Thing[1].Transparency<=1 then
  1835. if Thing[2]=="Block1" then
  1836. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1837. Mesh=Thing[1].Mesh
  1838. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1839. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1840. elseif Thing[2]=="Cylinder" then
  1841. Mesh=Thing[1].Mesh
  1842. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1843. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1844. elseif Thing[2]=="Blood" then
  1845. Mesh=Thing[7]
  1846. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1847. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1848. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1849. elseif Thing[2]=="Elec" then
  1850. Mesh=Thing[1].Mesh
  1851. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1852. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1853. elseif Thing[2]=="Disappear" then
  1854. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1855. end
  1856. else
  1857. Part.Parent=nil
  1858. table.remove(Effects,e)
  1859. end
  1860. end
  1861. end
  1862. end
  1863. end
  1864. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement