Advertisement
scriptshocaser

Untitled

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