TheYoutuber_Pro

FE Sans if is not fe please KILL ME

May 18th, 2020 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.21 KB | None | 0 0
  1. warn("Made FE by AydenGamin's FE compatibility script. Link: https://pastebin.com/zxnXeDZA")
  2. wait(1)
  3. warn("Bypassing / Injecting into FE...")
  4. wait(0.2)
  5. warn("Done! Running script in 2 seconds!")
  6. wait(2)
  7. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  8. local Player,game,owner = owner,game
  9. local RealPlayer = Player
  10. do
  11. print("FE void script maker compatibility V2 by AydenGamin")
  12. local RealPlayer = RealPlayer
  13. script.Parent = RealPlayer.Character
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local Disconnect_Function = function(this)
  17. this[1].Functions[this[2]] = nil
  18. end
  19. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  20. local FakeEvent_Metatable = {__index={
  21. Connect = function(this,f)
  22. local i = tostring(math.random(0,10000))
  23. while this.Functions[i] do
  24. i = tostring(math.random(0,10000))
  25. end
  26. this.Functions[i] = f
  27. return setmetatable({this,i},Disconnect_Metatable)
  28. end
  29. }}
  30. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  31. local function fakeEvent()
  32. return setmetatable({Functions={}},FakeEvent_Metatable)
  33. end
  34.  
  35. --Creating fake input objects with fake variables
  36. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  37. FakeMouse.keyUp = FakeMouse.KeyUp
  38. FakeMouse.keyDown = FakeMouse.KeyDown
  39. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  40. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  41. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  42. end}
  43. --Merged 2 functions into one by checking amount of arguments
  44. CAS.UnbindAction = CAS.BindAction
  45.  
  46. --This function will trigger the events that have been :Connect()'ed
  47. local function TriggerEvent(self,ev,...)
  48. for _,f in pairs(self[ev].Functions) do
  49. f(...)
  50. end
  51. end
  52. FakeMouse.TriggerEvent = TriggerEvent
  53. UIS.TriggerEvent = TriggerEvent
  54.  
  55. --Client communication
  56. local Event = Instance.new("RemoteEvent")
  57. Event.Name = "UserInput_Event"
  58. Event.OnServerEvent:Connect(function(plr,io)
  59. if plr~=RealPlayer then return end
  60. FakeMouse.Target = io.Target
  61. FakeMouse.Hit = io.Hit
  62. if not io.isMouse then
  63. local b = io.UserInputState == Enum.UserInputState.Begin
  64. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  65. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  66. end
  67. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  68. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  69. end
  70. for _,t in pairs(CAS.Actions) do
  71. for _,k in pairs(t.Keys) do
  72. if k==io.KeyCode then
  73. t.Function(t.Name,io.UserInputState,io)
  74. end
  75. end
  76. end
  77. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  78. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  79. end
  80. end)
  81. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  82. local Mouse = owner:GetMouse()
  83. local UIS = game:GetService("UserInputService")
  84. local input = function(io,RobloxHandled)
  85. if RobloxHandled then return end
  86. --Since InputObject is a client-side instance, we create and pass table instead
  87. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  88. end
  89. UIS.InputBegan:Connect(input)
  90. UIS.InputEnded:Connect(input)
  91. local h,t
  92. --Give the server mouse data every second frame, but only if the values changed
  93. --If player is not moving their mouse, client won't fire events
  94. local HB = game:GetService("RunService").Heartbeat
  95. while true do
  96. if h~=Mouse.Hit or t~=Mouse.Target then
  97. h,t=Mouse.Hit,Mouse.Target
  98. Event:FireServer({isMouse=true,Target=t,Hit=h})
  99. end
  100. --Wait 2 frames
  101. for i=1,2 do
  102. HB:Wait()
  103. end
  104. end]==],script)
  105.  
  106. ----Sandboxed game object that allows the usage of client-side methods and services
  107. --Real game object
  108. local RealGame = game
  109.  
  110. --Metatable for fake service
  111. local FakeService_Metatable = {
  112. __index = function(self,k)
  113. local s = rawget(self,"_RealService")
  114. if s then
  115. return typeof(s[k])=="function"
  116. and function(_,...)return s[k](s,...)end or s[k]
  117. end
  118. end,
  119. __newindex = function(self,k,v)
  120. local s = rawget(self,"_RealService")
  121. if s then s[k]=v end
  122. end
  123. }
  124. local function FakeService(t,RealService)
  125. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  126. return setmetatable(t,FakeService_Metatable)
  127. end
  128.  
  129. --Fake game object
  130. local FakeGame = {
  131. GetService = function(self,s)
  132. return rawget(self,s) or RealGame:GetService(s)
  133. end,
  134. Players = FakeService({
  135. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  136. },"Players"),
  137. UserInputService = FakeService(UIS,"UserInputService"),
  138. ContextActionService = FakeService(CAS,"ContextActionService"),
  139. RunService = FakeService({
  140. _btrs = {},
  141. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  142. BindToRenderStep = function(self,name,_,fun)
  143. self._btrs[name] = self.Heartbeat:Connect(fun)
  144. end,
  145. UnbindFromRenderStep = function(self,name)
  146. self._btrs[name]:Disconnect()
  147. end,
  148. },"RunService")
  149. }
  150. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  151. FakeGame.service = FakeGame.GetService
  152. FakeService(FakeGame,game)
  153. --Changing owner to fake player object to support owner:GetMouse()
  154. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  155. end
  156. -- Created by Nebula_Zorua --
  157. -- Sans Curse (A Curse of Light) --
  158. -- Custom Arcane Adventures Magic --
  159. -- Wielder: Everybody (Released) --
  160. -- Why the freak did I make this --
  161. -- I don't even LIKE undertale --
  162. -- what the freak --
  163.  
  164. -- Discord: Nebula the Zorua#6969
  165. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  166.  
  167. -- You can change the Magic Circle n stuff down under Customization, at MagicVariant --
  168.  
  169.  
  170. --// Shortcut Variables \\--
  171. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  172. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  173. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  174. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  175. 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}
  176. local R3 = {N=Region3.new}
  177. local De = S.Debris
  178. local WS = workspace
  179. local Lght = S.Lighting
  180. local RepS = S.ReplicatedStorage
  181. local IN = Instance.new
  182. local Plrs = S.Players
  183.  
  184. local Emit = IN("ParticleEmitter").Emit;
  185.  
  186. --// Initializing \\--
  187. local Plr = Plrs.LocalPlayer
  188. local Char = Plr.Character
  189. local Hum = Char:FindFirstChildOfClass'Humanoid'
  190. local RArm = Char["Right Arm"]
  191. local LArm = Char["Left Arm"]
  192. local RLeg = Char["Right Leg"]
  193. local LLeg = Char["Left Leg"]
  194. local Root = Char:FindFirstChild'HumanoidRootPart'
  195. local Torso = Char.Torso
  196. local Head = Char.Head
  197. local NeutralAnims = true
  198. local Attack = false
  199. local Debounces = {Debounces={}}
  200. local Mouse = Plr:GetMouse()
  201. local Hit = {}
  202. local Sine = 0
  203. local Change = 1
  204.  
  205. local Effects = IN("Folder",Char)
  206. Effects.Name = "Effects"
  207.  
  208.  
  209. --// Debounce System \\--
  210.  
  211.  
  212. function Debounces:New(name,cooldown)
  213. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  214. setmetatable(aaaaa,{__index = Debounces})
  215. Debounces.Debounces[name] = aaaaa
  216. return aaaaa
  217. end
  218.  
  219. function Debounces:Use(overrideUsable)
  220. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  221. if(self.Usable or overrideUsable)then
  222. self.Usable = false
  223. self.CoolingDown = true
  224. local LastUse = time()
  225. self.LastUse = LastUse
  226. delay(self.Cooldown or 2,function()
  227. if(self.LastUse == LastUse)then
  228. self.CoolingDown = false
  229. self.Usable = true
  230. end
  231. end)
  232. end
  233. end
  234.  
  235. function Debounces:Get(name)
  236. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  237. for i,v in next, Debounces.Debounces do
  238. if(i == name)then
  239. return v;
  240. end
  241. end
  242. end
  243.  
  244. function Debounces:GetProgressPercentage()
  245. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  246. if(self.CoolingDown and not self.Usable)then
  247. return math.max(
  248. math.floor(
  249. (
  250. (time()-self.LastUse)/self.Cooldown or 2
  251. )*100
  252. )
  253. )
  254. else
  255. return 100
  256. end
  257. end
  258.  
  259. --// Instance Creation Functions \\--
  260.  
  261. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  262. local Sound = IN("Sound")
  263. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  264. Sound.Pitch = pitch or 1
  265. Sound.Volume = volume or 1
  266. Sound.Looped = looped or false
  267. if(autoPlay)then
  268. coroutine.wrap(function()
  269. repeat wait() until Sound.IsLoaded
  270. Sound.Playing = autoPlay or false
  271. end)()
  272. end
  273. if(not looped and effect)then
  274. Sound.Stopped:connect(function()
  275. Sound.Volume = 0
  276. Sound:destroy()
  277. end)
  278. elseif(effect)then
  279. warn("Sound can't be looped and a sound effect!")
  280. end
  281. Sound.Parent =parent or Torso
  282. return Sound
  283. end
  284. function Part(parent,color,material,size,cframe,anchored,cancollide)
  285. local part = IN("Part")
  286. part.Parent = parent or Char
  287. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  288. part.Material = material or Enum.Material.SmoothPlastic
  289. part.TopSurface,part.BottomSurface=10,10
  290. part.Size = size or V3.N(1,1,1)
  291. part.CFrame = cframe or CF.N(0,0,0)
  292. part.CanCollide = cancollide or false
  293. part.Anchored = anchored or false
  294. return part
  295. end
  296.  
  297. function Weld(part0,part1,c0,c1)
  298. local weld = IN("Weld")
  299. weld.Parent = part0
  300. weld.Part0 = part0
  301. weld.Part1 = part1
  302. weld.C0 = c0 or CF.N()
  303. weld.C1 = c1 or CF.N()
  304. return weld
  305. end
  306.  
  307. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  308. local part = IN("SpecialMesh")
  309. part.MeshId = meshid or ""
  310. part.TextureId = textid or ""
  311. part.Scale = scale or V3.N(1,1,1)
  312. part.Offset = offset or V3.N(0,0,0)
  313. part.MeshType = meshtype or Enum.MeshType.Sphere
  314. part.Parent = parent
  315. return part
  316. end
  317.  
  318. NewInstance = function(instance,parent,properties)
  319. local inst = Instance.new(instance)
  320. inst.Parent = parent
  321. if(properties)then
  322. for i,v in next, properties do
  323. pcall(function() inst[i] = v end)
  324. end
  325. end
  326. return inst;
  327. end
  328.  
  329. function Clone(instance,parent,properties)
  330. local inst = instance:Clone()
  331. inst.Parent = parent
  332. if(properties)then
  333. for i,v in next, properties do
  334. pcall(function() inst[i] = v end)
  335. end
  336. end
  337. return inst;
  338. end
  339.  
  340. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  341. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  342. local Sound = IN("Sound")
  343. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  344. Sound.Pitch = pitch or 1
  345. Sound.Volume = volume or 1
  346. Sound.Looped = looped or false
  347. if(autoPlay)then
  348. coroutine.wrap(function()
  349. repeat wait() until Sound.IsLoaded
  350. Sound.Playing = autoPlay or false
  351. end)()
  352. end
  353. if(not looped and effect)then
  354. Sound.Stopped:connect(function()
  355. Sound.Volume = 0
  356. soundPart:destroy()
  357. end)
  358. elseif(effect)then
  359. warn("Sound can't be looped and a sound effect!")
  360. end
  361. Sound.Parent = soundPart
  362. return Sound
  363. end
  364.  
  365.  
  366. --// Extended ROBLOX tables \\--
  367. 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})
  368. --// Require stuff \\--
  369. function CamShake(who,times,intense,origin)
  370. coroutine.wrap(function()
  371. if(script:FindFirstChild'CamShake')then
  372. local cam = script.CamShake:Clone()
  373. cam:WaitForChild'intensity'.Value = intense
  374. cam:WaitForChild'times'.Value = times
  375.  
  376. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  377. cam.Parent = who
  378. wait()
  379. cam.Disabled = false
  380. elseif(who == Plr or who == Char)then
  381. local intensity = intense
  382. local cam = workspace.CurrentCamera
  383. for i = 1, times do
  384. local camDistFromOrigin
  385. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  386. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  387. elseif(typeof(origin) == 'Vector3')then
  388. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  389. end
  390. if(camDistFromOrigin)then
  391. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  392. end
  393. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  394. swait()
  395. end
  396. end
  397. end)()
  398. end
  399.  
  400. function CamShakeAll(times,intense,origin)
  401. for _,v in next, Plrs:players() do
  402. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  403. end
  404. end
  405.  
  406. function ServerScript(code)
  407. if(script:FindFirstChild'Loadstring')then
  408. local load = script.Loadstring:Clone()
  409. load:WaitForChild'Sauce'.Value = code
  410. load.Disabled = false
  411. load.Parent = workspace
  412. elseif(NS and typeof(NS) == 'function')then
  413. NS(code,workspace)
  414. else
  415. warn("no serverscripts lol")
  416. end
  417. end
  418.  
  419. function RunLocal(where,code)
  420. ServerScript([[
  421. wait()
  422. script.Parent=nil
  423. if(not _G.Http)then _G.Http = game:service'HttpService' end
  424.  
  425. local Http = _G.Http or game:service'HttpService'
  426.  
  427. local source = ]].."[["..code.."]]"..[[
  428. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  429. local asd = Http:PostAsync(link,source)
  430. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  431. local ID = Http:JSONDecode(asd).Result.Require_ID
  432. local vs = require(ID).VORTH_SCRIPT
  433. vs.Parent = game.]]..where:GetFullName()
  434. )
  435. end
  436.  
  437. --// Customization \\--
  438.  
  439. local Frame_Speed = 60;
  440. local WalkSpeed = 16
  441. local DamageColor = BrickColor.new'White'
  442.  
  443. local MagicCircles = {
  444. Default = {Color=C3.N(1,1,1),Texture1=0,Texture2=0},
  445. OrangeWarPheonix = {EffectColor=BrickColor.new'Deep orange'.Color,Color=C3.N(.9,.9,.9),Texture1=623153986,Texture2=623153990},
  446. BlueWarPheonix = {EffectColor=BrickColor.new'Teal'.Color,Color=C3.N(.9,.9,.9),Texture1=462499935,Texture2=462499970},
  447. Plasma = {Color=C3.N(0.70588235294118,0,0.8),Texture1=415906687,Texture2=415906702},
  448. Water = {Color=C3.RGB(33, 84, 185),Texture1=408441330,Texture2=408441353},
  449. Earth = {Color=C3.RGB(86, 36, 36),Texture1=394253616,Texture2=394253651},
  450. Wind = {Color=C3.N(.8,.8,.8),Texture1=376006317,Texture2=376006346},
  451. Poseidon = {Color=C3.RGB(71, 99, 130),Texture1=346727970,Texture2=346727994},
  452. AetherLightning = {Color=C3.RGB(23, 255, 197),Texture1=348320016,Texture2=348320030},
  453. Light = {Color=C3.N(1,1,0),Texture1=343192085,Texture2=343192112},
  454. Fire = {Color=C3.N(1,0,0),EffectColor=BrickColor.new'Bright red'.Color,Texture1=313945544,Texture2=313945673},
  455. Lightning = {Color=C3.N(0,1,1),Texture1=314842290,Texture2=314842440},
  456. GasterBlaster = {Color=C3.N(1,1,1),Texture1=331948662,Texture2=331948662}
  457. }
  458.  
  459. local MagicVariant = MagicCircles.GasterBlaster --[[ You can change this for a different element
  460. Example:
  461.  
  462. Changing MagicCircles.GasterBlaster to MagicCircles.Light
  463.  
  464. would make it a Light Element
  465. ]]
  466.  
  467. --// Stop animations \\--
  468. for _,v in next, Hum:GetPlayingAnimationTracks() do
  469. v:Stop();
  470. end
  471.  
  472. pcall(game.Destroy,Char:FindFirstChild'Animate')
  473. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  474.  
  475. --// Joints \\--
  476.  
  477. local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5,0.5,0),C1 = CF.N(0,.5,0)})
  478. local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5,0.5,0),C1 = CF.N(0,.5,0)})
  479. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5,0)})
  480. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5,-1,0),C1 = CF.N(0,1,0)})
  481. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5,-1,0),C1 = CF.N(0,1,0)})
  482. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  483.  
  484. local LSC0 = LS.C0
  485. local RSC0 = RS.C0
  486. local NKC0 = NK.C0
  487. local LHC0 = LH.C0
  488. local RHC0 = RH.C0
  489. local RJC0 = RJ.C0
  490.  
  491. --// Artificial HB \\--
  492.  
  493. local ArtificialHB = IN("BindableEvent", script)
  494. ArtificialHB.Name = "Heartbeat"
  495.  
  496. script:WaitForChild("Heartbeat")
  497.  
  498. local tf = 0
  499. local allowframeloss = false
  500. local tossremainder = false
  501. local lastframe = tick()
  502. local frame = 1/Frame_Speed
  503. ArtificialHB:Fire()
  504.  
  505. game:GetService("RunService").Heartbeat:connect(function(s, p)
  506. tf = tf + s
  507. if tf >= frame then
  508. if allowframeloss then
  509. script.Heartbeat:Fire()
  510. lastframe = tick()
  511. else
  512. for i = 1, math.floor(tf / frame) do
  513. ArtificialHB:Fire()
  514. end
  515. lastframe = tick()
  516. end
  517. if tossremainder then
  518. tf = 0
  519. else
  520. tf = tf - frame * math.floor(tf / frame)
  521. end
  522. end
  523. end)
  524.  
  525. function swait(num)
  526. if num == 0 or num == nil then
  527. ArtificialHB.Event:wait()
  528. else
  529. for i = 0, num do
  530. ArtificialHB.Event:wait()
  531. end
  532. end
  533. end
  534.  
  535.  
  536. --// Effect Function(s) \\--
  537.  
  538. function NumSeq(...)
  539. local tab = {...}
  540. local Sequence = {}
  541. for _,v in next, tab do
  542. table.insert(Sequence,NumberSequenceKeypoint.new(unpack(v)))
  543. end
  544. if(tab[#tab][1] ~= 1)then
  545. local final = tab[#tab]
  546. table.insert(Sequence,NumberSequenceKeypoint.new(1,final[2],final[3]))
  547. end
  548. return NumberSequence.new(Sequence)
  549. end
  550.  
  551. local DefaultRingParticle = IN("ParticleEmitter")
  552. DefaultRingParticle.Name = 'RingEmit'
  553. DefaultRingParticle.LightEmission = 1
  554. DefaultRingParticle.Size = NumSeq({0,0},{.7,6.28},{.8,5.03},{1,2.9})
  555. DefaultRingParticle.Texture = "rbxassetid://313951123"
  556. DefaultRingParticle.Transparency = NumberSequence.new(0,1)
  557. DefaultRingParticle.ZOffset = 1
  558. DefaultRingParticle.Drag = 0
  559. DefaultRingParticle.Acceleration = V3.N()
  560. DefaultRingParticle.LockedToPart = true
  561. DefaultRingParticle.Enabled = false
  562. DefaultRingParticle.Lifetime = NumberRange.new(.6,.6)
  563. DefaultRingParticle.Rate = 5
  564. DefaultRingParticle.Rotation = NumberRange.new(0,0)
  565. DefaultRingParticle.RotSpeed = NumberRange.new(0,0)
  566. DefaultRingParticle.Speed = NumberRange.new(0,0)
  567. DefaultRingParticle.SpreadAngle = Vector2.new(0,0)
  568.  
  569. function MagicCircle(Data)
  570. local Variant = Data.Variant or MagicCircles.Default;
  571.  
  572. local Size = Data.Size or 10;
  573. local Pos = Data.Pos*CF.A(M.R(-90),M.R(-90),0) or Torso.CFrame*CF.A(M.R(-90),M.R(-90),0);
  574. local GrowTime = Data.Time or 1;
  575.  
  576. local WeldData = Data.Weld or false;
  577.  
  578.  
  579. local Color = Variant.Color or C3.N(.9,.9,.0)
  580.  
  581. local CreationParticle = Data.CreationParticle or DefaultRingParticle;
  582.  
  583.  
  584. local Circle = Part(Effects,BrickColor.new'Maroon',Enum.Material.SmoothPlastic,V3.N(.05,.05,.05),Pos,true,false)
  585. local CircleM = NewInstance("BlockMesh",Circle,{Scale=V3.N()})
  586.  
  587.  
  588. local Emitter = DefaultRingParticle:Clone();
  589. Emitter.Parent = Circle
  590. Emitter.Color = ColorSequence.new(Variant.Color)
  591.  
  592. local Top = IN("Decal",Circle)
  593. Top.Texture = "rbxassetid://"..Variant.Texture1
  594. Top.Face = Enum.NormalId.Top
  595.  
  596. local Btm = IN("Decal",Circle)
  597. Btm.Texture = "rbxassetid://"..Variant.Texture2
  598. Btm.Face = Enum.NormalId.Bottom
  599.  
  600. if(WeldData)then
  601. Circle.Anchored = false
  602. Weld(WeldData,Circle,Pos,CF.N())
  603. end
  604. local GrowFrames = GrowTime * Frame_Speed
  605. print(GrowFrames)
  606. --Size*20,0,Size*20
  607. Circle.Transparency = 1
  608. local GrownEvent = Instance.new("BindableEvent",Circle)
  609. coroutine.wrap(function()
  610.  
  611. Emit(Emitter,5)
  612. local End = Size*20
  613. local grow = End/GrowFrames
  614. for i = 1, GrowFrames+1 do
  615. local aa = math.min(CircleM.Scale.x + grow,End)
  616. if(aa >= End)then break end
  617. CircleM.Scale = V3.N(aa,0,aa)
  618. swait()
  619. end
  620. CircleM.Scale = V3.N(End,0,End)
  621. GrownEvent:Fire()
  622.  
  623. end)()
  624.  
  625. local Table = {
  626. Circle = Circle,
  627. Mesh = CircleM,
  628. Grow = function(size)
  629. CircleM.Scale = CircleM.Scale + V3.N(size*20,0,size*20)
  630. end,
  631. Destroy = function(timer)
  632. coroutine.wrap(function()
  633. if(not timer)then timer = 1 end
  634. Tween(CircleM,{Scale=V3.N(0,0,0)},timer,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
  635. Tween(Top,{Transparency=1},timer,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
  636. Tween(Btm,{Transparency=1},timer,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
  637. S.Debris:AddItem(Circle,timer+1)
  638. end)()
  639. end,
  640. Grown = GrownEvent.Event
  641. }
  642.  
  643. return Table;
  644. end
  645.  
  646. function Bezier(startpos, pos2, pos3, endpos, t)
  647. local A = startpos:lerp(pos2, t)
  648. local B = pos2:lerp(pos3, t)
  649. local C = pos3:lerp(endpos, t)
  650. local lerp1 = A:lerp(B, t)
  651. local lerp2 = B:lerp(C, t)
  652. local cubic = lerp1:lerp(lerp2, t)
  653. return cubic
  654. end
  655.  
  656. function SphereFX(duration,color,scale,pos,endScale,increment)
  657. return Effect{
  658. Frames=duration,
  659. Effect='ResizeAndFade',
  660. Color=color,
  661. Size=scale,
  662. Mesh={MeshType=Enum.MeshType.Sphere},
  663. CFrame=pos,
  664. FXSettings={
  665. EndSize=endScale,
  666. EndIsIncrement=increment
  667. }
  668. }
  669. end
  670.  
  671. function BlastFX(duration,color,scale,pos,endScale,increment)
  672. return Effect{
  673. Frames=duration,
  674. Effect='ResizeAndFade',
  675. Color=color,
  676. Size=scale,
  677. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  678. CFrame=pos,
  679. FXSettings={
  680. EndSize=endScale,
  681. EndIsIncrement=increment
  682. }
  683. }
  684. end
  685.  
  686. function BlockFX(duration,color,scale,pos,endScale,increment)
  687. return Effect{
  688. Frames=duration,
  689. Effect='ResizeAndFade',
  690. Color=color,
  691. Size=scale,
  692. CFrame=pos,
  693. FXSettings={
  694. EndSize=endScale,
  695. EndIsIncrement=increment
  696. }
  697. }
  698. end
  699.  
  700. function ShootBullet(data)
  701. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  702. local Size = data.Size or V3.N(2,2,2)
  703. local Color = data.Color or MagicVariant.EffectColor or MagicVariant.Color
  704. local StudsPerFrame = data.Speed or 10
  705. local Shape = data.Shape or 'Ball'
  706. local Frames = data.Frames or 160
  707. local Pos = data.Origin or Torso.CFrame
  708. local Direction = data.Direction or Mouse.Hit
  709. local Material = data.Material or Enum.Material.Neon
  710. local OnHit = data.HitFunction or function(hit,pos)
  711. Effect{
  712. Effect='ResizeAndFade',
  713. Color=Color,
  714. Size=V3.N(10,10,10),
  715. Mesh={MeshType=Enum.MeshType.Sphere},
  716. CFrame=CF.N(pos),
  717. FXSettings={
  718. EndSize=V3.N(.05,.05,.05),
  719. EndIsIncrement=true
  720. }
  721. }
  722. for i = 1, 5 do
  723. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  724. Effect{
  725. Effect='Fade',
  726. Frames=65,
  727. Size=V3.N(5,5,10),
  728. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
  729. Mesh = {MeshType=Enum.MeshType.Sphere},
  730. Material=Enum.Material.Neon,
  731. Color=Color,
  732. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  733. }
  734. end
  735. AOEDamage(pos,10,15,30,0,'Normal',10,4)
  736. end
  737.  
  738. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  739. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  740. if(Shape == 'Ball')then
  741. BMesh.MeshType = Enum.MeshType.Sphere
  742. elseif(Shape == 'Head')then
  743. BMesh.MeshType = Enum.MeshType.Head
  744. elseif(Shape == 'Cylinder')then
  745. BMesh.MeshType = Enum.MeshType.Cylinder
  746. end
  747.  
  748. coroutine.wrap(function()
  749. for i = 1, Frames+1 do
  750. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  751. if(hit)then
  752. OnHit(hit,pos,norm,dist)
  753. break;
  754. else
  755. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  756. end
  757. swait()
  758. end
  759. Bullet:destroy()
  760. end)()
  761.  
  762. end
  763.  
  764. function Zap(data)
  765. local sCF,eCF = data.StartCFrame,data.EndCFrame
  766. assert(sCF,"You need a start CFrame!")
  767. assert(eCF,"You need an end CFrame!")
  768. local parts = data.PartCount or 15
  769. local zapRot = data.ZapRotation or {-5,5}
  770. local startThick = data.StartSize or 3;
  771. local endThick = data.EndSize or startThick/2;
  772. local color = data.Color or BrickColor.new'Electric blue'
  773. local delay = data.Delay or 35
  774. local delayInc = data.DelayInc or 0
  775. local lastLightning;
  776. local MagZ = (sCF.p - eCF.p).magnitude
  777. local thick = startThick
  778. local inc = (startThick/parts)-(endThick/parts)
  779.  
  780. for i = 1, parts do
  781. local pos = sCF.p
  782. if(lastLightning)then
  783. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  784. end
  785. delay = delay + delayInc
  786. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  787. 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)))
  788. if(parts == i)then
  789. local MagZ = (pos-eCF.p).magnitude
  790. zapPart.Size = V3.N(endThick,endThick,MagZ)
  791. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  792. 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)}}
  793. else
  794. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  795. end
  796.  
  797. lastLightning = zapPart
  798. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  799.  
  800. thick=thick-inc
  801.  
  802. end
  803. end
  804.  
  805. function Zap2(data)
  806. local Color = data.Color or BrickColor.new'Electric blue'
  807. local StartPos = data.Start or Torso.Position
  808. local EndPos = data.End or Mouse.Hit.p
  809. local SegLength = data.SegL or 2
  810. local Thicc = data.Thickness or 0.5
  811. local Fades = data.Fade or 45
  812. local Parent = data.Parent or Effects
  813. local MaxD = data.MaxDist or 200
  814. local Branch = data.Branches or false
  815. local Material = data.Material or Enum.Material.Neon
  816. local Raycasts = data.Raycasts or false
  817. local Offset = data.Offset or {0,360}
  818. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  819. if((StartPos-EndPos).magnitude > MaxD)then
  820. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  821. end
  822. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  823. if(Raycasts)then
  824. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  825. end
  826. local segments = dist/SegLength
  827. local model = IN("Model",Parent)
  828. model.Name = 'Lightning'
  829. local Last;
  830. for i = 1, segments do
  831. local size = (segments-i)/25
  832. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  833. if(AddMesh)then IN("CylinderMesh",prt) end
  834. if(Last and math.floor(segments) == i)then
  835. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  836. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  837. 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)
  838. elseif(not Last)then
  839. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  840. else
  841. 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)
  842. end
  843. Last = prt
  844. if(Branch)then
  845. local choice = M.RNG(1,7+((segments-i)*2))
  846. if(choice == 1)then
  847. local LastB;
  848. for i2 = 1,M.RNG(2,5) do
  849. local size2 = ((segments-i)/35)/i2
  850. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  851. if(AddMesh)then IN("CylinderMesh",prt) end
  852. if(not LastB)then
  853. 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)
  854. else
  855. 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)
  856. end
  857. LastB = prt
  858. end
  859. end
  860. end
  861. end
  862. if(Fades > 0)then
  863. coroutine.wrap(function()
  864. for i = 1, Fades do
  865. for _,v in next, model:children() do
  866. if(v:IsA'BasePart')then
  867. v.Transparency = (i/Fades)
  868. end
  869. end
  870. swait()
  871. end
  872. model:destroy()
  873. end)()
  874. else
  875. S.Debris:AddItem(model,.01)
  876. end
  877. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  878. end
  879.  
  880. function Tween(obj,props,time,easing,direction,repeats,backwards)
  881. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  882. local tween = S.TweenService:Create(obj, info, props)
  883.  
  884. tween:Play()
  885. end
  886.  
  887. function Effect(data)
  888. local FX = data.Effect or 'ResizeAndFade'
  889. local Parent = data.Parent or Effects
  890. local Color = data.Color or C3.N(0,0,0)
  891. local Size = data.Size or V3.N(1,1,1)
  892. local MoveDir = data.MoveDirection or nil
  893. local MeshData = data.Mesh or nil
  894. local SndData = data.Sound or nil
  895. local Frames = data.Frames or 45
  896. local Manual = data.Manual or nil
  897. local Material = data.Material or Enum.Material.Neon
  898. local CFra = data.CFrame or Torso.CFrame
  899. local Settings = data.FXSettings or {}
  900. local Shape = data.Shape or Enum.PartType.Block
  901. local Snd,Prt,Msh;
  902. coroutine.wrap(function()
  903. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  904. Prt = Manual
  905. else
  906. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  907. Prt.Shape = Shape
  908. end
  909. if(typeof(MeshData) == 'table')then
  910. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  911. elseif(typeof(MeshData) == 'Instance')then
  912. Msh = MeshData:Clone()
  913. Msh.Parent = Prt
  914. elseif(Shape == Enum.PartType.Block)then
  915. Msh = Mesh(Prt,Enum.MeshType.Brick)
  916. end
  917. if(typeof(SndData) == 'table')then
  918. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  919. elseif(typeof(SndData) == 'Instance')then
  920. Snd = SndData
  921. end
  922. if(Snd)then
  923. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  924. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  925. end
  926. Size = (Msh and Msh.Scale or Size)
  927. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  928.  
  929. local MoveSpeed = nil;
  930. if(MoveDir)then
  931. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  932. end
  933. if(FX ~= 'Arc')then
  934. for Frame = 1, Frames do
  935. if(FX == "Fade")then
  936. Prt.Transparency = (Frame/Frames)
  937. elseif(FX == "Resize")then
  938. if(not Settings.EndSize)then
  939. Settings.EndSize = V3.N(0,0,0)
  940. end
  941. if(Settings.EndIsIncrement)then
  942. if(Msh)then
  943. Msh.Scale = Msh.Scale + Settings.EndSize
  944. else
  945. Prt.Size = Prt.Size + Settings.EndSize
  946. end
  947. else
  948. if(Msh)then
  949. Msh.Scale = Msh.Scale - grow/Frames
  950. else
  951. Prt.Size = Prt.Size - grow/Frames
  952. end
  953. end
  954. elseif(FX == "ResizeAndFade")then
  955. if(not Settings.EndSize)then
  956. Settings.EndSize = V3.N(0,0,0)
  957. end
  958. if(Settings.EndIsIncrement)then
  959. if(Msh)then
  960. Msh.Scale = Msh.Scale + Settings.EndSize
  961. else
  962. Prt.Size = Prt.Size + Settings.EndSize
  963. end
  964. else
  965. if(Msh)then
  966. Msh.Scale = Msh.Scale - grow/Frames
  967. else
  968. Prt.Size = Prt.Size - grow/Frames
  969. end
  970. end
  971. Prt.Transparency = (Frame/Frames)
  972. end
  973. if(Settings.RandomizeCFrame)then
  974. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  975. end
  976. if(MoveDir and MoveSpeed)then
  977. local Orientation = Prt.Orientation
  978. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  979. Prt.Orientation = Orientation
  980. end
  981. swait()
  982. end
  983. Prt:destroy()
  984. else
  985. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  986. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  987. if(start and endP)then
  988. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  989. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  990. for Frame = 0, 1, (Settings.Speed or 0.01) do
  991. if(Settings.Home)then
  992. endP = Settings.Home.CFrame
  993. end
  994. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  995. end
  996. if(Settings.RemoveOnGoal)then
  997. Prt:destroy()
  998. end
  999. else
  1000. Prt:destroy()
  1001. assert(start,"You need a start position!")
  1002. assert(endP,"You need a start position!")
  1003. end
  1004. end
  1005. end)()
  1006. return Prt,Msh,Snd
  1007. end
  1008. function SoulSteal(whom)
  1009. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  1010. print(torso)
  1011. if(torso and torso:IsA'BasePart')then
  1012. local Model = Instance.new("Model",Effects)
  1013. Model.Name = whom.Name.."'s Soul"
  1014. whom:BreakJoints()
  1015. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  1016. Soul.Name = 'Head'
  1017. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  1018. Effect{
  1019. Effect="Arc",
  1020. Manual = Soul,
  1021. FXSettings={
  1022. Start=torso.CFrame,
  1023. Home = Torso,
  1024. RemoveOnGoal = true,
  1025. }
  1026. }
  1027. local lastPoint = Soul.CFrame.p
  1028.  
  1029. for i = 0, 1, 0.01 do
  1030. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  1031. local mag = (lastPoint - Soul.Position).magnitude
  1032. Effect{
  1033. Effect = "Fade",
  1034. CFrame = point * CF.N(0, mag/2, 0),
  1035. Size = V3.N(.5,mag+.5,.5),
  1036. Color = Soul.BrickColor
  1037. }
  1038. lastPoint = Soul.CFrame.p
  1039. swait()
  1040. end
  1041. for i = 1, 5 do
  1042. Effect{
  1043. Effect="Fade",
  1044. Color = BrickColor.new'Really red',
  1045. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  1046. }
  1047. end
  1048. end
  1049. end
  1050.  
  1051. --// Other Functions \\ --
  1052.  
  1053. function CastRay(startPos,endPos,range,ignoreList)
  1054. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  1055. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  1056. return part,pos,norm,(pos and (startPos-pos).magnitude)
  1057. end
  1058.  
  1059. function CastRayInDirection(startPos,direction,range,ignoreList)
  1060. local ray = Ray.new(startPos,direction*range)
  1061. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  1062. return part,pos,norm,(pos and (startPos-pos).magnitude)
  1063. end
  1064.  
  1065. function getRegion(point,range,ignore)
  1066. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  1067. end
  1068.  
  1069. function clerp(startCF,endCF,alpha)
  1070. return startCF:lerp(endCF, alpha)
  1071. end
  1072.  
  1073. function GetTorso(char)
  1074. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1075. end
  1076.  
  1077. function ShowDamage(Pos, Text, Time, Color)
  1078. coroutine.wrap(function()
  1079. local Rate = (1 / Frame_Speed)
  1080. local Pos = (Pos or Vector3.new(0, 0, 0))
  1081. local Text = (Text or "")
  1082. local Time = (Time or 2)
  1083. local Color = (Color or Color3.new(1, 0, 1))
  1084. local EffectPart = NewInstance("Part",Effects,{
  1085. Material=Enum.Material.SmoothPlastic,
  1086. Reflectance = 0,
  1087. Transparency = 1,
  1088. BrickColor = BrickColor.new(Color),
  1089. Name = "Effect",
  1090. Size = Vector3.new(0,0,0),
  1091. Anchored = true,
  1092. CFrame = CF.N(Pos)
  1093. })
  1094. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  1095. Size = UDim2.new(1.25, 0, 1.25, 0),
  1096. Adornee = EffectPart,
  1097. })
  1098. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  1099. BackgroundTransparency = 1,
  1100. Size = UDim2.new(1, 0, 1, 0),
  1101. Text = Text,
  1102. Font = "Bodoni",
  1103. TextColor3 = Color,
  1104. TextStrokeColor3 = Color3.new(0,0,0),
  1105. TextStrokeTransparency=0,
  1106. TextScaled = true,
  1107. })
  1108. S.Debris:AddItem(EffectPart, (Time))
  1109. EffectPart.Parent = workspace
  1110. delay(0, function()
  1111. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  1112. local Frames = (Time / Rate)
  1113. for Frame = 1, Frames do
  1114. swait()
  1115. local Percent = (Frame / Frames)
  1116. TextLabel.TextTransparency = Percent
  1117. TextLabel.TextStrokeTransparency = Percent
  1118. end
  1119. if EffectPart and EffectPart.Parent then
  1120. EffectPart:Destroy()
  1121. end
  1122. end) end)()
  1123. end
  1124.  
  1125.  
  1126. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  1127. if(who)then
  1128. local hum = who:FindFirstChildOfClass'Humanoid'
  1129. local Damage = M.RNG(minDam,maxDam)
  1130. local canHit = true
  1131. if(hum)then
  1132. for _, p in pairs(Hit) do
  1133. if p[1] == hum then
  1134. if(time() - p[2] < 0.01) then
  1135. canHit = false
  1136. else
  1137. Hit[_] = nil
  1138. end
  1139. end
  1140. end
  1141. if(canHit)then
  1142. table.insert(Hit,{hum,time()})
  1143. if(hum.Health >= math.huge)then
  1144. who:BreakJoints()
  1145. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1146. 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, C3.N(1,0,0))
  1147. end
  1148. else
  1149. local player = S.Players:GetPlayerFromCharacter(who)
  1150. if(Type == "Fire")then
  1151. --idk..
  1152. else
  1153. local c = Instance.new("ObjectValue",hum)
  1154. c.Name = "creator"
  1155. c.Value = Plr
  1156. game:service'Debris':AddItem(c,0.35)
  1157. if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
  1158. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1159. 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))), "[CRIT] "..Damage*(critMult or 2), 1.5, BrickColor.new'New Yeller'.Color)
  1160. end
  1161. hum.Health = hum.Health - Damage*(critMult or 2)
  1162. else
  1163. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1164. 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))), Damage, 1.5, DamageColor.Color)
  1165. end
  1166. hum.Health = hum.Health - Damage
  1167. end
  1168. if(Type == 'Knockback' and GetTorso(who))then
  1169. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  1170. local body = NewInstance('BodyVelocity',GetTorso(who),{
  1171. P = 500,
  1172. maxForce = V3.N(math.huge,0,math.huge),
  1173. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  1174. })
  1175. game:service'Debris':AddItem(body,.5)
  1176. elseif(Type == "Electric")then
  1177. if(M.RNG(1,100) >= critChance)then
  1178. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1179. 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))), "[PARALYZED]", 1.5, BrickColor.new"New Yeller".Color)
  1180. end
  1181. local asd = hum.WalkSpeed/2
  1182. hum.WalkSpeed = asd
  1183. local paralyzed = true
  1184. coroutine.wrap(function()
  1185. while paralyzed do
  1186. swait(25)
  1187. if(M.RNG(1,25) == 1)then
  1188. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1189. 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))), "[STATIC]", 1.5, BrickColor.new"New Yeller".Color)
  1190. end
  1191. hum.PlatformStand = true
  1192. end
  1193. end
  1194. end)()
  1195. delay(4, function()
  1196. paralyzed = false
  1197. hum.WalkSpeed = hum.WalkSpeed + asd
  1198. end)
  1199. end
  1200.  
  1201. elseif(Type == 'Knockdown' and GetTorso(who))then
  1202. local rek = GetTorso(who)
  1203. hum.PlatformStand = true
  1204. delay(1,function()
  1205. hum.PlatformStand = false
  1206. end)
  1207. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  1208. local bodvol = NewInstance("BodyVelocity",rek,{
  1209. velocity = angle * Knock,
  1210. P = 5000,
  1211. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1212. })
  1213. local rl = NewInstance("BodyAngularVelocity",rek,{
  1214. P = 3000,
  1215. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1216. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1217. })
  1218. game:GetService("Debris"):AddItem(bodvol, .5)
  1219. game:GetService("Debris"):AddItem(rl, .5)
  1220. end
  1221. end
  1222. end
  1223. end
  1224. end
  1225. end
  1226. end
  1227.  
  1228. function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
  1229. for _,v in next, getRegion(where,range,{Char}) do
  1230. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  1231. coroutine.wrap(function() for i = 1, M.RNG(minDam,maxDam) do swait() DealDamage(v.Parent,1,1,Knock,Type,0,1) end end)()
  1232. end
  1233. end
  1234. end
  1235.  
  1236. function AOEHeal(where,range,amount)
  1237. local healed = {}
  1238. for _,v in next, getRegion(where,range,{Char}) do
  1239. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1240. if(hum and not healed[hum])then
  1241. hum.Health = hum.Health + amount
  1242. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1243. 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)
  1244. end
  1245. end
  1246. end
  1247. end
  1248.  
  1249. function CamShake(who,times,intense,origin)
  1250. coroutine.wrap(function()
  1251. if(script:FindFirstChild'CamShake')then
  1252. local cam = script.CamShake:Clone()
  1253. cam:WaitForChild'intensity'.Value = intense
  1254. cam:WaitForChild'times'.Value = times
  1255.  
  1256. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  1257. cam.Parent = who
  1258. wait()
  1259. cam.Disabled = false
  1260. elseif(who == Plr or who == Char)then
  1261. local intensity = intense
  1262. local cam = workspace.CurrentCamera
  1263. for i = 1, times do
  1264. local camDistFromOrigin
  1265. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  1266. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  1267. elseif(typeof(origin) == 'Vector3')then
  1268. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  1269. end
  1270. if(camDistFromOrigin)then
  1271. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  1272. end
  1273. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  1274. swait()
  1275. end
  1276. end
  1277. end)()
  1278. end
  1279.  
  1280. function CamShakeAll(times,intense,origin)
  1281. for _,v in next, Plrs:players() do
  1282. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  1283. end
  1284. end
  1285.  
  1286. function ServerScript(code)
  1287. if(script:FindFirstChild'Loadstring')then
  1288. local load = script.Loadstring:Clone()
  1289. load:WaitForChild'Sauce'.Value = code
  1290. load.Disabled = false
  1291. load.Parent = workspace
  1292. elseif(NS and typeof(NS) == 'function')then
  1293. NS(code,workspace)
  1294. else
  1295. warn("no serverscripts lol")
  1296. end
  1297. end
  1298.  
  1299. function LocalOnPlayer(who,code)
  1300. ServerScript([[
  1301. wait()
  1302. script.Parent=nil
  1303. if(not _G.Http)then _G.Http = game:service'HttpService' end
  1304.  
  1305. local Http = _G.Http or game:service'HttpService'
  1306.  
  1307. local source = ]].."[["..code.."]]"..[[
  1308. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  1309. local asd = Http:PostAsync(link,source)
  1310. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  1311. local ID = Http:JSONDecode(asd).Result.Require_ID
  1312. local vs = require(ID).VORTH_SCRIPT
  1313. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  1314. ]])
  1315. end
  1316.  
  1317.  
  1318. --// Attack Functions \\--
  1319. function Laser(key)
  1320. NeutralAnims = false
  1321. Attack = true
  1322. Root.Anchored = true
  1323. local data = MagicCircle{Weld=Torso,Pos=CF.N(0,0,-4),Size=5,Variant=MagicVariant,Time=.5}
  1324. local IsGrown = false
  1325. data.Grown:connect(function() IsGrown = true end)
  1326. repeat swait()
  1327. local Alpha = .1
  1328. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(125),0,0),Alpha)
  1329. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(125),0,0),Alpha)
  1330. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  1331. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1332. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1333. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1334. local LookVector = Mouse.Hit.p
  1335. Torso.CFrame = CF.N(Root.Position,LookVector)
  1336. until IsGrown
  1337. if(S.UserInputService:IsKeyDown(key))then
  1338. local grown = 0
  1339. repeat
  1340. local Alpha = .1
  1341. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(125),0,0),Alpha)
  1342. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(125),0,0),Alpha)
  1343. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  1344. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1345. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1346. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1347. local LookVector = Mouse.Hit.p
  1348. Root.CFrame = CF.N(Root.Position,LookVector)
  1349. if(grown < 250)then
  1350. data.Grow(.05)
  1351. grown = grown + 1
  1352. end
  1353. swait()
  1354. until not S.UserInputService:IsKeyDown(key)
  1355. end
  1356. Sound(data.Circle,340722848,1,1,false,true,true)
  1357. local hit,pos,norm,dist = CastRay(data.Circle.CFrame.p,Mouse.Hit.p,1024)
  1358. local part = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data.Mesh.Scale.x/40,data.Mesh.Scale.x/40),CF.N(data.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
  1359. Mesh(part,Enum.MeshType.Cylinder)
  1360. Tween(part,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
  1361. Effect{
  1362. Effect='ResizeAndFade',
  1363. Color=MagicVariant.Color,
  1364. Size=V3.N(data.Mesh.Scale.X/20,data.Mesh.Scale.X/20,data.Mesh.Scale.X/20),
  1365. Mesh={MeshType=Enum.MeshType.Sphere},
  1366. CFrame=CF.N(pos),
  1367. FXSettings={
  1368. EndSize=V3.N(.05,.05,.05),
  1369. EndIsIncrement=true
  1370. }
  1371. }
  1372. for i = 1, 5 do
  1373. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  1374. Effect{
  1375. Effect='Fade',
  1376. Frames=65,
  1377. Size=V3.N((data.Mesh.Scale.X/20)/2,(data.Mesh.Scale.X/20)/2,data.Mesh.Scale.X/20),
  1378. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-(data.Mesh.Scale.X/20)).p,pos),
  1379. Mesh = {MeshType=Enum.MeshType.Sphere},
  1380. Material=Enum.Material.Neon,
  1381. Color=MagicVariant.Color,
  1382. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  1383. }
  1384. end
  1385. AOEDamage(pos,data.Mesh.Scale.X/20,15,45,0,'Normal',10,4)
  1386. coroutine.wrap(function()
  1387. local frame = (1/30)
  1388. for i = 1, 30 do
  1389. part.Transparency = (i/30)
  1390. swait()
  1391. end
  1392. part:destroy()
  1393. end)()
  1394. Attack = false
  1395. NeutralAnims = true
  1396. Root.Anchored = false
  1397. data.Destroy()
  1398. end
  1399.  
  1400. function Balls(key)
  1401. NeutralAnims = false
  1402. Attack = true
  1403. Root.Anchored = true
  1404. local data = MagicCircle{Weld=Torso,Pos=CF.N(0,0,-1),Size=5,Variant=MagicVariant,Time=.5}
  1405. local IsGrown = false
  1406. data.Grown:connect(function() IsGrown = true end)
  1407. repeat swait()
  1408. local Alpha = .1
  1409. local idk = M.R(25)
  1410. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1411. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1412. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  1413. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1414. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1415. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1416. local LookVector = Mouse.Hit.p
  1417. Torso.CFrame = CF.N(Root.Position,LookVector)
  1418. until IsGrown
  1419. local projectiles = 5
  1420. if(S.UserInputService:IsKeyDown(key))then
  1421. local grown = 0
  1422. repeat
  1423. local Alpha = .1
  1424. local idk = M.R(25)
  1425. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1426. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1427. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  1428. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1429. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1430. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1431. local LookVector = Mouse.Hit.p
  1432. Root.CFrame = CF.N(Root.Position,LookVector)
  1433. if(grown < 250)then
  1434. data.Grow(.05)
  1435. grown = grown + 1
  1436. projectiles = projectiles + .05
  1437. end
  1438. swait()
  1439. until not S.UserInputService:IsKeyDown(key)
  1440. end
  1441. for i = 1, math.floor(projectiles) do
  1442. data.Grow(-math.floor(projectiles)/20)
  1443. local LookVector = Mouse.Hit.p
  1444. Root.CFrame = CF.N(Root.Position,LookVector)
  1445. ShootBullet{Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  1446. swait(1)
  1447. end
  1448.  
  1449. Attack = false
  1450. NeutralAnims = true
  1451. Root.Anchored = false
  1452. data.Destroy()
  1453. end
  1454.  
  1455. function DLaser(key)
  1456. NeutralAnims = false
  1457. Attack = true
  1458. Root.Anchored = true
  1459. local data1 = MagicCircle{Weld=Torso,Pos=CF.N(-4,0,-4),Size=5,Variant=MagicVariant,Time=.5}
  1460. local data2 = MagicCircle{Weld=Torso,Pos=CF.N(4,0,-4),Size=5,Variant=MagicVariant,Time=.5}
  1461. local IsGrown = false
  1462. data1.Grown:connect(function() IsGrown = true end)
  1463. repeat swait()
  1464. local Alpha = .1
  1465. local idk = M.R(25)
  1466. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1467. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1468. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  1469. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1470. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1471. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1472. local LookVector = Mouse.Hit.p
  1473. Torso.CFrame = CF.N(Root.Position,LookVector)
  1474. until IsGrown
  1475. if(S.UserInputService:IsKeyDown(key))then
  1476. local grown = 0
  1477. repeat
  1478. local Alpha = .1
  1479. local idk = M.R(25)
  1480. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1481. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1482. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  1483. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1484. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1485. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1486. local LookVector = Mouse.Hit.p
  1487. Root.CFrame = CF.N(Root.Position,LookVector)
  1488. if(grown < 250)then
  1489. data1.Grow(.05)
  1490. data2.Grow(.05)
  1491. grown = grown + 1
  1492. end
  1493. swait()
  1494. until not S.UserInputService:IsKeyDown(key)
  1495. end
  1496. Sound(data1.Circle,340722848,1,1,false,true,true)
  1497. Sound(data2.Circle,340722848,1,1,false,true,true)
  1498. local hit,pos,norm,dist = CastRay(data1.Circle.CFrame.p,Mouse.Hit.p,1024)
  1499. local part1 = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data1.Mesh.Scale.x/40,data1.Mesh.Scale.x/40),CF.N(data1.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
  1500. Mesh(part1,Enum.MeshType.Cylinder)
  1501.  
  1502.  
  1503. local part2 = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data2.Mesh.Scale.x/40,data2.Mesh.Scale.x/40),CF.N(data2.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
  1504. Mesh(part2,Enum.MeshType.Cylinder)
  1505. Tween(part1,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
  1506. Tween(part2,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
  1507. Effect{
  1508. Effect='ResizeAndFade',
  1509. Color=MagicVariant.Color,
  1510. Size=V3.N(data1.Mesh.Scale.X/20,data1.Mesh.Scale.X/20,data1.Mesh.Scale.X/20),
  1511. Mesh={MeshType=Enum.MeshType.Sphere},
  1512. CFrame=CF.N(pos),
  1513. FXSettings={
  1514. EndSize=V3.N(.05,.05,.05),
  1515. EndIsIncrement=true
  1516. }
  1517. }
  1518. for i = 1, 5 do
  1519. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  1520. Effect{
  1521. Effect='Fade',
  1522. Frames=65,
  1523. Size=V3.N((data1.Mesh.Scale.X/20)/2,(data1.Mesh.Scale.X/20)/2,data1.Mesh.Scale.X/20),
  1524. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-(data1.Mesh.Scale.X/20)).p,pos),
  1525. Mesh = {MeshType=Enum.MeshType.Sphere},
  1526. Material=Enum.Material.Neon,
  1527. Color=MagicVariant.Color,
  1528. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  1529. }
  1530. end
  1531. AOEDamage(pos,data1.Mesh.Scale.X/20,15,45,0,'Normal',10,4)
  1532. AOEDamage(pos,data2.Mesh.Scale.X/20,15,45,0,'Normal',10,4)
  1533. coroutine.wrap(function()
  1534. local frame = (1/30)
  1535. for i = 1, 30 do
  1536. part1.Transparency = (i/30)
  1537. part2.Transparency = (i/30)
  1538. swait()
  1539. end
  1540. part1:destroy()
  1541. part2:destroy()
  1542. end)()
  1543. Attack = false
  1544. NeutralAnims = true
  1545. Root.Anchored = false
  1546. data1.Destroy()
  1547. data2.Destroy()
  1548. end
  1549.  
  1550.  
  1551. function BLaser(key)
  1552. NeutralAnims = false
  1553. Attack = true
  1554. Root.Anchored = true
  1555. local data = MagicCircle{Weld=Torso,Pos=CF.N(0,0,-1),Size=15,Variant=MagicVariant,Time=.75}
  1556. local IsGrown = false
  1557. data.Grown:connect(function() IsGrown = true end)
  1558. repeat swait()
  1559. local Alpha = .1
  1560. local idk = M.R(25)
  1561. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1562. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1563. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  1564. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1565. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1566. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1567. local LookVector = Mouse.Hit.p
  1568. Torso.CFrame = CF.N(Root.Position,LookVector)
  1569. until IsGrown
  1570. if(S.UserInputService:IsKeyDown(key))then
  1571. local grown = 0
  1572. repeat
  1573. local Alpha = .1
  1574. local idk = M.R(25)
  1575. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1576. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1577. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  1578. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1579. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1580. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1581. local LookVector = Mouse.Hit.p
  1582. Root.CFrame = CF.N(Root.Position,LookVector)
  1583. swait()
  1584. until not S.UserInputService:IsKeyDown(key)
  1585. end
  1586.  
  1587. local hit,pos,norm,dist = CastRay(data.Circle.CFrame.p,Mouse.Hit.p,1024)
  1588. local part = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data.Mesh.Scale.x/40,data.Mesh.Scale.x/40),CF.N(data.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
  1589. Mesh(part,Enum.MeshType.Cylinder)
  1590. Tween(part,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
  1591. local aa = data.Circle:Clone();
  1592. aa.Parent = Effects
  1593. aa.Anchored = true
  1594. local blast = Sound(aa,334702766,1,5,false,true,true)
  1595. data.Circle:destroy()
  1596. if(not blast.IsLoaded)then repeat swait() until blast.IsLoaded end
  1597. Effect{
  1598. Effect='ResizeAndFade',
  1599. Color=MagicVariant.Color,
  1600. Size=V3.N(data.Mesh.Scale.X/20,data.Mesh.Scale.X/20,data.Mesh.Scale.X/20),
  1601. Mesh={MeshType=Enum.MeshType.Sphere},
  1602. CFrame=CF.N(pos),
  1603. Sound=blast,
  1604. FXSettings={
  1605. EndSize=V3.N(.05,.05,.05),
  1606. EndIsIncrement=true
  1607. }
  1608. }
  1609. for i = 1, 5 do
  1610. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  1611. Effect{
  1612. Effect='Fade',
  1613. Frames=65,
  1614. Sound=blast,
  1615. Size=V3.N((data.Mesh.Scale.X/20)/2,(data.Mesh.Scale.X/20)/2,data.Mesh.Scale.X/20),
  1616. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-(data.Mesh.Scale.X/20)).p,pos),
  1617. Mesh = {MeshType=Enum.MeshType.Sphere},
  1618. Material=Enum.Material.Neon,
  1619. Color=MagicVariant.Color,
  1620. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  1621. }
  1622. end
  1623. AOEDamage(pos,data.Mesh.Scale.X/20,45,75,0,'Normal',10,4)
  1624. coroutine.wrap(function()
  1625. for i = 1, (blast.TimeLength*Frame_Speed) do
  1626. part.Transparency = (i/(blast.TimeLength*Frame_Speed))
  1627. for _,v in next, aa:children() do if v:IsA'Decal' then v.Transparency = (i/(blast.TimeLength*Frame_Speed)) end end
  1628. swait()
  1629. end
  1630. aa:destroy()
  1631. part:destroy()
  1632. end)()
  1633.  
  1634. Attack = false
  1635. NeutralAnims = true
  1636. Root.Anchored = false
  1637. Root.Velocity = Mouse.Hit.lookVector*-125
  1638. end
  1639.  
  1640. function Skill1()
  1641. Laser(Enum.KeyCode.Q)
  1642. end
  1643.  
  1644. function Skill2()
  1645. DLaser(Enum.KeyCode.Z)
  1646. end
  1647.  
  1648. function Skill3()
  1649. BLaser(Enum.KeyCode.X)
  1650. end
  1651.  
  1652. --// Wrap it all up \\--
  1653.  
  1654. Mouse.KeyDown:connect(function(k)
  1655. if(Attack)then return end
  1656. if(k == 'q')then Skill1() end
  1657. if(k == 'z')then Skill2() end
  1658. if(k == 'x')then Skill3() end
  1659. end)
  1660.  
  1661. Plr.Chatted:connect(function(m)
  1662.  
  1663. if(m:sub(1,3) == '/e ')then
  1664. local msg = m:sub(4)
  1665. --emote commands (gotta do)
  1666. end
  1667. end)
  1668. while true do
  1669. swait()
  1670. Sine = Sine + Change
  1671.  
  1672. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4)), Char)
  1673.  
  1674. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1675. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed > 24 and "Run" or "Walk") or hitfloor and "Idle")
  1676. if(not Effects or not Effects.Parent)then
  1677. Effects = IN("Model",Char)
  1678. Effects.Name = "Effects"
  1679. end
  1680. if(State == 'Run')then
  1681. local wsVal = 20 / (Hum.WalkSpeed/16)
  1682. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1683. Change = 3
  1684. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(15+25*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha)
  1685. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(15-25*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha)
  1686. elseif(State == 'Walk')then
  1687. local wsVal = 20 / (Hum.WalkSpeed/16)
  1688. local Alpha = math.min(.3 * (Hum.WalkSpeed/8),1)
  1689. Change = 3
  1690. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.5*M.C(Sine/wsVal)/2,0+.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1691. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.5*M.C(Sine/wsVal)/2,0-.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1692. else
  1693. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  1694. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  1695. end
  1696.  
  1697. Hum.WalkSpeed = WalkSpeed
  1698.  
  1699. if(NeutralAnims)then
  1700. if(State == 'Idle')then
  1701. local Alpha = .1
  1702. Change = .75
  1703. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0+.2*M.C(Sine/12),.2*M.C(Sine/6),0)*CF.A(M.R(-5+5*M.C(Sine/12)),0,0),Alpha)
  1704. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-5+5*M.C(Sine/12)),0,0),Alpha)
  1705. LS.C0 = LS.C0:lerp(LSC0*CF.N(.25,0,0)*CF.A(M.R(-45),0,M.R(45+5*M.C(Sine/12))),Alpha)
  1706. RS.C0 = RS.C0:lerp(RSC0*CF.N(-.25,0,0)*CF.A(M.R(-45),0,M.R(-45-5*M.C(Sine/12))),Alpha)
  1707. LH.C0 = LH.C0:lerp(LHC0*CF.N(0-.2*M.C(Sine/12),-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(10),0),Alpha)
  1708. RH.C0 = RH.C0:lerp(RHC0*CF.N(0-.2*M.C(Sine/12),-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(-10),0),Alpha)
  1709. -- idle
  1710. elseif(State == 'Run')then
  1711. local wsVal = 20 / (Hum.WalkSpeed/16)
  1712. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1713. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1714. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1715. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha)
  1716. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha)
  1717. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1718. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1719. elseif(State == 'Walk')then
  1720. local wsVal = 20 / (Hum.WalkSpeed/16)
  1721. local Alpha = math.min(.3 * (Hum.WalkSpeed/16),1)
  1722. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-5-2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1723. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1724. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.22*M.C(Sine/wsVal))*CF.A(M.R(37*M.C(Sine/wsVal)),0,M.R(-5)),Alpha)
  1725. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.22*M.C(Sine/wsVal))*CF.A(M.R(-37*M.C(Sine/wsVal)),0,M.R(5)),Alpha)
  1726. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1727. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1728. elseif(State == 'Jump')then
  1729. local Alpha = .1
  1730. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1731. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  1732. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  1733. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1734. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1735. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1736. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1737. elseif(State == 'Fall')then
  1738. local Alpha = .1
  1739. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1740. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1741. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1742. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1743. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1744. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1745. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1746. elseif(State == 'Paralyzed')then
  1747. -- paralyzed
  1748. elseif(State == 'Sit')then
  1749. -- sit
  1750. end
  1751. end
  1752.  
  1753. end
Add Comment
Please, Sign In to add comment