Hugo1234cool

Untitled

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