Advertisement
McSans

Blue berry Fe test

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