Vechol

huh

Sep 9th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.03 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. -- Created by Nebula_Zorua --
  85. -- Dominus Empyreus --
  86. -- Mere Mortals. --
  87. -- You think you can stand a chance against PHAEDRA!? --
  88. -- If you want to get to The Overlord, you'll have to go through me. --
  89. -- Discord: Nebula the Zorua#6969
  90. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  91.  
  92. warn([[
  93. Dominus Empyreus
  94. Mere Mortals
  95. You think you can stand a chance against PHAEDRA?
  96. If you want to get to the Overlord, you'll have to go through me.
  97.  
  98. DOMINUS EMPYREUS.
  99. ]])
  100.  
  101. warn([[
  102. Nerfed version for showcasing
  103. ]])
  104. wait(1/60)
  105.  
  106. --// Shortcut Variables \\--
  107. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  108. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  109. local C3 = {tRGB= function(c3) return c3.r*255,c3.g*255,c3.b*255 end,N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  110. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  111. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  112. local R3 = {N=Region3.new}
  113. local De = S.Debris
  114. local WS = workspace
  115. local Lght = S.Lighting
  116. local RepS = S.ReplicatedStorage
  117. local IN = Instance.new
  118. local Plrs = S.Players
  119.  
  120. --// Initializing \\--
  121. local Plr = owner
  122. local Char = Plr.Character
  123. local Hum = Char:FindFirstChildOfClass'Humanoid'
  124. local RArm = Char["Right Arm"]
  125. local LArm = Char["Left Arm"]
  126. local RLeg = Char["Right Leg"]
  127. local LLeg = Char["Left Leg"]
  128. local Root = Char:FindFirstChild'HumanoidRootPart'
  129. local Torso = Char.Torso
  130. local Head = Char.Head
  131. local NeutralAnims = true
  132. local Attack = false
  133. local StillAura = false
  134. local Debounces = {Debounces={}}
  135. local Mouse = Plr:GetMouse()
  136. local Hit = {}
  137. local Sine = 0
  138. local Change = 1
  139. local BloodPuddles = {}
  140.  
  141. local Effects = IN("Folder",Char)
  142. Effects.Name = "Effects"
  143.  
  144.  
  145. --// Debounce System \\--
  146.  
  147.  
  148. function Debounces:New(name,cooldown)
  149. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  150. setmetatable(aaaaa,{__index = Debounces})
  151. Debounces.Debounces[name] = aaaaa
  152. return aaaaa
  153. end
  154.  
  155. function Debounces:Use(overrideUsable)
  156. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  157. if(self.Usable or overrideUsable)then
  158. self.Usable = false
  159. self.CoolingDown = true
  160. local LastUse = time()
  161. self.LastUse = LastUse
  162. delay(self.Cooldown or 2,function()
  163. if(self.LastUse == LastUse)then
  164. self.CoolingDown = false
  165. self.Usable = true
  166. end
  167. end)
  168. end
  169. end
  170.  
  171. function Debounces:Get(name)
  172. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  173. for i,v in next, Debounces.Debounces do
  174. if(i == name)then
  175. return v;
  176. end
  177. end
  178. end
  179.  
  180. function Debounces:GetProgressPercentage()
  181. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  182. if(self.CoolingDown and not self.Usable)then
  183. return math.max(
  184. math.floor(
  185. (
  186. (time()-self.LastUse)/self.Cooldown or 2
  187. )*100
  188. )
  189. )
  190. else
  191. return 100
  192. end
  193. end
  194.  
  195. --// Instance Creation Functions \\--
  196. local baseSound = IN("Sound")
  197. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  198. local Sound = baseSound:Clone()
  199. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  200. Sound.Pitch = pitch or 1
  201. Sound.Volume = volume or 1
  202. Sound.Looped = looped or false
  203. if(autoPlay)then
  204. coroutine.wrap(function()
  205. repeat wait() until Sound.IsLoaded
  206. Sound.Playing = autoPlay or false
  207. end)()
  208. end
  209. if(not looped and effect)then
  210. Sound.Stopped:connect(function()
  211. Sound.Volume = 0
  212. Sound:destroy()
  213. end)
  214. elseif(effect)then
  215. warn("Sound can't be looped and a sound effect!")
  216. end
  217. Sound.Parent =parent or Torso
  218. return Sound
  219. end
  220. function Part(parent,color,material,size,cframe,anchored,cancollide)
  221. local part = IN("Part")
  222. part.Parent = parent or Char
  223. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  224. part.Material = material or Enum.Material.SmoothPlastic
  225. part.TopSurface,part.BottomSurface=10,10
  226. part.Size = size or V3.N(1,1,1)
  227. part.CFrame = cframe or CF.N(0,0,0)
  228. part.CanCollide = cancollide or false
  229. part.Anchored = anchored or false
  230. return part
  231. end
  232.  
  233. function Weld(part0,part1,c0,c1)
  234. local weld = IN("Weld")
  235. weld.Parent = part0
  236. weld.Part0 = part0
  237. weld.Part1 = part1
  238. weld.C0 = c0 or CF.N()
  239. weld.C1 = c1 or CF.N()
  240. return weld
  241. end
  242.  
  243. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  244. local part = IN("SpecialMesh")
  245. part.MeshId = meshid or ""
  246. part.TextureId = textid or ""
  247. part.Scale = scale or V3.N(1,1,1)
  248. part.Offset = offset or V3.N(0,0,0)
  249. part.MeshType = meshtype or Enum.MeshType.Sphere
  250. part.Parent = parent
  251. return part
  252. end
  253.  
  254. NewInstance = function(instance,parent,properties)
  255. local inst = Instance.new(instance)
  256. inst.Parent = parent
  257. if(properties)then
  258. for i,v in next, properties do
  259. pcall(function() inst[i] = v end)
  260. end
  261. end
  262. return inst;
  263. end
  264.  
  265. function Clone(instance,parent,properties)
  266. local inst = instance:Clone()
  267. inst.Parent = parent
  268. if(properties)then
  269. for i,v in next, properties do
  270. pcall(function() inst[i] = v end)
  271. end
  272. end
  273. return inst;
  274. end
  275.  
  276. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  277. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  278. local Sound = IN("Sound")
  279. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  280. Sound.Pitch = pitch or 1
  281. Sound.Volume = volume or 1
  282. Sound.Looped = looped or false
  283. if(autoPlay)then
  284. coroutine.wrap(function()
  285. repeat wait() until Sound.IsLoaded
  286. Sound.Playing = autoPlay or false
  287. end)()
  288. end
  289. if(not looped and effect)then
  290. Sound.Stopped:connect(function()
  291. Sound.Volume = 0
  292. soundPart:destroy()
  293. end)
  294. elseif(effect)then
  295. warn("Sound can't be looped and a sound effect!")
  296. end
  297. Sound.Parent = soundPart
  298. return Sound
  299. end
  300.  
  301.  
  302. --// Extended ROBLOX tables \\--
  303. local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
  304. --// Require stuff \\--
  305.  
  306. local oScript = script;
  307. local script = Instance.new("LocalScript")
  308. local chold = {}
  309. for _,v in next, oScript:children() do
  310. v:Clone().Parent = script
  311. v:destroy()
  312. end
  313.  
  314. function CamShake(who,times,intense,origin)
  315. coroutine.wrap(function()
  316. if(script:FindFirstChild'CamShake')then
  317. local cam = script.CamShake:Clone()
  318. cam:WaitForChild'intensity'.Value = intense
  319. cam:WaitForChild'times'.Value = times
  320.  
  321. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  322. cam.Parent = who
  323. wait()
  324. cam.Disabled = false
  325. elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
  326. local intensity = intense
  327. if(Hum and not Hum:FindFirstChild'CamShaking')then
  328. local cam = workspace.CurrentCamera
  329. local oCO = Hum.CameraOffset
  330. local cs = Instance.new("BoolValue",Hum)
  331. cs.Name = "CamShaking"
  332. for i = 1, times do
  333. local camDistFromOrigin
  334. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  335. camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin.Position).magnitude )/25
  336. elseif(typeof(origin) == 'Vector3')then
  337. camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin).magnitude )/25
  338. end
  339. if(camDistFromOrigin)then
  340. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  341. end
  342. --cam.CoordinateFrame = cam.CoordinateFrame*CFrame.fromEulerAnglesXYZ(math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200)
  343. if(Hum)then
  344. Hum.CameraOffset = Vector3.new(math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200)
  345. end
  346. swait()
  347. end
  348. if(Hum)then
  349. Hum.CameraOffset = oCO
  350. end
  351. cs:destroy()
  352. end
  353. end
  354. end)()
  355. end
  356.  
  357.  
  358. function CamShakeAll(times,intense,origin)
  359. for _,v in next, Plrs:players() do
  360. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  361. end
  362. end
  363.  
  364. function ServerScript(code)
  365. if(script:FindFirstChild'Loadstring')then
  366. local load = script.Loadstring:Clone()
  367. load:WaitForChild'Sauce'.Value = code
  368. load.Disabled = false
  369. load.Parent = workspace
  370. elseif(NS and typeof(NS) == 'function')then
  371. NS(code,workspace)
  372. else
  373. warn("no serverscripts lol")
  374. end
  375. end
  376.  
  377. function LocalOnPlayer(who,code)
  378. ServerScript([[
  379. wait()
  380. script.Parent=nil
  381. if(not _G.Http)then _G.Http = game:service'HttpService' end
  382.  
  383. local Http = _G.Http or game:service'HttpService'
  384.  
  385. local source = ]].."[["..code.."]]"..[[
  386. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  387. local asd = Http:PostAsync(link,source)
  388. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  389. local ID = Http:JSONDecode(asd).Result.Require_ID
  390. local vs = require(ID).VORTH_SCRIPT
  391. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  392. ]])
  393. end
  394.  
  395. function Nametag(color,tag)
  396. local r,g,b = C3.tRGB(color)
  397. local c3 = C3.RGB(r/2,g/2,b/2)
  398. local name = chold['Nametag']
  399. if(not name)then
  400. name = NewInstance("BillboardGui",nil,{MaxDistance=150,AlwaysOnTop=true,Active=false,Size=UDim2.new(5,0,1,0),SizeOffset=Vector2.new(0,6)})
  401. NewInstance("TextLabel",name,{Name='Title',BackgroundTransparency=1,Size=UDim2.new(2.5,0,1.5,0),Position=UDim2.new(-.75,0,0,0),Text=tag,Font=Enum.Font.Fantasy,TextColor3 = color,TextStrokeColor3 = c3,TextStrokeTransparency=0,TextSize=14,TextScaled=true,TextWrapped=true,})
  402. end
  403. name.Title.Text = tag
  404. name.Title.TextColor3 = color
  405. name.Title.TextStrokeColor3 = c3
  406.  
  407. name.Parent = Char
  408. name.Adornee = Head
  409. --name.PlayerToHideFrom = Plr
  410.  
  411. return name
  412. end
  413.  
  414. --// Customization \\--
  415.  
  416. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  417. local Remove_Hats = true
  418. local Remove_Clothing = true
  419. local PlayerSize = 1
  420. local DamageColor = BrickColor.new'Institutional white'
  421. local MusicID = 1352579034
  422. local God = true
  423. local Muted = false
  424. local Power = 1
  425.  
  426. local WalkSpeed = 35
  427.  
  428. --// Weapon and GUI creation, and Character Customization \\--
  429.  
  430. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  431. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  432.  
  433. Head:ClearAllChildren()
  434. Head.Transparency = 1
  435. local headGay = Head:Clone();
  436. headGay:breakJoints();
  437. headGay.Parent = Head
  438. headGay.Transparency = 0
  439.  
  440. local headMesh = Mesh(headGay,Enum.MeshType.FileMesh,'rbxassetid://21057410','rbxassetid://21057378')
  441. Weld(headGay,Head)
  442.  
  443. if(PlayerSize ~= 1)then
  444. for _,v in next, Char:GetDescendants() do
  445. if(v:IsA'BasePart')then
  446. v.Size = v.Size * PlayerSize
  447. end
  448. end
  449. end
  450.  
  451. Hum.HipHeight = 2
  452. for _,v in next, Char:GetDescendants() do
  453. if(v:IsA'BasePart')then
  454. v.Material = Enum.Material.Neon
  455. end
  456. end
  457.  
  458. Nametag(C3.N(1,1,1),"Dominus Empyreus")
  459.  
  460. local Music = Sound(Char,MusicID,1,3,true,false,true)
  461. Music.Name = 'Music'
  462.  
  463. --// Stop animations \\--
  464. for _,v in next, Hum:GetPlayingAnimationTracks() do
  465. v:Stop();
  466. end
  467.  
  468. pcall(game.Destroy,Char:FindFirstChild'Animate')
  469. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  470.  
  471. --// Joints \\--
  472.  
  473. local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  474. local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  475. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  476. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  477. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  478. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  479.  
  480. local LSC0 = LS.C0
  481. local RSC0 = RS.C0
  482. local NKC0 = NK.C0
  483. local LHC0 = LH.C0
  484. local RHC0 = RH.C0
  485. local RJC0 = RJ.C0
  486.  
  487. local LSC1 = LS.C1
  488. local RSC1 = RS.C1
  489. local NKC1 = NK.C1
  490. local LHC1 = LH.C1
  491. local RHC1 = RH.C1
  492. local RJC1 = RJ.C1
  493. --// Artificial HB \\--
  494.  
  495. local ArtificialHB = IN("BindableEvent", script)
  496. ArtificialHB.Name = "Heartbeat"
  497.  
  498. script:WaitForChild("Heartbeat")
  499.  
  500. local tf = 0
  501. local allowframeloss = false
  502. local tossremainder = false
  503. local lastframe = tick()
  504. local frame = 1/Frame_Speed
  505. ArtificialHB:Fire()
  506.  
  507. game:GetService("RunService").Heartbeat:connect(function(s, p)
  508. tf = tf + s
  509. if tf >= frame then
  510. if allowframeloss then
  511. script.Heartbeat:Fire()
  512. lastframe = tick()
  513. else
  514. for i = 1, math.floor(tf / frame) do
  515. ArtificialHB:Fire()
  516. end
  517. lastframe = tick()
  518. end
  519. if tossremainder then
  520. tf = 0
  521. else
  522. tf = tf - frame * math.floor(tf / frame)
  523. end
  524. end
  525. end)
  526.  
  527. function swait(num)
  528. if num == 0 or num == nil then
  529. ArtificialHB.Event:wait()
  530. else
  531. for i = 0, num do
  532. ArtificialHB.Event:wait()
  533. end
  534. end
  535. end
  536.  
  537.  
  538. --// Effect Function(s) \\--
  539.  
  540. --Arc{Part=Orb,End=Torso.CFrame,Time=45,Height=45,Yield=false,DestroyEnd=true}
  541. function Arc(data)
  542. local Part = data.Part;
  543. local End = data.End or Torso.CFrame;
  544. local Time = data.Time or 45;
  545. local Height = data.Height or 45;
  546. local Yield = data.Yield or false;
  547. local Destroy = data.DestroyEnd or false;
  548.  
  549. local Direction = CF.N(Part.Position, End.p)
  550. local Distance = (Part.Position - End.p).magnitude
  551.  
  552. local function ArcGay()
  553. for i = 1, Time do
  554. Part.CFrame = Direction * CF.N(0,(Time/200+(Time/Height-i*2/Height)),-Distance/Time)
  555. Direction = Part.CFrame
  556. swait()
  557. end
  558. if(Destroy)then
  559. Part:destroy()
  560. end
  561. end
  562. if(Yield)then ArcGay() else coroutine.wrap(ArcGay)() end
  563. end
  564.  
  565. function NoobySphere(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,MeshId,Axis)
  566. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  567. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  568. local Scale = 1
  569. local speeder = Speed
  570. if(Type == "Multiply")then
  571. Scale = 1*Inc
  572. elseif(Type == "Divide")then
  573. Scale = 1/Inc
  574. end
  575. coroutine.wrap(function()
  576. for i = 0,10/Lifetime,.1 do
  577.  
  578. if(Type == "Multiply")then
  579. Scale = Scale - 0.01*Inc/Lifetime
  580. elseif(Type == "Divide")then
  581. Scale = Scale - 0.01/Inc*Lifetime
  582. end
  583. speeder = speeder - 0.01*Speed*Lifetime
  584. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  585. fxP.Transparency = fxP.Transparency + 0.01*Lifetime
  586. if(Axis == 'x')then
  587. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, 0, 0)
  588. elseif(Axis == 'y')then
  589. fxM.Scale = fxM.Scale + Vector3.new(0, Scale*Lifetime, 0)
  590. elseif(Axis == 'z')then
  591. fxM.Scale = fxM.Scale + Vector3.new(0, 0, Scale*Lifetime)
  592. elseif(Axis == 'xyz')then
  593. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,Scale*Lifetime,Scale*Lifetime)
  594. elseif(Axis == 'yz')then
  595. fxM.Scale = fxM.Scale + Vector3.new(0,Scale*Lifetime,Scale*Lifetime)
  596. elseif(Axis == 'xz')then
  597. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,0,Scale*Lifetime)
  598. else
  599. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, 0)
  600. end
  601. if(fxP.Transparency >= 1)then break end
  602. swait()
  603. end
  604. fxP:destroy()
  605. end)()
  606. return fxP
  607. end
  608.  
  609. --NoobyBlock(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,Fade,MeshId)
  610. function NoobyBlock(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,Fade,MeshId)
  611. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  612. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Brick),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  613. local Scale = 1
  614. local speeder = Speed
  615. if(Type == "Multiply")then
  616. Scale = 1*Inc
  617. elseif(Type == "Divide")then
  618. Scale = 1/Inc
  619. end
  620. coroutine.wrap(function()
  621. for i = 0,10/Lifetime,.1 do
  622. if(Type == "Multiply")then
  623. Scale = Scale - 0.01*Inc/Lifetime
  624. elseif(Type == "Divide")then
  625. Scale = Scale - 0.01/Inc*Lifetime
  626. end
  627. if(Fade)then
  628. fxP.Transparency = i/(10/Lifetime)
  629. end
  630. speeder = speeder - 0.01*Speed*Lifetime/10
  631. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  632. fxM.Scale = fxM.Scale - Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
  633. swait()
  634. end
  635. fxP:destroy()
  636. end)()
  637. end
  638.  
  639. function Bezier(startpos, pos2, pos3, endpos, t)
  640. local A = startpos:lerp(pos2, t)
  641. local B = pos2:lerp(pos3, t)
  642. local C = pos3:lerp(endpos, t)
  643. local lerp1 = A:lerp(B, t)
  644. local lerp2 = B:lerp(C, t)
  645. local cubic = lerp1:lerp(lerp2, t)
  646. return cubic
  647. end
  648. function Puddle(hit,pos,norm,data)
  649. local material = data.Material or Enum.Material.SmoothPlastic
  650. local color = data.Color or BrickColor.new'Crimson'
  651. local size = data.Size or 1
  652.  
  653. if(hit.Name ~= 'BloodPuddle')then
  654. local Puddle = NewInstance('Part',workspace,{Material=material,BrickColor=color,Size=V3.N(size,.1,size),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
  655. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  656. BloodPuddles[Puddle] = 0
  657. else
  658. local cyl = hit:FindFirstChild'CylinderMesh'
  659. if(cyl)then
  660. BloodPuddles[hit] = 0
  661. cyl.Scale = cyl.Scale + V3.N(size,0,size)
  662. hit.Transparency = 0
  663. end
  664. end
  665. end
  666.  
  667. function Droplet(data)
  668. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  669. local Size = data.Size or 1
  670. local Color = data.Color or BrickColor.new'Crimson'
  671. local StudsPerFrame = data.Speed or 1
  672. local Shape = data.Shape or 'Ball'
  673. local Frames = (data.Frames or 160)+1
  674. local Pos = data.Origin or Root.CFrame
  675. local Direction = data.Direction or Root.CFrame.lookVector*100000
  676. local Material = data.Material or Enum.Material.SmoothPlastic
  677. local Drop = data.Drop or .05
  678. local Ignorelist = data.Ignorelist or nil
  679.  
  680. local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false)
  681. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  682. if(Shape == 'Ball')then
  683. BMesh.MeshType = Enum.MeshType.Sphere
  684. elseif(Shape == 'Head')then
  685. BMesh.MeshType = Enum.MeshType.Head
  686. elseif(Shape == 'Cylinder')then
  687. BMesh.MeshType = Enum.MeshType.Cylinder
  688. end
  689.  
  690. coroutine.wrap(function()
  691. for i = 1, Frames do
  692. Pos = Pos * CF.N(0,-(Drop*i),0)
  693. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame)
  694. if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then
  695. Puddle(hit,pos,norm,data)
  696. break;
  697. else
  698. Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i))
  699. end
  700. swait()
  701. end
  702. Bullet:destroy()
  703. end)()
  704. end
  705.  
  706. function SphereFX(duration,color,scale,pos,endScale,increment)
  707. return Effect{
  708. Effect='ResizeAndFade',
  709. Color=color,
  710. Size=scale,
  711. Mesh={MeshType=Enum.MeshType.Sphere},
  712. CFrame=pos,
  713. FXSettings={
  714. EndSize=endScale,
  715. EndIsIncrement=increment
  716. }
  717. }
  718. end
  719.  
  720. function BlastFX(duration,color,scale,pos,endScale,increment)
  721. return Effect{
  722. Effect='ResizeAndFade',
  723. Color=color,
  724. Size=scale,
  725. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  726. CFrame=pos,
  727. FXSettings={
  728. EndSize=endScale,
  729. EndIsIncrement=increment
  730. }
  731. }
  732. end
  733.  
  734. function BlockFX(duration,color,scale,pos,endScale,increment)
  735. return Effect{
  736. Effect='ResizeAndFade',
  737. Color=color,
  738. Size=scale,
  739. CFrame=pos,
  740. FXSettings={
  741. EndSize=endScale,
  742. EndIsIncrement=increment
  743. }
  744. }
  745. end
  746.  
  747. function ShootBullet(data)
  748. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  749. local Size = data.Size or V3.N(2,2,2)
  750. local Color = data.Color or BrickColor.new'Crimson'
  751. local StudsPerFrame = data.Speed or 10
  752. local Shape = data.Shape or 'Ball'
  753. local Frames = data.Frames or 160
  754. local Pos = data.Origin or Torso.CFrame
  755. local Direction = data.Direction or Mouse.Hit
  756. local Material = data.Material or Enum.Material.Neon
  757. local OnHit = data.HitFunction or function(hit,pos)
  758. Effect{
  759. Effect='ResizeAndFade',
  760. Color=Color,
  761. Size=V3.N(10,10,10),
  762. Mesh={MeshType=Enum.MeshType.Sphere},
  763. CFrame=CF.N(pos),
  764. FXSettings={
  765. EndSize=V3.N(.05,.05,.05),
  766. EndIsIncrement=true
  767. }
  768. }
  769. for i = 1, 5 do
  770. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  771. Effect{
  772. Effect='Fade',
  773. Frames=65,
  774. Size=V3.N(5,5,10),
  775. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
  776. Mesh = {MeshType=Enum.MeshType.Sphere},
  777. Material=Enum.Material.Neon,
  778. Color=Color,
  779. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  780. }
  781. end
  782. end
  783.  
  784. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  785. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  786. if(Shape == 'Ball')then
  787. BMesh.MeshType = Enum.MeshType.Sphere
  788. elseif(Shape == 'Head')then
  789. BMesh.MeshType = Enum.MeshType.Head
  790. elseif(Shape == 'Cylinder')then
  791. BMesh.MeshType = Enum.MeshType.Cylinder
  792. end
  793.  
  794. coroutine.wrap(function()
  795. for i = 0, Frames do
  796. Bullet.Size = Bullet.Size-V3.N(1/Frames,1/Frames,1/Frames)
  797. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  798. if(hit)then
  799. OnHit(hit,pos,Bullet.Size.x,norm,dist)
  800. break;
  801. else
  802. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  803. end
  804. swait()
  805. end
  806. Bullet:destroy()
  807. end)()
  808.  
  809. end
  810.  
  811.  
  812. function Zap(data)
  813. local sCF,eCF = data.StartCFrame,data.EndCFrame
  814. assert(sCF,"You need a start CFrame!")
  815. assert(eCF,"You need an end CFrame!")
  816. local parts = data.PartCount or 15
  817. local zapRot = data.ZapRotation or {-5,5}
  818. local startThick = data.StartSize or 3;
  819. local endThick = data.EndSize or startThick/2;
  820. local color = data.Color or BrickColor.new'Electric blue'
  821. local delay = data.Delay or 35
  822. local delayInc = data.DelayInc or 0
  823. local lastLightning;
  824. local MagZ = (sCF.p - eCF.p).magnitude
  825. local thick = startThick
  826. local inc = (startThick/parts)-(endThick/parts)
  827.  
  828. for i = 1, parts do
  829. local pos = sCF.p
  830. if(lastLightning)then
  831. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  832. end
  833. delay = delay + delayInc
  834. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  835. local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
  836. if(parts == i)then
  837. local MagZ = (pos-eCF.p).magnitude
  838. zapPart.Size = V3.N(endThick,endThick,MagZ)
  839. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  840. Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
  841. else
  842. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  843. end
  844.  
  845. lastLightning = zapPart
  846. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  847.  
  848. thick=thick-inc
  849.  
  850. end
  851. end
  852.  
  853. --Zap2{Color=BrickColor.new'Electric blue',Start=Torso.Position,End=Mouse.Hit.p,SegL=2,Thickness=.5,Fade=45,MaxDist=200,Branches=false,Material=Enum.Material.Neon,Raycasts=false,Mesh=false}
  854.  
  855. function Zap2(data)
  856. local Color = data.Color or BrickColor.new'Electric blue'
  857. local StartPos = data.Start or Torso.Position
  858. local EndPos = data.End or Mouse.Hit.p
  859. local SegLength = data.SegL or 2
  860. local Thicc = (data.Thickness or 0.5)+(Power/8)
  861. local Fades = data.Fade or 45
  862. local Parent = data.Parent or Effects
  863. local MaxD = data.MaxDist or 200
  864. local Branch = data.Branches or false
  865. local Material = data.Material or Enum.Material.Neon
  866. local Raycasts = data.Raycasts or false
  867. local Offset = data.Offset or {0,360}
  868. local SizeDec = data.SizeDec or false;
  869. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  870. if((StartPos-EndPos).magnitude > MaxD)then
  871. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  872. end
  873. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  874. if(Raycasts)then
  875. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  876. EndPos = pos
  877. end
  878.  
  879. local segments = dist/SegLength
  880. local model = IN("Model",Parent)
  881. model.Name = 'Lightning'
  882. local Last;
  883. for i = 1, segments do
  884. local size = 0
  885. if(SizeDec)then
  886. size = (segments-i)/25
  887. end
  888. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  889. if(AddMesh)then IN("CylinderMesh",prt) end
  890. if(Last and math.floor(segments) == i)then
  891. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  892. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  893. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0)
  894. elseif(not Last)then
  895. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  896. else
  897. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  898. end
  899. Last = prt
  900. if(Branch)then
  901. local choice = M.RNG(1,7+((segments-i)*2))
  902. if(choice == 1)then
  903. local LastB;
  904. for i2 = 1,M.RNG(2,5) do
  905. local size2 = ((segments-i)/35)/i2
  906. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  907. if(AddMesh)then IN("CylinderMesh",prt) end
  908. if(not LastB)then
  909. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  910. else
  911. prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  912. end
  913. LastB = prt
  914. end
  915. end
  916. end
  917. end
  918. if(Fades > 0)then
  919. coroutine.wrap(function()
  920. for i = 1, Fades do
  921. for _,v in next, model:children() do
  922. if(v:IsA'BasePart')then
  923. v.Transparency = (i/Fades)
  924. end
  925. end
  926. swait()
  927. end
  928. model:destroy()
  929. end)()
  930. else
  931. S.Debris:AddItem(model,.01)
  932. end
  933. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  934. end
  935.  
  936. function Tween(obj,props,time,easing,direction,repeats,backwards)
  937. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  938. local tween = S.TweenService:Create(obj, info, props)
  939.  
  940. tween:Play()
  941. end
  942.  
  943. function Effect(data)
  944. local FX = data.Effect or 'ResizeAndFade'
  945. local Parent = data.Parent or Effects
  946. local Color = data.Color or C3.N(0,0,0)
  947. local Size = data.Size or V3.N(1,1,1)
  948. local MoveDir = data.MoveDirection or nil
  949. local MeshData = data.Mesh or nil
  950. local SndData = data.Sound or nil
  951. local Frames = data.Frames or 45
  952. local Manual = data.Manual or nil
  953. local Material = data.Material or nil
  954. local CFra = data.CFrame or Torso.CFrame
  955. local Settings = data.FXSettings or {}
  956. local Shape = data.Shape or Enum.PartType.Block
  957. local Snd,Prt,Msh;
  958. local RotInc = data.RotInc or {0,0,0}
  959. if(typeof(RotInc) == 'number')then
  960. RotInc = {RotInc,RotInc,RotInc}
  961. end
  962. coroutine.wrap(function()
  963. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  964. Prt = Manual
  965. else
  966. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  967. Prt.Shape = Shape
  968. end
  969. if(typeof(MeshData) == 'table')then
  970. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  971. elseif(typeof(MeshData) == 'Instance')then
  972. Msh = MeshData:Clone()
  973. Msh.Parent = Prt
  974. elseif(Shape == Enum.PartType.Block)then
  975. Msh = Mesh(Prt,Enum.MeshType.Brick)
  976. end
  977. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  978. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  979. end
  980. if(Snd)then
  981. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  982. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  983. end
  984. Size = (Msh and Msh.Scale or Size)
  985. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  986.  
  987. local MoveSpeed = nil;
  988. if(MoveDir)then
  989. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  990. end
  991. if(FX ~= 'Arc')then
  992. for Frame = 1, Frames do
  993. if(FX == "Fade")then
  994. Prt.Transparency = (Frame/Frames)
  995. elseif(FX == "Resize")then
  996. if(not Settings.EndSize)then
  997. Settings.EndSize = V3.N(0,0,0)
  998. end
  999. if(Settings.EndIsIncrement)then
  1000. if(Msh)then
  1001. Msh.Scale = Msh.Scale + Settings.EndSize
  1002. else
  1003. Prt.Size = Prt.Size + Settings.EndSize
  1004. end
  1005. else
  1006. if(Msh)then
  1007. Msh.Scale = Msh.Scale - grow/Frames
  1008. else
  1009. Prt.Size = Prt.Size - grow/Frames
  1010. end
  1011. end
  1012. elseif(FX == "ResizeAndFade")then
  1013. if(not Settings.EndSize)then
  1014. Settings.EndSize = V3.N(0,0,0)
  1015. end
  1016. if(Settings.EndIsIncrement)then
  1017. if(Msh)then
  1018. Msh.Scale = Msh.Scale + Settings.EndSize
  1019. else
  1020. Prt.Size = Prt.Size + Settings.EndSize
  1021. end
  1022. else
  1023. if(Msh)then
  1024. Msh.Scale = Msh.Scale - grow/Frames
  1025. else
  1026. Prt.Size = Prt.Size - grow/Frames
  1027. end
  1028. end
  1029. Prt.Transparency = (Frame/Frames)
  1030. end
  1031. if(Settings.RandomizeCFrame)then
  1032. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  1033. else
  1034. Prt.CFrame = Prt.CFrame * CF.A(unpack(RotInc))
  1035. end
  1036. if(MoveDir and MoveSpeed)then
  1037. local Orientation = Prt.Orientation
  1038. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  1039. Prt.Orientation = Orientation
  1040. end
  1041. swait()
  1042. end
  1043. Prt:destroy()
  1044. else
  1045. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  1046. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  1047. if(start and endP)then
  1048. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  1049. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  1050. for Frame = 0, 1, (Settings.Speed or 0.01) do
  1051. if(Settings.Home)then
  1052. endP = Settings.Home.CFrame
  1053. end
  1054. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  1055. end
  1056. if(Settings.RemoveOnGoal)then
  1057. Prt:destroy()
  1058. end
  1059. else
  1060. Prt:destroy()
  1061. assert(start,"You need a start position!")
  1062. assert(endP,"You need a start position!")
  1063. end
  1064. end
  1065. end)()
  1066. return Prt,Msh,Snd
  1067. end
  1068. function SoulSteal(whom)
  1069. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  1070. print(torso)
  1071. if(torso and torso:IsA'BasePart')then
  1072. local Model = Instance.new("Model",Effects)
  1073. Model.Name = whom.Name.."'s Soul"
  1074. whom:BreakJoints()
  1075. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  1076. Soul.Name = 'Head'
  1077. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  1078. Effect{
  1079. Effect="Arc",
  1080. Manual = Soul,
  1081. FXSettings={
  1082. Start=torso.CFrame,
  1083. Home = Torso,
  1084. RemoveOnGoal = true,
  1085. }
  1086. }
  1087. local lastPoint = Soul.CFrame.p
  1088.  
  1089. for i = 0, 1, 0.01 do
  1090. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  1091. local mag = (lastPoint - Soul.Position).magnitude
  1092. Effect{
  1093. Effect = "Fade",
  1094. CFrame = point * CF.N(0, mag/2, 0),
  1095. Size = V3.N(.5,mag+.5,.5),
  1096. Color = Soul.BrickColor
  1097. }
  1098. lastPoint = Soul.CFrame.p
  1099. swait()
  1100. end
  1101. for i = 1, 5 do
  1102. Effect{
  1103. Effect="Fade",
  1104. Color = BrickColor.new'Really red',
  1105. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  1106. }
  1107. end
  1108. end
  1109. end
  1110.  
  1111. --// Other Functions \\ --
  1112.  
  1113. function CastRay(startPos,endPos,range,ignoreList)
  1114. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  1115. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  1116. return part,pos,norm,(pos and (startPos-pos).magnitude)
  1117. end
  1118.  
  1119. function getRegion(point,range,ignore)
  1120. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  1121. end
  1122.  
  1123. function clerp(startCF,endCF,alpha)
  1124. return startCF:lerp(endCF, alpha)
  1125. end
  1126.  
  1127. function GetTorso(char)
  1128. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1129. end
  1130.  
  1131.  
  1132. function ShowDamage(Pos, Text, Time, Color)
  1133. coroutine.wrap(function()
  1134. local Rate = (1 / Frame_Speed)
  1135. local Pos = (Pos or Vector3.new(0, 0, 0))
  1136. local Text = (Text or "")
  1137. local Time = (Time or 2)
  1138. local Color = (Color or Color3.new(1, 0, 1))
  1139. local EffectPart = NewInstance("Part",Effects,{
  1140. Material=Enum.Material.SmoothPlastic,
  1141. Reflectance = 0,
  1142. Transparency = 1,
  1143. BrickColor = BrickColor.new(Color),
  1144. Name = "Effect",
  1145. Size = Vector3.new(0,0,0),
  1146. Anchored = true,
  1147. CFrame = CF.N(Pos)
  1148. })
  1149. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  1150. Size = UDim2.new(1.25, 0, 1.25, 0),
  1151. Adornee = EffectPart,
  1152. })
  1153. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  1154. BackgroundTransparency = 1,
  1155. Size = UDim2.new(1, 0, 1, 0),
  1156. Text = Text,
  1157. Font = "Bodoni",
  1158. TextColor3 = Color,
  1159. TextStrokeColor3 = Color3.new(0,0,0),
  1160. TextStrokeTransparency=0,
  1161. TextScaled = true,
  1162. })
  1163. S.Debris:AddItem(EffectPart, (Time))
  1164. EffectPart.Parent = workspace
  1165. delay(0, function()
  1166. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  1167. local Frames = (Time / Rate)
  1168. for Frame = 1, Frames do
  1169. swait()
  1170. local Percent = (Frame / Frames)
  1171. TextLabel.TextTransparency = Percent
  1172. TextLabel.TextStrokeTransparency = Percent
  1173. end
  1174. if EffectPart and EffectPart.Parent then
  1175. EffectPart:Destroy()
  1176. end
  1177. end) end)()
  1178. end
  1179.  
  1180. function DustMeDaddy(whom,hum)
  1181. local stop = script:FindFirstChild('StopRetaliating') and script:FindFirstChild('StopRetaliating'):Clone();
  1182. if(stop and S.Players:GetPlayerFromCharacter(whom))then
  1183. stop.Disabled = false
  1184. stop.Parent = whom
  1185. end
  1186. whom:breakJoints()
  1187. pcall(function()
  1188. for _,v in next, whom:children() do
  1189. if(v:IsA'BasePart')then
  1190. v:breakJoints()
  1191. v.Parent = Effects
  1192. v:ClearAllChildren()
  1193. v.CanCollide = false
  1194. v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  1195. v.Anchored = false
  1196. local dustT = NewInstance("ParticleEmitter",v,{
  1197. Color = ColorSequence.new(C3.N(1,1,1)),
  1198. LightEmission=0,
  1199. LightInfluence=1,
  1200. Size=NumberSequence.new(1,0),
  1201. Texture="rbxassetid://284205403",
  1202. Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(.9,0,0),NumberSequenceKeypoint.new(1,1,0)},
  1203. Lifetime = NumberRange.new(.25,3),
  1204. Rate=150,
  1205. Acceleration=V3.N(0,0,0),
  1206. Speed = NumberRange.new(0),
  1207. Enabled = true
  1208. })
  1209. v.Color = C3.N(1,1,1)
  1210. v.Material = Enum.Material.Neon
  1211. local bv = NewInstance('BodyVelocity',v,{MaxForce=V3.N(50,50,50),P=2500,Velocity=V3.N(0,50,0)})
  1212. v.Transparency = .25
  1213. delay(3, function()
  1214. bv.Velocity = V3.N(M.RNG(-75,75),0,M.RNG(-75,75))
  1215. dustT.Enabled = false
  1216. Tween(v,{Transparency=1},2)
  1217. S.Debris:AddItem(v,3)
  1218. end)
  1219. end
  1220. end
  1221. end)
  1222. end
  1223.  
  1224. function DealDamage(data)
  1225. local Who = data.Who;
  1226. local MinDam = data.MinimumDamage or 15;
  1227. local MaxDam = data.MaximumDamage or 30;
  1228. local MaxHP = data.MaxHP or 1e5;
  1229.  
  1230. local DB = data.Debounce or .2;
  1231.  
  1232. local CritData = data.Crit or {}
  1233. local CritChance = CritData.Chance or 5;
  1234. local CritMultiplier = CritData.Multiplier or 2;
  1235.  
  1236. local DamageEffects = data.DamageFX or {}
  1237. local DamageType = DamageEffects.Type or "Normal"
  1238. local DeathFunction = DamageEffects.DeathFunction or DustMeDaddy
  1239.  
  1240. assert(Who,"Specify someone to damage!")
  1241.  
  1242. local Humanoid = Who:FindFirstChildOfClass'Humanoid'
  1243. local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
  1244.  
  1245. local canHit = true
  1246. if(Humanoid)then
  1247. for _, p in pairs(Hit) do
  1248. if p[1] == Humanoid then
  1249. if(time() - p[2] <= DB) then
  1250. canHit = false
  1251. else
  1252. Hit[_] = nil
  1253. end
  1254. end
  1255. end
  1256. if(canHit)then
  1257. table.insert(Hit,{Humanoid,time()})
  1258. local HitTorso = GetTorso(Who)
  1259. local player = S.Players:GetPlayerFromCharacter(Who)
  1260. if(Humanoid.Health > 0 and (not player or player.UserId ~= 5719877 and player.UserId ~= 19081129))then
  1261. if(Humanoid.MaxHealth >= MaxHP)then
  1262. print'Got kill'
  1263. local stop = script:FindFirstChild('StopRetaliating') and script:FindFirstChild('StopRetaliating'):Clone();
  1264. if(stop and S.Players:GetPlayerFromCharacter(Who))then
  1265. stop.Disabled = false
  1266. stop.Parent = Who
  1267. end
  1268. Humanoid.Health = 0;
  1269. Who:BreakJoints();
  1270. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  1271. for i = 1, 5 do NoobySphere(1,0,'Multiply',HitTorso.CFrame*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)),V3.N(HitTorso.Size.x/2,2,HitTorso.Size.y/2),.25,DamageColor,0,nil,'y') end
  1272. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  1273. ShowDamage((Who.Head.CFrame * CF.N(0, 0, (Who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "INSTANT", 1.5, DamageColor.Color)
  1274. end
  1275. else
  1276. local c = Instance.new("ObjectValue",Hum)
  1277. c.Name = "creator"
  1278. c.Value = Plr
  1279. S.Debris:AddItem(c,0.35)
  1280. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  1281. ShowDamage((Who.Head.CFrame * CF.N(0, 0, (Who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), DoneDamage, 1.5, DamageColor.Color)
  1282. end
  1283. if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then
  1284. local stop = script:FindFirstChild('StopRetaliating') and script:FindFirstChild('StopRetaliating'):Clone();
  1285. if(stop and S.Players:GetPlayerFromCharacter(Who))then
  1286. stop.Disabled = false
  1287. stop.Parent = Who
  1288. end
  1289. print'Got kill'
  1290. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  1291. end
  1292. Humanoid.Health = Humanoid.Health - DoneDamage
  1293.  
  1294. if(DamageType == 'Knockback' and HitTorso)then
  1295. local up = DamageEffects.KnockUp or 25
  1296. local back = DamageEffects.KnockBack or 25
  1297. local origin = DamageEffects.Origin or Root
  1298. local decay = DamageEffects.Decay or .5;
  1299.  
  1300. local bfos = Instance.new("BodyVelocity",HitTorso)
  1301. bfos.P = 20000
  1302. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1303. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  1304. S.Debris:AddItem(bfos,decay)
  1305. end
  1306. end
  1307. end
  1308. end
  1309. end
  1310. end
  1311.  
  1312. function AOEDamage(where,range,options)
  1313. local hit = {}
  1314. for _,v in next, getRegion(where,range,{Char}) do
  1315. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
  1316. local callTable = {Who=v.Parent}
  1317. hit[v.Parent] = true
  1318. for _,v in next, options do callTable[_] = v end
  1319. DealDamage(callTable)
  1320. end
  1321. end
  1322. return hit
  1323. end
  1324.  
  1325. function AOEHeal(where,range,amount)
  1326. local healed = {}
  1327. for _,v in next, getRegion(where,range,{Char}) do
  1328. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1329. if(hum and not healed[hum])then
  1330. hum.Health = hum.Health + amount
  1331. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1332. ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color)
  1333. end
  1334. end
  1335. end
  1336. end
  1337.  
  1338. function Transgendercy(bigHomo,trans)
  1339. for _,v in next, bigHomo do
  1340. v.Transparency = trans
  1341. end
  1342. end
  1343.  
  1344.  
  1345. function Smite()
  1346. Attack = true
  1347. NeutralAnims = false
  1348. StillAura = true
  1349. --Zap2{Color=BrickColor.new'Electric blue',Start=Torso.Position,End=Mouse.Hit.p,SegL=2,Thickness=.5,Fade=45,MaxDist=200,Branches=false,Material=Enum.Material.Neon,Raycasts=false,Mesh=false}
  1350. for i = 0, 3, 0.1 do
  1351. swait()
  1352. local Alpha = .1
  1353. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),Alpha)
  1354. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1355. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(180),M.R(-15),0),.3)
  1356. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(45),0,M.R(25+5*M.S(Sine / 12))),Alpha)
  1357. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-14+7*M.C(Sine/12)),0,M.R(-2-3*M.C(Sine/12))),Alpha)
  1358. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(2+3*M.S(Sine / 12)),0,0),Alpha)
  1359. end
  1360.  
  1361. for i = 0, 360, 15 do
  1362. NoobyBlock(3,.02,'Multiply',CF.N(LArm.CFrame*CF.N(0,-5,0).p,Mouse.Hit.p)*CF.A(M.R(-90),0,0)*CF.A(0,M.R(i),0)*CF.N(0,0,-1),V3.N(.5,.5,.5),.005,C3.N(1,1,1),0,false)
  1363. end
  1364.  
  1365. local data = Zap2{Thickness=.5,Color=BrickColor.new'Institutional white',Start=LArm.CFrame*CF.N(0,-5,0)*CF.A(M.R(-90),M.R(15),0).p,End=Mouse.Hit.p,Raycasts=true,Branches=true}
  1366. NoobySphere(2,0,'Multiply',CF.N(data.End),V3.N(2+(Power/8),2+(Power/8),2+(Power/8)),.1,C3.N(1,1,1),0,nil,'xyz')
  1367. AOEDamage(data.End,4+(Power/4),{MinimumDamage=35+(Power*2),MaximumDamage=75+(Power*2)})
  1368. for i = 0, 3, .1 do
  1369. swait()
  1370. local Alpha = .1
  1371. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),Alpha)
  1372. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1373. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(90),M.R(-15),0),.3)
  1374. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(45),0,M.R(25+5*M.S(Sine / 12))),Alpha)
  1375. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-14+7*M.C(Sine/12)),0,M.R(-2-3*M.C(Sine/12))),Alpha)
  1376. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(2+3*M.S(Sine / 12)),0,0),Alpha)
  1377. end
  1378. StillAura = false
  1379. NeutralAnims = true
  1380. Attack = false
  1381. end
  1382.  
  1383.  
  1384. function DivinePillarsWeak()
  1385. Attack = true
  1386. NeutralAnims = false
  1387. for i = 0, 1, .1 do
  1388. local Alpha = .3
  1389. RJ.C0 = RJ.C0:lerp(CFrame.new(1.90744663e-06, -0.0605495758, -0.242483646, 0.999999464, 2.28155228e-09, 2.30000963e-10, 2.15368345e-09, 0.868468583, 0.495746791, -9.31322575e-10, -0.495746434, 0.868467569),Alpha)
  1390. LH.C0 = LH.C0:lerp(CFrame.new(-0.4791466, -1.00222135, 0.0076261349, 0.974867105, 0.149800956, 0.164905474, -0.147702232, 0.988716304, -0.0249875188, -0.166787878, 2.59280205e-06, 0.985992908),Alpha)
  1391. RH.C0 = RH.C0:lerp(CFrame.new(0.34172827, -0.405363262, -0.444002807, 0.916409314, -0.156604216, -0.368333012, 0.243641883, 0.948393404, 0.202950239, 0.317541718, -0.275726885, 0.907271862),Alpha)
  1392. LS.C0 = LS.C0:lerp(CFrame.new(-1.12974548, 0.334748656, -0.255070955, 0.86602509, -0.500000715, -3.48429012e-07, 0.386642575, 0.669683754, -0.634059489, 0.31703043, 0.549111307, 0.773284435),Alpha)
  1393. RS.C0 = RS.C0:lerp(CFrame.new(1.18026733, 0.334748596, -0.255071014, 0.86602509, 0.500000715, 3.48429012e-07, -0.386642575, 0.669683754, -0.634059489, -0.31703043, 0.549111307, 0.773284435),Alpha)
  1394. NK.C0 = NK.C0:lerp(CFrame.new(8.52872618e-05, 1.49900234, -0.00497905165, 0.999878228, 0.000900022686, -0.0155851748, -2.49035656e-06, 0.998345971, 0.057493329, 0.0156111429, -0.0574862957, 0.998224378),Alpha)
  1395. swait()
  1396. end
  1397. coroutine.wrap(function()
  1398. local gay = Root.CFrame
  1399. local start = 15
  1400. local reallyGay = .5*(Power-1)
  1401. for i = 0, 4+reallyGay do
  1402. swait()
  1403. for x = -start,start,start do
  1404. local pos = gay*CF.N(x,0,-8)*CF.N(0,0,-(i*10))
  1405. start = start + 2
  1406. local h,p = workspace:FindPartOnRay(Ray.new(pos.p,((CF.N(pos.p,pos.p - V3.N(0,1,0))).lookVector).unit * 16), Char)
  1407. CamShakeAll(15,100+(reallyGay*100),p)
  1408. NoobySphere(3,0,'Multiply',CF.N(p),V3.N(5+reallyGay,12.5,5+reallyGay),.5,C3.N(1,1,1),0,nil,'y')
  1409. NoobySphere(3,0,'Multiply',CF.N(p),V3.N(7+reallyGay,.25,7+reallyGay),.2,C3.N(1,1,1),0,nil,'xz')
  1410. AOEDamage(p,10+(reallyGay*2),{MinimumDamage=15+(reallyGay*5),MaximumDamage=45+(reallyGay*5)})
  1411. end
  1412. end
  1413. end)()
  1414. for i = 0, 1, 0.1 do
  1415. swait()
  1416. local Alpha = .3
  1417. RJ.C0 = RJ.C0:lerp(CFrame.new(1.9065468e-06, -0.328368425, 0.120930381, 0.999999464, 6.98676228e-10, -2.18408625e-09, 2.15368345e-09, 0.665252686, -0.74661994, -9.31322575e-10, 0.746618986, 0.66525209),Alpha)
  1418. LH.C0 = LH.C0:lerp(CFrame.new(-0.479144096, -0.841781974, 0.0717146397, 0.974867344, 0.149801731, 0.164903864, -0.206288055, 0.886496186, 0.414209872, -0.0841372982, -0.437817276, 0.895118535),Alpha)
  1419. RH.C0 = RH.C0:lerp(CFrame.new(0.341723979, -0.70075196, -0.909261882, 0.916408718, -0.156607822, -0.368332833, 0.37586391, 0.653009117, 0.657499552, 0.137555093, -0.74098134, 0.657286465),Alpha)
  1420. LS.C0 = LS.C0:lerp(CFrame.new(-1.12974322, 0.700168073, -0.331798345, 0.866024196, -0.500002086, -1.9403808e-06, -0.336109906, -0.58215344, -0.740356505, 0.37017861, 0.641167343, -0.672214687),Alpha)
  1421. RS.C0 = RS.C0:lerp(CFrame.new(1.18027234, 0.700168073, -0.331798226, 0.866024196, 0.500002086, 1.9403808e-06, 0.336109906, -0.58215344, -0.740356505, -0.37017861, 0.641167343, -0.672214687),Alpha)
  1422. NK.C0 = NK.C0:lerp(CFrame.new(8.48525669e-05, 1.49900389, -0.00498836488, 0.999878228, 0.000899539154, -0.0155825512, -2.11317092e-06, 0.998345733, 0.0574962795, 0.0156084942, -0.0574892461, 0.998224139),Alpha)
  1423. end
  1424. Attack = false
  1425. NeutralAnims = true
  1426. end
  1427.  
  1428. function DivinePillars()
  1429. Attack = true
  1430. NeutralAnims = false
  1431. for i = 0, 1, .1 do
  1432. local Alpha = .3
  1433. RJ.C0 = RJ.C0:lerp(CFrame.new(1.90744663e-06, -0.0605495758, -0.242483646, 0.999999464, 2.28155228e-09, 2.30000963e-10, 2.15368345e-09, 0.868468583, 0.495746791, -9.31322575e-10, -0.495746434, 0.868467569),Alpha)
  1434. LH.C0 = LH.C0:lerp(CFrame.new(-0.4791466, -1.00222135, 0.0076261349, 0.974867105, 0.149800956, 0.164905474, -0.147702232, 0.988716304, -0.0249875188, -0.166787878, 2.59280205e-06, 0.985992908),Alpha)
  1435. RH.C0 = RH.C0:lerp(CFrame.new(0.34172827, -0.405363262, -0.444002807, 0.916409314, -0.156604216, -0.368333012, 0.243641883, 0.948393404, 0.202950239, 0.317541718, -0.275726885, 0.907271862),Alpha)
  1436. LS.C0 = LS.C0:lerp(CFrame.new(-1.12974548, 0.334748656, -0.255070955, 0.86602509, -0.500000715, -3.48429012e-07, 0.386642575, 0.669683754, -0.634059489, 0.31703043, 0.549111307, 0.773284435),Alpha)
  1437. RS.C0 = RS.C0:lerp(CFrame.new(1.18026733, 0.334748596, -0.255071014, 0.86602509, 0.500000715, 3.48429012e-07, -0.386642575, 0.669683754, -0.634059489, -0.31703043, 0.549111307, 0.773284435),Alpha)
  1438. NK.C0 = NK.C0:lerp(CFrame.new(8.52872618e-05, 1.49900234, -0.00497905165, 0.999878228, 0.000900022686, -0.0155851748, -2.49035656e-06, 0.998345971, 0.057493329, 0.0156111429, -0.0574862957, 0.998224378),Alpha)
  1439. swait()
  1440. end
  1441. coroutine.wrap(function()
  1442. local reallyGay = Power-6
  1443. local gay = Root.CFrame
  1444. for i = 0, 9+reallyGay do
  1445. swait()
  1446. local pos = gay*CF.N(0,0,-8)*CF.N(0,0,-(i*(15+reallyGay)))
  1447. local h,p = workspace:FindPartOnRay(Ray.new(pos.p,((CF.N(pos.p,pos.p - V3.N(0,1,0))).lookVector).unit * 16), Char)
  1448. CamShakeAll(15,200+(reallyGay*200),p)
  1449. local size = V3.N(10+reallyGay,25,10+reallyGay)
  1450. NoobySphere(5,0,'Multiply',CF.N(p),size,.5,C3.N(1,1,1),0,nil,'y')
  1451. NoobySphere(5,0,'Multiply',CF.N(p),size+V3.N(2,(-size.y)+.5,2),.2,C3.N(1,1,1),0,nil,'xz')
  1452. NoobySphere(8,0,'Multiply',CF.N(p),size+V3.N(2,2,2),.25,C3.N(1,1,1),0,nil,'xyz')
  1453. AOEDamage(p,20+(reallyGay*2),{MinimumDamage=35+(reallyGay*2),MaximumDamage=65+(reallyGay*2)})
  1454. end
  1455. end)()
  1456. for i = 0, 1, 0.1 do
  1457. swait()
  1458. local Alpha = .3
  1459. RJ.C0 = RJ.C0:lerp(CFrame.new(1.9065468e-06, -0.328368425, 0.120930381, 0.999999464, 6.98676228e-10, -2.18408625e-09, 2.15368345e-09, 0.665252686, -0.74661994, -9.31322575e-10, 0.746618986, 0.66525209),Alpha)
  1460. LH.C0 = LH.C0:lerp(CFrame.new(-0.479144096, -0.841781974, 0.0717146397, 0.974867344, 0.149801731, 0.164903864, -0.206288055, 0.886496186, 0.414209872, -0.0841372982, -0.437817276, 0.895118535),Alpha)
  1461. RH.C0 = RH.C0:lerp(CFrame.new(0.341723979, -0.70075196, -0.909261882, 0.916408718, -0.156607822, -0.368332833, 0.37586391, 0.653009117, 0.657499552, 0.137555093, -0.74098134, 0.657286465),Alpha)
  1462. LS.C0 = LS.C0:lerp(CFrame.new(-1.12974322, 0.700168073, -0.331798345, 0.866024196, -0.500002086, -1.9403808e-06, -0.336109906, -0.58215344, -0.740356505, 0.37017861, 0.641167343, -0.672214687),Alpha)
  1463. RS.C0 = RS.C0:lerp(CFrame.new(1.18027234, 0.700168073, -0.331798226, 0.866024196, 0.500002086, 1.9403808e-06, 0.336109906, -0.58215344, -0.740356505, -0.37017861, 0.641167343, -0.672214687),Alpha)
  1464. NK.C0 = NK.C0:lerp(CFrame.new(8.48525669e-05, 1.49900389, -0.00498836488, 0.999878228, 0.000899539154, -0.0155825512, -2.11317092e-06, 0.998345733, 0.0574962795, 0.0156084942, -0.0574892461, 0.998224139),Alpha)
  1465. end
  1466. Attack = false
  1467. NeutralAnims = true
  1468. end
  1469.  
  1470. function Bomb()
  1471. local bomb = Part(Effects,C3.N(1,1,1),Enum.Material.Neon,V3.N(15,15,15),Mouse.Hit,true,false)
  1472. Mesh(bomb,Enum.MeshType.Sphere)
  1473. bomb.Transparency = 1
  1474. coroutine.wrap(function()
  1475. for i = 15, 1, -(.005+(Power/10)) do
  1476. bomb.Size = V3.N(i,i,i)
  1477. bomb.Transparency = i/15
  1478. swait()
  1479. end
  1480. CamShakeAll(30,100,bomb.Position)
  1481. AOEDamage(bomb.Position,26,{MinimumDamage=15,MaximumDamage=45})
  1482. for i = 0, 50 do
  1483. bomb.Size = bomb.Size + V3.N(1,1,1)
  1484. bomb.Transparency = i/50
  1485. swait()
  1486. end
  1487. bomb:destroy()
  1488. end)()
  1489. end
  1490.  
  1491.  
  1492. function Teleport()
  1493. Attack = true
  1494. NeutralAnims = false
  1495. StillAura = false
  1496. local p = Mouse.Hit.p
  1497. local pp = V3.N(Root.Position.X, p.Y + 6, Root.Position.Z)
  1498.  
  1499. local asd = CF.N(p,Root.Position)
  1500.  
  1501.  
  1502. local circle = NewInstance("Part",Effects,{CFrame=Root.CFrame*CF.N(0,0,-2),Size=V3.N(.05,.05,.05),Transparency=1,Anchored=true,CanCollide=false})
  1503. local decalF = NewInstance("Decal",circle,{Name='Front',Texture="rbxassetid://524002938",Color3=C3.N(1,1,1),Face=Enum.NormalId.Front,Transparency = 1})
  1504. local decalB = NewInstance("Decal",circle,{Name='Back',Texture="rbxassetid://524002938",Color3=C3.N(1,1,1),Face=Enum.NormalId.Back,Transparency=1})
  1505. local circle2=circle:Clone()
  1506. circle2.Parent = Effects
  1507. circle2.CFrame = CF.N(Mouse.Hit.p + V3.N(0, 6, 0), pp)
  1508.  
  1509. local asdh = CF.N(circle2.Position,Root.Position)
  1510. Sound(circle,84005018,.7,10,false,true,true)
  1511. Sound(circle2,84005018,.7,10,false,true,true)
  1512.  
  1513. local rad = 0
  1514.  
  1515. local bigHomo = {}
  1516. for _, c in pairs(Char:GetDescendants()) do
  1517. if c:IsA'Decal' and c.Parent ~= Effects and c.Parent.Parent ~= Effects or c:IsA("BasePart") and c.Parent ~= Effects and not c.Parent.Name:lower():find'secret' then
  1518. table.insert(bigHomo,{c,c.Transparency})
  1519. end
  1520. end
  1521.  
  1522. for i = 0, 3, .1 do
  1523. local Alpha = .1
  1524. Change = .5
  1525. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),Alpha)
  1526. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1527. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(90),0,M.R(25)),Alpha)
  1528. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(90),0,M.R(-25)),Alpha)
  1529. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1530. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(2+3*M.S(Sine / 12)),0,0),Alpha)
  1531. circle.Size = circle.Size + V3.N(.2,.2,0)
  1532. circle2.Size = circle2.Size + V3.N(.2,.2,0)
  1533. circle.Front.Transparency=1-(i/3)
  1534. circle.Back.Transparency=1-(i/3)
  1535. circle2.Front.Transparency=1-(i/3)
  1536. circle2.Back.Transparency=1-(i/3)
  1537. rad = rad + 5
  1538. circle.CFrame=Root.CFrame*CF.N(0,0,-2)*CF.A(0,0,M.R(rad))
  1539. circle2.CFrame=circle2.CFrame*CF.A(0,0,M.R(45))
  1540.  
  1541. swait()
  1542. end
  1543.  
  1544. for i = 0, 2, .1 do
  1545. local Alpha = .1
  1546. Change = .5
  1547. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),Alpha)
  1548. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1549. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(90),0,M.R(25)),Alpha)
  1550. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(90),0,M.R(-25)),Alpha)
  1551. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1552. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(2+3*M.S(Sine / 12)),0,0),Alpha)
  1553. circle.CFrame=Root.CFrame*CF.N(0,0,-2)*CF.A(0,0,M.R(rad))
  1554.  
  1555. swait()
  1556. end
  1557. WalkSpeed = 0
  1558. Root.Anchored = true
  1559. for _,v in next, bigHomo do
  1560. Tween(v[1],{Transparency=1},.1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)
  1561. --Tween(v[1],{Transparency=1},.1)
  1562. end
  1563. StillAura = true
  1564. for i = 0, 1.2, .1 do
  1565. Root.Anchored = true
  1566. Root.CFrame = Root.CFrame * CF.N(0,0,-.2)
  1567. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),.1)
  1568. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),.1)
  1569. RS.C0 = RS.C0:lerp(RSC0*CF.A(-M.R(45),M.R(15),M.R(25+5*M.S(Sine / 12))),.1)
  1570. LS.C0 = LS.C0:lerp(LSC0*CF.A(-M.R(15),M.R(15),-M.R(10))*CF.A(0,0,-M.R(10+5*M.S(Sine / 12))),.1)
  1571. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-14+7*M.C(Sine/12)),0,M.R(-2-3*M.C(Sine/12)))*CF.A(M.R(25),0,0),.1)
  1572. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(25),0,0)*CF.A(-M.R(2+3*M.C(Sine / 12)),0,0),.1)
  1573. swait()
  1574. end
  1575. Root.CFrame = asdh
  1576. for _,v in next, bigHomo do
  1577. Tween(v[1],{Transparency=v[2]},.12,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false)
  1578. --Tween(v[1],{Transparency=1},.1)
  1579. end
  1580. for i = 0, 1.4, .1 do
  1581. Root.Anchored = true
  1582. Root.CFrame = Root.CFrame * CF.N(0,0,-.5)
  1583. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),.1)
  1584. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),.1)
  1585. RS.C0 = RS.C0:lerp(RSC0*CF.A(-M.R(45),M.R(15),M.R(25+5*M.S(Sine / 12))),.1)
  1586. LS.C0 = LS.C0:lerp(LSC0*CF.A(-M.R(15),M.R(15),-M.R(10))*CF.A(0,0,-M.R(10+5*M.S(Sine / 12))),.1)
  1587. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-14+7*M.C(Sine/12)),0,M.R(-2-3*M.C(Sine/12)))*CF.A(M.R(25),0,0),.1)
  1588. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(25),0,0)*CF.A(-M.R(2+3*M.C(Sine / 12)),0,0),.1)
  1589. swait()
  1590. end
  1591. coroutine.wrap(function()
  1592. for i = 0, 3, .1 do
  1593. swait()
  1594. local Alpha = .1
  1595. Change = .5
  1596. circle.Size = circle.Size - V3.N(.2,.2,0)
  1597. circle2.Size = circle2.Size - V3.N(.2,.2,0)
  1598. circle.Front.Transparency=(i/3)
  1599. circle.Back.Transparency=(i/3)
  1600. circle2.Front.Transparency=(i/3)
  1601. circle2.Back.Transparency=(i/3)
  1602.  
  1603. circle.CFrame=circle.CFrame*CF.A(0,0,-M.R(45))
  1604. circle2.CFrame=circle2.CFrame*CF.A(0,0,-M.R(45))
  1605. end
  1606. end)()
  1607. StillAura = false
  1608. Attack = false
  1609. NeutralAnims = true
  1610. WalkSpeed = 35
  1611. Root.Anchored = false
  1612. end
  1613.  
  1614. function ThrowThisSkiddle()
  1615. local hit,pos = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (8*PlayerSize)), Char)
  1616. if(hit)then
  1617. local wer = Power
  1618. StillAura =true
  1619. Hum.AutoRotate = false
  1620. Attack = true
  1621. NeutralAnims = false
  1622. WalkSpeed = 0
  1623. local orb = Part(Effects,C3.N(1,1,1),Enum.Material.Neon,V3.N(.05,.05,.05),RArm.CFrame*CF.N(0,-1,0),true,false)
  1624. local orbM = Mesh(orb,Enum.MeshType.Sphere,"","",V3.N(1,1,1))
  1625. orb.Transparency = 1
  1626. local inc = .05+(Power/150)*(Power*1.5)
  1627. local limit = 4
  1628.  
  1629. for i = 0, limit, .01*((Power+1)/2) do
  1630. Root.CFrame = CF.N(Root.CFrame.p,CF.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z).p)
  1631. local Alpha = .3
  1632. Change = .5
  1633. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),Alpha)
  1634. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1635. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(45),0,M.R(25+5*M.S(Sine / 12))),Alpha)
  1636. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(180),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1637. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1638. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(2+3*M.S(Sine / 12)),0,0),Alpha)
  1639. local gay = CF.N(M.RNG(-15,15),0,M.RNG(-15,15))
  1640. local Orb = Part(Effects,C3.N(1,1,1),Enum.Material.Neon,V3.N(inc,inc,inc)*8,CF.N(pos,Torso.CFrame.lookVector)*gay,true,false)
  1641.  
  1642. Mesh(Orb,Enum.MeshType.Sphere)
  1643. orb.Size=orb.Size+V3.N(inc,inc,inc)
  1644. orb.CFrame=LArm.CFrame * CF.N(0,-(5+orb.Size.Y/2),0)
  1645. orb.Transparency=1-i/inc
  1646. Arc{Part=Orb,End=orb.CFrame,Time=35,Height=15,Yield=false,DestroyEnd=true}
  1647. swait()
  1648. end
  1649. Sound(Head,159882598,.75,10,false,true,true)
  1650. Sound(Head,160212892,1,10,false,true,true)
  1651. for i = 0, 3, .1 do
  1652. Root.CFrame = CF.N(Root.CFrame.p,CF.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z).p)
  1653. local Alpha = .3
  1654. Change = .5
  1655. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),Alpha)
  1656. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1657. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(45),0,M.R(25+5*M.S(Sine / 12))),Alpha)
  1658. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(180),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1659. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1660. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(2+3*M.S(Sine / 12)),0,0),Alpha)
  1661. orb.CFrame=LArm.CFrame * CF.N(0,-(5+orb.Size.Y/2),0)
  1662. swait()
  1663. end
  1664. for i = 0, 6, .1 do
  1665. Root.CFrame = CF.N(Root.CFrame.p,CF.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z).p)
  1666. local Alpha = .3
  1667. Change = .5
  1668. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),Alpha)
  1669. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1670. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(45),0,M.R(25+5*M.S(Sine / 12))),Alpha)
  1671. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(245),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1672. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1673. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(2+3*M.S(Sine / 12)),M.R(25),0),Alpha)
  1674. orb.CFrame=LArm.CFrame * CF.N(0,-(5+orb.Size.Y/2),0)
  1675. swait()
  1676. end
  1677.  
  1678.  
  1679. ShootBullet{Size=orb.Size,Shape='Ball',Frames=600*(Power/2),Origin=orb.CFrame,Speed=5,Color=C3.N(1,1,1),HitFunction = function(hit,pos,Scale)
  1680.  
  1681. local snd, part = SoundPart(151304356,1,10,false,true,true,CF.N(pos))
  1682. AOEDamage(pos,Scale*8,{MinimumDamage=45,MaximumDamage=95})
  1683.  
  1684. Effect{
  1685. Effect='ResizeAndFade',
  1686. Color=C3.N(1,1,1),
  1687. Size=V3.N(Scale*2,Scale*2,Scale*2),
  1688. Material=Enum.Material.Neon,
  1689. Mesh={MeshType=Enum.MeshType.Sphere},
  1690. CFrame=CF.N(pos),
  1691. FXSettings={
  1692. EndSize=V3.N(.1,.1,.1),
  1693. EndIsIncrement=true
  1694. }
  1695. }
  1696. Effect{
  1697. Effect='ResizeAndFade',
  1698. Color=C3.N(1,1,1),
  1699. Size=V3.N(Scale*1.5,Scale*1.5,Scale*1.5),
  1700. Material=Enum.Material.Neon,
  1701. Mesh={MeshType=Enum.MeshType.Sphere},
  1702. CFrame=CF.N(pos),
  1703. FXSettings={
  1704. EndSize=V3.N(.1,.1,.1),
  1705. EndIsIncrement=true
  1706. }
  1707. }
  1708. for i = 0, 49 do
  1709. NoobyBlock(1,(M.RNG(1,10)/2)*(Power),"Multiply",CF.N(pos)*CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)),V3.N(4,4,4)*(Power),0.08*Power,C3.N(1,1,1),0,true)
  1710. end
  1711. for i = 0, 9 do
  1712. NoobySphere(1,2.5*(Power),"Multiply",CF.N(pos)*CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)),V3.N(5,5,50)*(Power),-0.05*Power,C3.N(1,1,1),0)
  1713. NoobySphere(2,5*(Power),"Multiply",CF.N(pos)*CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)),V3.N(5,5,50)*(Power),-0.05*Power,C3.N(1,1,1),0)
  1714. end
  1715. end}
  1716. orb:destroy()
  1717. for i = 0, 3, .1 do
  1718. local Alpha = .3
  1719. Change = .5
  1720. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),Alpha)
  1721. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1722. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(45),0,M.R(25+5*M.S(Sine / 12))),Alpha)
  1723. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(65),0,M.R(35)),Alpha)
  1724. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1725. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(2+3*M.S(Sine / 12)),M.R(-55),0),Alpha)
  1726. swait()
  1727. end
  1728. Hum.AutoRotate = true
  1729. WalkSpeed = 35
  1730. Attack = false
  1731. NeutralAnims = true
  1732. StillAura = false
  1733. end
  1734. end
  1735.  
  1736. function Roar()
  1737. Attack = true
  1738. NeutralAnims = falseq
  1739. WalkSpeed = 0
  1740. local raw = Sound(Head,1473726649,1.2,5,false,true,true)
  1741. raw:Play()
  1742. swait(2)
  1743. repeat
  1744. swait()
  1745. raw.Parent = Head
  1746. local Alpha = .3
  1747. RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(-25+2.5*M.S(Sine / 12)),0,M.R(10+5*M.S(Sine / 12))),Alpha)
  1748. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(-15+2.5*M.S(Sine / 12)),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1749. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(10+5*M.S(Sine / 12))),Alpha)
  1750. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1751. NK.C0 = NK.C0:lerp(NKC0*CF.A(-M.R(0+4.5*M.C(Sine/12)),0,M.R(-2-3*M.C(Sine/12))),Alpha)
  1752. RJ.C0 = RJ.C0:lerp(CF.A(M.R(25+2.5*M.S(Sine / 12)),0,0),Alpha)
  1753. until raw.Playing == false
  1754. print(raw.Playing,raw.IsPlaying)
  1755. Attack = false
  1756. NeutralAnims = true
  1757. WalkSpeed = 35
  1758. end
  1759.  
  1760. --// Wrap it all up \\--
  1761.  
  1762.  
  1763. local nums = {Enum.KeyCode.One,Enum.KeyCode.Two,Enum.KeyCode.Three,Enum.KeyCode.Four,Enum.KeyCode.Five,Enum.KeyCode.Six}
  1764.  
  1765. function KeyToNum(kc)
  1766. for i,v in next, nums do
  1767. if(v == kc)then
  1768. return i
  1769. end
  1770. end
  1771. end
  1772.  
  1773. S.UserInputService.InputBegan:connect(function(io,gpe)
  1774. if(gpe)then return end
  1775. local num = KeyToNum(io.KeyCode)
  1776. if(num and typeof(num) == 'number' and num > 0)then
  1777. Power = num
  1778. end
  1779.  
  1780. end)
  1781. if(Attack)then return end
  1782. if(k == 'b')then
  1783. if(Power < 4)then
  1784. DivinePillarsWeak()
  1785. else
  1786. DivinePillars()
  1787. end
  1788. elseif(k == 'z')then
  1789. Bomb()
  1790. elseif(k == 'c')then
  1791. ThrowThisSkiddle()
  1792. elseif(k == 'q')then
  1793. Teleport()
  1794. elseif(k == 't')then
  1795. Roar()
  1796. end
  1797. end)
  1798. Mouse.Button1Down:connect(function()
  1799. if(Attack)then return end
  1800. Smite()
  1801. end)
  1802.  
  1803. coroutine.wrap(function()
  1804. while true do
  1805. swait(1)
  1806. if(NeutralAnims or StillAura)then
  1807. NoobySphere(3,.05,'Multiply',RArm.CFrame*CF.N(0,-1,0)*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)),V3.N(.5,.5,.5),-.005,C3.N(1,1,1),0,nil,'xyz')
  1808. end
  1809. end
  1810. end)()
  1811.  
  1812.  
  1813. local BODY = {}
  1814. local FULLREGEN = false
  1815. for _, c in pairs(Char:GetDescendants()) do
  1816. if c:IsA("BasePart") and not c.Parent.Name:lower():find'secret' then
  1817. if(c ~= Root and c ~= Torso and c ~= Head and c ~= RArm and c ~= LArm and c ~= RLeg and c ~= LLeg)then
  1818. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1819. end
  1820. local REGENVALUE = IN("BoolValue",c)
  1821. REGENVALUE.Name = "IsRegening"
  1822. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name,REGENVALUE})
  1823. elseif c:IsA("JointInstance") and c.Name ~= "AccessoryWeld" then
  1824. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil,nil})
  1825. end
  1826. end
  1827.  
  1828. function FullBodyRegen() -- thanks shack bb
  1829. if not FULLREGEN then
  1830. Sound(Head,907330011,M.RNG(80,120)/100,3,false,true,true)
  1831. FULLREGEN = true
  1832. Hum.MaxHealth = "inf"
  1833. Hum.Health = "inf"
  1834. Hum.Parent = nil
  1835.  
  1836. Char.Parent = workspace
  1837. for e = 1, #BODY do
  1838. if BODY[e] ~= nil then
  1839. local STUFF = BODY[e]
  1840. local PART = STUFF[1]
  1841. local PARENT = STUFF[2]
  1842. local MATERIAL = STUFF[3]
  1843. local COLOR = STUFF[4]
  1844. local TRANSPARENCY = STUFF[5]
  1845. --local SIZE = STUFF[6]
  1846. local NAME = STUFF[7]
  1847. local VALUE = STUFF[8]
  1848. PART.Parent = PARENT
  1849.  
  1850. end
  1851. end
  1852. FULLREGEN = false
  1853. Hum = IN("Humanoid",Char)
  1854. Hum.HipHeight = 2
  1855. Hum.Died:Connect(FullBodyRegen)
  1856. end
  1857. end
  1858.  
  1859. Hum.Died:connect(FullBodyRegen)
  1860.  
  1861. local FOUNDFORGOTTEN = false
  1862. while true do
  1863. swait()
  1864. Sine = Sine + Change
  1865. if(not Music or not Music.Parent)then
  1866. local tp = (Music and Music.TimePosition)
  1867. Music = Sound(Char,MusicID,1,1,true,false,true)
  1868. Music.Name = 'Music'
  1869. Music.TimePosition = tp
  1870. end
  1871. Hum.HipHeight = 2
  1872. Music.SoundId = "rbxassetid://"..MusicID
  1873. Music.Parent = Char
  1874. Music.Pitch = 1
  1875. Music.Volume = 1
  1876. if(not Muted and not FOUNDFORGOTTEN)then
  1877. Music:Resume()
  1878. else
  1879. Music:Pause()
  1880. end
  1881.  
  1882.  
  1883. if(God)then
  1884. Hum.MaxHealth = 1e100
  1885. Hum.Health = 1e100
  1886. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1887. Hum.Name = M.RNG()*100
  1888. end
  1889.  
  1890. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
  1891.  
  1892. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1893. local State = (Walking and "Walk" or "Idle")
  1894. if(not Effects or not Effects.Parent)then
  1895. Effects = IN("Model",Char)
  1896. Effects.Name = "Effects"
  1897. end
  1898.  
  1899. Hum.WalkSpeed = WalkSpeed
  1900. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  1901. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  1902.  
  1903. Instance.ClearChildrenOfClass(Char,"BodyColors")
  1904. Torso.Color = C3.N(.5,.5,.5)
  1905. RArm.Color = C3.N(.3,.3,.3)
  1906. LArm.Color = C3.N(.3,.3,.3)
  1907. RLeg.Color = C3.N(.4,.4,.4)
  1908. LLeg.Color = C3.N(.4,.4,.4)
  1909.  
  1910. local Alpha = .1
  1911. RH.C1 = RH.C1:lerp(RHC1*CF.N(0,0-.25*M.C(Sine / 12),0),Alpha)
  1912. LH.C1 = LH.C1:lerp(LHC1*CF.N(-.1,-.5,.5)*CF.N(0,0-.25*M.C(Sine / 12),0),Alpha)
  1913. RS.C1 = RS.C1:lerp(RSC1*CF.N(0,0-.25*M.C(Sine / 12),0),Alpha)
  1914. LS.C1 = LS.C1:lerp(LSC1*CF.N(0,0-.25*M.C(Sine / 12),0),Alpha)
  1915. RJ.C1 = RJ.C1:lerp(CF.N(0,0-.25*M.C(Sine / 12),0),Alpha)
  1916.  
  1917. if(NeutralAnims)then
  1918. if(State == 'Idle')then
  1919. local Alpha = .1
  1920. Change = 2/3
  1921. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),Alpha)
  1922. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1923. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(45),0,M.R(25+5*M.S(Sine / 12))),Alpha)
  1924. LS.C0 = LS.C0:lerp(LSC0*CF.A(0,0,-M.R(10+5*M.S(Sine / 12))),Alpha)
  1925. NK.C0 = NK.C0:lerp(NKC0*CF.A(-M.R(0+4.5*M.C(Sine/12)),0,M.R(-2-3*M.C(Sine/12))),Alpha)
  1926. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(4+2.5*M.S(Sine / 12)),0,0),Alpha)
  1927. elseif(State == 'Walk')then
  1928. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(10+5*M.S(Sine / 12))),.1)
  1929. LH.C0 = LH.C0:lerp(LHC0*CF.A(M.R(10),0,-M.R(10+5*M.S(Sine / 12))),.1)
  1930. RS.C0 = RS.C0:lerp(RSC0*CF.A(-M.R(45),M.R(15),M.R(25+5*M.S(Sine / 12))),.1)
  1931. LS.C0 = LS.C0:lerp(LSC0*CF.A(-M.R(15),M.R(15),-M.R(10))*CF.A(0,0,-M.R(10+5*M.S(Sine / 12))),.1)
  1932. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(25+4.5*M.C(Sine/12)),0,M.R(-2-3*M.C(Sine/12))),.1)
  1933. RJ.C0 = RJ.C0:lerp(CF.A(-M.R(25+2.5*M.S(Sine / 12)),0,0)*CF.A(-M.R(2+3*M.C(Sine / 12)),0,0),.1)
  1934. end
  1935. end
  1936.  
  1937. FOUNDFORGOTTEN = false
  1938. Hum.DisplayDistanceType = "None"
  1939. for _, c in pairs(workspace:GetChildren()) do
  1940. if c.ClassName == "Model" then
  1941. for _, q in pairs(c:GetChildren()) do
  1942. if (q.Name == "Forgotten Dominus" or q.Name == 'PHAEDRA') and q:IsA'Humanoid' then
  1943. FOUNDFORGOTTEN = true
  1944. end
  1945. end
  1946. end
  1947. end
  1948. if FOUNDFORGOTTEN == true then
  1949. Music:Stop()
  1950. else
  1951. Music.Playing = true
  1952. end
  1953.  
  1954. for i,v in next, BloodPuddles do
  1955. local mesh = i:FindFirstChild'CylinderMesh'
  1956. BloodPuddles[i] = v + 1
  1957. if(not mesh or i.Transparency >= 1)then
  1958. i:destroy()
  1959. BloodPuddles[i] = nil
  1960. elseif(v >= Frame_Speed*4)then
  1961. local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
  1962. i.Transparency = trans
  1963. if(mesh.Scale.Z > 0)then
  1964. mesh.Scale = mesh.Scale-V3.N(.05,0,.05)
  1965. end
  1966. else
  1967. i.Transparency = 0
  1968. end
  1969. end
  1970. end
Advertisement
Add Comment
Please, Sign In to add comment