Advertisement
EARTHWORM_SALLY

yeah

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