Advertisement
Josemmoya

Blueberry Sans

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