Advertisement
ItzPartapika

Soviet Officer Elys (Big Black Edit)

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