Advertisement
doryna2281337

Untitled

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