Advertisement
Josemmoya

Revengeful crying child

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