Advertisement
Guest User

basasas

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