Advertisement
refrop

Gentle sans v12

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