Advertisement
epicboi

Untitled

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