Advertisement
zephpsian

Untitled

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