Advertisement
Dark_EccentricYT

Untitled

Aug 21st, 2017 (edited)
2,768
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 108.43 KB | None | 0 0
  1. --[[
  2. @Name: Mortis
  3. @Author: iKrypto
  4. @Date: 2/23/17
  5. @Engine: Lua 5.1
  6.  
  7. @Notes:
  8. - Finished on 2/23/17
  9. - Get whitelisted to run this by Darkus_Theory or it will just crash you lol (Antileak!)
  10. - Or just be in https://www.roblox.com/My/Groups.aspx?gid=971711 this will also allow you to run it
  11. @Movelist:
  12. ~E: Apply DOT
  13. ~R: Teleport
  14. ~Q: Increase DOT damage
  15. ~F: AoE ULT (Applies DOT to everyone in zone)
  16. ~X: SurrenderToMadness > Increases Damage Output but also damages you overtime for increasing percents (Not finished)
  17. ~C: Haunt > Increases Damage for 8 seconds on your target
  18. ~T: Target MousePlayer
  19. ~Y: Target Self
  20.  
  21. [Targetting anyone will make these abilities go right to them, therefore, target = easy button]
  22.  
  23. ]]
  24.  
  25. wait(0.003)
  26. --print'starting script...'
  27.  
  28. local startLoad = tick()
  29. script.Name = " Mortis"
  30.  
  31. local Player = game:service("Players").LocalPlayer
  32. repeat wait() until Player.Character ~= nil
  33.  
  34. -- todo:
  35.  
  36. local plrs = game:GetService('Players')
  37. local plr = plrs.LocalPlayer
  38. local char = plr.Character
  39. local bp = plr.Backpack
  40. local hum = char.Humanoid
  41. local T = char.Torso
  42. local Character = char
  43. local Humanoid = hum
  44. local torso = char.Torso
  45. local kick = false
  46. local Char = Player.Character
  47. local char = Char
  48. local mouse = Player:GetMouse()
  49. local Effects = {}
  50. local Backpack = Player.Backpack
  51. local PlayerGui = Player.PlayerGui
  52. local Camera = workspace.CurrentCamera
  53. local damageAmp = 1
  54. local Humanoid = Char:WaitForChild("Humanoid")
  55. local Torso = Char:WaitForChild("Torso")
  56. local Head = Char:WaitForChild("Head")
  57. local ra = Char:WaitForChild("Right Arm")
  58. local la = Char:WaitForChild("Left Arm")
  59. local rl = Char:WaitForChild("Right Leg")
  60. local ll = Char:WaitForChild("Left Leg")
  61. local rs = Torso:WaitForChild("Right Shoulder")
  62. local ls = Torso:WaitForChild("Left Shoulder")
  63. local rh = Torso:WaitForChild("Right Hip")
  64. local lh = Torso:WaitForChild("Left Hip")
  65. local neck = Torso:WaitForChild("Neck")
  66. local rootpart = Char:WaitForChild("HumanoidRootPart")
  67. local rj = rootpart:WaitForChild("RootJoint")
  68. local anim = Char:WaitForChild("Animate")
  69. local RunService = game:GetService("RunService")
  70. local UIA = game:GetService("UserInputService")
  71. local CF = CFrame.new
  72. local CA = CFrame.Angles
  73. local FEA = CFrame.fromEulerAnglesXYZ
  74. local Create = LoadLibrary("RbxUtility").Create
  75. local FAA = CFrame.fromAxisAngle
  76. local V3 = Vector3.new
  77. local CN = Color3.new
  78. local Ice = Instance.new
  79. local BC = BrickColor.new
  80. local UD2 = UDim2.new
  81. local C3 = Color3.new
  82. local MR = math.rad
  83. local MP = math.pi
  84. local MD = math.deg
  85. local MH = math.huge
  86. local MS = math.sin
  87. local MC = math.cos
  88. local MT = math.tan
  89. local MAS = math.asin
  90. local MAC = math.acos
  91. local MAT = math.atan
  92. local Keys = {}
  93. local sine = 0
  94. local change = 1.1
  95. local components = CF().components
  96. local State = "Calm"
  97. local Slash = false
  98. local Sheathed = false
  99. local H=true
  100. local it = Instance.new
  101. local vt = Vector3.new
  102. local cf = CFrame.new
  103. local euler = CFrame.fromEulerAnglesXYZ
  104. local angles = CFrame.Angles
  105. local combocounter = 0
  106. local Stealthed = false
  107. local tMesh,asset = "rbxasset://fonts/torso.mesh","rbxassetid://"
  108. local meshes,sounds = {blast = 20329976,ring = 3270017,spike = 1033714,cone = 1082802,crown = 20329976,cloud = 1095708,diamond = 9756362},{laser = 166196553;gun = 131070686;falling = 138206037;hit = 146163493;twirl = 46299547;explosion = 142070127}
  109. local Intellect,Haste,damage = 2,.2,0
  110. local stats,Parts,Cooldowns,Damage,recountData,parts,Damaged,Ally,Buffs,canBeKillt,hold = {},{},{},{},{},{},{},{},{},{},{}
  111. local Ctrl,Cam,lastclick,btimer = false,game.Workspace:FindFirstChild('currentCamera'),tick(),0
  112. game:service'Lighting'.Outlines = false
  113. Cha = char
  114. it=Instance.new
  115. vt=Vector3.new
  116. cn=CFrame.new
  117. euler=CFrame.fromEulerAnglesXYZ
  118. angles=CFrame.Angles
  119. -- if leaked, don't edit this value
  120. -- it lets other scripts know this is
  121. -- a linked script so that you can do
  122. -- extra features such as slowing, stunning
  123. -- buffing, healing etc. Thanks.
  124. local iAmDarkusScript = Instance.new('Model')
  125. iAmDarkusScript.Parent = hum
  126. iAmDarkusScript.Name = 'Property of Darkus_Theory'
  127. Runes = {"rbxassetid://200326272", "rbxassetid://200326330", "rbxassetid://200326394", "rbxassetid://200326465", "rbxassetid://200326593", "rbxassetid://200326667", "rbxassetid://200326796", "rbxassetid://200326880", "rbxassetid://200327025", "rbxassetid://200327088", "rbxassetid://200327279", "rbxassetid://200327394", "rbxassetid://200327439", "rbxassetid://200327517", "rbxassetid://200327625", "rbxassetid://200327725", "rbxassetid://200327804", "rbxassetid://200327922", "rbxassetid://200327991", "rbxassetid://200328063", "rbxassetid://200328131", "rbxassetid://200328211", "rbxassetid://200328319", "rbxassetid://200328365", "rbxassetid://200328401", "rbxassetid://200328461", "rbxassetid://200328530", "rbxassetid://200328645", "rbxassetid://200328713"}
  128. ContentProvider = game:GetService("ContentProvider")
  129. for _,v in pairs(Runes) do
  130. ContentProvider:Preload(v)
  131. end
  132. humanoid = char:findFirstChild("Humanoid")
  133. hum = humanoid
  134. torso = char:findFirstChild("Torso")
  135. head = char.Head
  136. ra = char:findFirstChild("Right Arm")
  137. ra.CanCollide = true
  138. la = char:findFirstChild("Left Arm")
  139. la.CanCollide = true
  140. rl = char:findFirstChild("Right Leg")
  141. rl.CanCollide = true
  142. ll = char:findFirstChild("Left Leg")
  143. ll.CanCollide = true
  144. rs = torso:findFirstChild("Right Shoulder")
  145. ls = torso:findFirstChild("Left Shoulder")
  146. rh = torso:findFirstChild("Right Hip")
  147. lh = torso:findFirstChild("Left Hip")
  148. neck = torso:findFirstChild("Neck")
  149. rootpart = char:findFirstChild("HumanoidRootPart")
  150. rj = rootpart:findFirstChild("RootJoint")
  151. anim = char:findFirstChild("Animate")
  152. camera = workspace.CurrentCamera
  153. plr.CameraMaxZoomDistance = math.huge
  154. for _,x in pairs(char:children()) do
  155. if x:IsA('Shirt') then x:remove() end
  156. if x:IsA('Pants') then x:remove() end
  157. if x:IsA('Accessory') then x:remove() end
  158. end
  159. pcall(function()anim:Destroy()end)
  160. pcall(function()char["Health"]:Destroy() end)
  161. pcall(function()humanoid.Animator:Destroy()end)
  162. pcall(function()head.face:Destroy()end)
  163. local rjo = rootpart.RootJoint:Clone()
  164. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  165. local wld = Instance.new("Weld", wp1)
  166. wld.Part0 = wp0
  167. wld.Part1 = wp1
  168. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  169. return wld
  170. end
  171.  
  172. local theme_songs = {{300612771,1}}
  173. print('Theme songs: '..#theme_songs)
  174. local sund = Instance.new('Sound', head)
  175. sund.SoundId = ''--601852677 (Pumped up kicks) --196838861(libera me from hell) --144390446 (mememe) --276298931 (ending theme gurren lagann) -- 274555117 (gurren lagann midway music) -- 335167645 (one punch man theme saitama) -- 337732102 (Another one punch man song) -- 441375145 ( gurren lagann pretty sad song)
  176. local ggg = theme_songs[math.random(1,#theme_songs)]
  177. sund.SoundId = 'rbxassetid://'..ggg[1]
  178. sund.Pitch = ggg[2]
  179. sund.Volume = .35
  180. sund.MaxDistance = 100
  181. sund.Name = 'Mesh'
  182. sund.Changed:connect(function(a)
  183. sund.Name = tick()
  184. if a == 'Volume' then
  185. sund.Volume = 1
  186. elseif a=='MaxDistance' then
  187. sund.MaxDistance = 200
  188. end
  189. end)
  190.  
  191.  
  192. local berserk = false
  193. local keepPlaying = true
  194.  
  195. coroutine.wrap(function()
  196. wait(5)
  197. while not berserk do
  198. if not sund.Playing and keepPlaying then
  199. local selected = theme_songs[math.random(1,#theme_songs)]
  200. sund:Stop()
  201. sund.SoundId = 'rbxassetid://'..selected[1]
  202. sund.Pitch = selected[2]
  203. wait()
  204. sund:Play()
  205. end
  206. wait()
  207. end
  208. end)()
  209.  
  210. Ally[hum] = true
  211.  
  212. local mult = 1
  213.  
  214. la.Size = la.Size * mult
  215. ra.Size = ra.Size * mult
  216. ll.Size = ll.Size * mult
  217. rl.Size = rl.Size * mult
  218. torso.Size = torso.Size * mult
  219. head.Size = head.Size * mult
  220. rootpart.Size = rootpart.Size * mult
  221.  
  222. local lm = newWeld(torso, la, -1.5*mult, 0.5*mult, 0)
  223. lm.C1 = CFrame.new(0, 0.5*mult, 0)
  224. local rm = newWeld(torso, ra, 1.5*mult, 0.5*mult, 0)
  225. rm.C1 = CFrame.new(0, 0.5*mult, 0)
  226. local neck = newWeld(torso, head, 0, mult, 0)
  227. local llegm = newWeld(torso, ll, -0.5*mult, -1*mult, 0)
  228. llegm.C1 = CFrame.new(0, mult, 0)
  229. local rlegm = newWeld(torso, rl, 0.5*mult, -1*mult, 0)
  230. rlegm.C1 = CFrame.new(0, mult, 0)
  231. local rj = rjo:Clone()
  232. rj.Part0 = rootpart
  233. rj.Part1 = torso
  234. rj.Parent = rootpart
  235. neck.C1 = CFrame.new(0, -(mult/2), 0)
  236. neckc0 = neck.C0
  237. rsc0 = rm.C0
  238. lsc0 = lm.C0
  239. llc0 = llegm.C0
  240. rlc0 = rlegm.C0
  241. rootc0 = rj.C0
  242. rootc1 = rj.C1
  243. wait()
  244.  
  245. local shirt = Instance.new('Shirt', char)
  246. shirt.Name = 'Wild Gladiator\'s Felweave Raiment'
  247. shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id=166273878'
  248. local pants = Instance.new('Pants', char)
  249. pants.Name = 'Wild Gladiator\'s Felweave Trousers'
  250. pants.PantsTemplate = 'http://www.roblox.com/asset/?id=166273938'
  251. local h = Instance.new('Part', char)
  252. h.Name = 'DK Hood'
  253. h.TopSurface,h.BottomSurface = 0,0
  254. h.Size = Vector3.new(2.3*mult, 2.3*mult, 2.3*mult)
  255. h.CFrame = torso.CFrame
  256. h.CanCollide = false
  257. h.BrickColor = BrickColor.new('Really black')
  258. h:BreakJoints()
  259. local m = Instance.new('SpecialMesh', h)
  260. m.Name = "Wild Gladiator's Felweave Cowl"
  261. m.MeshType = 'FileMesh'
  262. m.Scale = Vector3.new(mult, mult, mult)
  263. m.MeshId = 'http://www.roblox.com/asset/?id=16952952'
  264. m.VertexColor = Vector3.new(1,1,1)
  265. local Weld = Instance.new("Weld")
  266. Weld.Part0 = char.Head
  267. Weld.Part1 = h
  268. Weld.Parent = char.Head
  269. Weld.C0 = CFrame.new(0, .3*mult, 0)
  270.  
  271. local holdah = char
  272. local Aur = Instance.new('Part')
  273. Aur.Transparency = .55
  274. Aur.BrickColor = BrickColor.new'Royal purple'
  275. Aur.Name = 'Aura'
  276. Aur.Locked = true
  277. Aur.Size = Vector3.new(1.05*mult,2.05*mult,1.05*mult)
  278. Aur.Material = 'Neon'
  279.  
  280. local asdddd = {ra,la,rl,ll}
  281.  
  282. for q,e in next, asdddd do
  283. local asdfert = Aur:Clone()
  284. asdfert.Parent = holdah
  285. local wlder = Instance.new('Weld')
  286. wlder.Parent = holdah
  287. wlder.Part0 = asdfert
  288. wlder.Part1 = e
  289. end
  290.  
  291. Aur.Parent = holdah
  292. Aur.Size = Vector3.new(2.05*mult, 2.05*mult, 1.05*mult)
  293. local w = Instance.new('Weld')
  294. w.Parent = holdah
  295. w.Part0 = torso
  296. w.Part1 = Aur
  297.  
  298. local fakehead = head:Clone()
  299. fakehead.Parent = holdah
  300. fakehead.Transparency = .55
  301. fakehead.BrickColor = BrickColor.new'Royal purple'
  302. fakehead.Name = 'Aura'
  303. fakehead.Size = Vector3.new(1.05*mult,1.05*mult,1.05*mult)
  304. fakehead.Material = 'Neon'
  305. local w = Instance.new('Weld')
  306. w.Parent = holdah
  307. w.Part0 = head
  308. w.Part1 = fakehead
  309.  
  310. local h = Instance.new('Part', char)
  311. h.Name = 'DK HoodM'
  312. h.TopSurface,h.BottomSurface = 0,0
  313. h.Size = Vector3.new(2.3*mult, 2.3*mult, 2.3*mult)
  314. h.CFrame = torso.CFrame
  315. h.CanCollide = false
  316. h.Parent = holdah
  317. h.Transparency = .55
  318. h.BrickColor = BrickColor.new'Royal purple'
  319. h.Name = 'Aura'
  320. h.Material = 'Neon'
  321. h:BreakJoints()
  322. local m = Instance.new('SpecialMesh', h)
  323. m.Name = "Wild Gladiator's Felweave CowlM"
  324. m.MeshType = 'FileMesh'
  325. m.Scale = Vector3.new(mult+.06, mult+.06, mult+.06)
  326. m.MeshId = 'http://www.roblox.com/asset/?id=16952952'
  327. m.VertexColor = Vector3.new(1,1,1)
  328. local Weld = Instance.new("Weld")
  329. Weld.Part0 = char.Head
  330. Weld.Part1 = h
  331. Weld.Parent = char.Head
  332. Weld.C0 = CFrame.new(0, .3*mult, 0)
  333.  
  334. ArtificialHB = Instance.new("BindableEvent", script)
  335. ArtificialHB.Name = "Heartbeat"
  336.  
  337. script:WaitForChild("Heartbeat")
  338.  
  339. frame = 1 / 60
  340. tf = 0
  341. allowframeloss = true
  342. tossremainder = false
  343. lastframe = tick()
  344. script.Heartbeat:Fire()
  345.  
  346. game:GetService("RunService").Heartbeat:connect(function(s, p)
  347. tf = tf + s
  348. if tf >= frame then
  349. if allowframeloss then
  350. script.Heartbeat:Fire()
  351. lastframe = tick()
  352. else
  353. for i = 1, math.floor(tf / frame) do
  354. script.Heartbeat:Fire()
  355. end
  356. lastframe = tick()
  357. end
  358. if tossremainder then
  359. tf = 0
  360. else
  361. tf = tf - frame * math.floor(tf / frame)
  362. end
  363. end
  364. end)
  365.  
  366. function swait(num)
  367. if num == 0 or num == nil then
  368. ArtificialHB.Event:wait()
  369. else
  370. for i = 0, num do
  371. ArtificialHB.Event:wait()
  372. end
  373. end
  374. end
  375.  
  376.  
  377. function Creat(Instanc,prop)
  378. local p=Instance.new(Instanc)
  379. for i,v in pairs(prop) do
  380. p[i]=v
  381. end
  382. return p
  383. end
  384.  
  385. function weldya(thing1,thing2)
  386. local a = Instance.new('Weld');
  387. pcall(function()
  388. --a.Parent = thing1;
  389. a.Part0 = thing1;
  390. a.Part1 = thing2;
  391. end)
  392. return a
  393. end
  394.  
  395. function Dmg()
  396. local partofdeath = Instance.new'Part'
  397. local function CreateRegion3FromLocAndSize(Position, Size)
  398. local SizeOffset = Size/2
  399. local Point1 = Position - SizeOffset
  400. local Point2 = Position + SizeOffset
  401. return Region3.new(Point1, Point2)
  402. end
  403. local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
  404. for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
  405. spawn(function()
  406. end)
  407. end
  408. end
  409.  
  410. function CreateSound(id, par, vol, pit)
  411. coroutine.resume(coroutine.create(function()
  412. local sou = Instance.new("Sound", par or char)
  413. sou.Volume = vol
  414. sou.Pitch = pit or 1
  415. sou.SoundId = id
  416. swait()
  417. sou:play()
  418. game:GetService("Debris"):AddItem(sou, 6)
  419. end))
  420. end
  421.  
  422. local pony = Instance.new('PointLight', Torso)
  423. pony.Name = 'LePontyPontz'
  424. pony.Brightness = 1
  425. pony.Color = Color3.new(0, 0, 0)
  426.  
  427. coroutine.wrap(function()
  428. game:service'RunService'.Stepped:connect(function()
  429. pony.Range = 8+math.abs(math.sin(tick()/2))*4
  430. end)
  431. end)()
  432.  
  433. local function setupPart(part)
  434. part.Anchored = true
  435. part.FormFactor = 'Custom'
  436. part.CanCollide = false
  437. part.BrickColor = BrickColor.new("Sea green")
  438. part.Material = "Neon"
  439. part.TopSurface = 'SmoothNoOutlines'
  440. part.BottomSurface = 'SmoothNoOutlines'
  441. part.FrontSurface = 'SmoothNoOutlines'
  442. part.BackSurface = 'SmoothNoOutlines'
  443. part.LeftSurface = 'SmoothNoOutlines'
  444. part.RightSurface = 'SmoothNoOutlines'
  445. end
  446.  
  447.  
  448. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  449. local prt = CreatePart(char, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  450. prt.Anchored = true
  451. prt.CFrame = cframe
  452. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  453. game:GetService("Debris"):AddItem(prt, 10)
  454. if Type == 1 or Type == nil then
  455. table.insert(Effects, {
  456. prt,
  457. "Block1b",
  458. delay,
  459. x3,
  460. y3,
  461. z3,
  462. msh
  463. })
  464. elseif Type == 2 then
  465. table.insert(Effects, {
  466. prt,
  467. "Block2b",
  468. delay,
  469. x3,
  470. y3,
  471. z3,
  472. msh
  473. })
  474. end
  475. end
  476.  
  477.  
  478. function getDPS(override)
  479. local crit = math.random(1,15)
  480. local DPS = ((stats.Intellect) * (crit > 11 and stats.CriticalStrikeBonus or 1.2))
  481. DPS = math.ceil(DPS)
  482. lastdps = tick()
  483. if berserk then DPS = DPS * 2 end
  484. if cheating then DPS = DPS * 1.5 end
  485. if damageAmp>0 then DPS=DPS*damageAmp end
  486. return DPS,((crit > 13) and true or false)
  487. end
  488.  
  489. function newStat(stat, typeof, value)
  490. if stats[stat] then return end
  491. stats[stat] = value
  492. return stats[stat]
  493. end
  494.  
  495. local function Implode(CF,Color)
  496. local cf = CF
  497. local f = Instance.new("Part",Character)
  498. f.BrickColor = Color
  499. f.Size = Vector3.new(1,1,1)
  500. f.Anchored = true
  501. f.Locked = true
  502. f.CanCollide = false
  503. f.TopSurface = 0
  504. f.Transparency = 1
  505. f.BottomSurface = 0
  506. f.CFrame = cf
  507. local sm = Instance.new("SpecialMesh",f)
  508. sm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  509. sm.Scale = Vector3.new(30,30,30)
  510. coroutine.wrap(function()
  511. for i = 1,10 do
  512. f.Transparency = f.Transparency -0.1
  513. sm.Scale = sm.Scale - Vector3.new(3,3,3)
  514. swait()
  515. end
  516. f:Destroy()
  517. end)()
  518. local ax = Instance.new("Part",Character)
  519. ax.Size = Vector3.new(30,30,30)
  520. ax.TopSurface = 0
  521. ax.BottomSurface = 0
  522. ax.Transparency = 0
  523. ax.Locked = true
  524. ax.BrickColor = Color
  525. ax.Shape = "Ball"
  526. ax.CanCollide = false
  527. ax.CFrame = cf
  528. ax.Anchored = true
  529. ax.Transparency = 1
  530. coroutine.wrap(function()
  531. for i = 1,10 do
  532. ax.Size = ax.Size - Vector3.new(math.random(1,3)+1,math.random(1,3)+1,math.random(1,3)+1)
  533. ax.Transparency = ax.Transparency -0.1
  534. ax.CFrame = cf
  535. swait()
  536. end
  537. ax:Destroy()
  538. end)()
  539. end
  540. local function Explode(CF,Color,SMM,BBoom)
  541. local cf = CF
  542. local f = Instance.new("Part",Character)
  543. f.BrickColor = Color
  544. f.Size = Vector3.new(5,1,5)
  545. f.Anchored = true
  546. f.Locked = true
  547. f.CanCollide = false
  548. f.TopSurface = 0
  549. f.BottomSurface = 0
  550. f.CFrame = cf
  551. local sm = Instance.new("SpecialMesh",f)
  552. sm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  553. sm.Scale = Vector3.new(5,5,5)
  554. coroutine.wrap(function()
  555. for i = 1,20 do
  556. f.Transparency = f.Transparency +0.05
  557. sm.Scale = sm.Scale + Vector3.new(10,10,10)
  558. swait()
  559. end
  560. f:Destroy()
  561. end)()
  562. if BBoom then do
  563. local zs = BBoom
  564. local ax = Instance.new("Part",Character)
  565. ax.Size = Vector3.new(1,1,1)
  566. ax.TopSurface = 0
  567. ax.BottomSurface = 0
  568. ax.Transparency = 0
  569. ax.Locked = true
  570. ax.BrickColor = Color
  571. ax.Shape = "Ball"
  572. ax.CanCollide = false
  573. ax.CFrame = zs
  574. ax.Anchored = true
  575. local SMMx = Instance.new("SpecialMesh",ax)
  576. SMMx.MeshId = "http://www.roblox.com/asset/?id=1323306"
  577. SMMx.Scale = Vector3.new(1,1,1)
  578. coroutine.wrap(function()
  579. for i = 1,20 do
  580. SMMx.Scale = SMMx.Scale + Vector3.new(math.random(1,3)+1,math.random(1,3)+1,math.random(1,3)+1)
  581. ax.Transparency = ax.Transparency +0.05
  582. ax.CFrame = zs
  583. swait()
  584. end
  585. ax:Destroy()
  586. end)()
  587. end
  588. end
  589. local ax = Instance.new("Part",Character)
  590. ax.Size = Vector3.new(1,1,1)
  591. ax.TopSurface = 0
  592. ax.BottomSurface = 0
  593. ax.Transparency = 0
  594. ax.Locked = true
  595. ax.BrickColor = Color
  596. ax.Shape = "Ball"
  597. ax.CanCollide = false
  598. ax.CFrame = cf
  599. ax.Anchored = true
  600. local SMMx do if SMM then
  601. SMMx = Instance.new("SpecialMesh",ax)
  602. SMMx.MeshId = SMM
  603. SMMx.Scale = Vector3.new(1,1,1)
  604. end
  605. end
  606. coroutine.wrap(function()
  607. for i = 1,20 do
  608. if SMM then
  609. SMMx.Scale = SMMx.Scale + Vector3.new(math.random(1,3)+2,math.random(1,3)+2,math.random(1,3)+2)
  610. else
  611. ax.Size = ax.Size + Vector3.new(math.random(1,3)+1,math.random(1,3)+1,math.random(1,3)+1)
  612. end
  613. ax.Transparency = ax.Transparency +0.05
  614. ax.CFrame = cf
  615. swait()
  616. end
  617. ax:Destroy()
  618. end)()
  619. end
  620.  
  621. function NoOutline(Part)
  622. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  623. end
  624.  
  625. function nooutline(part)
  626. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  627. end
  628.  
  629. function checkload()
  630. end
  631.  
  632. local gui=it("GuiMain")
  633. gui.Parent=Player.PlayerGui
  634. gui.Name="WeaponGUI"
  635. local frame=it("Frame")
  636. frame.Parent=gui
  637. frame.BackgroundColor3=Color3.new(255,255,255)
  638. frame.BackgroundTransparency=1
  639. frame.BorderColor3=Color3.new(17,17,17)
  640. frame.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  641. frame.Position=UDim2.new(0.4,0,0.1,0)
  642. local barmana1=it("TextLabel")
  643. barmana1.Parent=frame
  644. barmana1.Text=" "
  645. barmana1.BackgroundTransparency=0
  646. barmana1.BackgroundColor3=Color3.new(0,0,0)
  647. barmana1.SizeConstraint="RelativeXY"
  648. barmana1.TextXAlignment="Center"
  649. barmana1.TextYAlignment="Center"
  650. barmana1.Position=UDim2.new(0,0,0,0)
  651. barmana1.Size=UDim2.new(4,0,0.2,0)
  652. local barmana2=it("TextLabel")
  653. barmana2.Parent=frame
  654. barmana2.Text=" "
  655. barmana2.BackgroundTransparency=0
  656. barmana2.BackgroundColor3=Torso.Color
  657. barmana2.SizeConstraint="RelativeXY"
  658. barmana2.TextXAlignment="Center"
  659. barmana2.TextYAlignment="Center"
  660. barmana2.Position=UDim2.new(0,0,0,0)
  661. barmana2.Size=UDim2.new(4*100/100,0,0.2,0)
  662. local barmana4=it("TextLabel")
  663. barmana4.Parent=frame
  664. barmana4.Text="Energy [100]"
  665. barmana4.BackgroundTransparency=1
  666. barmana4.BackgroundColor3=Color3.new(0,0,0)
  667. barmana4.SizeConstraint="RelativeXY"
  668. barmana4.TextXAlignment="Center"
  669. barmana4.TextYAlignment="Center"
  670. barmana4.Position=UDim2.new(0,0,-0.3,0)
  671. barmana4.Size=UDim2.new(4,0,0.2,0)
  672. barmana4.FontSize="Size9"
  673. barmana4.TextStrokeTransparency=0
  674. barmana4.TextColor=BrickColor.new("White")
  675.  
  676. local Create = LoadLibrary("RbxUtility").Create
  677. function party(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  678. local fp = Create("Part"){
  679. formFactor = formfactor,
  680. Parent = parent,
  681. Reflectance = reflectance,
  682. Transparency = transparency,
  683. CanCollide = false,
  684. Locked = true,
  685. BrickColor = BrickColor.new(tostring(brickcolor)),
  686. Name = name,
  687. Size = size,
  688. Position = Character.Torso.Position,
  689. Material = material,
  690. }
  691. nooutline(fp)
  692. return fp
  693. end
  694.  
  695. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  696. local Msh = Create(Mesh){
  697. Parent = part,
  698. Offset = offset,
  699. Scale = scale,
  700. }
  701. if Mesh == "SpecialMesh" then
  702. Msh.MeshType = meshtype
  703. Msh.MeshId = meshid
  704. end
  705. return Msh
  706. end
  707.  
  708. function rayCast(Pos, Dir, Max, Ignore)
  709. return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  710. end
  711.  
  712.  
  713. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type, typ)
  714. if Part.Name=='Base' then return end
  715. for _,c in pairs(workspace:children()) do
  716. local hum=searchForHumanoid(c)
  717. if hum~=nil then
  718. local head=c:findFirstChild("HumanoidRootPart")
  719. if head~=nil then
  720. local targ=head.Position-Part.Position
  721. local mag=targ.magnitude
  722. if mag<=magni and c.Name~=Player.Name then
  723. local mult = getDPS()+(math.random(mindam,maxdam)/2)
  724. damageHuman(hum, mult, head, typ)--Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,"Hit1",1)
  725. end
  726. end
  727. end
  728. end
  729. end
  730.  
  731.  
  732.  
  733. local RbxUtility = LoadLibrary("RbxUtility")
  734. local Create = RbxUtility.Create
  735.  
  736. function RemoveOutlines(part)
  737. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  738. end
  739.  
  740. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  741. local Part = Create("Part"){
  742. Parent = Parent,
  743. Reflectance = Reflectance,
  744. Transparency = Transparency,
  745. CanCollide = false,
  746. Locked = true,
  747. BrickColor = BrickColor.new(tostring(BColor)),
  748. Name = Name,
  749. Size = Size,
  750. Material = Material,
  751. }
  752. RemoveOutlines(Part)
  753. return Part
  754. end
  755.  
  756. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  757. local Msh = Create(Mesh){
  758. Parent = Part,
  759. Offset = OffSet,
  760. Scale = Scale,
  761. }
  762. if Mesh == "SpecialMesh" then
  763. Msh.MeshType = MeshType
  764. Msh.MeshId = MeshId
  765. end
  766. return Msh
  767. end
  768.  
  769. function useMana(amount)
  770. local precalc = stats['Mana']-amount
  771.  
  772. if stats['Mana'] < 0 then return false end
  773. if precalc < 0 then return false end
  774.  
  775. stats['Mana'] = precalc
  776.  
  777. return true
  778. end
  779.  
  780. local acos = math.acos
  781. local sqrt = math.sqrt
  782. local Vec3 = Vector3.new
  783. local fromAxisAngle = CFrame.fromAxisAngle
  784.  
  785. local function toAxisAngle(CFr)
  786. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  787. local Angle = math.acos((R00+R11+R22-1)/2)
  788. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  789. A = A == 0 and 0.00001 or A
  790. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  791. B = B == 0 and 0.00001 or B
  792. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  793. C = C == 0 and 0.00001 or C
  794. local x = (R21-R12)/sqrt(A)
  795. local y = (R02-R20)/sqrt(B)
  796. local z = (R10-R01)/sqrt(C)
  797. return Vec3(x,y,z),Angle
  798. end
  799.  
  800. function ApplyTrig(Num,Func)
  801. local Min,Max = Func(0),Func(1)
  802. local i = Func(Num)
  803. return (i-Min)/(Max-Min)
  804. --[[if Func == "sin" then
  805. return (math.sin((1-Num)*math.pi)+1)/2
  806. elseif Func == "cos" then
  807. return (math.cos((1-Num)*math.pi)+1)/2
  808. end]]
  809. end
  810.  
  811. function LerpCFrame(CFrame1,CFrame2,Num)
  812. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  813. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  814. end
  815.  
  816. function recount()
  817.  
  818. local totl = {}
  819.  
  820. local function addUp(tbl)
  821. local total = 0
  822. for i,v in next,tbl do
  823. total = total + v
  824. end
  825. return total
  826. end
  827.  
  828. local function avg(tbl)
  829.  
  830. local num = #tbl
  831. local nom = addUp(tbl)
  832.  
  833. return (nom/num)
  834. end
  835.  
  836. warn('RECOUNT - All Data')
  837. for i,v in pairs(recountData) do
  838. local qq = addUp(v)
  839. print(i..': '..qq..' ('..math.ceil(avg(v))..')')
  840. table.insert(totl, qq)
  841. end
  842.  
  843. warn('TOTAL: '..addUp(totl))
  844.  
  845. end
  846.  
  847. function logDamage(skill, damage)
  848.  
  849. if not recountData[skill] then recountData[skill] = {} end
  850.  
  851. local tbl = recountData[skill]
  852. table.insert(tbl, damage)
  853.  
  854. end
  855. cn,ca,bc,v3,r = CFrame.new,CFrame.Angles,BrickColor.new,Vector3.new,function(a)return (math.random()-.5)*2*(a or 1) end
  856. deg,nf,c3,ins,ma,pi,mr = math.deg,math.floor,Color3.new,Instance.new,math.abs,math.pi,math.rad
  857. local part = function(prnt,cfr,siz,col,anc,canc,tra,mat,typ)
  858. local p = ins(typ or "Part")
  859. p.FormFactor = "Custom"
  860. p.Material = mat
  861. p.Transparency = tra
  862. p.CanCollide = canc
  863. p.Anchored = anc
  864. p.BrickColor = bc(col)
  865. p.Size = siz
  866. p.CFrame = cfr
  867. p.Parent = prnt
  868. p.Locked = true
  869. p.TopSurface,p.BottomSurface = 0,0
  870. p:BreakJoints()
  871. return p
  872. end
  873. local mesh = function(typ,prnt,scal,mtyp,mid,mtx)
  874. local m = ins(typ or "SpecialMesh")
  875. if mtyp then m.MeshType = mtyp end
  876. if mid then m.MeshId = mid end
  877. if mtx then m.TextureId = mtx end
  878. if scal then m.Scale = scal end
  879. m.Parent = prnt
  880. return m
  881. end
  882. local weldy = function(prt1,prt2,c0,c1)
  883. local w = ins("Weld",prt1)
  884. w.Part0 = prt1
  885. w.Part1 = prt2
  886. w.C0,w.C1 = c0 or cn(),c1 or cn()
  887. return w
  888. end
  889. function explosion(where,heat,size,pres)
  890. a = Instance.new("Explosion",Workspace)
  891. a.BlastRadius = size
  892. a.BlastPressure = pres
  893. a.Position = where.Position
  894. local f = Instance.new("Fire",p)
  895. f.Size = size
  896. f.Heat = heat
  897. f:Remove()
  898. end
  899. function flame(cf,heat,size,instant)
  900. local p = Instance.new("Part")
  901. p.formFactor = 3
  902. p.Anchored = true
  903. p.CanCollide = false
  904. p.Locked = true
  905. p.Transparency = 1
  906. p.Size = Vector3.new()
  907. p.CFrame = cf
  908. p.Parent = char
  909. local f = Instance.new("Fire",p)
  910. f.Size = size
  911. f.Heat = heat
  912. game.Debris:AddItem(p,1.1)
  913. delay(0.1,function()
  914. f.Enabled = false
  915. if instant then
  916. p:Destroy()
  917. end
  918. end)
  919. end
  920.  
  921. function getRegion(point,range,ignore)
  922. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
  923. end
  924.  
  925. function getHumanoid(v)
  926. if v and v.Parent then
  927. local h = v.Parent:findFirstChild("Humanoid")
  928. if not h then
  929. for _,p in ipairs(v.Parent:GetChildren()) do
  930. if p:isA("Humanoid") then
  931. h = p
  932. end
  933. end
  934. if not h and v.Parent.Parent and v.Parent.Parent ~= game and v.Parent.Parent ~= workspace then
  935. for _,p in ipairs(v.Parent.Parent:GetChildren()) do
  936. if p:isA("Humanoid") then
  937. h = p
  938. end
  939. end
  940. end
  941. end
  942. return h
  943. end
  944. end
  945. function advRay(start,point)
  946. local dis = (start-(start+point)).magnitude
  947. local dir = ((start+point)-start).unit
  948. if dis > 999 then
  949. dis = 999
  950. end
  951. point = dis*dir
  952. hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(start,point),{player.Character})
  953. if hit and not hit.CanCollide and not getHumanoid(hit) then
  954. function persistentRay(list)
  955. hit,pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(start,point),{player.Character,unpack(list)})
  956. if hit and not hit.CanCollide and not getHumanoid(hit) then
  957. hit,pos = persistentRay({hit,unpack(list)})
  958. end
  959. return hit,pos
  960. end
  961. hit,pos = persistentRay({hit})
  962. end
  963. return hit,pos
  964. end
  965.  
  966. function ParticleEmit(Object,Color,Duration)
  967. local Counter = 0
  968. coroutine.wrap(function()
  969. while Wait(0.3)do
  970. if Counter == Duration then break end
  971. local p = Instance.new("Part",Object.Parent)
  972. p.Name = "Trail"
  973. p.TopSurface = 0
  974. p.BottomSurface = 0
  975. p.Anchored = true
  976. p.CanCollide = false
  977. p.FormFactor = "Custom"
  978. p.Size = Vector3.new(0.01,0.01,0.01)
  979. p.BrickColor = Color and(type(Color)== 'userdata' and Color or BrickColor.new(Color))
  980. p.CFrame = Object.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1)-3,math.random(-1,1))
  981. local m = Instance.new("BlockMesh",p)
  982. m.Scale = Vector3.new(2,2,2)
  983. coroutine.wrap(function()
  984. for i = 1,15 do
  985. p.Transparency = i/15
  986. m.Scale = m.Scale + Vector3.new(0.1,0.1,0.1)
  987. p.CFrame = CFrame.new(p.Position + Vector3.new(math.random(-5,5)/20,0.5,math.random(-5,5)/20))* CFrame.fromEulerAnglesXYZ(math.random(-10,10)/i,math.random(-10,10)/i,0.5)
  988. swait()
  989. end
  990. p:Destroy()
  991. end)()
  992. end
  993. end)()
  994. if Duration == math.huge then return end
  995. coroutine.wrap(function()
  996. while Wait(1)do
  997. Counter = Counter +1
  998. if Counter == Duration then
  999. break
  1000. end
  1001. end
  1002. end)()
  1003. end
  1004.  
  1005. function Burn(v)
  1006. coroutine.wrap(function()
  1007. local Colors = {"Really black", 'Mulberry', 'Royal purple'}
  1008. local calc = getDPS()*.5
  1009. if v:IsA("Model")and v ~= char and not v:findFirstChild("Burnt")then
  1010. local h = v:findFirstChild("Humanoid")
  1011. if h then
  1012. if h.Health > 0 then
  1013. local t = v:findFirstChild("Torso")
  1014. if t then
  1015. if(t.Position -T.Position).magnitude <= 20 then
  1016. local f = Instance.new("StringValue",v)
  1017. f.Name = "Burnt"
  1018. ParticleEmit(v.Torso,BrickColor.new("Royal purple"),10)
  1019. for m,c in pairs(v:GetChildren())do
  1020. if c:IsA("BasePart")then
  1021. local ss = Instance.new("Fire",c)
  1022. ss.Size = c.Size.y +2
  1023. ss.Color = BrickColor.new(Colors[math.random(1,#Colors)]).Color
  1024. ss.SecondaryColor = Color3.new(0,0,0)
  1025. ss.Heat = 100
  1026. delay(10,function()
  1027. local size = ss.Size
  1028. for i = size,0,-1 do
  1029. ss.Size = i
  1030. swait()
  1031. end
  1032. ss:Destroy()
  1033. end)
  1034. end
  1035. end
  1036. h.PlatformStand = true
  1037. coroutine.wrap(function()
  1038. for i = 1,10 do
  1039. h:TakeDamage(calc)
  1040. logDamage('Fire',calc)
  1041. Wait(1)
  1042. end
  1043. end)()
  1044. Game:GetService("Debris"):AddItem(f,10)
  1045. end
  1046. end
  1047. end
  1048. end
  1049. end
  1050. end)()
  1051. end;
  1052. function AoE(point,radius,damage,push,trip)
  1053. --ypcall(function()
  1054. local push = push or Vector3.new()
  1055. local hit = getRegion(point,radius,{char})
  1056. local humanoidList = {}
  1057. for _,v in pairs(hit) do
  1058. local h = getHumanoid(v)
  1059. if not v.Anchored then
  1060. if h then
  1061. if not humanoidList[h] then
  1062. if Damaged[h] and tick()-Damaged[h]<.2 then return end
  1063. humanoidList[h] = true
  1064. Damaged[h] = tick()
  1065. damageHuman(h,damage,h.Parent:findFirstChild'Head')
  1066. Burn(h.Parent)
  1067. if h.Parent:findFirstChild("Torso") and h.Parent.Torso:isA("BasePart") then
  1068. if push.magnitude > 0 then
  1069. local v = Instance.new("BodyVelocity",h.Parent.Torso)
  1070. v.maxForce = Vector3.new(1,1,1)*10000000000
  1071. v.velocity = push/0.1
  1072. game.Debris:AddItem(v,0.1)
  1073. end
  1074. if trip then
  1075. local v = Instance.new("BodyAngularVelocity",h.Parent.Torso)
  1076. v.maxTorque = Vector3.new(1,1,1)*10000000000
  1077. v.angularvelocity = Vector3.new(math.pi,0,math.pi)/0.1
  1078. game.Debris:AddItem(v,0.1)
  1079. end
  1080. end
  1081. end
  1082. else v:BreakJoints()
  1083. v.Velocity = v.Velocity+push/v:GetMass()
  1084. end
  1085. end
  1086. end
  1087. --end)
  1088. end
  1089. function crownExplode(cf,col,scl)
  1090. local p = part(char,cf,v3(1,1,1),col,true,false,.1,"SmoothPlastic")
  1091. local pm = mesh("FileMesh",p,nil,nil,asset..meshes.crown)
  1092. Spawn(function()
  1093. for i=.1,1.1,.025 do
  1094. p.Transparency = i
  1095. pm.Scale = pm.Scale + v3(scl,scl,scl)
  1096. p.CFrame = cf
  1097. swait()
  1098. end
  1099. p:Destroy()
  1100. end)
  1101. end
  1102. function crater(cf,dist,siz,col,mat)
  1103. local num = math.random(13,18)
  1104. for i=1,num do
  1105. game:service("Debris"):AddItem(part(char,cf*ca(0,pi*2/num*i,0)*cn(0,0,dist)*ca(r(2),r(2),r(2)),v3(ma(r(siz)),ma(r(siz)),ma(r(siz))),col,true,true,0,mat),3)
  1106. end
  1107. end
  1108. function quickSound(id,par,pi)
  1109. local s = Instance.new("Sound")
  1110. local pis = {1.5,1.55,1.6,1.65,1.7,1.75,1.8,1.85,1.9,1.95,2,2.05,2.1,2.15,2.2,2.25,2.3,2.35,2.4,2.45,2.5}
  1111. s.Pitch = pis[math.random(1,#pis)]
  1112. s.SoundId = asset..id
  1113. s.Parent = par
  1114. swait()
  1115. s:Play()
  1116. return s
  1117. end
  1118. function newSound(id,par,pi)
  1119. local s = Instance.new("Sound",par)
  1120. s.Pitch = pi or 1
  1121. s.Volume = .3
  1122. s.SoundId = asset..id
  1123. s:Play()
  1124. return s
  1125. end
  1126.  
  1127. local Num = 0
  1128. local Anchored = {}
  1129.  
  1130. function GetMesh(Obj)
  1131. for i,v in pairs(Obj:GetChildren()) do
  1132. if v:IsA("DataModelMesh") then
  1133. return v
  1134. end
  1135. end
  1136. end
  1137.  
  1138. function GetCFrame(Obj)
  1139. if Obj == nil then
  1140. return
  1141. end
  1142. if Obj == Workspace then
  1143. return CFrame.new(0,0,0)
  1144. end
  1145. if Obj:IsA("Model") then
  1146. return Obj:GetModelCFrame()
  1147. end
  1148. if Obj:IsA("BasePart") then
  1149. return Obj.CFrame
  1150. end
  1151. return
  1152. end
  1153.  
  1154. function GetSize(Obj)
  1155. if Obj == nil then
  1156. return
  1157. end
  1158. if Obj == Workspace then
  1159. return Vector3.new(0,0,0)
  1160. end
  1161. if Obj:IsA("Model") then
  1162. return Obj:GetModelSize()
  1163. end
  1164. if Obj:IsA("BasePart") then
  1165. return Obj.Size
  1166. end
  1167. return
  1168. end
  1169.  
  1170. function SaveWelds(Obj,Welds,Scale)
  1171. if Welds == nil then
  1172. local Welds = {}
  1173. for i,v in pairs(Obj:GetChildren()) do
  1174. if v:IsA("JointInstance") then
  1175. Welds[#Welds+1] = {v,v.Part0,v.Part1,v.C0,v.C1,v.Parent}
  1176. v.Parent = nil
  1177. end
  1178. SaveWelds(v,Welds,Scale)
  1179. end
  1180. return Welds
  1181. else
  1182. for i,v in pairs(Obj:GetChildren()) do
  1183. if v:IsA("JointInstance") then
  1184. Welds[#Welds+1] = {v,v.Part0,v.Part1,v.C0,v.C1,v.Parent}
  1185. v.Parent = nil
  1186. end
  1187. SaveWelds(v,Welds,Scale)
  1188. end
  1189. end
  1190. end
  1191.  
  1192. function GetMass(Obj)
  1193. local Mass = 0
  1194. if Obj:IsA("BasePart") then
  1195. Mass = Mass+Obj:GetMass()
  1196. end
  1197. for i,v in pairs(Obj:GetChildren()) do
  1198. Mass = Mass+GetMass(v)
  1199. end
  1200. return Mass
  1201. end
  1202.  
  1203. function SaveConnectedParts(Obj,Welds)
  1204. if Welds == nil then
  1205. local Welds = {}
  1206. for i,v in pairs(Obj:GetChildren()) do
  1207. if v:IsA("BasePart") then
  1208. for i2,v2 in pairs(v:GetConnectedParts()) do
  1209. Welds[#Welds+1] = {Instance.new("Weld"),v,v2,v.CFrame:toObjectSpace(v2.CFrame),CFrame.new(0,0,0),v}
  1210. end
  1211. v:BreakJoints()
  1212. end
  1213. SaveConnectedParts(v,Welds)
  1214. end
  1215. return Welds
  1216. else
  1217. for i,v in pairs(Obj:GetChildren()) do
  1218. if v:IsA("BasePart") then
  1219. for i2,v2 in pairs(v:GetConnectedParts()) do
  1220. Welds[#Welds+1] = {Instance.new("Weld"),v,v2,v.CFrame:toObjectSpace(v2.CFrame),CFrame.new(0,0,0),v}
  1221. end
  1222. v:BreakJoints()
  1223. end
  1224. SaveConnectedParts(v,Welds)
  1225. end
  1226. end
  1227. end
  1228.  
  1229. function ResizeWelds(Welds,Scale)
  1230. for i,v in pairs(Welds) do
  1231. v[1].Parent = v[6]
  1232. v[1].Part0 = v[2]
  1233. v[1].Part1 = v[3]
  1234. local Vec = v[4].p
  1235. local Vec2 = v[5].p
  1236. v[1].C0 = CFrame.new(Vec*Scale)*(v[4]-Vec)
  1237. v[1].C1 = CFrame.new(Vec2*Scale)*(v[5]-Vec2)
  1238. end
  1239. end
  1240.  
  1241. function AnchorParts(Obj)
  1242. for i,v in pairs(Obj:GetChildren()) do
  1243. if v:IsA("BasePart") and v.Anchored == false then
  1244. v.Anchored = true
  1245. Anchored[v] = v
  1246. end
  1247. AnchorParts(v)
  1248. end
  1249. end
  1250.  
  1251. function ResizeFunc(Obj,Scale,Welds,Center)
  1252. Center = Center or CFrame.new(0,0,0)
  1253. for i,v in pairs(Obj:GetChildren()) do
  1254. if v:IsA("BasePart") then
  1255. --[[Num = Num+1
  1256. if Num == 100 then
  1257. wait(0.25)
  1258. Num = 0
  1259. end]]
  1260. local Size = v.Size
  1261. for i2,v2 in pairs(v:GetChildren()) do
  1262. if v2.Name == "ScaleInserted" then
  1263. Size = Size*v2.Scale
  1264. v2:Destroy()
  1265. elseif v2.Name:sub(1,14) == "ScaleInserted:" then
  1266. local X,Y,Z;
  1267. for Match in v2.Name:sub(15):gmatch("[^,%s]+") do
  1268. if Y ~= nil then
  1269. Z = tonumber(Match)
  1270. elseif X ~= nil then
  1271. Y = tonumber(Match)
  1272. else
  1273. X = tonumber(Match)
  1274. end
  1275. end
  1276. Size = Vector3.new(X,Y,Z)
  1277. v2:Destroy()
  1278. end
  1279. end
  1280. pcall(function() v.FormFactor = "Custom" end)
  1281. local CFr = v.CFrame
  1282. local Want = Size*Scale
  1283. v.Size = Want
  1284. if v:IsA("VehicleSeat") then
  1285. Seats[#Seats+1] = v
  1286. end
  1287. if v.Size ~= Want then
  1288. local Name = ""
  1289. for Match in v.Name:gmatch("[^%s]+") do
  1290. Name = Name..Match
  1291. end
  1292. local CharMesh = nil
  1293. for i,v in pairs(Obj:GetChildren()) do
  1294. if v:IsA("CharacterMesh") and tostring(v.BodyPart):sub(15) == Name then
  1295. CharMesh = v
  1296. end
  1297. end
  1298. if CharMesh == nil then
  1299. local Mesh = GetMesh(v)
  1300. if Mesh == nil then
  1301. local Mesh;
  1302. if v:IsA("WedgePart") then
  1303. Mesh = Instance.new("SpecialMesh",v)
  1304. Mesh.MeshType = "Wedge"
  1305. else
  1306. local HasShape = pcall(function() return v.Shape end)
  1307. if HasShape then
  1308. if v.Shape == "Ball" then
  1309. Mesh = Instance.new("SpecialMesh",v)
  1310. Mesh.MeshType = "Sphere"
  1311. elseif v.Shape == "Cylinder" then
  1312. Mesh = Instance.new("SpecialMesh",v)
  1313. Mesh.MeshType = "Cylinder"
  1314. else
  1315. Mesh = Instance.new("BlockMesh",v)
  1316. end
  1317. else
  1318. Mesh = Instance.new("BlockMesh",v)
  1319. end
  1320. end
  1321. Mesh.Scale = Want/v.Size
  1322. Mesh.Name = "ScaleInserted"
  1323. else
  1324. if (Mesh.ClassName == "SpecialMesh" and Mesh.MeshType ~= Enum.MeshType.FileMesh) or Mesh.ClassName ~= "SpecialMesh" then
  1325. Mesh.Scale = Want/v.Size*Mesh.Scale
  1326. end
  1327. end
  1328. else
  1329. local Mesh = Instance.new("SpecialMesh",v)
  1330. Mesh.Name = "ScaleInserted:"..tostring(Want)
  1331. Mesh.MeshType = "FileMesh"
  1332. Mesh.MeshId = "rbxassetid://"..CharMesh.MeshId
  1333. --Mesh.TextureId = CharMesh.BaseTextureId
  1334. Mesh.Scale = Vector3.new(1,1,1)*Want.X/Scale
  1335. end
  1336. end
  1337. v:BreakJoints()
  1338. local Rel = Center:toObjectSpace(CFr)
  1339. local New = CFrame.new(Rel.p*Scale)*(Rel-Rel.p)
  1340. v.CFrame = Center*New
  1341. v:BreakJoints()
  1342. elseif v:IsA("DataModelMesh") then
  1343. if v.ClassName == "SpecialMesh" then
  1344. if v.MeshType == Enum.MeshType.FileMesh then
  1345. v.Scale = v.Scale*Scale
  1346. end
  1347. else
  1348. --v.Scale = v.Scale*Scale
  1349. end
  1350. end
  1351. ResizeFunc(v,Scale,Welds,Center)
  1352. end
  1353. end
  1354.  
  1355. function Resize(Obj,Scale,Break)
  1356. local Welds = SaveWelds(Obj,nil,Scale)
  1357. SaveConnectedParts(Obj,Welds)
  1358. local Mass = GetMass(Obj)
  1359. local Center = GetCFrame(Obj)
  1360. if Center ~= nil and Workspace:FindFirstChild("Base") ~= nil then
  1361. --Center = Center-Vector3.new(0,GetSize(Obj).Y/2,0)
  1362. Center = CFrame.new(Center.X,Workspace.Base.Position.Y+Workspace.Base.Size.Y/2,Center.Z)*(Center-Center.p)
  1363. end
  1364. Seats = {}
  1365. ResizeFunc(Obj,Scale,Welds,Center)
  1366. ResizeWelds(Welds,Scale)
  1367. local Mass2 = GetMass(Obj)
  1368. for i,v in pairs(Seats) do
  1369. v.Torque = Mass2*(v.Torque/Mass)
  1370. v.TurnSpeed = v.TurnSpeed*Scale
  1371. v.MaxSpeed = v.MaxSpeed*Scale
  1372. end
  1373. end
  1374.  
  1375. function cylinderOpen(cf,col,col2)
  1376. local p = part(char,cf,v3(0,1000,0),col,true,false,.1,"SmoothPlastic")
  1377. local pm = mesh("CylinderMesh",p)
  1378. local p2 = part(char,cf,v3(0,1000,0),col2,true,false,.1,"SmoothPlastic")
  1379. local p2m = mesh("CylinderMesh",p2)
  1380. Spawn(function()
  1381. for i=.1,1.1,.0125 do
  1382. p.Transparency = i
  1383. p2.Transparency = i
  1384. pm.Scale = pm.Scale + v3(.8,0,.8)
  1385. p2m.Scale = p2m.Scale + v3(.5,0,.5)
  1386. swait()
  1387. end
  1388. p:Destroy()
  1389. p2:Destroy()
  1390. end)
  1391. end
  1392. function cylinderOpen2(cf,col,col2)
  1393. local p = part(workspace,cf,v3(0,1000,0),col,true,false,.1,"SmoothPlastic")
  1394. local pm = mesh("CylinderMesh",p)
  1395. local p2 = part(workspace,cf,v3(0,1000,0),col2,true,false,.1,"SmoothPlastic")
  1396. local p2m = mesh("CylinderMesh",p2)
  1397. Spawn(function()
  1398. for i=.1,1.1,.025 do
  1399. p.Transparency = i
  1400. p2.Transparency = i
  1401. pm.Scale = pm.Scale + v3(.7,0,.7)
  1402. p2m.Scale = p2m.Scale + v3(.6,0,.6)
  1403. swait()
  1404. end
  1405. wait(10)
  1406. p:Destroy()
  1407. p2:Destroy()
  1408. end)
  1409. end
  1410.  
  1411. function ray(Pos, Dir,xxz)
  1412. local xxz2=char
  1413. if xxz ~= nil then
  1414. xxz2=nil
  1415. end
  1416. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),xxz2)
  1417. end
  1418.  
  1419. function FindGround(pos)
  1420. local ax,ay,az = pos:toEulerAnglesXYZ()
  1421. local bhit,bpos=ray(pos.p,pos.p - (pos.p + Vector3.new(0,200,0)))
  1422. if bhit and bpos then
  1423. return CFrame.new(bpos)*CFrame.Angles(ax,ay,az)
  1424. end
  1425. return nil
  1426. end
  1427.  
  1428. local lastdps = tick()
  1429. local ohp = hum.Health
  1430. local berserk = false
  1431. hum.Changed:connect(function(val)
  1432. if val == 'Health_XML' then
  1433. if hum.Health < ohp then
  1434. lastdps = tick()
  1435. end
  1436. ohp = hum.Health
  1437.  
  1438. elseif val =='PlatformStand' then
  1439. hum.PlatformStand = false
  1440. elseif val == 'MaxHealth' then
  1441. hum.MaxHealth = 650
  1442. hum.Health = 650
  1443. elseif val == "Sit" then
  1444. hum.Sit = false
  1445. elseif val == "WalkSpeed" then
  1446. end
  1447. end)
  1448.  
  1449. local LastTrail = nil
  1450. local Trails = {}
  1451.  
  1452. function Disable(Humanoid)
  1453.  
  1454. if Humanoid == hum then return end
  1455.  
  1456. ypcall(function()
  1457.  
  1458. for i = 10,0,-1 do
  1459.  
  1460. if not Humanoid.Parent then break end
  1461. if Humanoid.WalkSpeed > 5 then
  1462. if Humanoid.Health <= 0 then break end
  1463.  
  1464. if Humanoid:findFirstChild'Property of Darkus_Theory' then
  1465. Humanoid.WalkSpeed = 3
  1466. Humanoid.JumpPower = 0
  1467. end
  1468. --Humanoid.JumpMana = 0
  1469. end
  1470.  
  1471. wait(1)
  1472.  
  1473. end
  1474.  
  1475. if Humanoid.WalkSpeed > 5 then
  1476. if Humanoid:findFirstChild'Property of Darkus_Theory' then
  1477. Humanoid.JumpPower = 50
  1478. Humanoid.WalkSpeed = 16
  1479. end
  1480. end
  1481.  
  1482. end)
  1483. end
  1484.  
  1485.  
  1486.  
  1487. function Ringz(part,col)
  1488. local modle = Instance.new('Model', char)
  1489. for i = 1,6 do
  1490. local p = Instance.new("Part", modle)
  1491. p.Name = "BlastRing"
  1492. p.TopSurface = 0
  1493. p.BottomSurface = 0
  1494. p.CanCollide = false
  1495. p.Anchored = true
  1496. p.BrickColor = BrickColor.new(col)
  1497. p.Size = Vector3.new(1,1,1)
  1498. p.CFrame = CFrame.new(part.Position - Vector3.new(0,3,0))* CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)/30)
  1499. local rm = Instance.new("SpecialMesh",p)
  1500. rm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1501. rm.Name = "BlastMesh"
  1502. rm.Scale = Vector3.new(1,1,1)
  1503. coroutine.wrap(function()
  1504. for n = 1,25 do
  1505. rm.Scale = rm.Scale + Vector3.new(1.2 +1 +i/5,1.2 +1 +i/5,0.1)*.8
  1506. if 1 +i/5 == 1.2 then
  1507. rm.Scale = rm.Scale + Vector3.new(0,0.9,0)
  1508. end
  1509. p.Transparency = n/15
  1510. p.CFrame = p.CFrame * CFrame.new(0,0.01,0)* CFrame.fromEulerAnglesXYZ(math.random(-20,20)/50,math.random(-20,20)/70,0)
  1511. swait()
  1512. end
  1513. p:Destroy()
  1514. end)()
  1515. end
  1516. game:service'Debris':AddItem(modle, 10)
  1517. end
  1518.  
  1519. local DOTTED = {}
  1520. local unique = 'Agony'..Player.Name..tick()
  1521. function damageHuman(hum, d, hit, ticklul)
  1522. if not hum:IsA('Humanoid') then hum.Parent:breakJoints() return end
  1523. pcall(function() hum.Parent.Health.Disabled = true end)
  1524. if hum.Health <= 0 then return end
  1525. if hum == Humanoid then return end
  1526. if hum.MaxHealth > 1000000 then hum.Parent:breakJoints() end
  1527. if not hum:findFirstChild(unique) and ticklul=='Apply' then
  1528. local Agony = Instance.new('Model', hum)
  1529. Agony.Name = unique
  1530. DOTTED[hum] = {Dot = Agony, Tix = 15, DPSX = 1, LastT = tick(), Haste = 1}
  1531. --print('applying to '..hum.Parent.Name)
  1532. elseif ticklul=='Refresh' and hum:findFirstChild(unique) and DOTTED[hum].Tix > 0 then
  1533. DOTTED[hum].Tix = 15
  1534. --print('refreshing on '..hum.Parent.Name)
  1535. elseif ticklul=='Apply' and DOTTED[hum].Tix <= 1 then
  1536. DOTTED[hum].Tix = 8
  1537. --print('reapplying on '..hum.Parent.Name)
  1538. end
  1539. if Ally[hum] then return end
  1540. local crit = math.random(1,15)
  1541. local DPS = ((d) * (crit > 11 and stats.CriticalStrikeBonus or 1))
  1542. Title("-"..math.ceil(DPS), ((hit.Parent and hit.Parent~='Workspace') and (hit.Parent:findFirstChild'Head' or Instance.new('Model'))), (crit < 12 and Color3.new(0/255,0/255,200/255) or Color3.new(230/255,0/255,150/255)),true,false)
  1543. hum.Health = hum.Health - math.ceil(DPS)
  1544. if hum.Health <= 0 then logDamage('Kills', 1) Alert('You killed '..hum.Parent.Name..'!', 'Yellow') spawn(function() damageAmp = damageAmp+.35 wait(10) damageAmp = damageAmp-.35 end) end
  1545. end
  1546.  
  1547. function healHuman(hum, d, hit)
  1548. if not hum:IsA('Humanoid') then hum.Parent:breakJoints() return end
  1549. pcall(function() hum.Parent.Health.Disabled = true end)
  1550. if hum.Health <= 0 then return end
  1551. local crit = math.random(1,15)
  1552. local DPS = ((d) * (crit > 11 and stats.CriticalStrikeBonus or 1))
  1553. Title("+"..math.ceil(DPS), ((hit.Parent and hit.Parent~='Workspace') and (hit.Parent:findFirstChild'Head' or Instance.new('Model'))), (crit > 11 and Color3.new(200/255,200/255,0/255) or Color3.new(0/255,230/255,0/255)),true,false)
  1554. hum.Health = hum.Health + math.ceil(DPS)
  1555. end
  1556.  
  1557.  
  1558. function Tag(Humanoid)
  1559. local c = Instance.new("ObjectValue",Humanoid)
  1560. c.Value = plr
  1561. c.Name = "creator"
  1562. end
  1563.  
  1564. function CloneCharacter()
  1565. Character.Archivable = true
  1566. local Clone = Character:Clone()
  1567. for i,v in pairs(Clone:GetChildren())do
  1568. if v:IsA("BasePart") then
  1569. v.Transparency = .1
  1570. v.Reflectance = .1
  1571. end
  1572. end
  1573. Character.Archivable = false
  1574. Clone.Parent = game:service('Workspace')
  1575. Clone.Archivable = false
  1576. game:service('Debris'):AddItem(Clone,9)
  1577. return Clone
  1578. end
  1579. function searchForHumanoid(thing)
  1580. for _,v in pairs(thing:children()) do
  1581. if v:IsA('Humanoid') then
  1582. return v
  1583. end
  1584. end
  1585. return false
  1586. end
  1587.  
  1588.  
  1589. function Title(txt,part,color,rise,spell)
  1590. local col = color
  1591. local Gui = Instance.new("BillboardGui",part)
  1592. Gui.Name = "3DGUI"
  1593. Gui.ExtentsOffset = Vector3.new(math.random(-3,3),math.random(2,3),math.random(-3,3))
  1594. Gui.Size = UDim2.new(8,0,2,0)
  1595. local Tit = Instance.new("TextLabel",Gui)
  1596. Tit.Name = "Gooey"
  1597. Tit.TextColor3 = col
  1598. Tit.TextTransparency = 0.25
  1599. Tit.TextStrokeColor3 = col
  1600. Tit.TextStrokeTransparency = 1
  1601. Tit.Size = UDim2.new(1,0,1,0)
  1602. Tit.BackgroundTransparency = 1
  1603. Tit.Font = "Arial"
  1604. Tit.TextScaled = true
  1605. Tit.Text = txt
  1606. if rise then
  1607. if not tonumber(rise) then rise = 6 end
  1608. coroutine.wrap(function()
  1609. local randvar = (spell and 0 or math.random(-4,4))
  1610. while Tit.Parent and Gui.Parent and wait() do
  1611. Gui.ExtentsOffset = Gui.ExtentsOffset + Vector3.new(0.025*randvar,0.025*rise,0.025*randvar)
  1612. end
  1613. end)()
  1614. end
  1615. game:service('Debris'):AddItem(Gui,1.5)
  1616. return Tit
  1617. end
  1618.  
  1619. function DamageNear(Pos,Mag,Dmg,x)
  1620. local Targets,HitAlready = {},{}
  1621. for i,v in pairs(workspace:GetChildren())do
  1622. if v:IsA("Model")and v ~= Character and v:findFirstChild("Humanoid")then
  1623. for _,x in pairs(v:GetChildren())do
  1624. if x:IsA("BasePart")then
  1625. if(Pos -x.Position).magnitude <= Mag then
  1626. table.insert(Targets,v)
  1627. end
  1628. end
  1629. end
  1630. end
  1631. end
  1632. for i,v in pairs(Targets)do
  1633. if not HitAlready[v.Name]then
  1634. ypcall(function()
  1635. end)
  1636. HitAlready[v.Name] = true
  1637. end
  1638. end
  1639. end
  1640.  
  1641. function weld(thing1,thing2)
  1642. local a = Instance.new('Weld');
  1643. pcall(function()
  1644. a.Parent = thing1;
  1645. a.Part0 = thing1;
  1646. a.Part1 = thing2;
  1647. a.C0 = thing1.CFrame:inverse()*thing2.CFrame
  1648. end)
  1649. return a
  1650. end
  1651.  
  1652. function IsNear(Position,Distance,SinglePlayer,db)
  1653. if SinglePlayer then
  1654. return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance
  1655. end
  1656. local List = {}
  1657. for i,v in pairs(workspace:GetChildren())do
  1658. if v:IsA("Model")then
  1659. if v:findFirstChild("Torso")then
  1660. --if (v ~= char and not db) then
  1661. if(v.Torso.CFrame.p -Position).magnitude < Distance then
  1662. table.insert(List,v)
  1663. end
  1664. --end
  1665. end
  1666. end
  1667. end
  1668. return List
  1669. end
  1670.  
  1671. function createOrb()
  1672.  
  1673. local Orb = Instance.new("Model")
  1674. Orb.Name = "OrbModel"
  1675. local PurplePart = Instance.new("Part", Orb)
  1676. PurplePart.BrickColor = BrickColor.new("Black")
  1677. PurplePart.Anchored = true
  1678. PurplePart.Locked = true
  1679. PurplePart.CanCollide = false
  1680. PurplePart.Name = 'PurplePart'
  1681. PurplePart.Material = 'Neon'
  1682. PurplePart.Size = Vector3.new(1, 1, 1)
  1683. PurplePart.BottomSurface = Enum.SurfaceType.Smooth
  1684. PurplePart.TopSurface = Enum.SurfaceType.Smooth
  1685. PurpleMesh = Instance.new("SpecialMesh", PurplePart)
  1686. PurpleMesh.MeshType = Enum.MeshType.FileMesh
  1687. PurpleMesh.Name = "Mesh"
  1688. PurpleMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1689. PurpleMesh.VertexColor = Vector3.new(1, 0, 1)
  1690.  
  1691. local Ring = Instance.new("Part", PurplePart)
  1692. Ring.Name = "BlastRing"
  1693. Ring.TopSurface = 0
  1694. Ring.BottomSurface = 0
  1695. Ring.CanCollide = false
  1696. Ring.Anchored = true
  1697. Ring.Locked = true
  1698. Ring.BrickColor = BrickColor.new('Dark indigo')
  1699. Ring.Size = Vector3.new(1,1,1)
  1700. local RingMesh = Instance.new("SpecialMesh",Ring)
  1701. RingMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1702. RingMesh.Name = "BlastMesh"
  1703.  
  1704.  
  1705. Orb.Parent = char
  1706. OrbModel = Orb
  1707.  
  1708. local Light = Instance.new("PointLight", PurplePart)
  1709. Light.Name = "HeadLight"
  1710. Light.Color = Color3.new(1,0,1)
  1711. Light.Range = 6
  1712. Light.Brightness = 20
  1713.  
  1714. local con = game:GetService("RunService").RenderStepped:connect(function()
  1715. local Targ
  1716. if not currentTarget then Targ = hum else Targ = currentTarget end
  1717.  
  1718. if Targ:FindFirstChild('MarkOfDeath') then
  1719. PurplePart.BrickColor = BrickColor.new'Really red'
  1720. Ring.BrickColor = BrickColor.new'White'
  1721. else
  1722. PurplePart.BrickColor = BrickColor.new'Black'
  1723. Ring.BrickColor = BrickColor.new'Dark indigo'
  1724. end
  1725.  
  1726. local c = math.abs(math.cos(tick()))
  1727.  
  1728. if c <= .5 then c = .5 end
  1729.  
  1730. PurpleMesh.Scale = Vector3.new(c*.7, c*1.1, c*.7)
  1731. RingMesh.Scale = Vector3.new(c*.9, c*.9, c*.9)
  1732.  
  1733. PurplePart.CFrame = PurplePart.CFrame:lerp((Targ.Parent and Targ.Parent or char).Head.CFrame*CFrame.new(0,3,0),.5)
  1734. Ring.CFrame = PurplePart.CFrame* CFrame.fromEulerAnglesXYZ(-math.rad(90+(math.sin(tick())*6)), 0, -math.rad(90+(math.sin(tick())*6)))
  1735. end)
  1736.  
  1737. local chnge = function(a)
  1738. if a=='Name' then
  1739. Orb:Destroy()
  1740. con:disconnect()
  1741. createOrb()
  1742. elseif a=='Parent' then
  1743. Orb:Destroy()
  1744. con:disconnect()
  1745. createOrb()
  1746. elseif a=='Locked' then
  1747. Orb:Destroy()
  1748. con:disconnect()
  1749. createOrb()
  1750. elseif a=='Anchored' then
  1751. Orb:Destroy()
  1752. con:disconnect()
  1753. createOrb()
  1754. end
  1755. end
  1756.  
  1757. Orb.Changed:connect(chnge)
  1758. Ring.Changed:connect(chnge)
  1759. PurplePart.Changed:connect(chnge)
  1760. return Orb
  1761. end
  1762.  
  1763.  
  1764.  
  1765. function isFriendly()
  1766.  
  1767. if currentTarget == hum then return end
  1768.  
  1769. if Ally[currentTarget] then return true end
  1770.  
  1771. return false
  1772. end
  1773.  
  1774. function toggleFriendly()
  1775.  
  1776. --if currentTarget == hum then return end
  1777.  
  1778. pcall(function()if Ally[currentTarget] then Ally[currentTarget] = nil else Ally[currentTarget] = true end end)
  1779.  
  1780. end
  1781.  
  1782. --SlashDamage = Damage(TrailPart)
  1783.  
  1784. asd = function(parent,string)
  1785. repeat swait() until parent:FindFirstChild(string)
  1786. swait()
  1787. return parent:FindFirstChild(string)
  1788. end
  1789.  
  1790. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  1791.  
  1792. local wld = Instance.new("Weld", wp1)
  1793. wld.Part0 = wp0
  1794. wld.Part1 = wp1
  1795. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1796.  
  1797. return wld
  1798. end
  1799.  
  1800.  
  1801. Search = false
  1802.  
  1803. function shadowSight()
  1804.  
  1805. if Search == false then
  1806. Search = true
  1807. for i,v in pairs(game.Players:getPlayers()) do
  1808. if v.Name~=char.Name and v.Character then
  1809. for j,k in pairs(v.Character:GetChildren()) do
  1810. if k:IsA("BasePart") and k.Transparency >= 1 then
  1811. bawx=Instance.new("SelectionBox",camera)
  1812. bawx.Color = BrickColor.new("Bright red")
  1813. bawx.Transparency = .5
  1814. bawx.Adornee = k
  1815. end
  1816. end
  1817. end
  1818. end
  1819. camera.CameraSubject = OrbModel.PurplePart
  1820. elseif Search == true then
  1821. Search = false
  1822. for i, v in pairs(camera:GetChildren()) do
  1823. if v:IsA("SelectionBox") then
  1824. v:Destroy()
  1825. end
  1826. end
  1827. camera.CameraSubject = hum
  1828. end
  1829.  
  1830. end
  1831.  
  1832.  
  1833. newStat("Mana", 'NumberValue', 100)
  1834. newStat("Intellect", 'NumberValue', Intellect)
  1835. newStat("Haste", 'NumberValue', Haste)
  1836. newStat("CriticalStrikeBonus", 'NumberValue', 1.25)
  1837.  
  1838. hum.JumpPower = 100
  1839. hum.WalkSpeed = 22
  1840. hum.MaxHealth = 650
  1841. hum.Health = 650
  1842.  
  1843. Alert = function(txt, color, font, fontsize)
  1844. local Colorz = {
  1845. ["Red"] = Color3.new(255/255,0,0);
  1846. ["Green"] = Color3.new(0,255/255,0);
  1847. ["Blue"] = Color3.new(0,0,255/255);
  1848. ["Purple"] = Color3.new(255/255,255/255,0);
  1849. ["Black"] = Color3.new(0,0,0);
  1850. ["White"] = Color3.new(1,1,1);
  1851. ['Orange'] = Color3.new(1,0.5,0);
  1852. ['Yellow'] = Color3.new(1,1,0);
  1853. };
  1854.  
  1855. game:GetService('StarterGui'):SetCore('ChatMakeSystemMessage', {
  1856. Text = (txt and txt or 'nil'),
  1857. Color = (color and Colorz[color] or Color3.new(.8,0,0)),
  1858. Font = (font and font or 'SourceSansLight'),
  1859. FontSize = (fontsize and fontsize or 'Size14'),
  1860. })
  1861. end
  1862.  
  1863. function giveBuff(buffName, stat, duration, addition, targ)
  1864.  
  1865. end
  1866.  
  1867. hum.ChildAdded:connect(function(obj)
  1868.  
  1869. end)
  1870.  
  1871. function clerp(a,b,t)
  1872. local qa = {QuaternionFromCFrame(a)}
  1873. local qb = {QuaternionFromCFrame(b)}
  1874. local ax, ay, az = a.x, a.y, a.z
  1875. local bx, by, bz = b.x, b.y, b.z
  1876. local _t = 1-t
  1877. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1878. end
  1879.  
  1880. function QuaternionFromCFrame(cf)
  1881. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1882. local trace = m00 + m11 + m22
  1883. if trace > 0 then
  1884. local s = math.sqrt(1 + trace)
  1885. local recip = 0.5/s
  1886. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1887. else
  1888. local i = 0
  1889. if m11 > m00 then
  1890. i = 1
  1891. end
  1892. if m22 > (i == 0 and m00 or m11) then
  1893. i = 2
  1894. end
  1895. if i == 0 then
  1896. local s = math.sqrt(m00-m11-m22+1)
  1897. local recip = 0.5/s
  1898. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1899. elseif i == 1 then
  1900. local s = math.sqrt(m11-m22-m00+1)
  1901. local recip = 0.5/s
  1902. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1903. elseif i == 2 then
  1904. local s = math.sqrt(m22-m00-m11+1)
  1905. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1906. end
  1907. end
  1908. end
  1909.  
  1910. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1911. local xs, ys, zs = x + x, y + y, z + z
  1912. local wx, wy, wz = w*xs, w*ys, w*zs
  1913. local xx = x*xs
  1914. local xy = x*ys
  1915. local xz = x*zs
  1916. local yy = y*ys
  1917. local yz = y*zs
  1918. local zz = z*zs
  1919. 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))
  1920. end
  1921.  
  1922. function QuaternionSlerp(a, b, t)
  1923. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1924. local startInterp, finishInterp;
  1925. if cosTheta >= 0.0001 then
  1926. if (1 - cosTheta) > 0.0001 then
  1927. local theta = math.acos(cosTheta)
  1928. local invSinTheta = 1/math.sin(theta)
  1929. startInterp = math.sin((1-t)*theta)*invSinTheta
  1930. finishInterp = math.sin(t*theta)*invSinTheta
  1931. else
  1932. startInterp = 1-t
  1933. finishInterp = t
  1934. end
  1935. else
  1936. if (1+cosTheta) > 0.0001 then
  1937. local theta = math.acos(-cosTheta)
  1938. local invSinTheta = 1/math.sin(theta)
  1939. startInterp = math.sin((t-1)*theta)*invSinTheta
  1940. finishInterp = math.sin(t*theta)*invSinTheta
  1941. else
  1942. startInterp = t-1
  1943. finishInterp = t
  1944. end
  1945. end
  1946. 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
  1947. end
  1948.  
  1949. function lerp(weld,beglerp,endlerp,speed)
  1950. if weld.ClassName =='Weld' or weld.ClassName == 'Motor6D' then
  1951. weld.C0 = clerp(beglerp, endlerp, speed)
  1952. else
  1953. weld.CFrame = clerp(beglerp, endlerp, speed)
  1954. end
  1955. return (weld.ClassName =='Weld' or weld.ClassName == 'Motor6D' and weld.C0 or weld.CFrame)
  1956. end
  1957.  
  1958. function IsNear(Position,Distance,SinglePlayer,db)
  1959. if SinglePlayer then
  1960. return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance
  1961. end
  1962. local List = {}
  1963. for i,v in pairs(workspace:GetChildren())do
  1964. if v:IsA("Model")then
  1965. if v:findFirstChild("Torso")then
  1966. --if (v ~= char and not db) then
  1967. if(v.Torso.CFrame.p -Position).magnitude < Distance then
  1968. table.insert(List,v)
  1969. end
  1970. --end
  1971. end
  1972. end
  1973. end
  1974. return List
  1975. end
  1976.  
  1977. regening = false
  1978. lastdps = tick()
  1979. function regenHealth()
  1980. if regening then return end
  1981. if (tick()-lastdps < 15) then return end
  1982. regening = true
  1983. local s = wait(1)
  1984. local health = hum.Health
  1985. if health > 0 and health < hum.MaxHealth then
  1986. local newHealthDelta = hum.MaxHealth * .03
  1987. health = health + newHealthDelta
  1988. hum.Health = math.min(health,hum.MaxHealth)
  1989. end
  1990.  
  1991. regening = false
  1992. end
  1993.  
  1994. function checkCooldown(ability)
  1995. if not Cooldowns[ability] then return false end
  1996. local trem = (tick()-Cooldowns[ability].startTime)
  1997. if (trem <= Cooldowns[ability].timeRequired) then return true end
  1998. return false
  1999. end
  2000.  
  2001. function setCooldown(ability, req)
  2002. Cooldowns[ability] = {startTime = tick(), timeRequired = req}
  2003. end
  2004.  
  2005.  
  2006. applyCameraShake=function(Noob,Intens,Time)
  2007. Intens = Intens / 5.2
  2008. if game.Players:GetPlayerFromCharacter(Noob)~=nil then
  2009. local ss=Nethex.CamShake:clone()
  2010. ss.Disabled=false
  2011. ss.intensity.Value=Intens
  2012. ss.times.Value=Time
  2013. ss.Parent=Noob
  2014. end
  2015. end
  2016.  
  2017. function getRandomPlayer()
  2018. local players = game:service('Players'):GetPlayers()
  2019. if #players > 0 then
  2020. local plrz = players[math.random(#players)]
  2021. if plrz.Name == plr.Name then
  2022. repeat swait() plrz = players[math.random(#players)] until plrz.Name ~= plr.Name
  2023. currentTarget = plrz
  2024. Target(plrz)
  2025. end
  2026. return plrz
  2027. end
  2028. end
  2029.  
  2030. partyy = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  2031. local fp = it("Part")
  2032. fp.formFactor = formfactor
  2033. fp.Parent = parent
  2034. fp.Reflectance = reflectance
  2035. fp.Transparency = transparency
  2036. fp.CanCollide = false
  2037. fp.Locked = true
  2038. fp.BrickColor = brickcolor
  2039. fp.Name = name
  2040. fp.Size = size
  2041. fp.Position = Torso.Position
  2042. NoOutline(fp)
  2043. fp.Material = "SmoothPlastic"
  2044. fp:BreakJoints()
  2045. return fp
  2046. end
  2047. meshy = function(Mesh, part, meshtype, meshid, offset, scale)
  2048. local mesh = it(Mesh)
  2049. mesh.Parent = part
  2050. if Mesh == "SpecialMesh" then
  2051. mesh.MeshType = meshtype
  2052. if meshid ~= "nil" then
  2053. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  2054. end
  2055. end
  2056. mesh.Offset = offset
  2057. mesh.Scale = scale
  2058. return mesh
  2059. end
  2060.  
  2061. so = function(id, par, vol, pit)
  2062. local sou = Instance.new("Sound", par or workspace)
  2063. sou.Volume = vol
  2064. sou.Pitch = pit or 1
  2065. if id == "Whoosh" then
  2066. num = math.random(1, 3)
  2067. if num == 1 then
  2068. id = "200633968"
  2069. else
  2070. if num == 2 then
  2071. id = "200634020"
  2072. else
  2073. if num == 3 then
  2074. id = "200634043"
  2075. end
  2076. end
  2077. end
  2078. end
  2079. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  2080. coroutine.resume(coroutine.create(function(Sound)
  2081. swait()
  2082. Sound:play()
  2083. end), sou)
  2084. game:GetService("Debris"):AddItem(sou, 6)
  2085. end
  2086.  
  2087. function getTarget()
  2088. return currentTarget
  2089. end
  2090.  
  2091. local Blocking = false
  2092. local Charging = false
  2093. local Burst = true
  2094. local lastpress = tick()
  2095. local Keys = {}
  2096.  
  2097. function createBlast()
  2098.  
  2099. local aiming = true
  2100. local fxholder = Instance.new('Model' ,char)
  2101. local rune = Instance.new('Part')
  2102. rune.Size = Vector3.new(13,1,13)
  2103. rune.Transparency = 1
  2104. rune.CanCollide = false
  2105. rune.Anchored = true
  2106. local mash=Instance.new("BlockMesh",rune)
  2107. mash.Scale=Vector3.new(1,.1,1)
  2108. local texturr=Instance.new("Texture",rune)
  2109. texturr.Texture = "http://www.roblox.com/asset/?id=139222366"
  2110. texturr.Face="Top"
  2111. local texturr=Instance.new("Texture",rune)
  2112. texturr.Texture = "http://www.roblox.com/asset/?id=139222366"
  2113. texturr.Face="Bottom"
  2114. rune.CFrame = (ra.CFrame *CFrame.new(0, -2, 0))
  2115. rune.Parent = fxholder
  2116.  
  2117. spawn(function()
  2118. local i = 0
  2119. while aiming do
  2120. i = i + 15
  2121. otheranims = true
  2122. rootpart.Anchored = true
  2123. rootpart.CFrame = CFrame.new(rootpart.Position, ((currentTarget and currentTarget.Health>0 and currentTarget.Parent:findFirstChild'HumanoidRootPart'.Position) or mouse.Hit.p))
  2124. rune.CFrame = (ra.CFrame *CFrame.new(0, -2, 0)) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0))
  2125. Mode = 'CastingSingle'
  2126. swait()
  2127. end
  2128. end)
  2129.  
  2130. wait(.35)
  2131.  
  2132.  
  2133. local Blast = Instance.new('Part')
  2134. Blast.Name = 'Blasty'
  2135. Blast.Size = Vector3.new(1,1,1)
  2136. Blast.TopSurface,Blast.BottomSurface = 0,0
  2137. Blast.BrickColor = BrickColor.new('Royal purple')
  2138. Blast.Anchored = true
  2139. local BMesh = Instance.new('SpecialMesh', Blast)
  2140. BMesh.MeshType = 'Sphere'
  2141. BMesh.Scale = Vector3.new(1, 1, 2)
  2142. Blast.CFrame = rune.CFrame
  2143. swait()
  2144.  
  2145. wait(.2)
  2146.  
  2147. local Ring = Instance.new("Part")
  2148. Ring.Name = "BlastRing"
  2149. Ring.TopSurface = 0
  2150. Ring.BottomSurface = 0
  2151. Ring.CanCollide = false
  2152. Ring.Anchored = true
  2153. Ring.Locked = true
  2154. Ring.BrickColor = BrickColor.new('Mulberry')
  2155. Ring.Size = Vector3.new(1,1,1)
  2156. local RingMesh = Instance.new("SpecialMesh",Ring)
  2157. RingMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2158. RingMesh.Name = "BlastMesh"
  2159.  
  2160. Ring.CFrame = rune.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(90),0,0)
  2161. Ring.Parent = fxholder
  2162.  
  2163. spawn(function()
  2164. for i = 0,1,.05 do
  2165. RingMesh.Scale = RingMesh.Scale+Vector3.new(1.5,1.5,1)
  2166. Ring.Transparency = Ring.Transparency + .05
  2167. swait()
  2168. end
  2169. end)
  2170.  
  2171. aiming = false
  2172. otheranims = false
  2173. rootpart.Anchored = false
  2174.  
  2175. swait()
  2176. torso.Velocity = -(rune.CFrame*CFrame.Angles(-math.pi/2,0,0)).lookVector*100
  2177.  
  2178. local mh = ((currentTarget and currentTarget.Health>0 and currentTarget.Parent:findFirstChild'HumanoidRootPart'.Position) or mouse.Hit.p)
  2179. local hit,pos = rayCast(Blast.Position,CFrame.new(Blast.Position,mh).lookVector,999,char:children'')
  2180.  
  2181. spawn(function()
  2182. Blast.CFrame = CFrame.new(Blast.Position, pos)
  2183. Blast.Parent = fxholder
  2184. repeat Blast.CFrame = Blast.CFrame:lerp(CFrame.new(pos, ra.Position), .4) swait() until (Blast.Position-mh).magnitude < 5
  2185. MagniDamage(Blast.Position,Blast,15,14,18,1,'Normal', 'Apply')
  2186. local asd = Blast:Clone()
  2187. asd.CFrame = Blast.CFrame
  2188. asd.Parent = fxholder
  2189. Blast.Transparency = 1
  2190. local mm = asd:children''[1]
  2191. mm.Scale = Vector3.new(1,1,1)
  2192. quickSound(166196553, Blast)
  2193. Ringz(asd, 'Royal purple')
  2194. for i = 0,1,.05 do
  2195. asd.Transparency = i
  2196. mm.Scale = mm.Scale+Vector3.new(1.25, 1.25, 1.25)
  2197. swait()
  2198. end
  2199. wait(.4)
  2200. fxholder:Destroy()
  2201. end)
  2202.  
  2203. wait(2)
  2204.  
  2205. pcall(game.Destroy, fxholder)
  2206. end
  2207.  
  2208. function Teleport()
  2209. local numtween = function(a, b, t)
  2210. return (b-a)*t + a
  2211. end
  2212. local fxholder = Instance.new('Model', char)
  2213. local function rayCast(Pos, Dir, Max, Ignore)
  2214. return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2215. end
  2216. otheranims = true
  2217. Mode = 'CastingSingle'
  2218. local focusing = true
  2219. local rune = Instance.new('Part')
  2220. rune.Size = Vector3.new(10,1,10)
  2221. rune.Transparency = 1
  2222. rune.CanCollide = false
  2223. rune.Anchored = true
  2224. local mash=Instance.new("BlockMesh",rune)
  2225. mash.Scale=Vector3.new(3,1,3)
  2226. local texturr=Instance.new("Texture",rune)
  2227. texturr.Texture = "http://www.roblox.com/asset/?id=295332792"
  2228. texturr.Face="Top"
  2229. texturr.Transparency = .2
  2230. local texturr=Instance.new("Texture",rune)
  2231. texturr.Texture = "http://www.roblox.com/asset/?id=295332792"
  2232. texturr.Face="Bottom"
  2233. texturr.Transparency = .2
  2234. spawn(function()
  2235. while focusing do
  2236. rune.CFrame = CFrame.new(mouse.Hit.p)
  2237. swait()
  2238. end
  2239. end)
  2240. rune.Parent = fxholder
  2241. wait(1)
  2242. otheranims = false
  2243. focusing = false
  2244. local Hit,Position = rayCast(rootpart.Position, CFrame.new(rootpart.Position, rune.Position).lookVector, 500, char:children'')
  2245. rootpart.CFrame = rune.CFrame*CFrame.new(0, 5, 0)
  2246. MagniDamage(rune.Position,rune,10,4,8,1,'Normal', 'Apply')
  2247. MagniDamage(rune.Position,rune,10,3,4,1,'Normal', 'Refresh')
  2248. crownExplode(rune.CFrame,'Royal purple',.5)
  2249. crater(rune.CFrame,10,5,'Really black','Grass')
  2250. AoE(rune.Position,15,13,false,false)
  2251. cylinderOpen2(rune.CFrame,'Royal purple','Mulberry')
  2252. quickSound(142070127, head)
  2253. wait(2)
  2254. startedb = false
  2255. for i = 1,15 do
  2256. mash.Scale = Vector3.new(numtween(mash.Scale.X, -2, .1),numtween(mash.Scale.Y, -2, .1),numtween(mash.Scale.Z, -2, .1))
  2257. swait()
  2258. end
  2259. fxholder:Destroy()
  2260. end
  2261.  
  2262. local RbxUtility = LoadLibrary("RbxUtility")
  2263. local Create = RbxUtility.Create
  2264.  
  2265. function RemoveOutlines(part)
  2266. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2267. end
  2268.  
  2269. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2270. local Part = Create("Part"){
  2271. Parent = Parent,
  2272. Reflectance = Reflectance,
  2273. Transparency = Transparency,
  2274. CanCollide = false,
  2275. Locked = true,
  2276. BrickColor = BrickColor.new(tostring(BColor)),
  2277. Name = Name,
  2278. Size = Size,
  2279. Material = Material,
  2280. }
  2281. RemoveOutlines(Part)
  2282. return Part
  2283. end
  2284.  
  2285. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2286. local Msh = Create(Mesh){
  2287. Parent = Part,
  2288. Offset = OffSet,
  2289. Scale = Scale,
  2290. }
  2291. if Mesh == "SpecialMesh" then
  2292. Msh.MeshType = MeshType
  2293. Msh.MeshId = MeshId
  2294. end
  2295. return Msh
  2296. end
  2297.  
  2298.  
  2299. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2300. local prt=CreatePart(char,"SmoothPlastic",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,char,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2301. prt.Anchored=true
  2302. prt.CFrame=cframe
  2303. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  2304. game:GetService("Debris"):AddItem(prt,2)
  2305. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  2306. for i=0,1,delay do
  2307. swait()
  2308. Part.Transparency=i
  2309. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2310. end
  2311. Part.Parent=nil
  2312. end),prt,msh,(math.random(0,1)+math.random())/5)
  2313. end
  2314.  
  2315. function shoottrail3(baseprt, trg)
  2316. local spread=0
  2317. local range=150
  2318. local rangepower=75
  2319. local function rayCast(Position, Direction, Range, Ignore)
  2320. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  2321. end
  2322. coroutine.resume(coroutine.create(function(v)
  2323. local spreadvector = 0
  2324. local dir = CFrame.new((baseprt.Position+trg.Position)/2,trg.Position)
  2325. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  2326. local rangepos = range*50
  2327. local function drawtrail(From,To)
  2328. local effectsmsh = Instance.new("SpecialMesh")
  2329. effectsmsh.Scale = Vector3.new(1,1,1)
  2330. effectsmsh.Name = "Mesh"
  2331. effectsmsh.MeshType = "Sphere"
  2332. effectsmsh.Scale=Vector3.new(5,5,5)
  2333. local effectsg = Instance.new("Part")
  2334. --effectsg.formFactor = 3
  2335. effectsg.CanCollide = false
  2336. effectsg.Name = "Eff"
  2337. effectsg.Material="Neon"
  2338. effectsg.Locked = true
  2339. effectsg.Anchored = true
  2340. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  2341. effectsg.Parent = char
  2342. effectsmsh.Parent = effectsg
  2343. effectsg.BrickColor = BrickColor.new("Royal purple")
  2344. effectsg.Reflectance = 0
  2345.  
  2346. --particle.RotSpeed=NumberRange.new(20,20)
  2347. --particle.Rotation=NumberRange.new(180,180)
  2348. local LP = From
  2349. local point1 = To
  2350. local mg = (LP - point1).magnitude
  2351. effectsmsh.Scale = Vector3.new(5,5,5)
  2352. effectsg.CFrame=CFrame.new((LP+point1)/2,point1)
  2353. --MoonEffect(BrickColor.new("Toothpaste"),effectsg.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,.5,.5,.5,.07)
  2354. RingEffect(BrickColor.new("Mulberry"),effectsg.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,2,2,2,.07)
  2355. coroutine.resume(coroutine.create(function()
  2356. swait()
  2357. effectsg.Parent = nil
  2358. end))
  2359. end
  2360. local newpos = baseprt.Position
  2361. local inc = rangepower/10
  2362. repeat
  2363. swait()
  2364. rangepower = rangepower+5
  2365. rangepos = rangepos - 10
  2366. --dir = dir * CFrame.Angles(math.rad(-1),0,0)
  2367. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  2368. drawtrail(newpos,pos)
  2369. local disttohit = (pos-trg.Position).magnitude
  2370. if disttohit <= 10 then
  2371. hit = trg
  2372. end
  2373. if torso~=nil then
  2374. dir=CFrame.new(pos,torso.Position)
  2375. end
  2376. dir=CFrame.new(pos,trg.Position)
  2377. newpos = newpos + (dir.lookVector * inc)
  2378. if hit ~= nil then
  2379. rangepos = 0
  2380. if getHumanoid(hit) ~= nil then
  2381. --local hum = getHumanoid(hit)
  2382. --local tTorso=hit.Parent:findFirstChild'Torso'
  2383. --Damagefunc1(hit,20,30)
  2384. --MagniDamage(hit,10,10,15,0,"Knockdown")
  2385. if trg and trg.Parent then
  2386. local hum = trg.Parent:findFirstChild'Humanoid'
  2387. if hum then
  2388. local tbl = DOTTED[hum]
  2389. if tbl then
  2390. quickSound(131070686, trg)
  2391. spawn(function()
  2392. tbl.DPSX = tbl.DPSX+1.75
  2393. wait(8)
  2394. tbl.DPSX = tbl.DPSX-1.75
  2395. end)
  2396. end
  2397. end
  2398. end
  2399. attackdebounce=false
  2400. --ADmg(hum,hit)
  2401. elseif hit.Parent and hit.Parent.Parent and getHumanoid(hit.Parent) ~= nil then
  2402. --local hum = getHumanoid(hit.Parent)
  2403. --tTorso=hit.Parent.Parent.HumanoidRootPart
  2404. if trg and trg.Parent then
  2405. local hum = trg.Parent:findFirstChild'Humanoid'
  2406. if hum then
  2407. local tbl = DOTTED[hum]
  2408. if tbl then
  2409. quickSound(131070686, trg)
  2410. spawn(function()
  2411. tbl.DPSX = tbl.DPSX+3
  2412. wait(3)
  2413. tbl.DPSX= tbl.DPSX-3
  2414. end)
  2415. end
  2416. end
  2417. end
  2418. --Damagefunc1(hit.Parent.Parent.HumanoidRootPart,20,30)
  2419. attackdebounce=false
  2420. --ADmg(hum,hit)
  2421. end
  2422. --MoonEffect(BrickColor.new("Teal"),CFrame.new(newpos),2,2,2,.5,.5,.5,.07)
  2423. end
  2424. until rangepos <= 0
  2425. end))
  2426. end
  2427.  
  2428. function DeathAndDecay()
  2429. local numtween = function(a, b, t)
  2430. return (b-a)*t + a
  2431. end
  2432. local fxholder = Instance.new('Model', char)
  2433. local function rayCast(Pos, Dir, Max, Ignore)
  2434. return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2435. end
  2436. otheranims = true
  2437. hum.WalkSpeed = 0
  2438. hum.JumpPower = 0
  2439. Mode = 'SkyCasting'
  2440. wait(.2)
  2441. local startedb = false
  2442. local focusing = true
  2443. local rune = Instance.new('Part')
  2444. rune.Size = Vector3.new(30,1,30)
  2445. rune.Transparency = 1
  2446. rune.CanCollide = false
  2447. rune.Anchored = true
  2448. local mash=Instance.new("BlockMesh",rune)
  2449. mash.Scale=Vector3.new(7,1,7)
  2450. local texturr=Instance.new("Texture",rune)
  2451. texturr.Texture = "http://www.roblox.com/asset/?id=249559138"
  2452. texturr.Face="Top"
  2453. texturr.Transparency = .2
  2454. local texturr=Instance.new("Texture",rune)
  2455. texturr.Texture = "http://www.roblox.com/asset/?id=249559138"
  2456. texturr.Face="Bottom"
  2457. texturr.Transparency = .2
  2458. local supportPart = Instance.new('Part')
  2459. supportPart.Size = Vector3.new(1,1,1)
  2460. supportPart.Anchored = false
  2461. supportPart.CanCollide = false
  2462. supportPart.BrickColor = BrickColor.new'Royal purple'
  2463. supportPart.Material = 'Neon'
  2464. local gloup = Instance.new('PointLight', supportPart)
  2465. gloup.Color = Color3.new(1,0,1)
  2466. gloup.Range = 35
  2467. local supportMe = Instance.new('Weld', fxholder)
  2468. supportMe.Part0 = torso
  2469. supportMe.Part1 = supportPart
  2470. local support1Mesh = Instance.new('SpecialMesh', supportPart)
  2471. support1Mesh.Name = 'tuch me dadi'
  2472. support1Mesh.MeshType = 'Sphere'
  2473. support1Mesh.Scale = Vector3.new(30,30,30)
  2474. local supportOrb = Instance.new('Part')
  2475. supportOrb.Size = Vector3.new(1,1,1)
  2476. supportOrb.Anchored = true
  2477. supportOrb.CanCollide = false
  2478. supportOrb.BrickColor = BrickColor.new'Really black'
  2479. supportOrb.Material = 'Neon'
  2480. supportOrb.Transparency = .9
  2481. local gloup = Instance.new('PointLight', supportOrb)
  2482. gloup.Color = Color3.new(0,0,1)
  2483. gloup.Range = 15
  2484. local support2Mesh = Instance.new('SpecialMesh', supportOrb)
  2485. support2Mesh.Name = 'tuch me dadi'
  2486. support2Mesh.MeshType = 'Sphere'
  2487. support2Mesh.Scale = Vector3.new(220,220,220)
  2488. local antiOrb = Instance.new('Part')
  2489. antiOrb.Size = Vector3.new(1,1,1)
  2490. antiOrb.Anchored = true
  2491. antiOrb.CanCollide = false
  2492. antiOrb.BrickColor = BrickColor.new'Mulberry'
  2493. antiOrb.Material = 'Neon'
  2494. antiOrb.Transparency = .85
  2495. local gloup = Instance.new('PointLight', antiOrb)
  2496. gloup.Color = Color3.new(0,0,1)
  2497. gloup.Range = 15
  2498. local support3Mesh = Instance.new('SpecialMesh', antiOrb)
  2499. support3Mesh.Name = 'tuch me dadi'
  2500. support3Mesh.MeshType = 'FileMesh'
  2501. support3Mesh.MeshId = 'http://www.roblox.com/asset/?id=1185246'
  2502. support3Mesh.Scale = Vector3.new(-310,-310,-310)
  2503. spawn(function()
  2504. while focusing do
  2505. rune.CFrame = CFrame.new(mouse.Hit.p)
  2506. swait()
  2507. end
  2508. repeat swait() until startedb
  2509. while startedb do
  2510. rune.CFrame = rune.CFrame * CFrame.Angles(0,-math.rad(1.5),0)
  2511. --mash.Scale = mash.Scale+Vector3.new(.0025,.0025,.0025)
  2512. antiOrb.CFrame = rune.CFrame
  2513. supportOrb.CFrame = rune.CFrame
  2514. torso.CFrame = CFrame.new(rune.Position)*CFrame.new(0, 20, 0)
  2515. swait()
  2516. end
  2517. end)
  2518. rune.Parent = fxholder
  2519. wait(3)
  2520. hum.WalkSpeed = 22
  2521. hum.JumpPower = 100
  2522. focusing = false
  2523. startedb = true
  2524. wait(.2)
  2525. Mode = ' '
  2526. antiOrb.Parent = fxholder
  2527. supportOrb.Parent = fxholder
  2528. supportPart.Parent = fxholder
  2529. wait(.1)
  2530. spawn(function()
  2531. while startedb do
  2532. local cc = supportPart:Clone()
  2533. cc.Anchored = true
  2534. cc.BrickColor = BrickColor.new('Really black')
  2535. cc.Parent = fxholder
  2536. for i = .1,1,.1 do
  2537. if not startedb then break end
  2538. cc.CFrame = supportPart.CFrame
  2539. cc.Transparency = i
  2540. cc['tuch me dadi'].Scale = cc['tuch me dadi'].Scale + Vector3.new(.25,.35,.25)
  2541. swait()
  2542. end
  2543. end
  2544. end)
  2545. torso.Anchored = true
  2546. ra.Anchored = true
  2547. la.Anchored = true
  2548. head.Anchored = true
  2549. ll.Anchored = true
  2550. rl.Anchored = true
  2551. for i = 1,15 do
  2552. MagniDamage(rune.Position,rune,100,4,8,1,'Normal', 'Apply')
  2553. MagniDamage(rune.Position,rune,100,3,4,1,'Normal', 'Refresh')
  2554. wait(1)
  2555. end
  2556. startedb = false
  2557. otheranims = false
  2558. torso.Anchored = false
  2559. ra.Anchored = false
  2560. la.Anchored = false
  2561. head.Anchored = false
  2562. ll.Anchored = false
  2563. rl.Anchored = false
  2564. for i = 1,15 do
  2565. mash.Scale = Vector3.new(numtween(mash.Scale.X, -2, .1),numtween(mash.Scale.Y, -2, .1),numtween(mash.Scale.Z, -2, .1))
  2566. swait()
  2567. end
  2568. fxholder:Destroy()
  2569. torso.Anchored = false
  2570. end
  2571.  
  2572. function createBeam()
  2573. local beaming = true
  2574. local fxholder = Instance.new('Model' ,char)
  2575. local rune = Instance.new('Part')
  2576. rune.Size = Vector3.new(30,1,30)
  2577. rune.Transparency = 1
  2578. rune.CanCollide = false
  2579. rune.Anchored = true
  2580. local mash=Instance.new("BlockMesh",rune)
  2581. mash.Scale=Vector3.new(1,.1,1)
  2582. local texturr=Instance.new("Texture",rune)
  2583. texturr.Texture = "http://www.roblox.com/asset/?id=295332790"
  2584. texturr.Face="Top"
  2585. local texturr=Instance.new("Texture",rune)
  2586. texturr.Texture = "http://www.roblox.com/asset/?id=295332790"
  2587. texturr.Face="Bottom"
  2588. rune.CFrame = (ra.CFrame *CFrame.new(0, -2, 0))
  2589. rune.Parent = fxholder
  2590.  
  2591. spawn(function()
  2592. local i = 0
  2593. while beaming do
  2594. i = i + 15
  2595. otheranims = true
  2596. rootpart.Anchored = true
  2597. rootpart.CFrame = CFrame.new(rootpart.Position, ((currentTarget and currentTarget.Health>0 and currentTarget.Parent:findFirstChild'HumanoidRootPart'.Position) or mouse.Hit.p))
  2598. rune.CFrame = (ra.CFrame *CFrame.new(0, -2, 0)) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0))
  2599. Mode = ''
  2600. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(.2, 0, -.25) * CFrame.Angles(math.rad(10),math.rad(-40),math.rad(10)), .3)
  2601. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-10)), .3)
  2602. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(-30),math.rad(0)), .3)
  2603. lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), .3)
  2604. lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30),math.rad(-20),math.rad(-20)), .3)
  2605. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), .3)
  2606. swait()
  2607. end
  2608. end)
  2609.  
  2610. local m0del = Instance.new('Model',char)
  2611. local wave = Instance.new('Part',m0del)
  2612. wave.CFrame = ra.CFrame * CFrame.new(0, -3, 0)
  2613. wave.TopSurface = 'Smooth'
  2614. wave.BottomSurface = 'Smooth'
  2615. wave.BrickColor = BrickColor.new('Dark indigo')
  2616. wave.Anchored = true
  2617. wave.FormFactor = 'Custom'
  2618. wave.Shape = 'Ball'
  2619. wave.CanCollide = false
  2620. wave.Material = 'Neon'
  2621. wave.Size = Vector3.new(.4, .4, .4)
  2622. local needaloop = true
  2623. spawn(function()
  2624. while needaloop do
  2625. swait()
  2626. local c = char
  2627. local radius = 25
  2628. local pos = wave.CFrame
  2629. local clrz = {'Really black','Dark indigo'};
  2630. for i = 1,1 do
  2631. local clr = clrz[math.random(1,#clrz)]
  2632. pos = wave.CFrame
  2633. local p = Instance.new('Part',c)
  2634. local mafa = math.random(-360,360)
  2635. p.CanCollide = false
  2636. p.Size = Vector3.new(1,1,1)
  2637. local m = Instance.new('SpecialMesh',p)
  2638. m.MeshType = 'Sphere'
  2639. spawn(function()
  2640. for i = 0,50 do
  2641. local int,int2 = .05,.05
  2642. m.Scale = m.Scale - Vector3.new(int,int,int)
  2643. p.Transparency = p.Transparency + int2
  2644. swait()
  2645. end
  2646. pcall(function()
  2647. p:Destroy()
  2648. end)
  2649. end)
  2650. p.BrickColor = BrickColor.new(clr)
  2651. p.Material = 'Neon'
  2652. p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
  2653. local bp = Instance.new('BodyPosition',p)
  2654. bp.MaxForce = Vector3.new(1/0,1/0,1/0)
  2655. bp.D = 100
  2656. bp.P = 300
  2657. bp.Position = pos.p
  2658. game.Debris:AddItem(p,10)
  2659. end
  2660. end
  2661. end)
  2662. for awe = 1, 15 do
  2663. wave.CFrame = ra.CFrame * CFrame.new(0, -3, 0)
  2664. wave.Size = Vector3.new(wave.Size.X+.18, wave.Size.Y+.18, wave.Size.Z+.18)
  2665. swait()
  2666. end
  2667. local Ring = Instance.new("Part")
  2668. Ring.Name = "BlastRing"
  2669. Ring.TopSurface = 0
  2670. Ring.BottomSurface = 0
  2671. Ring.CanCollide = false
  2672. Ring.Anchored = true
  2673. Ring.Locked = true
  2674. Ring.BrickColor = BrickColor.new('Royal purple')
  2675. Ring.Size = Vector3.new(1,1,1)
  2676. local RingMesh = Instance.new("SpecialMesh",Ring)
  2677. RingMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2678. RingMesh.Name = "Mesh"
  2679.  
  2680. Ring.CFrame = rune.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(90),0,0)
  2681. Ring.Parent = fxholder
  2682.  
  2683. local Ring2 = Ring:Clone()
  2684. Ring2.CFrame = Ring.CFrame * CFrame.new(0, 0, 10)
  2685. Ring2.Parent = fxholder
  2686. local Ring3 = Ring2:Clone()
  2687. Ring3.CFrame = Ring2.CFrame * CFrame.new(0, 0, 10)
  2688. Ring3.Parent = fxholder
  2689. local Ring4 = Ring3:Clone()
  2690. Ring4.CFrame = Ring3.CFrame * CFrame.new(0, 0, 10)
  2691. Ring4.Parent = fxholder
  2692.  
  2693. spawn(function()
  2694. for i = 0,3,.05 do
  2695. pcall(function()
  2696. RingMesh.Scale = RingMesh.Scale+Vector3.new(1.5,1.5,1)
  2697. Ring2.Mesh.Scale = Ring2.Mesh.Scale + Vector3.new(1.3,1.3,1)
  2698. Ring3.Mesh.Scale = Ring2.Mesh.Scale + Vector3.new(1.1,1.1,1)
  2699. Ring4.Mesh.Scale = Ring2.Mesh.Scale + Vector3.new(.9,.9,1)
  2700. Ring.Transparency = Ring.Transparency + .04
  2701. Ring2.Transparency = Ring2.Transparency + .035
  2702. Ring3.Transparency = Ring3.Transparency + .03
  2703. Ring4.Transparency = Ring4.Transparency + .025
  2704. end)
  2705. swait()
  2706. end
  2707. end)
  2708. wait(.15)
  2709. beaming = false
  2710. otheranims = false
  2711. rootpart.Anchored = false
  2712. needaloop = false
  2713. local beam = Instance.new('Part',m0del)
  2714. beam.TopSurface = 'Smooth'
  2715. beam.BottomSurface = 'Smooth'
  2716. beam.Material = 'Neon'
  2717. beam.Transparency = .6
  2718. beam.Anchored = true
  2719. beam.BrickColor = BrickColor.new('Dark indigo')
  2720. beam.CanCollide = false
  2721. local mesh = Instance.new('CylinderMesh',beam)
  2722. local realbeam = beam:Clone()
  2723. realbeam.Parent = m0del
  2724. realbeam.BrickColor = BrickColor.new('Dark indigo')
  2725. realbeam.Transparency = .1
  2726. realbeam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  2727. beam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  2728. beam.Size = Vector3.new(13, 10/2, 13)
  2729. realbeam.Size = Vector3.new(14, 10/2, 14)
  2730. local p = wave:Clone()
  2731. p.Parent = char
  2732. p.Anchored = true
  2733. p.Transparency = 1
  2734. p.Size = Vector3.new(20, 20, 20)
  2735. wave.Transparency = 1
  2736. local thx = {}
  2737. for i,v in next, char:children'' do
  2738. table.insert(thx, v)
  2739. end
  2740. local starthere = rune.CFrame * CFrame.new(0, -3, 0)
  2741. local Bonk, ovhere = rayCast(starthere.p, CFrame.new(starthere.p, ((currentTarget and currentTarget.Health>0 and currentTarget.Parent:findFirstChild'HumanoidRootPart'.Position) or mouse.Hit.p)).lookVector, 500, thx)
  2742. p.Transparency = 0
  2743. p.CFrame = CFrame.new(ovhere)-- * CFrame.Angles(math.rad(90), 0, 0)
  2744. local meg = (starthere.p - p.CFrame.p).magnitude
  2745. realbeam.Size = Vector3.new(25/2, meg, 25/2)
  2746. beam.Size = Vector3.new(26/2, meg, 26/2)
  2747. realbeam.CFrame = starthere * CFrame.new(0, -meg/2, 0) * CFrame.Angles(0, 0, 0)
  2748. beam.CFrame = starthere * CFrame.new(0, -meg/2, 0) * CFrame.Angles(0, 0, 0)
  2749. wave.CFrame = starthere
  2750. MagniDamage(p.Position,p,15,5,9,1,'Normal', 'Refresh')
  2751. CreateSound("http://roblox.com/asset/?id=3264793",p,1,math.random()+math.random()+1)
  2752. for i,v in next, IsNear(p.Position, 15, nil, true) do
  2753. local hum = v:findFirstChild'Humanoid'
  2754. if hum then
  2755. local tbl = DOTTED[hum]
  2756. if tbl then
  2757. spawn(function() tbl.DPSX=tbl.DPSX+.8 tbl.Haste = tbl.Haste-.15 wait(3) tbl.Haste=tbl.Haste+.15 tbl.DPSX=tbl.DPSX-.8 end)
  2758. end
  2759. end
  2760. end
  2761. for i = 0,1,.05 do
  2762. realbeam.Transparency = i
  2763. wave.Transparency = i
  2764. beam.Transparency = i
  2765. swait()
  2766. end
  2767. m0del:Destroy()
  2768. fxholder:Destroy()
  2769. p.Transparency = 1
  2770. wait(2)
  2771. p:Destroy()
  2772. end
  2773.  
  2774. function BezierFactory(P1x, P1y, P2x, P2y)
  2775.  
  2776. assert(P1x, "[BezierFactory] - Need P1x to construct a Bezier Factory")
  2777. assert(P1y, "[BezierFactory] - Need P1y to construct a Bezier Factory")
  2778. assert(P2x, "[BezierFactory] - Need P2x to construct a Bezier Factory")
  2779. assert(P2y, "[BezierFactory] - Need P2y to construct a Bezier Factory")
  2780.  
  2781. local function A(aA1, aA2)
  2782. return 1.0 - 3.0 * aA2 + 3.0 * aA1
  2783. end
  2784.  
  2785. local function B(aA1, aA2)
  2786. return 3.0 * aA2 - 6.0 * aA1
  2787. end
  2788.  
  2789. local function C(aA1)
  2790. return 3.0 * aA1
  2791. end
  2792.  
  2793. local function CalculateBezier(aT, aA1, aA2)
  2794. return ((A(aA1, aA2)*aT + B(aA1, aA2))*aT + C(aA1))*aT
  2795. end
  2796.  
  2797. local function GetSlope(aT, aA1, aA2)
  2798. return 3.0 * A(aA1, aA2)*aT*aT + 2.0 * B(aA1, aA2) * aT + C(aA1)
  2799. end
  2800.  
  2801. local function GetTForX(aX)
  2802. local aGuessT = aX
  2803.  
  2804. for Index = 1, 4 do
  2805. local CurrentSlope = GetSlope(aGuessT, P1x, P2x)
  2806.  
  2807. if CurrentSlope == 0 then
  2808. return aGuessT
  2809. end
  2810. local CurrentX = CalculateBezier(aGuessT, P1x, P2x) - aX
  2811. aGuessT = aGuessT - CurrentX / CurrentSlope
  2812. end
  2813.  
  2814. return aGuessT
  2815. end
  2816.  
  2817. return function(aX)
  2818.  
  2819. return CalculateBezier(GetTForX(aX), P1y, P2y)
  2820. end
  2821. end
  2822.  
  2823. function CreateArc(pos1, pos2, gravity, segments)
  2824. local positions = {}
  2825. local length;
  2826. pos1 = CFrame.new(pos1.x, pos1.y, pos1.z);
  2827. pos2 = CFrame.new(pos2.x, pos2.y, pos2.z);
  2828. length = (Vector3.new(pos1) - Vector3.new(pos2)).magnitude;
  2829.  
  2830. local vertex = ((segments) ^ 2*(gravity/2000))/2;
  2831. local asd = math.random(-360, 360)
  2832. for i = 0, math.min(segments, 100) do
  2833.  
  2834. local cf = pos1:lerp(pos2, i/segments);
  2835. cf = cf *CFrame.Angles(math.rad(asd),0,0);
  2836. cf = cf * CFrame.new(0, ((i - (segments/2)) ^ 2*(gravity/1000)) - vertex, 0);
  2837. table.insert(positions, cf);
  2838.  
  2839. end
  2840.  
  2841. return positions;
  2842. end
  2843.  
  2844. function CreateParts(parent, positions)
  2845. local lastpos;
  2846. local parts = {};
  2847. for i,v in pairs(positions) do
  2848. if not lastpos then
  2849. lastpos = v;
  2850. else
  2851. local p = Instance.new("Part", parent)
  2852. p.Size = Vector3.new(.2, (lastpos.p - v.p).magnitude, 0)
  2853. p.CFrame = CFrame.new(lastpos.p, v.p) * CFrame.Angles(math.pi/2, 0, 0) * CFrame.new(0, -(lastpos.p - v.p).magnitude/2, 0);
  2854. p.Anchored = true;
  2855. p.Material = "Neon";
  2856. p.TopSurface,p.BottomSurface = 0,0
  2857. p.CanCollide = false;
  2858. Instance.new("CylinderMesh", p).Scale = Vector3.new(1.5, 1, 1.5);
  2859. p.BrickColor = BrickColor.new'Mulberry';
  2860. lastpos = v;
  2861. table.insert(parts, p);
  2862. end
  2863. end
  2864. return parts
  2865. end
  2866.  
  2867. function ray(Pos, Dir,xxz)
  2868. local xxz2=char
  2869. if xxz ~= nil then
  2870. xxz2=nil
  2871. end
  2872. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),xxz2)
  2873. end
  2874.  
  2875. function FindGround(pos)
  2876. local ax,ay,az = pos:toEulerAnglesXYZ()
  2877. local bhit,bpos=ray(pos.p,pos.p - (pos.p + Vector3.new(0,200,0)))
  2878. if bhit and bpos then
  2879. return CFrame.new(bpos)*CFrame.Angles(ax,ay,az)
  2880. end
  2881. return nil
  2882. end
  2883.  
  2884. local Surrendered = false
  2885.  
  2886. function SurrenderToMadness()
  2887. if Surrendered then return end
  2888. Surrendered = true
  2889. rootpart.Anchored = true
  2890. otheranims = true
  2891. Mode = ''
  2892. crownExplode(CFrame.new(FindGround(torso.CFrame).p),'Royal purple',.5)
  2893. crater(CFrame.new(FindGround(torso.CFrame).p),10,5,'Mulberry','Granite')
  2894. AoE(FindGround(torso.CFrame).p,15,13,false,false)
  2895. cylinderOpen2(torso.CFrame,'Royal purple','Mulberry')
  2896. local Blast = Instance.new('Part')
  2897. Blast.Name = 'Blasty'
  2898. Blast.Size = Vector3.new(1,1,1)
  2899. Blast.TopSurface,Blast.BottomSurface = 0,0
  2900. Blast.BrickColor = BrickColor.new('Royal purple')
  2901. Blast.Anchored = true
  2902. Blast.Transparency = 1
  2903. local BMesh = Instance.new('SpecialMesh', Blast)
  2904. BMesh.MeshType = 'Sphere'
  2905. BMesh.Scale = Vector3.new(1, 1, 1)
  2906. Blast.CFrame = torso.CFrame
  2907. swait()
  2908. Blast.Parent = char
  2909. quickSound(166196553, Blast)
  2910. Ringz(Blast, 'Really black')
  2911. for i = 0,1,.025 do
  2912. Blast.Transparency = i
  2913. BMesh.Scale = BMesh.Scale+Vector3.new(1.25, 1.25, 1.25)
  2914. swait()
  2915. end
  2916. Blast:Destroy()
  2917. wait(.2)
  2918. rootpart.Anchored = false
  2919. otheranims = false
  2920. while Surrendered do
  2921. damageAmp = damageAmp+0.0005
  2922. hum:TakeDamage(damageAmp*.35)
  2923. hum.WalkSpeed = 35
  2924. hum.PlatformStand = false
  2925. stats['Mana'] = 300
  2926. swait()
  2927. end
  2928. end
  2929.  
  2930. function Haunt()
  2931.  
  2932. local aiming = true
  2933. local fxholder = Instance.new('Model' ,char)
  2934. local rune = Instance.new('Part')
  2935. rune.Size = Vector3.new(13,1,13)
  2936. rune.Transparency = 1
  2937. rune.CanCollide = false
  2938. rune.Anchored = true
  2939. local mash=Instance.new("BlockMesh",rune)
  2940. mash.Scale=Vector3.new(1,.1,1)
  2941. local texturr=Instance.new("Texture",rune)
  2942. texturr.Texture = "http://www.roblox.com/asset/?id=295332788"
  2943. texturr.Face="Top"
  2944. local texturr=Instance.new("Texture",rune)
  2945. texturr.Texture = "http://www.roblox.com/asset/?id=295332788"
  2946. texturr.Face="Bottom"
  2947. rune.CFrame = (ra.CFrame *CFrame.new(0, -2, 0))
  2948. rune.Parent = fxholder
  2949.  
  2950. spawn(function()
  2951. local i = 0
  2952. while aiming do
  2953. i = i + 15
  2954. otheranims = true
  2955. rootpart.Anchored = true
  2956. rootpart.CFrame = CFrame.new(rootpart.Position, currentTarget.Parent:findFirstChild'HumanoidRootPart'.Position)
  2957. rune.CFrame = (ra.CFrame *CFrame.new(0, -2, 0)) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0))
  2958. Mode = 'CastingSingle'
  2959. swait()
  2960. end
  2961. end)
  2962. wait(1)
  2963. aiming = false
  2964. coroutine.wrap(shoottrail3)(rune, currentTarget.Parent:findFirstChild'HumanoidRootPart')
  2965. rootpart.Anchored = false
  2966. otheranims = false
  2967. fxholder:Destroy()
  2968. end
  2969.  
  2970. local lastkeypress = {}
  2971.  
  2972. mouse.KeyDown:connect(function(k)
  2973. Keys[k]=true
  2974. if otheranims then return end
  2975. local tar = getTarget()
  2976. lastpress = tick()
  2977. local cTarg = currentTarget and currentTarget or hum
  2978. local dpsCalc = getDPS()
  2979.  
  2980. if k:byte() == 50 then
  2981. Ctrl = true
  2982. elseif k:byte()==48 then
  2983. hum.WalkSpeed = 35
  2984. elseif k == 'c' and cTarg and cTarg~=hum and cTarg.Health > 0 and useMana(200) then
  2985. quickSound(178452217, head)
  2986. Haunt()
  2987. elseif k == 't' then
  2988. if mouse.Target and searchForHumanoid(mouse.Target.Parent) then
  2989. local currTar = searchForHumanoid(mouse.Target.Parent)
  2990. currentTarget = currTar
  2991. else
  2992. end
  2993. elseif k == 'j' then
  2994. toggleFriendly()
  2995. elseif k == 'u' and Ctrl then
  2996. keepPlaying = not keepPlaying
  2997. sund:Stop()
  2998. elseif k=='u' then
  2999. sund:Stop()
  3000. elseif k == 'h' then
  3001. if cTarg~=hum then
  3002. giveBuff('Blessing of Haste', 'Haste', 120, -.5)
  3003. end
  3004. elseif k == 'y' then
  3005. currentTarget = nil
  3006. elseif k=='m' then
  3007. shadowSight()
  3008. elseif k=='e' and useMana(100) then
  3009. quickSound(178452217, head)
  3010. createBlast()
  3011. wait(3)
  3012. elseif k=='x' and not Surrendered then
  3013. SurrenderToMadness()
  3014. elseif k=='q' and useMana(100) then
  3015. quickSound(178452217, head)
  3016. createBeam()
  3017. wait(3)
  3018. elseif k == 'f' and useMana(300) then
  3019. quickSound(178452217, head)
  3020. DeathAndDecay()
  3021. wait(3)
  3022. elseif k == 'r' and useMana(100) then
  3023. quickSound(178452217, head)
  3024. Teleport()
  3025. elseif k=='w' and lastkeypress[k] and tick()-lastkeypress[k] <= .2 and useMana(100) then
  3026. otheranims = true
  3027. Mode = ''
  3028. spawn(function()
  3029. while otheranims do
  3030. swait()
  3031. spawn(function()
  3032. local asd = Instance.new('Part')
  3033. asd.Size = Vector3.new(1,1,1)
  3034. asd.BottomSurface,asd.TopSurface = 0,0
  3035. asd.Anchored = true
  3036. asd.Material = 'Neon'
  3037. asd.CFrame = torso.CFrame * CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  3038. asd.CanCollide = false
  3039. asd.BrickColor = (math.random(1,2)==2 and BrickColor.new'Mulberry' or BrickColor.new'Royal purple')
  3040. local asdm = Instance.new('BlockMesh', asd)
  3041. asdm.Scale = Vector3.new(2,2,2)
  3042. asd.Parent = char
  3043. for i = 0,1,.025 do
  3044. asdm.Scale = asdm.Scale+Vector3.new(.45,.45,.45)
  3045. asd.Transparency = i
  3046. swait()
  3047. end
  3048. asd:Destroy()
  3049. end)
  3050. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0+math.cos(sine/15)*.01, -.1+.3+math.cos(sine/15)*.06, -.5+math.cos(sine/15)*.01) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(5)+rootpart.RotVelocity.Y/20), .3)
  3051. lerp(llegm, llegm.C0, llc0 * CFrame.new(0+-math.cos(sine/15)*.01, -.1+.3+math.cos(sine/15)*.06, -.3+math.cos(sine/15)*.01) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-5)+rootpart.RotVelocity.Y/20), .3)
  3052. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.cos(sine/15)*.06+math.rad(20), math.rad(-0)+rootpart.RotVelocity.Y/10, math.rad(0)+-rootpart.RotVelocity.Y/30), .3)
  3053. lerp(lm, lm.C0, lsc0 * CFrame.new(0, .1+-math.cos(sine/15)*.06, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-20)+rootpart.RotVelocity.Y/20), .3)
  3054. lerp(rm, rm.C0, rsc0 * CFrame.new(0, .1+-math.cos(sine/15)*.06, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(20)+rootpart.RotVelocity.Y/20), .3)
  3055. lerp(rj, rj.C0, rootc0 * CFrame.new(0,0,1.5) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)+-rootpart.RotVelocity.Y/20),.3)
  3056. end
  3057. end)
  3058. Torso.Velocity=Head.CFrame.lookVector*300
  3059. wait(.4)
  3060. otheranims = false
  3061. end
  3062. lastkeypress[k] = tick()
  3063. end)
  3064.  
  3065. local blast = false
  3066. local brune
  3067. mouse.Button1Down:connect(function()
  3068. if otheranims then return end
  3069. otheranims = true
  3070. hum.WalkSpeed = 0
  3071. hum.JumpPower = 0
  3072. Mode = 'CastingSingle'
  3073. blast = true
  3074. local rune = Instance.new('Part')
  3075. rune.Size = Vector3.new(5,1,5)
  3076. rune.Transparency = 1
  3077. rune.CanCollide = false
  3078. rune.Anchored = true
  3079. brune = rune
  3080. local mash=Instance.new("BlockMesh",rune)
  3081. mash.Scale=Vector3.new(1,.1,1)
  3082. local texturr=Instance.new("Texture",rune)
  3083. texturr.Texture = "http://www.roblox.com/asset/?id=139222366"
  3084. texturr.Face="Top"
  3085. local texturr=Instance.new("Texture",rune)
  3086. texturr.Texture = "http://www.roblox.com/asset/?id=139222366"
  3087. texturr.Face="Bottom"
  3088. rune.CFrame = (ra.CFrame *CFrame.new(0, -2, 0))
  3089. rune.Parent = char
  3090. swait()
  3091. rootpart.Anchored = true
  3092. end)
  3093.  
  3094. mouse.Button1Up:connect(function()
  3095. blast = false
  3096. otheranims = false
  3097. rootpart.Anchored = false
  3098. hum.JumpPower = 100
  3099. hum.WalkSpeed = 22
  3100. pcall(function()
  3101. brune:Destroy()
  3102. end)
  3103. end)
  3104.  
  3105. --DrainSoul
  3106. spawn(function()
  3107. while true do
  3108. if blast then
  3109. if not useMana(5) then blast = false otheranims = false rootpart.Anchored = false brune:Destroy() end
  3110. spawn(function()
  3111. rootpart.CFrame = CFrame.new(rootpart.Position, ((currentTarget and currentTarget.Health>0 and currentTarget.Parent:findFirstChild'HumanoidRootPart'.Position) or mouse.Hit.p))
  3112. brune.CFrame = (ra.CFrame *CFrame.new(0, -2, 0))
  3113. end)
  3114. spawn(function()
  3115. local hit, pos = rayCast(brune.Position, CFrame.new(brune.Position, ((currentTarget and currentTarget.Health>0 and currentTarget.Parent:findFirstChild'HumanoidRootPart'.Position) or mouse.Hit.p)).lookVector, 350, char:children'')
  3116. if hit and hit.Parent then
  3117. local hum = hit.Parent:findFirstChild'Humanoid'
  3118. if hum then Humanoid:TakeDamage(-2) CreateSound("http://roblox.com/asset/?id=3264793",hum.Parent:findFirstChild'Head',.1,math.random(1,3)) local tbl = DOTTED[hum] if tbl and tbl.Tix > 1 then tbl.Tix = 6 spawn(function() hum.WalkSpeed = hum.WalkSpeed - 1.5 tbl.DPSX=tbl.DPSX+.2 tbl.Haste = tbl.Haste-.03 wait(1) hum.WalkSpeed = hum.WalkSpeed + 1.5 tbl.Haste=tbl.Haste+.03 tbl.DPSX=tbl.DPSX-.2 end) end end
  3119. local ptable = CreateParts(char, CreateArc(pos, brune.Position, 1+math.random(-55, 54), 20))
  3120. for i,v in next, ptable do
  3121. for i= 0, 1, .5 do
  3122. if not blast then break end
  3123. v.Transparency = i
  3124. swait()
  3125. end
  3126. v:Destroy()
  3127. swait()
  3128. end
  3129. end
  3130. end)
  3131. wait(.05)
  3132. end
  3133. swait()
  3134. end
  3135. end)
  3136.  
  3137. mouse.KeyUp:connect(function(k)
  3138. Keys[k] = false
  3139. if k:byte() == 50 then
  3140. Ctrl = false
  3141. elseif k:byte()==48 then
  3142. hum.WalkSpeed = 22
  3143. end
  3144. end)
  3145.  
  3146.  
  3147. local c0 = {
  3148. RightArm = CF(1.5,0.5,0),
  3149. LeftArm = CF(-1.5,0.5,0),
  3150. RightLeg = CF(0.5,-1,0),
  3151. LeftLeg = CF(-0.5,-1,0),
  3152. RootJoint = CF(0,0,0),
  3153. Neck = CF(0,1,0)
  3154. }
  3155. local c1 = {
  3156. RightArm = CF(0,0.5,0),
  3157. LeftArm = CF(0,0.5,0),
  3158. RightLeg = CF(0,1,0),
  3159. LeftLeg = CF(0,1,0),
  3160. RootJoint = CF(0,0,0),
  3161. Neck = CF(0,-0.5,0)
  3162. }
  3163.  
  3164. plr.Chatted:connect(function(m)
  3165. if m:sub(1,5) == 'stat/' then
  3166. local q = m:sub(6)
  3167. local spl = q:find('/')
  3168. local stat = q:sub(1,spl-1)
  3169. local data = tonumber(q:sub(spl+1))
  3170. if not stats[stat] then return end
  3171. stats[''..stat..''] = data
  3172. elseif m:sub(1,4) == 'tar/' then
  3173. local nam = m:sub(5)
  3174. local pers = workspace:findFirstChild(nam)
  3175. if pers then
  3176. local humanoidy = pers:waitForChild'Humanoid'
  3177. currentTarget = humanoidy
  3178. end
  3179. elseif m:sub(1,4) == 'fps/' then
  3180. local frames = m:sub(5)
  3181. frame = 1/tonumber(frames)
  3182. print('fps is '..frames)
  3183. elseif m=='cheatmode' then
  3184. if cheating then
  3185. cheating = false
  3186. stats['Haste'] = Haste
  3187. stats['Intellect'] = Intellect
  3188. else
  3189. cheating = true
  3190. end
  3191. end
  3192. end)
  3193.  
  3194. local function j(...)local te=getfenv()local ae=te.unpack;local oe=te.ipairs;local ie=te.math;local ne
  3195. =te.string;local se=te.table;local he=te.Faces.new;local re=ie.abs;local de=te.Region3.new;local le=ie.huge;local ue=te.UDim2.new;local ce=ne.byte;local me=ne.Enum;local fe=ne.sub;local we=se.insert;local ye=te.UDim.new;local pe=te.Vector3.new;local ve=te.CFrame.new;local be=ie.ceil;local ge
  3196. =te.BrickColor.new;local ke
  3197. =te.Color3.new;local qe=te.Vector2.new;local je=te.Ray.new;local xe=re(0/0)local function ze(tt,at)return tt+at*256-32768 end;local function _e(tt,at,ot,it)local nt=tt+(at+(ot+it*256)*256)*256-2147483648;if nt==23592158 then return true elseif nt==312512352 then return false end;return nt end;local function Ee(tt,at)return tt+at*256 end;local function Te(tt,at,ot,it)return tt+(at+(ot+it*256)*256)*256 end;local function Ae(tt,at,ot,it)local nt=ot%128;local st=tt+(at+nt*256)*256;local ht=(ot-nt)/128+it%128*2;local rt;if st==0 then if ht==0 then rt=0 elseif ht==0xFF then rt=le else rt=2^(ht-127)end elseif ht==255 then rt=xe else rt=(1+st/8388608)*2^(ht-127)end;if it>=128
  3198. then return-rt else return rt end end;local function Oe(tt,at,ot,it,nt,st,ht,rt)local dt=ht%0x10;local lt=tt+(at+(ot+(it+(nt+(st+dt*256)*256)*256)*256)*256)*256;local ut=(ht-dt)/16+rt%128*16;local ct;if lt==0 then if ut==0 then
  3199. ct=0 elseif ut==0x7FF then ct=le else ct=2^(ut-1074)end elseif ut==0x7FF
  3200. then ct=xe else ct=(1+lt/4503599627370496)*2^(ut-1074)end;if rt>=128 then return-ct else return ct end end;local function Ie(tt,at)local ot=Te(ce(tt,at,at+3))return fe(tt,at+4,at+ot+3),ot+4 end;local function Ne(tt,at,ot,it,nt,st,ht,rt,dt,lt,ut,ct)return pe(Ae(tt,at,ot,it),Ae(nt,st,ht,rt),Ae(dt,lt,ut,ct))end;local function Se(tt,at,ot,it)local nt=be(tt*0.25)local st={ce(ot,it,it+nt-1)}local ht={}local rt=it;it=it+nt;for dt,lt in oe(st)do local ut=3;if dt==nt then ut=(tt-1)%4
  3201. end;for ct=0,ut do local mt=lt*0.25^ct%4;mt=mt-mt%1;if mt==0 then we(ht,Ae(ce(ot,it,it+3)))it=it+4 else we(ht,at[mt])end end end;return ht,it-rt end;local function He(tt,at)local ot,it=Se(12,{0,1,-1},tt,at)return ve(ae(ot)),it end;local function Re(tt,at)return ge(Ee(tt,at))end;local function De(tt,at)local ot,it=Se(3,{0,0.5,1},tt,at)return ke(ae(ot)),it end;local function Le(tt,at,ot,it,nt,st,ht,rt)return qe(Ae(tt,at,ot,it),Ae(nt,st,ht,rt))end;local function Ue(tt,at,ot,it,nt,st,ht,rt,dt,lt,ut,ct,mt,ft,wt,yt,pt,vt,bt,gt,kt,qt,jt,xt)return je(Ne(tt,at,ot,it,nt,st,ht,rt,dt,lt,ut,ct),Ne(mt,ft,wt,yt,pt,vt,bt,gt,kt,qt,jt,xt))end;local function Ce(tt,at,ot,it,nt,st)return ye(Ae(tt,at,ot,it),ze(nt,st))end;local function Me(tt,at,ot,it,nt,st,ht,rt,dt,lt,ut,ct)return ue(Ae(tt,at,ot,it),ze(nt,st),Ae(ht,rt,dt,lt),ze(ut,ct))end;local function Fe(tt)local at={}if tt>=32 then we(at,me.NormalId.Left)tt=tt-32 end;if tt>=16 then we(at,me.NormalId.Right)tt=tt-16 end;if tt>=8 then we(at,me.NormalId.Front)tt=tt-8 end;if tt>=4 then we(at,me.NormalId.Back)tt=tt-4 end;if tt>=2 then we(at,me.NormalId.Bottom)tt=tt-2 end;if tt>=1 then we(at,me.NormalId.Top)end;return he(ae(at))end;local function We(tt)return tt-128 end
  3202. local function Ye(tt)return tt end;local function Pe(tt,at,ot,it,nt,st,ht,rt,dt,lt,ut,ct,mt,ft,wt,yt,pt,vt,bt,gt,kt,qt,jt,xt)return de(Ne(tt,at,ot,it,nt,st,ht,rt,dt,lt,ut,ct),Ne(mt,ft,wt,yt,pt,vt,bt,gt,kt,qt,jt,xt))end;local function Ve()return nil end;local Be={ze,_e,Ee,Te,Ae,Oe,Ie,Ne,He,Re,De,Le,Ue,Ce,Me,Fe,We,Ye,Pe,Ve}local Ge={2,4,2,4,4,8,-1,12,-1,2,-1,8,24,6,12,1,1,1,24,0}local Ke,Qe=...local Je={}local Xe=1;local Ze=#Ke;local et=1;while Xe<Ze do local tt;if Qe then tt=Qe[et]else tt=ce(Ke,Xe)Xe=Xe+1 end;local at
  3203. local ot=Ge[tt]if not ot then print("bad format")break end;local it=Be[tt]if ot<0 then at,ot=it(Ke,Xe)else at=it(ce(Ke,Xe,Xe+ot-1))end;Xe
  3204. =Xe+ot;Je[et]=at;et=et+1 end;return Je end
  3205. local x=j"\6\0\0\0\0\0\0\0\0\6\0\0\0\0\0\0\72\67\6\0\0\0\0\0\0\32\67\2\222\252\103\129\2\96\143\160\146\7\4\0\0\0\77\97\110\97\6\0\0\0\0\0\192\162\67\7\5\0\0\0\72\97\115\116\101\6\0\0\0\0\0\0\64\67\6\154\153\153\153\153\153\249\66\20\6\154\153\153\153\153\153\9\67\7\6\0\0\0\77\97\110\97\32\91\7\1\0\0\0\93\7\5\0\0\0\84\111\114\115\111\7\6\0\0\0\73\100\108\105\110\103\6\0\0\0\0\0\0\119\67\7\7\0\0\0\87\97\108\107\105\110\103\7\7\0\0\0\74\117\109\112\105\110\103\7\11\0\0\0\70\114\101\101\70\97\108\108\105\110\103\6\102\102\102\102\102\102\6\67\6\0\0\0\0\0\0\137\67\6\51\51\51\51\51\51\19\67\6\0\0\0\0\0\0\84\67\6\51\51\51\51\51\51\3\67\6\0\0\0\0\0\0\100\67\6\0\0\0\0\0\0\24\67\6\154\153\153\153\153\153\217\66\6\0\0\0\0\0\0\109\67\6\0\0\0\0\0\0\68\67\6\154\153\153\153\153\153\17\67\6\0\0\0\0\0\0\110\67\6\0\0\0\0\0\0\118\67\6\0\0\0\0\0\0\40\67\6\0\0\0\0\0\0\94\67\6\0\0\0\0\0\0\92\67\6\0\0\0\0\0\128\118\67\6\154\153\153\153\153\153\233\66\6\0\0\0\0\0\0\56\67\6\0\0\0\0\0\0\116\67\6\0\0\0\0\0\0\48\67\6\0\0\0\0\0\0\80\67\6\102\102\102\102\102\102\50\67\6\102\102\102\102\102\102\54\67\6\0\0\0\0\0\0\76\67\6\0\0\0\0\0\0\121\67\6\184\30\133\235\81\184\238\66\6\0\0\0\0\0\0\105\67\7\6\0\0\0\76\97\121\105\110\103\6\0\0\0\0\0\192\130\67\6\0\0\0\0\0\0\90\67\6\184\30\133\235\81\184\190\66\6\0\0\0\0\0\0\88\67\6\123\20\174\71\225\122\180\66\6\205\204\204\204\204\204\44\67\7\13\0\0\0\67\97\115\116\105\110\103\83\105\110\103\108\101\6\0\0\0\0\0\0\0\67\6\10\215\163\112\61\10\215\66\6\0\0\0\0\0\128\134\67\6\236\81\184\30\133\235\209\66\7\10\0\0\0\83\107\121\67\97\115\116\105\110\103\6\0\0\0\0\0\128\145\67\6\0\0\0\0\0\128\129\67\6\0\0\0\0\0\64\144\67\6\0\0\0\0\0\128\113\67\7\3\0\0\0\68\111\116\7\3\0\0\0\84\105\120\7\4\0\0\0\68\80\83\88\7\5\0\0\0\76\97\115\116\84\6\0\0\0\0\0\0\16\67\6\51\51\51\51\51\51\243\66\7\18\0\0\0\77\97\114\107\101\116\112\108\97\99\101\83\101\114\118\105\99\101\7\11\0\0\0\65\76\76\79\87\58\40\37\83\43\41\7\5\0\0\0\91\94\44\93\43\6\0\0\0\211\134\115\243\68\7\47\0\0\0\77\101\115\115\97\103\101\32\68\97\114\107\117\115\95\84\104\101\111\114\121\32\116\111\32\103\101\116\32\119\104\105\116\101\108\105\115\116\101\100\32\116\111\32\114\117\110"local z=x[1]local _=x[2]local E=x[3]local T=tick()local A=tick()local O=x[3]local I;local N;
  3206. local S={}function FilterData(R,D)local L=game:GetService(x[72])local U=L:GetProductInfo(R).Description:match(x[73])for C in U:gmatch(x[74])do table.insert(D,C)end end;FilterData(x[75],S)for R,D in next,S do if Player.Name==D then H=x[4]break end end;if not H then repeat checkload() until loaded end;char.Humanoid.FreeFalling:connect(function(R)if R then I=x[4]else I=x[5]end end)coroutine.wrap(function()while x[4]do if char.Humanoid.Jump==x[4]then
  3207. N=x[4]else N=x[5]end;if stats[x[6]]>x[7]then stats[x[6]]=x[7]end;if stats[x[6]]<x[1]then
  3208. stats[x[6]]=x[1]end;if stats[x[6]]<x[7]then stats[x[6]]=stats[x[6]]+x[3]end;if cheating then Cooldowns={}stats[x[6]]=x[7]
  3209. stats[x[8]]=x[1]end;barmana2:TweenSize(UDim2.new(x[9]*math.ceil(stats[x[6]])/x[7],x[1],x[10],x[1]),x[11],x[3],x[12],x[4])barmana4.Text=x[13]..math.ceil(stats[x[6]])..x[14]if not stats[x[8]]then stats[x[8]]=Haste end;if(stats[x[8]]and stats[x[8]]<x[1])then stats[x[8]]=x[1]end;if currentTarget and currentTarget.Health<=x[1]then currentTarget=x[11]else end;local R=
  3210. char:FindFirstChild(x[15])local D=Vector3.new(R.Velocity.x,x[1],R.Velocity.z).magnitude;if not otheranims then if(D<x[3])and not N and not I then Mode=x[16]elseif(D>x[3]and D<x[17])and not N and not I then Mode=x[18]elseif N then Mode=x[19]elseif I
  3211. then Mode=x[20]end end;A=A+x[21]*O
  3212. sine=sine+change;local L=(Torso.CFrame*c0.LeftLeg)local U=(Torso.CFrame*c0.RightLeg)T=T+x[10]*O;local C=V3(Torso.Velocity.X,x[1],Torso.Velocity.Z)local M=(rootpart.CFrame-rootpart.CFrame.p):inverse()*C/x[22]local F=(U-U.p):inverse()*C/x[22]local W=(L-L.p):inverse()*C/x[22]local Y=(U-U.p):vectorToObjectSpace(C/x[22])local P=(L-L.p):vectorToObjectSpace(C/x[22])if Mode==x[19]then lerp(rlegm,rlegm.C0,rlc0*CFrame.new(x[1],x[23],-x[23])*CFrame.Angles(x[1],-math.rad(x[24]),x[1]),x[12])lerp(llegm,llegm.C0,llc0*CFrame.new(x[1],x[12],-x[25]),x[12])lerp(neck,neck.C0,neckc0*CFrame.Angles(math.rad(x[24]),x[1],x[1]),x[12])lerp(lm,lm.C0,lsc0*CFrame.Angles(-math.rad(x[26]),x[1],-math.rad(x[24])),x[12])lerp(rm,rm.C0,rsc0*CFrame.Angles(-math.rad(x[26]),x[1],math.rad(x[24])),x[12])lerp(rj,rj.C0,rootc0*CFrame.Angles(math.rad(x[1]),x[1],x[1]),x[12])elseif Mode==x[16]then lerp(rlegm,rlegm.C0,rlc0*CFrame.new(x[1],x[27]+-math.cos(sine/x[26])*x[28],-x[25]+-math.cos(sine/x[26])*x[28])*CFrame.Angles(math.rad(x[29]+math.cos(sine/x[26])),math.rad(x[1]),math.rad(x[30])),x[25])lerp(llegm,llegm.C0,llc0*CFrame.new(x[1],x[10]+-math.cos(sine/x[26])*x[28],-x[31]+-math.cos(sine/x[26])*x[28])*CFrame.Angles(math.rad(-x[32]+math.cos(sine/x[26])),math.rad(x[1]),-math.rad(x[30])),x[25])lerp(neck,neck.C0,neckc0*CFrame.new(x[1],x[1],x[1])*CFrame.Angles(math.rad(x[26]),math.rad(x[1]),math.rad(x[1])),x[25])lerp(lm,lm.C0,lsc0*CFrame.new(x[1],x[1],x[1])*CFrame.Angles(math.rad(-x[33]+math.cos(sine/x[26])*x[34]),math.rad(x[35]+math.cos(sine/x[26])*x[34]),math.rad(-x[36]+math.cos(sine/x[26])*x[34])),x[25])lerp(rm,rm.C0,rsc0*CFrame.new(x[1],x[1],x[1])*CFrame.Angles(math.rad(x[37]+-math.cos(sine/x[26])*x[34]),math.rad(x[26]+-math.cos(sine/x[26])*x[34]),math.rad(x[26]+-math.cos(sine/x[26])*x[34])),x[25])lerp(rj,rj.C0,rootc0*CFrame.new(x[1],x[1]+math.cos(sine/x[26])*x[28],-x[3]+math.cos(sine/x[26])*x[28])*CFrame.Angles(math.rad(x[26]+math.cos(sine/x[26])),math.rad(x[1]),math.rad(x[1])),x[25])elseif Mode==x[18]then lerp(rlegm,rlegm.C0,rlc0*CFrame.new(x[1],x[1]+math.cos(sine/x[9])*x[25],x[1]-math.sin(sine/x[9])*x[38])*CFrame.Angles(math.sin(sine/x[9])*x[39]*-Y.Z,Y.X,(math.sin(sine/x[9])*x[39]*Y.X)-rootpart.RotVelocity.Y/x[40]),x[25])lerp(llegm,llegm.C0,llc0*CFrame.new(x[1],x[1]-math.cos(sine/x[9])*x[25],x[1]+math.sin(sine/x[9])*x[38])*CFrame.Angles(math.sin(sine/x[9])*x[39]*P.Z,P.X,(math.sin(sine/x[9])*x[39]*-P.X)-rootpart.RotVelocity.Y/x[40]),x[25])lerp(neck,neck.C0,neckc0*CFrame.new(x[1],x[1],-x[38]+x[38]*math.cos(sine/x[41]))*CFrame.Angles(math.rad(x[41]+x[9]*math.cos(sine/x[41])),math.rad(x[1]-x[42]*math.cos(sine/x[9])/x[43]),math.rad(x[1])),x[25])lerp(lm,lm.C0,lsc0*CFrame.new(x[1],x[28]*math.cos(sine/x[41]),-math.sin(sine/x[9])/x[9])*CFrame.Angles(math.sin(sine/x[9])/x[44],-math.sin(sine/x[9])/x[39],(math.rad(-x[24]-x[45]*math.cos(sine/x[41]))+rootpart.RotVelocity.Y/x[46])),x[23])lerp(rm,rm.C0,rsc0*CFrame.new(x[1],-x[28]*math.cos(sine/x[41]),math.sin(sine/x[9])/x[9])*CFrame.Angles(-math.sin(sine/x[9])/x[44],-math.sin(sine/x[9])/x[39],(math.rad(x[24]+x[45]*math.cos(sine/x[41]))+rootpart.RotVelocity.Y/x[46])),x[23])lerp(rj,rj.C0,rootc0*CFrame.new(x[1],x[47]*math.cos(sine/x[41]),x[1])*CFrame.Angles(math.rad(x[9]+x[41]*math.cos(sine/x[41])),math.rad(x[1])+rootpart.RotVelocity.Y/x[46],math.rad(x[1]+x[24]*math.cos(sine/x[9])/x[43])+rootpart.RotVelocity.Y/x[46]),x[25])elseif Mode==x[20]then lerp(rlegm,rlegm.C0,rlc0*CFrame.Angles(math.rad(x[35]),math.rad(x[1]),math.rad(-x[1])),x[25])lerp(llegm,llegm.C0,llc0*CFrame.Angles(math.rad(-x[35]),math.rad(x[1]),math.rad(-x[1])),x[25])lerp(neck,neck.C0,neckc0*CFrame.Angles(math.rad(-x[35]),math.rad(x[1]),math.rad(-x[1])),x[25])lerp(lm,lm.C0,lsc0*CFrame.new(x[1],x[1],x[1])*CFrame.Angles(math.rad(x[48]),math.rad(-x[30]),math.rad(-x[35])),x[25])lerp(rm,rm.C0,rsc0*CFrame.new(x[1],x[1],x[1])*CFrame.Angles(math.rad(-x[48]),math.rad(-x[30]),math.rad(x[35])),x[25])lerp(rj,rj.C0,rootc0*CFrame.new(x[1],x[1],x[1])*CFrame.Angles(math.rad(x[1]),math.rad(x[1]),math.rad(x[1])),x[25])elseif
  3213. Mode==x[49]then lerp(rlegm,rlegm.C0,rlc0*CFrame.new(x[1],x[21],-x[10])*CFrame.Angles(math.rad(x[50]),math.rad(-x[30]),math.rad(x[51])),x[25])lerp(llegm,llegm.C0,llc0*CFrame.new(x[1],x[34],-x[27])*CFrame.Angles(math.rad(x[35]),math.rad(x[24]),math.rad(-x[1])),x[25])lerp(neck,neck.C0,neckc0*CFrame.new(x[1],x[1],x[1])*CFrame.Angles(math.rad(x[42])+-math.cos(sine/x[35])*x[52],math.rad(-x[53]),math.rad(-x[1])),x[25])lerp(lm,lm.C0,lsc0*CFrame.new(x[1],x[1],x[1])*CFrame.Angles(-math.rad(x[26])+-math.cos(sine/x[35])*x[54],math.rad(-x[35]),math.rad(-x[35])),x[25])lerp(rm,rm.C0,rsc0*CFrame.new(-x[25],-x[10],-x[10])*CFrame.Angles(math.rad(x[46])+-math.cos(sine/x[35])*x[54],math.rad(x[42]),math.rad(-x[29])),x[25])lerp(rj,rj.C0,rootc0*CFrame.new(x[1],x[3],-x[55])*CFrame.Angles(-math.rad(x[30]),math.rad(x[30]),math.rad(-x[1])),x[10])elseif Mode==x[56]then lerp(rlegm,rlegm.C0,rlc0*CFrame.new(x[10],x[1]+-math.cos(sine/x[26])*x[28],-x[57])*CFrame.Angles(math.rad(x[24]),math.rad(-x[40]),math.rad(x[24])),x[25])lerp(llegm,llegm.C0,llc0*CFrame.new(x[1],x[1]+-math.cos(sine/x[26])*x[28],x[1])*CFrame.Angles(math.rad(-x[26]),math.rad(x[26]),math.rad(-x[24])),x[25])lerp(neck,neck.C0,neckc0*CFrame.new(x[1],x[1]+-math.cos(sine/x[26])*x[58],x[1])*CFrame.Angles(math.rad(x[1]),math.rad(-x[32]),math.rad(x[1])),x[25])lerp(rm,rm.C0,rsc0*CFrame.new(x[1],x[1]+math.cos(sine/x[26])*x[28],x[1])*CFrame.Angles(math.rad(x[59])+math.cos(sine/x[26])*x[60],math.rad(x[1])+math.cos(sine/x[26])*x[60],math.rad(x[32])+math.cos(sine/x[26])*x[60]),x[25])lerp(lm,lm.C0,lsc0*CFrame.new(x[1],x[1]+math.cos(sine/x[26])*x[28],x[1])*CFrame.Angles(math.rad(-x[32])+-math.cos(sine/x[26])*x[60],math.rad(-x[26])+-math.cos(sine/x[26])*x[60],math.rad(-x[26])+-math.cos(sine/x[26])*x[60]),x[25])lerp(rj,rj.C0,rootc0*CFrame.new(x[1],x[1]+math.cos(sine/x[26])*x[28],x[1])*CFrame.Angles(math.rad(x[1]),math.rad(x[1]),math.rad(x[32])),x[25])elseif Mode==x[61]then lerp(rlegm,rlegm.C0,rlc0*CFrame.new(x[10],x[1]+-math.cos(sine/x[26])*x[28],-x[57])*CFrame.Angles(math.rad(x[1]),math.rad(-x[24]),math.rad(x[1])),x[25])lerp(llegm,llegm.C0,llc0*CFrame.new(x[1],x[1]+-math.cos(sine/x[26])*x[28],x[1])*CFrame.Angles(math.rad(x[1]),math.rad(x[24]),math.rad(x[1])),x[25])lerp(neck,neck.C0,neckc0*CFrame.new(x[1],x[1]+-math.cos(sine/x[26])*x[58],x[1])*CFrame.Angles(math.rad(x[1]),math.rad(-x[24]),math.rad(x[1])),x[25])lerp(rm,rm.C0,rsc0*CFrame.new(x[1],x[1]+math.cos(sine/x[26])*x[28],x[1])*CFrame.Angles(math.rad(x[62]),math.rad(-x[63]),math.rad(x[1])),x[25])lerp(lm,lm.C0,lsc0*CFrame.new(x[1],x[1]+math.cos(sine/x[26])*x[28],x[1])*CFrame.Angles(math.rad(x[64]),math.rad(-x[65]),math.rad(-x[48])),x[25])lerp(rj,rj.C0,rootc0*CFrame.new(x[1],x[1]+math.cos(sine/x[26])*x[28],x[1])*CFrame.Angles(math.rad(x[1]),math.rad(x[1]),math.rad(x[24])),x[25])end;for V,B in next,DOTTED do spawn(function()if V.Health>x[1]then local G=B[x[66]]local K=B[x[67]]local Q=B[x[68]]local J=B[x[69]]local X=B[x[8]]if Q<x[3]then Q=x[3]end;if tick()-J>=X and K>x[1]and V and V.Parent and V.Health>x[1]then DOTTED[V].LastT=tick()local Z=getDPS()*x[70]Z
  3214. =Z*(Q) healHuman(hum,Z*.25,head) damageHuman(V,Z,V.Parent.Head,x[11])DOTTED[V].DPSX=DOTTED[V].DPSX+x[71]DOTTED[V].Tix=DOTTED[V].Tix-x[3]end end end)end;swait()end end)()createOrb()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement