aqzsxw2013

UnWTF

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