Advertisement
aaaay63746

Sans

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