Advertisement
casperYOLO

Untitled

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