Advertisement
Skye_Blue

Warlock Script

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