aqzsxw2013

UnKnow

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