Advertisement
doryna2281337

Untitled

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