Advertisement
refrop

Gentle sans v1

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