aiden50_70

Untitled

Oct 21st, 2017
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.56 KB | None | 0 0
  1. --Variables
  2. local plr = game:service("Players").LocalPlayer
  3. local guis = Instance.new("ScreenGui", plr.PlayerGui)
  4. local frame = Instance.new("Frame", guis)
  5. local speed = Instance.new("TextButton", frame)
  6. local jumppower = Instance.new("TextButton", frame)
  7. local god = Instance.new("TextButton", frame)
  8. local close = Instance.new("TextButton", frame)
  9. local open = Instance.new("TextButton", guis)
  10. local deepclean = Instance.new("TextButton", frame)
  11. local scriptframe = Instance.new("Frame", frame)
  12. local swordbutton = Instance.new("TextButton", scriptframe)
  13. local openframe = Instance.new("TextButton", frame)
  14. local closeframe = Instance.new("TextButton", scriptframe)
  15. local anchortorso = Instance.new("TextButton", scriptframe)
  16. local zenoscript = Instance.new("TextButton", scriptframe)
  17. local ff = Instance.new("TextButton", scriptframe)
  18. local menuextend = Instance.new("Frame", guis)
  19. local openmenuex = Instance.new("TextButton", frame)
  20. local closemenuex = Instance.new("TextButton", menuextend)
  21. local menulab = Instance.new("TextLabel", menuextend)
  22. local cleargui = Instance.new("TextButton", menuextend)
  23. local heaven = Instance.new("TextButton", menuextend)
  24. --Positions, sizes and layouts
  25. frame.Name = "2"
  26. guis.Name = "1"
  27. scriptframe.Name = "3"
  28. menuextend.Name = "4"
  29. frame.Position = UDim2.new(0, 238,0, 67)
  30. frame.Size = UDim2.new(0, 354,0, 329)
  31. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  32. frame.Visible = false
  33. scriptframe.Visible = false
  34. menuextend.Visible = false
  35. menuextend.BackgroundColor3 = Color3.new(0, 0, 0)
  36. menuextend.BackgroundColor3 = Color3.new(0, 0, 0)
  37. menuextend.BackgroundColor3 = Color3.new(0, 0, 0)
  38. menuextend.BackgroundColor3 = Color3.new(0, 0, 0)
  39. menuextend.BackgroundColor3 = Color3.new(0, 0, 0)
  40. menuextend.BackgroundColor3 = Color3.new(0, 0, 0)
  41. menuextend.BackgroundColor3 = Color3.new(0, 0, 0)
  42.  
  43. speed.Position = UDim2.new(0, 0,0, 0)
  44. speed.Size = UDim2.new(0, 113,0, 50)
  45. speed.TextScaled = true
  46. speed.Text = "Speed"
  47. speed.BackgroundColor3 = Color3.new(0, 0, 0)
  48. speed.AutoButtonColor = true
  49. speed.TextColor3 = Color3.new(0, 255, 0)
  50.  
  51. jumppower.Position = UDim2.new(0, 240,0, 0)
  52. jumppower.Size = UDim2.new(0, 113,0, 50)
  53. jumppower.TextScaled = true
  54. jumppower.Text = "Jump Power"
  55. jumppower.BackgroundColor3 = Color3.new(0, 0, 0)
  56. jumppower.AutoButtonColor = true
  57. jumppower.TextColor3 = Color3.new(0, 255, 0)
  58.  
  59. god.Position = UDim2.new(0, 0,0, 109)
  60. god.Size = UDim2.new(0, 113,0, 50)
  61. god.TextScaled = true
  62. god.Text = "God"
  63. god.BackgroundColor3 = Color3.new(0, 0, 0)
  64. god.AutoButtonColor = true
  65. god.TextColor3 = Color3.new(0, 255, 0)
  66.  
  67. close.Position = UDim2.new(0, 78,0, 243)
  68. close.Size = UDim2.new(0,200,0,31)
  69. close.BackgroundColor3 = Color3.new(0, 0, 0)
  70. close.TextScaled = true
  71. close.Text = "Close"
  72. close.TextColor3 = Color3.new(0, 255, 0)
  73.  
  74. open.Position = UDim2.new(0,0,0,182)
  75. open.Size = UDim2.new(0, 66,0, 50)
  76. open.TextScaled = true
  77. open.Text = "Open"
  78. open.BackgroundColor3 = Color3.new(0, 0, 0)
  79. open.TextColor3 = Color3.new(0, 255, 0)
  80.  
  81. deepclean.Position = UDim2.new(0, 240,0, 109)
  82. deepclean.Size = UDim2.new(0, 113,0, 50)
  83. deepclean.TextScaled = true
  84. deepclean.Text = "Deepclean server"
  85. deepclean.BackgroundColor3 = Color3.new(0, 0, 0)
  86. deepclean.TextColor3 = Color3.new(0, 255, 0)
  87.  
  88. scriptframe.Size = UDim2.new(0, 173,0, 318)
  89. scriptframe.Position = UDim2.new(0, 357,0, 0)
  90.  
  91. openframe.Position = UDim2.new(0, 78,0, 191)
  92. openframe.Size = UDim2.new(0, 200,0, 42)
  93. openframe.TextScaled = true
  94. openframe.Text = "Open script menu"
  95. openframe.BackgroundColor3 = Color3.new(0, 0, 0)
  96. openframe.TextColor3 = Color3.new(0, 255, 0)
  97.  
  98. swordbutton.Size = UDim2.new(0, 173,0, 50)
  99. swordbutton.BackgroundColor3 = Color3.new(0, 0, 0)
  100. swordbutton.TextScaled = true
  101. swordbutton.Text = "Purple Sword"
  102. swordbutton.TextColor3 = Color3.new(0, 255, 0)
  103.  
  104. closeframe.Size = UDim2.new(0, 173,0, 50)
  105. closeframe.Position = UDim2.new(0, 0,0, 268)
  106. closeframe.TextScaled = true
  107. closeframe.Text = "Close"
  108. closeframe.BackgroundColor3 = Color3.new(0, 0, 0)
  109. closeframe.TextColor3 = Color3.new(0, 255, 0)
  110.  
  111. anchortorso.Size = UDim2.new(0, 173,0, 50)
  112. anchortorso.Position = UDim2.new(0, 0,0, 52)
  113. anchortorso.BackgroundColor3 = Color3.new(0, 0, 0)
  114. anchortorso.TextScaled = true
  115. anchortorso.Text = "Anchor torso"
  116. anchortorso.TextColor3 = Color3.new(0, 255, 0)
  117.  
  118. zenoscript.Size = UDim2.new(0, 173,0, 50)
  119. zenoscript.Position = UDim2.new(0, 0,0, 109)
  120. zenoscript.BackgroundColor3 = Color3.new(0, 0, 0)
  121. zenoscript.TextScaled = true
  122. zenoscript.Text = "Zeno script"
  123. zenoscript.TextColor3 = Color3.new(0, 255, 0)
  124.  
  125. ff.Size = UDim2.new(0, 173,0, 50)
  126. ff.Position = UDim2.new(0, 0,0, 159)
  127. ff.BackgroundColor3 = Color3.new(0, 0, 0)
  128. ff.TextScaled = true
  129. ff.Text = "Force Field"
  130. ff.TextColor3 = Color3.new(0, 255, 0)
  131.  
  132. openmenuex.Position = UDim2.new(0, 78,0, 54)
  133. openmenuex.Size = UDim2.new(0, 200,0, 50)
  134. openmenuex.BackgroundColor3 = Color3.new(0, 0, 0)
  135. openmenuex.TextScaled = true
  136. openmenuex.Text = "Menu extension"
  137. openmenuex.TextColor3 = Color3.new(0, 255, 0)
  138.  
  139. menuextend.Size = UDim2.new(0, 609,0, 388)
  140. menuextend.Position = UDim2.new(0, 161,0, 38)
  141.  
  142. closemenuex.Position = UDim2.new(0, 167,0, 311)
  143. closemenuex.Size = UDim2.new(0, 319,0, 50)
  144. closemenuex.BackgroundColor3 = Color3.new(0, 0, 0)
  145. closemenuex.TextScaled = true
  146. closemenuex.Text = "Close menu"
  147. closemenuex.TextColor3 = Color3.new(0, 255, 0)
  148.  
  149. menulab.TextScaled = true
  150. menulab.Position = UDim2.new(0,0,0,0)
  151. menulab.Size = UDim2.new(0, 609,0, 98)
  152. menulab.Text = "This is a work in progress menu."
  153. menulab.BackgroundColor3 = Color3.new(0, 0, 0)
  154. menulab.TextColor3 = Color3.new(0, 255, 0)
  155.  
  156. cleargui.Size = UDim2.new(0, 200,0, 50)
  157. cleargui.Position = UDim2.new(0, 0,0, 129)
  158. cleargui.BackgroundColor3 = Color3.new(0, 0, 0)
  159. cleargui.TextScaled = true
  160. cleargui.Text = "Remove gui"
  161. cleargui.TextColor3 = Color3.new(0, 255, 0)
  162.  
  163. heaven.Size = UDim2.new(0, 200,0, 50)
  164. heaven.Position = UDim2.new(0, 0,0, 218)
  165. heaven.BackgroundColor3 = Color3.new(0, 0, 0)
  166. heaven.TextScaled = true
  167. heaven.Text = "Go to heaven"
  168. heaven.TextColor3 = Color3.new(0, 255, 0)
  169.  
  170. --Main script
  171.  
  172. speed.MouseButton1Click:connect(function()
  173. print("Granted")
  174. plr.Character.Humanoid.WalkSpeed = 99
  175. end)
  176.  
  177. jumppower.MouseButton1Click:connect(function()
  178. print("Granted")
  179. plr.Character.Humanoid.JumpPower = 100
  180. end)
  181.  
  182. god.MouseButton1Click:connect(function()
  183. print("Granted")
  184. plr.Character.Humanoid.MaxHealth = math.huge
  185. plr.Character.Humanoid.Health = math.huge
  186. end)
  187.  
  188. close.MouseButton1Click:connect(function()
  189. frame.Visible = false
  190. end)
  191.  
  192. open.MouseButton1Click:connect(function()
  193. frame.Visible = true
  194. end)
  195.  
  196. deepclean.MouseButton1Click:connect(function()
  197. for i = 1, 5 do
  198. workspace:ClearAllChildren()
  199. end
  200. end)
  201.  
  202. openframe.MouseButton1Click:connect(function()
  203. scriptframe.Visible = true
  204. end)
  205.  
  206. closeframe.MouseButton1Click:connect(function()
  207. scriptframe.Visible = false
  208. end)
  209.  
  210. swordbutton.MouseButton1Click:connect(function(Player, Character, Humanoid)
  211. Player=game:GetService("Players").LocalPlayer
  212. Character=Player.Character
  213. PlayerGui=Player.PlayerGui
  214. Backpack=Player.Backpack
  215. Torso=Character.Torso
  216. Head=Character.Head
  217. Humanoid=Character.Humanoid
  218. LeftArm=Character["Left Arm"]
  219. LeftLeg=Character["Left Leg"]
  220. RightArm=Character["Right Arm"]
  221. RightLeg=Character["Right Leg"]
  222. cam=game.Workspace.CurrentCamera
  223. LS=Torso["Left Shoulder"]
  224. LH=Torso["Left Hip"]
  225. RS=Torso["Right Shoulder"]
  226. RH=Torso["Right Hip"]
  227. Face = Head.face
  228. Neck=Torso.Neck
  229. it=Instance.new
  230. attacktype=1
  231. vt=Vector3.new
  232. cf=CFrame.new
  233. euler=CFrame.fromEulerAnglesXYZ
  234. angles=CFrame.Angles
  235. cloaked=false
  236. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  237. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  238. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  239. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  240. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  241. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  242. RootPart=Character.HumanoidRootPart
  243. RootJoint=RootPart.RootJoint
  244. RootCF=euler(-1.57,0,3.14)
  245. attack = false
  246. bounce=false
  247. cooldown=false
  248. lolxdwat=false
  249. attackdebounce = false
  250. deb=false
  251. equipped=true
  252. hand=false
  253. MMouse=nil
  254. combo=0
  255. mana=0
  256. trispeed=.2
  257. attackmode='none'
  258. local idle=0
  259. local Anim="Idle"
  260. local Effects={}
  261. local gun=false
  262. local shoot=false
  263. player=nil
  264. mana=0
  265. cam = workspace.CurrentCamera
  266. ZTarget = nil
  267. RocketTarget = nil
  268. local m = Instance.new("Model",Character)
  269. m.Name = "WeaponModel"
  270.  
  271. mouse=Player:GetMouse()
  272. --save shoulders
  273. RSH, LSH=nil, nil
  274. --welds
  275. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  276. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  277. LH=Torso["Left Hip"]
  278. RH=Torso["Right Hip"]
  279. TorsoColor=Torso.BrickColor
  280. function NoOutline(Part)
  281. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  282. end
  283. player=Player
  284. ch=Character
  285. RSH=ch.Torso["Right Shoulder"]
  286. LSH=ch.Torso["Left Shoulder"]
  287. --
  288. RSH.Parent=nil
  289. LSH.Parent=nil
  290. --
  291. RW.Name="Right Shoulder"
  292. RW.Part0=ch.Torso
  293. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  294. RW.C1=cf(0, 0.5, 0)
  295. RW.Part1=ch["Right Arm"]
  296. RW.Parent=ch.Torso
  297. --
  298. LW.Name="Left Shoulder"
  299. LW.Part0=ch.Torso
  300. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  301. LW.C1=cf(0, 0.5, 0)
  302. LW.Part1=ch["Left Arm"]
  303. LW.Parent=ch.Torso
  304.  
  305. function swait(num)
  306. if num==0 or num==nil then
  307. game:service'RunService'.Heartbeat:wait(0)
  308. else
  309. for i=0,num do
  310. game:service'RunService'.Heartbeat:wait(0)
  311. end
  312. end
  313. end
  314.  
  315. function nooutline(part)
  316. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  317. end
  318.  
  319. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  320. local fp=it("Part")
  321. fp.formFactor=formfactor
  322. fp.Parent=parent
  323. fp.Reflectance=reflectance
  324. fp.Transparency=transparency
  325. fp.CanCollide=false
  326. fp.Locked=true
  327. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  328. fp.Name=name
  329. fp.Size=size
  330. fp.Position=Character.Torso.Position
  331. nooutline(fp)
  332. fp.Material=material
  333. fp:BreakJoints()
  334. return fp
  335. end
  336.  
  337. function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  338. local fp = it("Part")
  339. fp.formFactor = formfactor
  340. fp.Parent = parent
  341. fp.Reflectance = reflectance
  342. fp.Transparency = transparency
  343. fp.CanCollide = false
  344. fp.Locked=true
  345. fp.BrickColor = brickcolor
  346. fp.Name = name
  347. fp.Size = size
  348. fp.Position = EffectPart.Position
  349. NoOutline(fp)
  350. fp.Material="Neon"
  351. fp:BreakJoints()
  352. return fp
  353. end
  354.  
  355. function wweld(parent,part0,part1,c0)
  356. local weld=it("Weld")
  357. weld.Parent=parent
  358. weld.Part0=part0
  359. weld.Part1=part1
  360. weld.C0=c0
  361. return weld
  362. end
  363.  
  364. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  365. local mesh=it(Mesh)
  366. mesh.Parent=part
  367. if Mesh=="SpecialMesh" then
  368. mesh.MeshType=meshtype
  369. mesh.MeshId=meshid
  370. end
  371. mesh.Offset=offset
  372. mesh.Scale=scale
  373. return mesh
  374. end
  375.  
  376. function decal(part,face,texture,transparency,shiny,specular,name)
  377. local d=it("Decal",part)
  378. d.Shiny=shiny
  379. d.Face=face
  380. d.Specular=specular
  381. d.Transparency=transparency
  382. d.Texture=texture
  383. d.Name=name
  384. return d
  385. end
  386.  
  387. function weld(parent,part0,part1,c0,c1)
  388. local weld=it("Weld")
  389. weld.Parent=parent
  390. weld.Part0=part0
  391. weld.Part1=part1
  392. weld.C0=c0
  393. weld.C1=c1
  394. return weld
  395. end
  396.  
  397.  
  398. local function CFrameFromTopBack(at, top, back)
  399. local right = top:Cross(back)
  400. return CFrame.new(at.x, at.y, at.z,
  401. right.x, top.x, back.x,
  402. right.y, top.y, back.y,
  403. right.z, top.z, back.z)
  404. end
  405.  
  406. function Triangle(a, b, c)
  407. local edg1 = (c-a):Dot((b-a).unit)
  408. local edg2 = (a-b):Dot((c-b).unit)
  409. local edg3 = (b-c):Dot((a-c).unit)
  410. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  411. a, b, c = a, b, c
  412. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  413. a, b, c = b, c, a
  414. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  415. a, b, c = c, a, b
  416. else
  417. assert(false, "unreachable")
  418. end
  419.  
  420. local len1 = (c-a):Dot((b-a).unit)
  421. local len2 = (b-a).magnitude - len1
  422. local width = (a + (b-a).unit*len1 - c).magnitude
  423.  
  424. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  425.  
  426. local list = {}
  427.  
  428. local TrailColor = ("Royal purple")
  429.  
  430. if len1 > 0.01 then
  431. local w1 = Instance.new('WedgePart', m)
  432. game:GetService("Debris"):AddItem(w1,5)
  433. w1.Material = "Neon"
  434. w1.FormFactor = 'Custom'
  435. w1.BrickColor = BrickColor.new(TrailColor)
  436. w1.Transparency = 0
  437. w1.Reflectance = 0
  438. w1.Material = "Neon"
  439. w1.CanCollide = false
  440. NoOutline(w1)
  441. local sz = Vector3.new(0.2, width, len1)
  442. w1.Size = sz
  443. local sp = Instance.new("SpecialMesh",w1)
  444. sp.MeshType = "Wedge"
  445. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  446. w1:BreakJoints()
  447. w1.Anchored = true
  448. w1.Parent = workspace
  449. w1.Transparency = 0.7
  450. table.insert(Effects,{w1,"Disappear",.01})
  451. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  452. table.insert(list,w1)
  453. end
  454.  
  455. if len2 > 0.01 then
  456. local w2 = Instance.new('WedgePart', m)
  457. game:GetService("Debris"):AddItem(w2,5)
  458. w2.Material = "Neon"
  459. w2.FormFactor = 'Custom'
  460. w2.BrickColor = BrickColor.new(TrailColor)
  461. w2.Transparency = 0
  462. w2.Reflectance = 0
  463. w2.Material = "Neon"
  464. w2.CanCollide = false
  465. NoOutline(w2)
  466. local sz = Vector3.new(0.2, width, len2)
  467. w2.Size = sz
  468. local sp = Instance.new("SpecialMesh",w2)
  469. sp.MeshType = "Wedge"
  470. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  471. w2:BreakJoints()
  472. w2.Anchored = true
  473. w2.Parent = workspace
  474. w2.Transparency = 0.7
  475. table.insert(Effects,{w2,"Disappear",.01})
  476. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  477. table.insert(list,w2)
  478. end
  479. return unpack(list)
  480. end
  481.  
  482.  
  483. so = function(id,par,vol,pit)
  484. coroutine.resume(coroutine.create(function()
  485. local sou = Instance.new("Sound",par or workspace)
  486. sou.Volume=vol
  487. sou.Pitch=pit or 1
  488. sou.SoundId=id
  489. swait()
  490. sou:play()
  491. game:GetService("Debris"):AddItem(sou,6)
  492. end))
  493. end
  494.  
  495. function clerp(a,b,t)
  496. local qa = {QuaternionFromCFrame(a)}
  497. local qb = {QuaternionFromCFrame(b)}
  498. local ax, ay, az = a.x, a.y, a.z
  499. local bx, by, bz = b.x, b.y, b.z
  500. local _t = 1-t
  501. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  502. end
  503.  
  504. function QuaternionFromCFrame(cf)
  505. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  506. local trace = m00 + m11 + m22
  507. if trace > 0 then
  508. local s = math.sqrt(1 + trace)
  509. local recip = 0.5/s
  510. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  511. else
  512. local i = 0
  513. if m11 > m00 then
  514. i = 1
  515. end
  516. if m22 > (i == 0 and m00 or m11) then
  517. i = 2
  518. end
  519. if i == 0 then
  520. local s = math.sqrt(m00-m11-m22+1)
  521. local recip = 0.5/s
  522. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  523. elseif i == 1 then
  524. local s = math.sqrt(m11-m22-m00+1)
  525. local recip = 0.5/s
  526. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  527. elseif i == 2 then
  528. local s = math.sqrt(m22-m00-m11+1)
  529. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  530. end
  531. end
  532. end
  533.  
  534. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  535. local xs, ys, zs = x + x, y + y, z + z
  536. local wx, wy, wz = w*xs, w*ys, w*zs
  537. local xx = x*xs
  538. local xy = x*ys
  539. local xz = x*zs
  540. local yy = y*ys
  541. local yz = y*zs
  542. local zz = z*zs
  543. 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))
  544. end
  545.  
  546. function QuaternionSlerp(a, b, t)
  547. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  548. local startInterp, finishInterp;
  549. if cosTheta >= 0.0001 then
  550. if (1 - cosTheta) > 0.0001 then
  551. local theta = math.acos(cosTheta)
  552. local invSinTheta = 1/math.sin(theta)
  553. startInterp = math.sin((1-t)*theta)*invSinTheta
  554. finishInterp = math.sin(t*theta)*invSinTheta
  555. else
  556. startInterp = 1-t
  557. finishInterp = t
  558. end
  559. else
  560. if (1+cosTheta) > 0.0001 then
  561. local theta = math.acos(-cosTheta)
  562. local invSinTheta = 1/math.sin(theta)
  563. startInterp = math.sin((t-1)*theta)*invSinTheta
  564. finishInterp = math.sin(t*theta)*invSinTheta
  565. else
  566. startInterp = t-1
  567. finishInterp = t
  568. end
  569. end
  570. 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
  571. end
  572.  
  573. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  574. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  575. end
  576.  
  577. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  578. if hit.Parent==nil then
  579. return
  580. end
  581. local h=hit.Parent:FindFirstChild("Humanoid")
  582. for _,v in pairs(hit.Parent:children()) do
  583. if v:IsA("Humanoid") then
  584. h=v
  585. end
  586. end
  587. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  588. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  589. end
  590. if hit.Parent.className=="Hat" then
  591. hit=hit.Parent.Parent:findFirstChild("Head")
  592. end
  593. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  594. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  595. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  596. return
  597. end]]
  598. -- hs(hit,1.2)
  599. local c=Instance.new("ObjectValue")
  600. c.Name="creator"
  601. c.Value=game:service("Players").LocalPlayer
  602. c.Parent=h
  603. game:GetService("Debris"):AddItem(c,.5)
  604. local Damage=math.random(minim,maxim)
  605. -- h:TakeDamage(Damage)
  606. local blocked=false
  607. local block=hit.Parent:findFirstChild("Block")
  608. if block~=nil then
  609. print(block.className)
  610. if block.className=="NumberValue" then
  611. if block.Value>0 then
  612. blocked=true
  613. if decreaseblock==nil then
  614. block.Value=block.Value-1
  615. end
  616. end
  617. end
  618. if block.className=="IntValue" then
  619. if block.Value>0 then
  620. blocked=true
  621. if decreaseblock~=nil then
  622. block.Value=block.Value-1
  623. end
  624. end
  625. end
  626. end
  627. if blocked==false then
  628. -- h:TakeDamage(Damage)
  629. h.Health=h.Health-Damage
  630. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  631. else
  632. h.Health=h.Health-(Damage/2)
  633. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  634. end
  635. if Type=="Knockdown" then
  636. local hum=hit.Parent.Humanoid
  637. hum.PlatformStand=true
  638. coroutine.resume(coroutine.create(function(HHumanoid)
  639. swait(1)
  640. HHumanoid.PlatformStand=false
  641. end),hum)
  642. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  643. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  644. local bodvol=Instance.new("BodyVelocity")
  645. bodvol.velocity=angle*knockback
  646. bodvol.P=5000
  647. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  648. bodvol.Parent=hit
  649. local rl=Instance.new("BodyAngularVelocity")
  650. rl.P=3000
  651. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  652. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  653. rl.Parent=hit
  654. game:GetService("Debris"):AddItem(bodvol,.5)
  655. game:GetService("Debris"):AddItem(rl,.5)
  656. elseif Type=="Normal" then
  657. local vp=Instance.new("BodyVelocity")
  658. vp.P=500
  659. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  660. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  661. if KnockbackType==1 then
  662. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  663. elseif KnockbackType==2 then
  664. vp.velocity=Property.CFrame.lookVector*knockback
  665. end
  666. if knockback>0 then
  667. vp.Parent=hit.Parent.Torso
  668. end
  669. game:GetService("Debris"):AddItem(vp,.5)
  670. elseif Type=="Up" then
  671. local bodyVelocity=Instance.new("BodyVelocity")
  672. bodyVelocity.velocity=vt(0,60,0)
  673. bodyVelocity.P=5000
  674. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  675. bodyVelocity.Parent=hit
  676. game:GetService("Debris"):AddItem(bodyVelocity,1)
  677. local rl=Instance.new("BodyAngularVelocity")
  678. rl.P=3000
  679. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  680. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  681. rl.Parent=hit
  682. game:GetService("Debris"):AddItem(rl,.5)
  683. elseif Type=="Snare" then
  684. local bp=Instance.new("BodyPosition")
  685. bp.P=2000
  686. bp.D=100
  687. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  688. bp.position=hit.Parent.Torso.Position
  689. bp.Parent=hit.Parent.Torso
  690. game:GetService("Debris"):AddItem(bp,1)
  691. elseif Type=="Target" then
  692. local Targetting = false
  693. if Targetting==false then
  694. ZTarget=hit.Parent.Torso
  695. coroutine.resume(coroutine.create(function(Part)
  696. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  697. swait(5)
  698. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  699. end),ZTarget)
  700. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  701. local targetgui=Instance.new("BillboardGui")
  702. targetgui.Parent=ZTarget
  703. targetgui.Size=UDim2.new(10,100,10,100)
  704. local targ=Instance.new("ImageLabel")
  705. targ.Parent=targetgui
  706. targ.BackgroundTransparency=1
  707. targ.Image="rbxassetid://4834067"
  708. targ.Size=UDim2.new(1,0,1,0)
  709. cam.CameraType="Scriptable"
  710. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  711. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  712. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  713. Targetting=true
  714. RocketTarget=ZTarget
  715. for i=1,Property do
  716. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  717. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  718. swait()
  719. end
  720. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  721. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  722. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  723. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  724. end
  725. Targetting=false
  726. RocketTarget=nil
  727. targetgui.Parent=nil
  728. cam.CameraType="Custom"
  729. end
  730. end
  731. local debounce=Instance.new("BoolValue")
  732. debounce.Name="DebounceHit"
  733. debounce.Parent=hit.Parent
  734. debounce.Value=true
  735. game:GetService("Debris"):AddItem(debounce,Delay)
  736. c=Instance.new("ObjectValue")
  737. c.Name="creator"
  738. c.Value=Player
  739. c.Parent=h
  740. game:GetService("Debris"):AddItem(c,.5)
  741. end
  742. end
  743.  
  744.  
  745. function ShowDamage(Pos, Text, Time, Color)
  746. local Rate = (1 / 30)
  747. local Pos = (Pos or Vector3.new(0, 0, 0))
  748. local Text = (Text or "")
  749. local Time = (Time or 2)
  750. local Color = (Color or Color3.new(1, 0, 0))
  751. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  752. EffectPart.Anchored = true
  753. local BillboardGui = Instance.new("BillboardGui")
  754. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  755. BillboardGui.Adornee = EffectPart
  756. local TextLabel = Instance.new("TextLabel")
  757. TextLabel.BackgroundTransparency = 1
  758. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  759. TextLabel.Text = Text
  760. TextLabel.TextColor3 = Color
  761. TextLabel.TextScaled = true
  762. TextLabel.Font = Enum.Font.ArialBold
  763. TextLabel.Parent = BillboardGui
  764. BillboardGui.Parent = EffectPart
  765. game.Debris:AddItem(EffectPart, (Time + 0.1))
  766. EffectPart.Parent = game:GetService("Workspace")
  767. Delay(0, function()
  768. local Frames = (Time / Rate)
  769. for Frame = 1, Frames do
  770. wait(Rate)
  771. local Percent = (Frame / Frames)
  772. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  773. TextLabel.TextTransparency = Percent
  774. end
  775. if EffectPart and EffectPart.Parent then
  776. EffectPart:Destroy()
  777. end
  778. end)
  779. end
  780.  
  781. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003))
  782. 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))
  783. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746))
  784. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571))
  785. 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))
  786. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  787. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657))
  788. 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))
  789. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  790. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743))
  791. 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))
  792. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  793. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723))
  794. 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))
  795. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  796. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715))
  797. 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))
  798. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  799. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057))
  800. 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))
  801. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  802. Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1, 1.20000005, 1))
  803. 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))
  804. mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298))
  805. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  806. 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))
  807. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  808. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  809. 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))
  810. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1))
  811. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  812. 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))
  813. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002))
  814. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601))
  815. 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))
  816. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  817. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  818. 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))
  819. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  820. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601))
  821. 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))
  822. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  823. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  824. 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))
  825. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  826. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  827. 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))
  828. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  829. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  830. 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))
  831. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  832. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003))
  833. 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))
  834. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  835. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003))
  836. 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))
  837. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  838. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  839. 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))
  840. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  841. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285))
  842. 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))
  843. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364))
  844. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285))
  845. 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))
  846. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408))
  847. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  848. 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))
  849. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408))
  850. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  851. 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))
  852. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364))
  853. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  854. 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))
  855. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057))
  856. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  857. 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))
  858. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268))
  859. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  860. 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))
  861. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746))
  862. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
  863. 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))
  864. EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Royal purple","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  865. 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))
  866. mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  867. EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  868. 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))
  869.  
  870. DarkRiftF=function(par)
  871. while lol == true do
  872. wait()
  873. local PWN={}
  874. for _,v in pairs(game.Workspace:children()) do
  875. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  876. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  877. table.insert(PWN,v.Torso)
  878. end
  879. end
  880. end
  881. for _,t in pairs(PWN) do
  882. local targ=par.Position-t.Position
  883. local Mag=targ.magnitude
  884. if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
  885. if Mag<=30 then
  886. t.Parent.Humanoid:TakeDamage(.5)
  887. local rl=Instance.new("BodyAngularVelocity")
  888. rl.P=3000
  889. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  890. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  891. rl.Parent=t
  892. game:GetService("Debris"):AddItem(rl,.1)
  893. end
  894. if Mag<=20 then
  895. t.Parent.Humanoid:TakeDamage(.1)
  896. else
  897. local vl=Instance.new("BodyVelocity")
  898. vl.P=3000
  899. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  900. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  901. vl.Parent=t
  902. game:GetService("Debris"):AddItem(vl,.1)
  903. end
  904. end
  905. end
  906. wait(.08)
  907. end
  908. end
  909.  
  910. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  911. local msh1 = Instance.new("BlockMesh")
  912. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  913. local S=Instance.new("Part")
  914. S.Name="Effect"
  915. S.Material="Neon"
  916. S.formFactor=0
  917. S.Size=Vector3.new(x1,y1,z1)
  918. S.BrickColor=color
  919. S.Reflectance = 0
  920. S.TopSurface=0
  921. S.BottomSurface=0
  922. S.Transparency=0
  923. S.Anchored=false
  924. S.CanCollide=false
  925. S.CFrame=part.CFrame
  926. S.Parent=game.Workspace
  927. msh1.Parent = S
  928. local W=Instance.new("Weld")
  929. W.Parent=S
  930. W.Part0=S
  931. W.Part1=part
  932. W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  933. W.Parent=nil
  934. S.Anchored=true
  935. 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)
  936. end
  937.  
  938. local function BlackHole(parent,cframe)
  939. local effectsmsh = Instance.new("SpecialMesh")
  940. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  941. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  942. effectsmsh.Scale = Vector3.new(3,3,3)
  943. local effectsg = Instance.new("Part")
  944. effectsg.formFactor = 3
  945. effectsg.CanCollide = false
  946. effectsg.Name = "Effect"
  947. effectsg.Locked = true
  948. effectsg.Transparency = 1
  949. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  950. effectsg.Parent = parent
  951. effectsg.BrickColor = BrickColor.new("Royal purple")
  952. effectsg.Material="Neon"
  953. coroutine.resume(coroutine.create(function(Part,Mesh)
  954. local Mesh = Instance.new("SpecialMesh")
  955. Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  956. Mesh.MeshType = "Sphere"
  957. -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
  958. Part=Instance.new("Part")
  959. Part.Name="Effect"
  960. Part.formFactor=0
  961. Part.Size=Vector3.new(1,1,1)
  962. Part.BrickColor=BrickColor.new("Royal purple")
  963. Part.Material="Neon"
  964. Part.Reflectance = 0
  965. Part.TopSurface=0
  966. Part.BottomSurface=0
  967. Part.Transparency=0
  968. Part.Anchored=true
  969. NoOutline(Part)
  970. Part.CanCollide=false
  971. Part.CFrame=cframe
  972. Part.Parent=parent
  973. Mesh.Parent = Part
  974. lol=true
  975. coroutine.resume(coroutine.create(function()
  976. DarkRiftF(Part)
  977. end))
  978. for i=0,200 do
  979. wait()
  980. DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Royal purple"))
  981. Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
  982. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  983. end
  984. local fff=200
  985. for i=0,100 do
  986. wait()
  987. DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Royal purple"))
  988. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  989. end
  990. for i=0,1,0.05 do
  991. wait()
  992. Part.Transparency=Part.Transparency+0.05
  993. Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
  994. end
  995. lol=false
  996. Part.Parent=nil
  997. end),nil,nil)
  998. end
  999.  
  1000. function makeShockwave(height,color,speed,range,pulse)
  1001. local range = range or 2000
  1002. local p = Instance.new("Part")
  1003. p.Anchored = true
  1004. p.CanCollide = false
  1005. p.FormFactor = "Custom"
  1006. p.BrickColor = color
  1007. p.Parent = workspace
  1008. local m = Instance.new("SpecialMesh",p)
  1009. m.MeshId = "rbxassetid://3270017"
  1010. local estimateSurvival = math.floor(range/speed) * 0.03
  1011. game:GetService("Debris"):AddItem(p,estimateSurvival)
  1012. Spawn(function ()
  1013. for i = 1,range,speed do
  1014. p.Transparency = 1-math.min(0.5,3-(i/500))
  1015. m.Scale = Vector3.new(i,i,i*height)
  1016. p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
  1017. wait()
  1018. end
  1019. p:Destroy()
  1020. end)
  1021. end
  1022.  
  1023. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1024. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1025. prt.Anchored=true
  1026. prt.CFrame=cframe
  1027. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
  1028. game:GetService("Debris"):AddItem(prt,2)
  1029. coroutine.resume(coroutine.create(function(Part,Mesh)
  1030. for i=0,2,delay do
  1031. wait()
  1032. Part.CFrame=Part.CFrame
  1033. Part.Transparency=i
  1034. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1035. end
  1036. Part.Parent=nil
  1037. end),prt,msh)
  1038. end
  1039.  
  1040. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1041. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1042. prt.Anchored=true
  1043. prt.CFrame=cframe
  1044. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1045. game:GetService("Debris"):AddItem(prt,5)
  1046. coroutine.resume(coroutine.create(function(Part,Mesh)
  1047. for i=0,1,delay do
  1048. wait()
  1049. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1050. Part.Transparency=i
  1051. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1052. end
  1053. Part.Parent=nil
  1054. end),prt,msh)
  1055. end
  1056.  
  1057. local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  1058. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
  1059. if Type~=2 then
  1060. prt.Anchored=true
  1061. end
  1062. prt.CFrame=cframe
  1063. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1064. game:GetService("Debris"):AddItem(prt,5)
  1065. coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  1066. local wld=nil
  1067. if dur==2 then
  1068. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  1069. end
  1070. for i=0,1,delay do
  1071. swait()
  1072. if dur==1 then
  1073. Part.CFrame=Part.CFrame
  1074. elseif dur==2 then
  1075. wld.C0=cframe
  1076. end
  1077. Part.Transparency=i
  1078. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1079. end
  1080. Part.Parent=nil
  1081. end),prt,msh,Type)
  1082. end
  1083.  
  1084. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1085. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1086. prt.Anchored=true
  1087. prt.CFrame=cframe
  1088. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1089. game:GetService("Debris"):AddItem(prt,5)
  1090. coroutine.resume(coroutine.create(function(Part,Mesh)
  1091. for i=0,1,delay do
  1092. swait()
  1093. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1094. Part.Transparency=i
  1095. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1096. end
  1097. Part.Parent=nil
  1098. end),prt,msh)
  1099. end
  1100.  
  1101. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1102. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1103. prt.Anchored=true
  1104. prt.CFrame=cframe
  1105. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1106. game:GetService("Debris"):AddItem(prt,5)
  1107. coroutine.resume(coroutine.create(function(Part,Mesh)
  1108. for i=0,1,delay do
  1109. wait()
  1110. Part.CFrame=Part.CFrame
  1111. Part.Transparency=i
  1112. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1113. end
  1114. Part.Parent=nil
  1115. end),prt,msh)
  1116. end
  1117.  
  1118. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1119. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
  1120. prt.Anchored=true
  1121. prt.CFrame=cframe
  1122. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1123. game:GetService("Debris"):AddItem(prt,5)
  1124. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1125. end
  1126.  
  1127. function Blast(parent)
  1128. MagicBlock(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  1129. MagicWaveThing(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  1130. end
  1131.  
  1132. function ChargeBall(parent,t)
  1133. local counter=0
  1134. local size=1
  1135. for i=0,t,1 do
  1136. swait()
  1137. counter=counter+1
  1138. if counter%10==0 then
  1139. if size==3 then
  1140. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1141. elseif size==2 then
  1142. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1143. end
  1144. end
  1145. if counter%5==0 then
  1146. if size==1 then
  1147. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1148. elseif size==2 then
  1149. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1150. elseif size==3 then
  1151. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1152. end
  1153. end
  1154. end
  1155. end
  1156.  
  1157. function ChargeBall2(parent,t)
  1158. local counter=0
  1159. local size=1
  1160. for i=0,t,1 do
  1161. swait()
  1162. counter=counter+1
  1163. if counter%10==0 then
  1164. if size==3 then
  1165. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1166. elseif size==2 then
  1167. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1168. end
  1169. end
  1170. if counter%5==0 then
  1171. if size==1 then
  1172. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1173. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1174. elseif size==2 then
  1175. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1176. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1177. elseif size==3 then
  1178. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1179. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1180. end
  1181. end
  1182. end
  1183. end
  1184.  
  1185. function MagniDamage(Part,dis,mind,maxd,force,knock)
  1186. for _,c in pairs(workspace:children()) do
  1187. local hum=c:findFirstChild("Humanoid")
  1188. if hum~=nil then
  1189. local head=c:findFirstChild("Torso")
  1190. if head~=nil then
  1191. local targ=head.Position-Part.Position
  1192. local mag=targ.magnitude
  1193. if mag<=dis and c.Name~=Character.Name then
  1194. Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
  1195. end
  1196. end
  1197. end
  1198. end
  1199. end
  1200.  
  1201. function computeDirection(vec)
  1202. local lenSquared = vec.magnitude * vec.magnitude
  1203. local invSqrt = 1 / math.sqrt(lenSquared)
  1204. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  1205. end
  1206.  
  1207. function attackone()
  1208. attack = true
  1209. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1210. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end)
  1211. local fx=Hitbox.Touched:connect(function(part)
  1212. local human=part.Parent:findFirstChild("Humanoid")
  1213. if human~=nil and bounce==false then
  1214. bounce=true
  1215. local rndm=math.random(1,#hitsounds)
  1216. local r=rndm
  1217. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1218. end
  1219. end)
  1220. for i = 0,1,0.1 do
  1221. swait()
  1222. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
  1223. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1224. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
  1225. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
  1226. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
  1227. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  1228. end
  1229. so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
  1230. for i = 0,1,0.1 do
  1231. swait()
  1232. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1233. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1234. local h = 5
  1235. 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)
  1236. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1237. 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)
  1238. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1239. scfr = blcf
  1240. elseif not scfr then
  1241. scfr = blcf
  1242. end
  1243. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
  1244. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
  1245. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1246. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1247. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
  1248. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
  1249. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1250. end
  1251. attack = false
  1252. bounce=false
  1253. scfr=nil
  1254. fx:disconnect()
  1255. con:disconnect()
  1256. end
  1257.  
  1258. function attacktwo()
  1259. attack=true
  1260. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1261. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end)
  1262. local fx=Hitbox.Touched:connect(function(part)
  1263. local human=part.Parent:findFirstChild("Humanoid")
  1264. if human~=nil and bounce==false then
  1265. bounce=true
  1266. local rndm=math.random(1,#hitsounds)
  1267. local r=rndm
  1268. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1269. end
  1270. end)
  1271. for i=0,1,.1 do
  1272. swait()
  1273. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  1274. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  1275. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1276. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1277. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  1278. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  1279. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1280. end
  1281. so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
  1282. for i = 0,1,0.1 do
  1283. swait()
  1284. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1285. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1286. local h = 5
  1287. 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)
  1288. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1289. 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)
  1290. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1291. scfr = blcf
  1292. elseif not scfr then
  1293. scfr = blcf
  1294. end
  1295. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  1296. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  1297. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  1298. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  1299. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  1300. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  1301. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1302. end
  1303. scfr=nil
  1304. attack=false
  1305. bounce=false
  1306. con:disconnect()
  1307. fx:disconnect()
  1308. end
  1309.  
  1310. function attackthree()
  1311. attack=true
  1312. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1313. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,6222,152222,math.random(5,5),"Normal",RootPart,.2,1) end)
  1314. local fx=Hitbox.Touched:connect(function(part)
  1315. local human=part.Parent:findFirstChild("Humanoid")
  1316. if human~=nil and bounce==false then
  1317. bounce=true
  1318. local rndm=math.random(1,#hitsounds)
  1319. local r=rndm
  1320. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1321. end
  1322. end)
  1323. for i=0,1,.1 do
  1324. swait()
  1325. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4)
  1326. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1327. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
  1328. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4)
  1329. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4)
  1330. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4)
  1331. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1332. end
  1333. so("http://www.roblox.com/asset/?id=199145913",handle,1,.9)
  1334. for i = 0,1,0.1 do
  1335. swait()
  1336. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1337. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1338. local h = 5
  1339. 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)
  1340. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1341. 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)
  1342. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1343. scfr = blcf
  1344. elseif not scfr then
  1345. scfr = blcf
  1346. end
  1347. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1348. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  1349. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4)
  1350. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
  1351. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4)
  1352. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4)
  1353. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4)
  1354. end
  1355. attack=false
  1356. bounce=false
  1357. scfr=nil
  1358. con:disconnect()
  1359. fx:disconnect()
  1360. end
  1361.  
  1362. function attackfour()
  1363. attack = true
  1364. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1365. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,9222,18222,math.random(20,30),"Normal",RootPart,.2,1) end)
  1366. local fx=Hitbox.Touched:connect(function(part)
  1367. local human=part.Parent:findFirstChild("Humanoid")
  1368. if human~=nil and bounce==false then
  1369. bounce=true
  1370. local rndm=math.random(1,#hitsounds)
  1371. local r=rndm
  1372. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1373. end
  1374. end)
  1375. for i = 0,1,0.1 do
  1376. swait()
  1377. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.3)
  1378. Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.3)
  1379. RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.3)
  1380. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3)
  1381. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.3)
  1382. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.3)
  1383. handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.3)
  1384. end
  1385. so("http://www.roblox.com/asset/?id=199145433",Hitbox,1,1.1)
  1386. local v=it("BodyVelocity",Torso)
  1387. v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1
  1388. v.velocity=RootPart.CFrame.lookVector*50
  1389. for i = 0,1,0.1 do
  1390. swait()
  1391. local blcf = Hitbox.CFrame*cf(0,0,0)
  1392. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1393. local h = 5
  1394. 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)
  1395. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1396. 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)
  1397. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1398. scfr = blcf
  1399. elseif not scfr then
  1400. scfr = blcf
  1401. end
  1402. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.3)
  1403. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1404. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.3)
  1405. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.3)
  1406. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1407. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1408. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.3)
  1409. end
  1410. v.Parent=nil
  1411. scfr=nil
  1412. attack = false
  1413. bounce=false
  1414. con:disconnect()
  1415. fx:disconnect()
  1416. end
  1417.  
  1418. function LustrisFulgo()
  1419. attack=true
  1420. Humanoid.WalkSpeed=0
  1421. for i=0,1,0.1 do
  1422. swait()
  1423. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-15),math.rad(0),math.rad(10)),.3)
  1424. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(-10)),.3)
  1425. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(7)), 0.3)
  1426. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(4), math.rad(-15)), 0.3)
  1427. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-15),math.rad(90),math.rad(0)),.3)
  1428. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-25),math.rad(-90),math.rad(0)),.3)
  1429. handleweld.C0=clerp(handleweld.C0,cf(0,0,-.5)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1430. end
  1431. local function boom()
  1432. local pprt=ppart(3,game.Workspace,0,1,BrickColor.new("Black"),"Effect",vt(1,1,1))
  1433. pprt.Anchored=true
  1434. pprt.CFrame=EffectPart.CFrame
  1435. game:GetService("Debris"):AddItem(pprt,2)
  1436. MagicCircle(BrickColor.new("Black"),EffectPart.CFrame,20,20,20,-0.01,-0.01,-0.01,0.01)
  1437. so("http://roblox.com/asset/?id=228343412",EffectPart,1,0.6)
  1438. so("http://roblox.com/asset/?id=228343408",EffectPart,1,1.4)
  1439. local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Black"),"Effect",vt(1,1,1))
  1440. 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))
  1441. local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
  1442. MagniDamage(wave,20,15222,25222,math.random(20,30),"Knockdown",RootPart)
  1443. for i=0,80 do
  1444. swait()
  1445. MagicBlock(BrickColor.new("Black"),EffectPart.CFrame,7,7,7,-0.5,-0.5,-0.5,0.05)
  1446. MagicCircle(BrickColor.new("Black"),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)
  1447. wave.Size=vt(1+i,1+i,1+i)
  1448. wavemesh.Scale=vt(1+i,1+i,1+i)
  1449. wave.CFrame=EffectPart.CFrame
  1450. Humanoid.Health=Humanoid.Health+.15
  1451. end
  1452. wave:Destroy()
  1453. end
  1454. boom()
  1455. attack=false
  1456. Humanoid.WalkSpeed=16
  1457. end
  1458.  
  1459. function LeviterGlomus()
  1460. attack=true
  1461. for i=0,1,.1 do
  1462. swait()
  1463. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1464. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1465. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
  1466. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
  1467. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-3),math.rad(65),math.rad(0)),.3)
  1468. 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)
  1469. handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(-35),math.rad(-15),math.rad(0)),.3)
  1470. end
  1471. so("http://www.roblox.com/asset/?id=199145659",EffectPart2,1,1)
  1472. efprt=part(Enum.FormFactor.Custom,game.Workspace,Enum.Material.Neon,0,0,"Black","BallEffect",Vector3.new(2, 2, 2))
  1473. 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))
  1474. mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  1475. ChargeBall(EffectPart2,35)
  1476. for i=0,1,.1 do
  1477. swait()
  1478. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1479. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1480. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
  1481. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
  1482. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  1483. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  1484. handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(0),math.rad(-15),math.rad(0)),.3)
  1485. end
  1486. so("http://www.roblox.com/asset/?id=199145534",EffectPart2,1,1.2)
  1487. efprt:BreakJoints()
  1488. local Target=mouse.Hit.p
  1489. local direction = Target - handle.Position
  1490. direction = computeDirection(direction)
  1491. local pos = handle.Position + (direction * 10.0)
  1492. efprt.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(math.pi/2, 0, 0)
  1493. local floatForce = Instance.new("BodyForce")
  1494. floatForce.force = Vector3.new(0, efprt:GetMass() * 196.1, 0.0)
  1495. floatForce.Parent = efprt
  1496. efprt.Velocity = direction * 160
  1497. efprt.Touched:connect(function(hit)
  1498. if not hit:IsDescendantOf(Character) then
  1499. if hit.Name~="Effect" then
  1500. MagniDamage(efprt,15,12225,22225,math.random(20,30),"Knockdown",RootPart)
  1501. floatForce.Parent=nil
  1502. efprt.Anchored=true
  1503. so("http://www.roblox.com/asset/?id=228343330",hit,1,.8)
  1504. Blast(efprt)
  1505. efprt:Destroy()
  1506. end
  1507. end
  1508. end)
  1509. game:GetService("Debris"):AddItem(efprt,6)
  1510. attack=false
  1511. end
  1512.  
  1513. function PortalStorm()
  1514. Humanoid.WalkSpeed=0
  1515. attack=true
  1516. for i=0,1,.1 do
  1517. swait()
  1518. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1519. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1520. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-40)), 0.3)
  1521. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(40)), 0.3)
  1522. 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)
  1523. 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)
  1524. handleweld.C0=clerp(handleweld.C0,cf(-1,-2.3,-.4)*angles(math.rad(-165),math.rad(-15),math.rad(50)),.3)
  1525. end
  1526. so("http://www.roblox.com/asset/?id=199145446",handle,1,1)
  1527. ChargeBall2(handle,100)
  1528. makeShockwave(0.5,BrickColor.new("Royal purple"),30,1000,0)
  1529. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
  1530. so("http://www.roblox.com/asset/?id=280247455",game.Workspace,1,1)
  1531. wait(2)
  1532. so("http://www.roblox.com/asset/?id=110284742",game.Workspace,1,0)
  1533. delay(0.5,function ()
  1534. MagniDamage(Torso,2000,32225,52220,math.random(50,70),"Knockdown",RootPart)
  1535. end)
  1536. Humanoid.Health=Humanoid.Health-0
  1537. makeShockwave(4,BrickColor.new("Teal"),10,2000,1)
  1538. attack=false
  1539. Humanoid.WalkSpeed=9
  1540. wait(4)
  1541. Humanoid.WalkSpeed=16
  1542. end
  1543.  
  1544. function SolSiderea()
  1545. Humanoid.WalkSpeed=0
  1546. attack=true
  1547. so("http://www.roblox.com/asset/?id=280758833",Workspace,1,1.3)
  1548. for i=0,1,.1 do
  1549. swait()
  1550. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1551. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1552. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(95), math.rad(-10), math.rad(-17)), 0.3)
  1553. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(95), math.rad(10), math.rad(17)), 0.3)
  1554. 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)
  1555. 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)
  1556. handleweld.C0=clerp(handleweld.C0,cf(0,-2,-.5)*angles(math.rad(0),math.rad(7.5),math.rad(-75)),.3)
  1557. end
  1558. for i=0,1,.1 do
  1559. swait()
  1560. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1561. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1562. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(-5), math.rad(8)), 0.3)
  1563. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(5), math.rad(-8)), 0.3)
  1564. 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)
  1565. 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)
  1566. handleweld.C0=clerp(handleweld.C0,cf(-1.1,-4,-2)*angles(math.rad(-72),math.rad(8.5),math.rad(-92)),.3)
  1567. end
  1568. coroutine.resume(coroutine.create(function() ChargeBall(EffectPart,120) end))
  1569. local n=2
  1570. local orb=ppart(3,Character,0,1,BrickColor.new("Royal purple"),"Orb",vt())
  1571. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
  1572. local owld=wweld(orb,orb,Torso,cf(-10,-150,0))
  1573. for i=1,0.3,-0.01 do
  1574. wait()
  1575. orb.Transparency=i
  1576. omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
  1577. MagicBlock(BrickColor.new("Royal purple"),orb.CFrame,15,15,15,2,2,2,0.1)
  1578. local ef=ppart(3,workspace,0,0,BrickColor.new("Royal purple"),"Effect",vt())
  1579. ef.Anchored=true
  1580. local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
  1581. local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0)
  1582. ef.CFrame=orb.CFrame*ceef
  1583. game:GetService("Debris"):AddItem(ef,2)
  1584. coroutine.resume(coroutine.create(function(Part,Mesh)
  1585. for i=0,1,0.1 do
  1586. wait()
  1587. Part.Transparency=i
  1588. Part.CFrame=Part.CFrame*cf(0,-1,0)
  1589. end
  1590. Part.Parent=nil
  1591. end),ef,emsh)
  1592. end
  1593. local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector
  1594. wait(.5)
  1595. orb.Parent=nil
  1596. wait(1)
  1597. local hit,pos = rayCast(orb.Position,Pos,1000,Character)
  1598. local mag=(orb.Position-pos).magnitude
  1599. BlackHole(game.Workspace,cf(pos))
  1600. coroutine.resume(coroutine.create(function()
  1601. local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Black"),"Effect",vt(1,1,1))
  1602. wweld(game.Workspace,wave,orb,Torso.CFrame)
  1603. local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
  1604. for i=1,100 do
  1605. swait()
  1606. wave.Size=vt(1+i,1+i,1+i)
  1607. wavemesh.Scale=vt(1+i,1+i,1+i)
  1608. wave.CFrame=cf(pos)
  1609. end
  1610. end))
  1611. coroutine.resume(coroutine.create(function()
  1612. for i=0,20 do
  1613. swait(15)
  1614. local range = 1500
  1615. local p = Instance.new("Part")
  1616. p.Anchored = true
  1617. p.CanCollide = false
  1618. p.FormFactor = "Custom"
  1619. p.BrickColor = BrickColor.new("Royal purple")
  1620. p.Parent = workspace
  1621. p.Name="Effect"
  1622. p.CFrame=cf(pos)
  1623. local m = Instance.new("SpecialMesh",p)
  1624. m.MeshId = "rbxassetid://3270017"
  1625. local estimateSurvival = math.floor(range/30) * 0.03
  1626. game:GetService("Debris"):AddItem(p,estimateSurvival)
  1627. Spawn(function ()
  1628. for i = 1,range,30 do
  1629. p.Transparency = 1-math.min(0.5,3-(i/500))
  1630. m.Scale = Vector3.new(i,i,i*0.5)
  1631. p.CFrame = cf(pos) * CFrame.Angles(math.rad(90),0,0)
  1632. wait()
  1633. end
  1634. p:Destroy()
  1635. end)
  1636. end
  1637. end))
  1638. MagicCylinder(BrickColor.new("Royal purple"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  1639. for i=1,2 do
  1640. end
  1641. for i=1,5 do
  1642. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  1643. end
  1644. for i=0,5 do
  1645. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  1646. end
  1647. local ref=ppart(3,workspace,0,1,BrickColor.new("Royal purple"),"Effect",vt())
  1648. ref.CFrame=cf(pos)
  1649. coroutine.resume(coroutine.create(function(Part)
  1650. wait(1)
  1651. Part.Parent=nil
  1652. end),ref)
  1653. MagniDamage(ref,25,22220,32220,40,"Knockdown",ref)
  1654. if hit~=nil then
  1655. Damagefunc(ref,hit,5022,70222,60,"Knockdown",RootPart,0)
  1656. end
  1657. local n=2
  1658. MagicWave(BrickColor.new("Royal purple"),cf(pos)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
  1659. swait(75)
  1660. Humanoid.WalkSpeed=16
  1661. attack=false
  1662. end
  1663.  
  1664. attacktype=1
  1665. mouse.Button1Down:connect(function()
  1666. if attacktype==1 and attack==false then
  1667. attacktype=2
  1668. attackone()
  1669. elseif attacktype==2 and attack==false then
  1670. attacktype=3
  1671. attacktwo()
  1672. elseif attacktype==3 and attack==false then
  1673. attacktype=4
  1674. attackthree()
  1675. elseif attacktype==4 and attack==false then
  1676. attacktype=1
  1677. attackfour()
  1678. end
  1679. end)
  1680.  
  1681. mouse.KeyDown:connect(function(k)
  1682. k=k:lower()
  1683. if attack == false and k == 'e' then
  1684. LeviterGlomus()
  1685. ChargeBall(efprt,100)
  1686. end
  1687. if attack == false and k == 'q' then
  1688. LustrisFulgo()
  1689. end
  1690. if attack == false and k == 'f' and lolxdwat==false then
  1691. lolxdwat=true
  1692. SolSiderea()
  1693. lolxdwat=false
  1694. end
  1695. if attack == false and k == 'r' and cooldown==false then
  1696. cooldown=true
  1697. PortalStorm()
  1698. cooldown=false
  1699. end
  1700. end)
  1701.  
  1702.  
  1703. local sine = 0
  1704. local change = 1
  1705. local val = 0
  1706.  
  1707. while true do
  1708. swait()
  1709. sine = sine + change
  1710. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1711. local velderp=RootPart.Velocity.y
  1712. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1713. if equipped==true or equipped==false then
  1714. if attack==false then
  1715. idle=idle+1
  1716. else
  1717. idle=0
  1718. end
  1719. if idle>=500 then
  1720. if attack==false then
  1721. end
  1722. end
  1723. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1724. Anim="Jump"
  1725. if attack==false then
  1726. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1727. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1728. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
  1729. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  1730. 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)
  1731. 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)
  1732. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1733. end
  1734. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1735. Anim="Fall"
  1736. if attack==false then
  1737. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1738. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
  1739. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
  1740. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1741. 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)
  1742. 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)
  1743. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  1744. end
  1745. elseif torvel<1 and hitfloor~=nil then
  1746. Anim="Idle"
  1747. if attack==false then
  1748. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3)
  1749. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3)
  1750. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3)
  1751. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1752. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
  1753. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3)
  1754. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2)
  1755. end
  1756. elseif torvel>2 and hitfloor~=nil then
  1757. Anim="Walk"
  1758. if attack==false then
  1759. change=3
  1760. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  1761. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3)
  1762. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3)
  1763. 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)
  1764. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  1765. LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  1766. handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1767. end
  1768. end
  1769. end
  1770. if #Effects>0 then
  1771. for e=1,#Effects do
  1772. if Effects[e]~=nil then
  1773. local Thing=Effects[e]
  1774. if Thing~=nil then
  1775. local Part=Thing[1]
  1776. local Mode=Thing[2]
  1777. local Delay=Thing[3]
  1778. local IncX=Thing[4]
  1779. local IncY=Thing[5]
  1780. local IncZ=Thing[6]
  1781. if Thing[1].Transparency<=1 then
  1782. if Thing[2]=="Block1" then
  1783. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1784. Mesh=Thing[1].Mesh
  1785. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1786. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1787. elseif Thing[2]=="Cylinder" then
  1788. Mesh=Thing[1].Mesh
  1789. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1790. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1791. elseif Thing[2]=="Blood" then
  1792. Mesh=Thing[7]
  1793. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1794. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1795. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1796. elseif Thing[2]=="Elec" then
  1797. Mesh=Thing[1].Mesh
  1798. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1799. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1800. elseif Thing[2]=="Disappear" then
  1801. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1802. end
  1803. else
  1804. Part.Parent=nil
  1805. table.remove(Effects,e)
  1806. end
  1807. end
  1808. end
  1809. end
  1810. end
  1811. end
  1812. end)
  1813.  
  1814. anchortorso.MouseButton1Click:connect(function()
  1815. plr.Character.Torso.Anchored = true
  1816. wait(8)
  1817. plr.Character.Torso.Anchored = false
  1818. end)
  1819.  
  1820. zenoscript.MouseButton1Click:connect(function()
  1821. plr = game.Players.LocalPlayer
  1822. char = plr.Character
  1823. ff = Instance.new('ForceField', char)
  1824. ff.Visible = false
  1825. mouse = plr:GetMouse()
  1826. human = char.Humanoid
  1827. torso = char.Torso
  1828. root = char.HumanoidRootPart
  1829. lleg = char["Left Leg"]
  1830. rleg = char["Right Leg"]
  1831. larm = char["Left Arm"]
  1832. rarm = char["Right Arm"]
  1833. head = char.Head
  1834. lshold = torso["Left Shoulder"]
  1835. rshold = torso["Right Shoulder"]
  1836. neck = torso.Neck
  1837. lhip = torso["Left Hip"]
  1838. rhip = torso["Right Hip"]
  1839. lscf = lshold.C0
  1840. rscf = rshold.C0
  1841. ncf = neck.C0
  1842. lhcf = lhip.C0
  1843. rhcf = rhip.C0
  1844. rad = math.rad
  1845. random = math.random
  1846. sin = math.sin
  1847. cos = math.cos
  1848. floor = math.floor
  1849. lsho = lshold.C0
  1850. rsho = rshold.C0
  1851. cd1 = true
  1852. cd2 = true
  1853.  
  1854. function harmlessexplo()
  1855. sph = Instance.new('Part', char)
  1856. sph.Anchored = true
  1857. sph.CFrame = char.Torso.CFrame
  1858. sph.CanCollide = false
  1859. sph.Anchored = true
  1860. sph.Transparency = 0
  1861. sph.Material = "Neon"
  1862. sph.Shape = "Ball"
  1863. sph.Size = Vector3.new(0.2,0.2,0.2)
  1864. for i = 1,50 do
  1865. wait()
  1866. sph.Size = sph.Size + Vector3.new(4,4,4)
  1867. sph.Transparency = sph.Transparency + 0.05
  1868. sph.CFrame = char.Torso.CFrame
  1869. end
  1870. sph:Destroy()
  1871. end
  1872.  
  1873. function entrance()
  1874.  
  1875. for _,q in pairs(char:GetChildren()) do
  1876. if q:IsA('Accessory') then
  1877. q:Destroy()
  1878. end
  1879.  
  1880. a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
  1881. a.MeshId = "279174949"
  1882. a.BodyPart = "LeftArm"
  1883.  
  1884. a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
  1885. a.MeshId = "319336109"
  1886. a.BodyPart = "LeftLeg"
  1887.  
  1888. a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
  1889. a.MeshId = "279174886"
  1890. a.BodyPart = "RightArm"
  1891.  
  1892. a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
  1893. a.MeshId = "319336155"
  1894. a.BodyPart = "RightLeg"
  1895.  
  1896. a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
  1897. a.MeshId = "376169183"
  1898. a.BodyPart = "Torso"
  1899.  
  1900. if q:IsA('Shirt') then
  1901. q.ShirtTemplate = "rbxassetid://704100781"
  1902. end
  1903.  
  1904. if q:IsA('Pants') then
  1905. q.PantsTemplate = "rbxassetid://704102680"
  1906. end
  1907.  
  1908. char["Left Arm"].BrickColor = BrickColor.new('Cyan')
  1909. char["Right Arm"].BrickColor = BrickColor.new('Cyan')
  1910.  
  1911. if q.Name ~= "HumanoidRootPart" and q:IsA('Part') then
  1912. q.Transparency = 1
  1913. end
  1914. end
  1915.  
  1916. char.Humanoid.HipHeight = 60
  1917. wait(.05)
  1918. char.Torso.Anchored = true
  1919.  
  1920. sph = Instance.new('Part', char)
  1921. sph.Anchored = true
  1922. sph.CFrame = char.Torso.CFrame
  1923. sph.CanCollide = false
  1924. sph.Anchored = true
  1925. sph.Transparency = 0
  1926. sph.Material = "Neon"
  1927. sph.Shape = "Ball"
  1928. sph.Size = Vector3.new(0.2,0.2,0.2)
  1929. sp = Instance.new('SpecialMesh', sph)
  1930. sp.MeshId = "http://www.roblox.com/Asset/?id=9982590"
  1931. sp.Scale = Vector3.new(0.2,0.2,0.2)
  1932. a = 0
  1933.  
  1934. for i = 1, 25 do
  1935. sph.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
  1936. sp.Scale = sp.Scale + Vector3.new(0.3,0.3,0.3)
  1937. sph.Rotation = Vector3.new( a, a, a)
  1938. wait()
  1939. a = a+3
  1940. end
  1941. for _,e in pairs(char:GetChildren()) do
  1942. if e:IsA('Accessory') then
  1943. e.Handle.Transparency = 0
  1944. end
  1945. if e.Name ~= "HumanoidRootPart" and e:IsA('Part') then
  1946. e.Transparency = 0
  1947. end
  1948. end
  1949. for i = 1, 115 do
  1950. sph.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
  1951. sph.Transparency = sph.Transparency + 0.01
  1952. sph.Rotation = Vector3.new( a, a, a)
  1953. wait()
  1954. a = a+15
  1955. end
  1956. char.Torso.Anchored = false
  1957. char.Humanoid.HipHeight = 0
  1958. end
  1959.  
  1960. function chat(chatt)
  1961. local text = Instance.new("BillboardGui", game.Players.LocalPlayer.Character)
  1962. text.Size = UDim2.new(0,100,0,40)
  1963. text.StudsOffset = Vector3.new(0,3,0)
  1964. text.Adornee = game.Players.LocalPlayer.Character.Head
  1965. text.Name = "1"
  1966. local text1 = Instance.new("TextLabel",text)
  1967. text1.BackgroundTransparency = 1
  1968. text1.TextStrokeTransparency = 1
  1969. text1.TextTransparency = 1
  1970. text1.BorderSizePixel = 0
  1971. text1.Text = chatt
  1972. text1.Font = "Fantasy"
  1973. text1.FontSize = "Size36"
  1974. text1.TextStrokeTransparency = 0
  1975. text1.TextColor3 = Color3.new(1,1,1)
  1976. text1.TextStrokeColor3 = Color3.new(0,0,0)
  1977. text1.Size = UDim2.new(1,0,0.5,0)
  1978. for i=1,15 do
  1979. wait()
  1980. text1.TextStrokeTransparency = text1.TextStrokeTransparency - 0.1
  1981. text1.TextTransparency = text1.TextTransparency - 0.1
  1982. end
  1983. wait(1)
  1984. for i=1,25 do
  1985. wait()
  1986. text1.TextStrokeTransparency = text1.TextStrokeTransparency + 0.1
  1987. text1.TextTransparency = text1.TextTransparency + 0.1
  1988. end
  1989. end
  1990.  
  1991. function explo()
  1992. sph = Instance.new('Part', char)
  1993. sph.Touched:connect(function(hit)
  1994. if hit.Parent:FindFirstChild('Humanoid') then
  1995. if hit.Parent.Name ~= plr.Name then
  1996. hit.Parent:Destroy()
  1997. else
  1998. end
  1999. end
  2000. end)
  2001. sph.Anchored = true
  2002. sph.CFrame = char.Torso.CFrame
  2003. sph.CanCollide = false
  2004. sph.Anchored = true
  2005. sph.Transparency = 0
  2006. sph.Material = "Neon"
  2007. sph.Shape = "Ball"
  2008. sph.Size = Vector3.new(0.2,0.2,0.2)
  2009. for i = 1,50 do
  2010. wait()
  2011. sph.Size = sph.Size + Vector3.new(4,4,4)
  2012. sph.Transparency = sph.Transparency + 0.03
  2013. sph.CFrame = char.Torso.CFrame
  2014. end
  2015. sph:Destroy()
  2016. end
  2017.  
  2018. --// Main script, don't touch if you don't know how to script or you might ruin the script.
  2019.  
  2020. entrance()
  2021.  
  2022. mouse.Button1Down:connect(function()
  2023. if cd1 then
  2024. if mouse.Target.Parent:FindFirstChild('Humanoid') then
  2025. cd1 = false
  2026. local target = mouse.Target.Parent
  2027. target:FindFirstChild('Torso').Anchored = true
  2028. for i=0,1,0.1 do
  2029. rshold.C0 = rshold.C0:lerp(CFrame.new(0.9,0.5,-0.1)*CFrame.Angles(rad(-90),rad(90),rad(-180)),i)
  2030. wait()
  2031. end
  2032. chat("Destroy!")
  2033. wait(.5)
  2034. particle = Instance.new('Part', workspace)
  2035. particle.Anchored = true
  2036. particle.CFrame = target:FindFirstChild('Torso').CFrame
  2037. particle.CanCollide = false
  2038. particle.Anchored = true
  2039. particle.Transparency = 1
  2040. particle.Size = Vector3.new(6.52, 10.36, 6.34)
  2041. local pe = Instance.new("ParticleEmitter")
  2042. pe.Acceleration = Vector3.new(7, 7, 7)
  2043. pe.Lifetime = NumberRange.new(1, 4)
  2044. pe.Rate = 500
  2045. pe.RotSpeed = NumberRange.new(7, 7)
  2046. pe.LightEmission = 0.700
  2047. pe.Rotation = NumberRange.new(0, 0)
  2048. pe.Size = NumberSequence.new({
  2049. NumberSequenceKeypoint.new(0, 1, 0),
  2050. NumberSequenceKeypoint.new(1, 10, 0),
  2051. NumberSequenceKeypoint.new(1, 10, 0)
  2052. })
  2053. pe.Texture = "http://www.roblox.com/asset/?id=242996110"
  2054. pe.Transparency = NumberSequence.new({
  2055. NumberSequenceKeypoint.new(0, 0, 0),
  2056. NumberSequenceKeypoint.new(0.4, 0.3, 0),
  2057. NumberSequenceKeypoint.new(1, 1, 1)
  2058. })
  2059. pe.ZOffset = 5
  2060. pe.VelocitySpread = 360
  2061. pe.Parent = particle
  2062. pe.Enabled = true
  2063. wait(1)
  2064. pe.Enabled = false
  2065. target:Destroy()
  2066. for i=0,1,0.1 do
  2067. rshold.C0 = rshold.C0:lerp(rsho,i)
  2068. wait()
  2069. end
  2070. wait(1)
  2071. cd1 = true
  2072. end
  2073. end
  2074. end)
  2075.  
  2076. mouse.KeyDown:connect(function(key)
  2077. if key == "t" then
  2078. if cd1 then
  2079. cd1 = false
  2080. particle = Instance.new('Part', workspace)
  2081. particle.Anchored = true
  2082. particle.CFrame = char:FindFirstChild('Torso').CFrame
  2083. particle.CanCollide = false
  2084. particle.Anchored = true
  2085. particle.Transparency = 1
  2086. particle.Size = Vector3.new(6.52, 10.36, 6.34)
  2087. local pe = Instance.new("ParticleEmitter")
  2088. pe.Acceleration = Vector3.new(7, 7, 7)
  2089. pe.Lifetime = NumberRange.new(1, 4)
  2090. pe.Rate = 500
  2091. pe.RotSpeed = NumberRange.new(7, 7)
  2092. pe.LightEmission = 0.700
  2093. pe.Rotation = NumberRange.new(0, 0)
  2094. pe.Size = NumberSequence.new({
  2095. NumberSequenceKeypoint.new(0, 1, 0),
  2096. NumberSequenceKeypoint.new(1, 10, 0),
  2097. NumberSequenceKeypoint.new(1, 10, 0)
  2098. })
  2099. pe.Texture = "http://www.roblox.com/asset/?id=242996110"
  2100. pe.Transparency = NumberSequence.new({
  2101. NumberSequenceKeypoint.new(0, 0, 0),
  2102. NumberSequenceKeypoint.new(0.4, 0.3, 0),
  2103. NumberSequenceKeypoint.new(1, 1, 1)
  2104. })
  2105. pe.ZOffset = 5
  2106. pe.VelocitySpread = 360
  2107. pe.Parent = particle
  2108. pe.Enabled = true
  2109. wait(.3)
  2110. char.Torso.CFrame = mouse.Hit
  2111. pe.Enabled = false
  2112. harmlessexplo()
  2113. wait(3)
  2114. cd1 = true
  2115. end
  2116. end
  2117.  
  2118. if key == "q" then
  2119. if cd2 then
  2120. cd2 = false
  2121. for i=0,1,0.1 do
  2122. lshold.C0 = lshold.C0:lerp(CFrame.new(-1.3,0.7,-0.1)*CFrame.Angles(rad(25),-rad(20),-rad(90)),i)
  2123. rshold.C0 = rshold.C0:lerp(CFrame.new(1.3,0.7,-0.1)*CFrame.Angles(rad(25),rad(20),rad(90)),i)
  2124. wait()
  2125. end
  2126.  
  2127. local pe = Instance.new("ParticleEmitter")
  2128. pe.Acceleration = Vector3.new(3, 3, 3)
  2129. pe.Lifetime = NumberRange.new(0.1, 0.5)
  2130. pe.Rate = 4000
  2131. pe.RotSpeed = NumberRange.new(0, 0)
  2132. pe.LightEmission = 0.700
  2133. pe.Rotation = NumberRange.new(0, 0)
  2134. pe.Size = NumberSequence.new({
  2135. NumberSequenceKeypoint.new(0, 1, 0),
  2136. NumberSequenceKeypoint.new(0.1, 1, 0),
  2137. NumberSequenceKeypoint.new(1, 1, 0)
  2138. })
  2139. pe.Texture = "http://www.roblox.com/asset/?id=242996110"
  2140. pe.Transparency = NumberSequence.new({
  2141. NumberSequenceKeypoint.new(0, 0, 0),
  2142. NumberSequenceKeypoint.new(0.4, 0.3, 0),
  2143. NumberSequenceKeypoint.new(1, 1, 1)
  2144. })
  2145. pe.ZOffset = 5
  2146. pe.VelocitySpread = 360
  2147. pe.Parent = char["Right Arm"]
  2148. pe1 = pe:Clone()
  2149. pe1.Parent = char["Left Arm"]
  2150. wait(.05)
  2151. pe.Enabled = true
  2152.  
  2153. wait(.05)
  2154.  
  2155. for i= 1, 100 do
  2156. char.Humanoid.HipHeight = char.Humanoid.HipHeight + 0.5
  2157. wait()
  2158. end
  2159.  
  2160. wait(.03)
  2161.  
  2162. chat("A world like this must disappear!")
  2163. wait(.07)
  2164. explo()
  2165. wait(.04)
  2166. for i=0,1,0.1 do
  2167. lshold.C0 = lshold.C0:lerp(lsho,i)
  2168. rshold.C0 = rshold.C0:lerp(rsho,i)
  2169. wait()
  2170. end
  2171. pe.Enabled = false
  2172. pe1.Enabled = fasle
  2173. char.Humanoid.HipHeight = 0
  2174. wait(5)
  2175. cd2 = true
  2176. end
  2177. end
  2178. end)
  2179.  
  2180. while wait() do
  2181. char.Humanoid.MaxHealth = 99999
  2182. char.Humanoid.Health = char.Humanoid.MaxHealth
  2183. end
  2184. end)
  2185.  
  2186. ff.MouseButton1Click:connect(function()
  2187. local p = Instance.new("ForceField", plr.Character)
  2188. print("Granted")
  2189. end)
  2190.  
  2191. openmenuex.MouseButton1Click:connect(function()
  2192. menuextend.Visible = true
  2193. end)
  2194.  
  2195. closemenuex.MouseButton1Click:connect(function()
  2196. menuextend.Visible = false
  2197. end)
  2198.  
  2199. cleargui.MouseButton1Click:connect(function()
  2200. guis:Destroy()
  2201. end)
  2202.  
  2203. heaven.MouseButton1Click:connect(function()
  2204. local hv = Instance.new("NumberValue", plr)
  2205. hv.Value = math.random(1, 5)
  2206. if hv.Value == 3 then
  2207. print('hell')
  2208. plr.Character.Humanoid.WalkSpeed = 0
  2209. plr.Character.Humanoid.JumpPower = 0
  2210. menuextend.Visible = false
  2211. frame.Visible = false
  2212. local totp = Instance.new("Part", workspace)
  2213. totp.Position = Vector3.new(-24, 0.5, 20)
  2214. totp.Transparency = 1
  2215. totp.Name = "tp"
  2216. totp.CanCollide = false
  2217. totp.Anchored = true
  2218. plr.Character:MoveTo(totp.Position)
  2219. local heavenbeam = Instance.new("Part", workspace)
  2220. heavenbeam.Position = totp.Position
  2221. heavenbeam.CanCollide = false
  2222. heavenbeam.Anchored = true
  2223. heavenbeam.Material = Enum.Material.Neon
  2224. local bodyforce = Instance.new("BodyForce")
  2225. bodyforce.Parent = plr.Character.Torso
  2226. bodyforce.Force = Vector3.new(0,2550,0)
  2227. heavenbeam.Transparency = 0.5
  2228. heavenbeam.BrickColor = BrickColor.new("New Yeller")
  2229. heavenbeam.Size = Vector3.new(10,500,10)
  2230. local heavencloud = Instance.new("Part", heavenbeam)
  2231. local heavencloud1 = Instance.new("FileMesh", heavencloud)
  2232. local hc = Instance.new("Part", heavenbeam)
  2233. hc.CFrame = plr.Character.Torso.CFrame * CFrame.new(0,250,0)
  2234. hc.Anchored = true
  2235. hc.CanCollide = false
  2236. hc.Transparency = 1
  2237. heavencloud.Anchored = true
  2238. heavencloud.Position = hc.Position
  2239. heavencloud1.MeshId = "http://www.roblox.com/asset/?id=1095708"
  2240. heavencloud1.Scale = Vector3.new(50,50,50)
  2241. local nope = Instance.new("Sound", workspace)
  2242. nope.SoundId = "rbxassetid://130932305"
  2243. wait(7)
  2244. heavenbeam.Size = Vector3.new(11,500,11)
  2245. wait(0.01)
  2246. heavenbeam.Size = Vector3.new(12,500,12)
  2247. wait(0.01)
  2248. heavenbeam.Size = Vector3.new(13,500,13)
  2249. wait(0.01)
  2250. heavenbeam.Size = Vector3.new(14,500,14)
  2251. wait(0.01)
  2252. heavenbeam.Size = Vector3.new(15,500,15)
  2253. wait(0.01)
  2254. heavenbeam.Size = Vector3.new(16,500,16)
  2255. wait(0.01)
  2256. heavenbeam.Size = Vector3.new(17,500,17)
  2257. wait(0.01)
  2258. heavenbeam.Size = Vector3.new(18,500,18)
  2259. wait(0.01)
  2260. heavenbeam.Size = Vector3.new(19,500,19)
  2261. wait(0.01)
  2262. nope.Volume = 3
  2263. nope:Play()
  2264. heavenbeam.Size = Vector3.new(20,500,20)
  2265. wait(0.7)
  2266. heavenbeam.BrickColor = BrickColor.new("Really red")
  2267. bodyforce.Force = Vector3.new(0, -50000, 0)
  2268. local explode = Instance.new("Sound", plr.Character)
  2269. explode.Volume = 10
  2270. explode.SoundId = "rbxassetid://514867425"
  2271. local exp = Instance.new("Part", workspace)
  2272. exp.Position = totp.Position
  2273. local exp1 = Instance.new("Part", workspace)
  2274. exp1.Position = totp.Position
  2275. wait(0.5)
  2276. heavenbeam:Destroy()
  2277. explode:Play()
  2278. for i = 1, 20 do
  2279. plr.Character.Humanoid.Health = plr.Character.Humanoid.Health - math.random(10, 60)
  2280. exp.Size = Vector3.new(30,30,30)
  2281. exp.Anchored = true
  2282. exp.CanCollide = false
  2283. exp.Color = Color3.fromRGB(255,math.random(0,255),0)
  2284. exp.Material = Enum.Material.SmoothPlastic
  2285. exp.CFrame = exp.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  2286. exp.Transparency = 0
  2287. wait(0.01)
  2288. exp1.Size = Vector3.new(30,30,30)
  2289. exp1.Anchored = true
  2290. exp1.CanCollide = false
  2291. exp1.Color = Color3.fromRGB(255,math.random(0,255),0)
  2292. exp1.Material = Enum.Material.SmoothPlastic
  2293. exp1.CFrame = exp.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  2294. exp1.Transparency = 0
  2295. wait(0.01)
  2296. end
  2297. exp:Destroy()
  2298. exp1:Destroy()
  2299. else
  2300. plr.Character.Humanoid.WalkSpeed = 0
  2301. plr.Character.Humanoid.JumpPower = 0
  2302. menuextend.Visible = false
  2303. frame.Visible = false
  2304. local totp = Instance.new("Part", workspace)
  2305. totp.Position = Vector3.new(-24, 0.5, 20)
  2306. totp.Transparency = 1
  2307. totp.Name = "tp"
  2308. totp.CanCollide = false
  2309. totp.Anchored = true
  2310. plr.Character:MoveTo(totp.Position)
  2311. local heavenbeam = Instance.new("Part", workspace)
  2312. heavenbeam.Position = totp.Position
  2313. heavenbeam.CanCollide = false
  2314. heavenbeam.Anchored = true
  2315. heavenbeam.Material = Enum.Material.Neon
  2316. local bodyforce = Instance.new("BodyForce")
  2317. bodyforce.Parent = plr.Character.Torso
  2318. bodyforce.Force = Vector3.new(0,2550,0)
  2319. heavenbeam.Transparency = 0.5
  2320. heavenbeam.BrickColor = BrickColor.new("New Yeller")
  2321. heavenbeam.Size = Vector3.new(10,500,10)
  2322. local heavencloud = Instance.new("Part", heavenbeam)
  2323. local heavencloud1 = Instance.new("FileMesh", heavencloud)
  2324. local hc = Instance.new("Part", heavenbeam)
  2325. hc.CFrame = plr.Character.Torso.CFrame * CFrame.new(0,250,0)
  2326. hc.Anchored = true
  2327. hc.CanCollide = false
  2328. hc.Transparency = 1
  2329. heavencloud.Anchored = true
  2330. heavencloud.Position = hc.Position
  2331. heavencloud1.MeshId = "http://www.roblox.com/asset/?id=1095708"
  2332. heavencloud1.Scale = Vector3.new(50,50,50)
  2333. wait(7)
  2334. heavenbeam.Size = Vector3.new(11,500,11)
  2335. wait(0.01)
  2336. heavenbeam.Size = Vector3.new(12,500,12)
  2337. wait(0.01)
  2338. heavenbeam.Size = Vector3.new(13,500,13)
  2339. wait(0.01)
  2340. heavenbeam.Size = Vector3.new(14,500,14)
  2341. wait(0.01)
  2342. heavenbeam.Size = Vector3.new(15,500,15)
  2343. wait(0.01)
  2344. heavenbeam.Size = Vector3.new(16,500,16)
  2345. wait(0.01)
  2346. heavenbeam.Size = Vector3.new(17,500,17)
  2347. wait(0.01)
  2348. heavenbeam.Size = Vector3.new(18,500,18)
  2349. wait(0.01)
  2350. heavenbeam.Size = Vector3.new(19,500,19)
  2351. wait(0.01)
  2352. heavenbeam.Size = Vector3.new(20,500,20)
  2353. wait(2)
  2354. bodyforce:Destroy()
  2355. print("Creating heaven...")
  2356. local c = Instance.new("Part", workspace)
  2357. local c1 = Instance.new("FileMesh", c)
  2358. c.Anchored = true
  2359. c1.MeshId = "http://www.roblox.com/asset/?id=1095708"
  2360. c.Position = Vector3.new(-2057.5, 3226, -85.5)
  2361. c1.Scale = Vector3.new(20,20,20)
  2362. local heavenbase = Instance.new("Part", workspace)
  2363. heavenbase.Position = Vector3.new(-2233.5, 3166.5, -79.5)
  2364. heavenbase.Size = Vector3.new(268, 10, 268)
  2365. heavenbase.Anchored = true
  2366. heavenbase.BrickColor = BrickColor.new("Lily white")
  2367. heavenbase.Name = "Heaven"
  2368. print("Heaven created")
  2369. heavenbeam:Destroy()
  2370. plr.Character:MoveTo(heavenbase.Position)
  2371. heavenbase.TopSurface = Enum.SurfaceType.Smooth
  2372. plr.Character.Humanoid.JumpPower = 100
  2373. plr.Character.Humanoid.WalkSpeed = 25
  2374. if plr.Character.Humanoid.Health == 0 then
  2375. heaven:Destroy()
  2376. end
  2377. end
  2378. end)
Add Comment
Please, Sign In to add comment