Advertisement
hjkook

wwww

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