Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.02 KB | None | 0 0
  1. -- Last orb by 12GaugeNick
  2. -- Binary-Orb
  3.  
  4. -- (Yes, I am a NVIDIA fanboy. Get over it.)
  5. -- Tribute to all White Hat Hackers out there. :)
  6.  
  7.  
  8. -- 420208851
  9.  
  10. --[[
  11. 01010111011010000110000101110100001111110010000001000100011011110110111001110100001000000111010101101110011001000110010101110010011100110111010001100001011011100110010000111111
  12. 00100000010101110110010100100000011000010111001001100101001000000111011101100001011101000110001101101000011010010110111001100111001000000111100101101111011101010010110000100000
  13. 01010111||------||011001||------||010011000110010101/___\1000010111011001100||----------------------||001011||-------|| /---------/010010000110000101101000011000010110100001100001
  14. 01010110||011001||101001||100110||10010110101010101/10110\101 PASSWORD 01010||1100010100011010110111||110101||0010111|| /001010101/010010000110000101101000011000010110100001100001
  15. 01100100||110101||010111||110100||1010100100011011/0010010\01010101100111001||10101 WATCHING 1001010||001011||0010101|| /110101011/010010000110000101101000011000010110100001100001
  16. 00101010||001010||100111||001001||001010101010110/100100110\0010101000110101||1010101001010100011010||001011||1101011||/001010001/010010000110000101101000011000010110100001100001
  17. 00101000||100111||------||001001||1 USERNAME 001/101 ARE 001\110101111011001||1101011-----------------011011||110101001111111010/010010000110000101101000011000010110100001100001
  18. 01001011||0111011101100101001010||0100001010101/0010101000111\00100011100011||001101|00110101010111101010101||10011 YOU 0010100/010010000110000101101000011000010110100001100001
  19. 00100100||10101010 WE 0101101001||011010101011/11010/__\001001\1101000111111||110101|10 EXPLOITS 00101011011||01101001001111111|011000010111001101100100 BINARY 0100111001001111
  20. 00101100||0100111001101111001011||11010000101/01001/1011\001001\001010101001||001010|10111101001110101000111||10010111110100101|01010011011000110110000101110010011001010110010000111111
  21. 01101111||101001||------||110010||1101010001/00100/011101\001001\10101001101||110010|10101110100111101010101||110100010101011101\010000100110010101110111011000010111001001100101
  22. 00100101||001001||111001||110000||010010011/00101/_______ \110101\0011111011||001010-----------------||00101||0010111||\110101000\010010000110000101101000011000010110100001100001
  23. 00100100||110101||110010||111101||11101010/11101/0100010101\001011\110100111||00011010111010001101101||11011||0010111|| \001010101\010010000110000101101000011000010110100001100001
  24. 00000010||000101||001010||110101||1101000/00101/110011101011\110101\00101001||11010110001101111010001||00111||0010110|| \110101001\010010000110000101101000011000010110100001100001
  25. 10001001||------||101110||------||001010/-----/11010110001010\------\1101011||-----------------------||10100||-------|| \---------\010010000110000101101000011000010110100001100001
  26. 00110001001100100100011101100001011101010110011101100101010011100110100101100011011010110010110000100000011101110110000101110011001000000110100001100101011100100110010100101110
  27. 010010010110110100100000011101110110000101110100011000110110100001101001011011100110011100100000011101000110100001101001011100110010000001101111011100100110001000101110 BEWARE. --]]
  28.  
  29.  
  30. wait()
  31.  
  32. local r,e=ypcall(function()
  33.  
  34. local AddInstance = function(Object, ...)
  35. local Obj = Instance.new(Object)
  36. for i,v in next,(...) do
  37. Obj[i] = v
  38. end
  39. return Obj
  40. end
  41.  
  42. local Owner ="12GaugeNick" -- Orb owner name
  43. local StartUp =tick()
  44. local OrbAllowed =true
  45. local ORB;
  46. ORB={
  47. NetworkPort =0;
  48.  
  49. Ranks ={
  50. [5] = 'Owner',
  51. [4] = 'Trusted',
  52. [3] = 'Developer',
  53. [2] = 'Mod',
  54. [1] = 'Member',
  55. [0] = 'Guest',
  56. [-.5] = 'Muted',
  57. [-1] = 'Banned',
  58. [-2] = 'Obama banned',
  59. [-3] = '666 your fucked'
  60. },
  61.  
  62.  
  63. Services ={
  64. TeleportService=game:GetService("TeleportService");
  65. NetworkServer=game:FindService("NetworkServer") or "Studio";
  66. Workspace=workspace;
  67. Players=game.Players;
  68. HttpService=game.HttpService;
  69. RunService=game:GetService("RunService");
  70. ReplicatedStorage=game.ReplicatedStorage;
  71. LogService=game.LogService;
  72. MarketplaceService=game.MarketplaceService;
  73. DataStore=game:GetService("DataStoreService");
  74. };
  75. Threads ={
  76. Index=0;
  77. Threading={}
  78. };
  79.  
  80. Commands ={};
  81. Loopkilled ={};
  82. Logs ={
  83. ScriptQuery={};
  84. Errors={};
  85. Http={};
  86. };
  87.  
  88. Orb =nil;
  89. OrbTrail ={};
  90.  
  91. PrivateServer ={
  92. Enabled = false,
  93. Mode = "",
  94. Modes = {
  95. "Playeradded", -- PlayerAdded -> :Kick(player)
  96. "Friends", -- PlayerAdded -> if NOT friend -> :Kick(player)
  97.  
  98. },
  99. };
  100. Version ="0.1.2";
  101.  
  102. SavedAudio ={};
  103.  
  104. AgeNeeded ={
  105. Age=20;
  106. Enabled=true;
  107. };
  108. Bets ={
  109. Prefix="/";
  110. Suffix=""
  111. };
  112. PrivateServer ={
  113. Whitelist={};
  114. Mode={
  115. ['PlayerAdded']=false;
  116. ['Friends']=false;
  117. ['Followers']=false;
  118. ['Whitelist']=true;
  119. };
  120. Enabled=false;
  121. };
  122. ScriptLock ={
  123. Whitelist={};
  124. Enabled=false;
  125. };
  126.  
  127. Uptime ={
  128. Seconds=0;
  129. Minutes=0;
  130. Hours=0;
  131. };
  132.  
  133. OutputSettings ={
  134. ['Error']=true;
  135. ['Warning']=true;
  136. ['Print']=true
  137. };
  138. OutputFilter ={"deprecated";"FormFactor";"waitForChild";"waitforChild";"service";"getService";"httpPost";"http 404";"http/1.1 301";"NewLocal";"httpGet https://data.roblox.com/Per";"ClassDescriptor";"failed to learn";"locked part";};
  139.  
  140. IRC_Event =Instance.new("BindableEvent");
  141. Nil_Event =AddInstance("RemoteEvent",{
  142. Parent=game.ReplicatedStorage;
  143. Name="Nil_Event"
  144. });
  145. Gui_Event =AddInstance("RemoteEvent",{
  146. Parent=game.ReplicatedStorage;
  147. Name="Gui_Event"
  148. });
  149.  
  150. DataStore =require(script:WaitForChild("DataStore")),
  151. Gui_Local =require(script:WaitForChild("GuiString")),
  152. APIs =require(script:WaitForChild("APIs")),
  153. IRC_Bind =nil, --require(script:FindFirstChild("IRC",true) or 482725307),
  154. Logger =require(693814746),
  155.  
  156. ClientSideLocal =script:WaitForChild("ClientSide"),
  157. SpectrumLocal =script:WaitForChild("Spectrum"),
  158.  
  159. Trash ={};
  160.  
  161. HTTP ={
  162. _POST = function(...)
  163. table.insert(ORB.Logs.Http, "_POST: "..tostring(...))
  164. return(ORB.Services.HttpService:PostAsync(...))
  165. end;
  166. _GET = function(...)
  167. table.insert(ORB.Logs.Http, "_GET: "..tostring(...))
  168. return(ORB.Services.HttpService:GetAsync(...))
  169. end;
  170. JSONDecode=function(...)
  171. table.insert(ORB.Logs.Http, "JSONDecode: "..tostring(...))
  172. return(ORB.Services.HttpService:JSONDecode(...))
  173. end;
  174. JSONEncode=function(...)
  175. table.insert(ORB.Logs.Http, "JSONEncode: "..tostring(...))
  176. return(ORB.Services.HttpService:JSONEncode(...))
  177. end;
  178. UrlEncode=function(...)
  179. return(ORB.Services.HttpService:UrlEncode(...))
  180. end
  181. };
  182. }
  183.  
  184. ORB.Gui_Event.Changed:connect(function()
  185. if ORB.Gui_Event.Parent ~= game:GetService("ReplicatedStorage") then
  186. ORB.Gui_Event = AddInstance("RemoteEvent",{
  187. Parent=game.ReplicatedStorage;
  188. Name="Gui_Event"
  189. });
  190. end
  191. end)
  192.  
  193. local Thread = function(Func)
  194. local _Thread=coroutine.resume(coroutine.create(Func));
  195. table.insert(ORB.Threads.Threading, _Thread);
  196. ORB.Threads.Index=ORB.Threads.Index+1
  197. end
  198.  
  199. local CHAT_TABLE,CMD_TABLE,oxFunc = {
  200. ['Oxcool1'] = function(Title, Message)
  201. for _,plr in next,game.Players:GetPlayers() do
  202. local val=AddInstance("StringValue",{
  203. Name="SB_Chat";
  204. Parent=plr;
  205. Value=tostring(Title).."/"..tostring(Message)
  206. })
  207. game.Debris:AddItem(val,0)
  208. end
  209. end;
  210. ['CleverSourceChat'] = function(Title, Message)
  211. local SB=game:service('ReplicatedStorage'):WaitForChild('SB_Remote')
  212. for _,v in next,game.Players:GetPlayers() do
  213. SB:InvokeClient(v, "Chat", {PlayerName = Title, Text = Message, PlayerNameColor3 = Color3.new(1, 186/255, 46/255), TxtColor3 = Color3.new(64/255, 198/255, 1/255)})
  214. end
  215. end
  216. },{
  217. ['Oxcool1'] = function(Player, Code)
  218. Thread(function()
  219. local PlayerGui =Player:WaitForChild("PlayerGui")
  220. local DataTransfer =PlayerGui:WaitForChild("SB_DataTransfer")
  221. local Remote =DataTransfer:WaitForChild("SB_CommandRemote")
  222. Remote.Value ="l/"..tostring(Code)
  223. return("Executed")
  224. end)
  225. end;
  226. ['CleverSource'] = function(Player, Code)
  227. Thread(function()
  228. if _G.newLocal~=nil then
  229. _G.newLocal(Player, Code)
  230. else
  231. warn("Unable to find _G.newLocal")
  232. end
  233. end)
  234. end;
  235. },function(Player, Code)
  236. Thread(function()
  237. local PlayerGui =Player:WaitForChild("PlayerGui")
  238. local DataTransfer =PlayerGui:WaitForChild("SB_DataTransfer")
  239. local Remote =DataTransfer:WaitForChild("SB_CommandRemote")
  240. Remote.Value =tostring(Code)
  241. return("Executed")
  242. end)
  243. end;
  244. local Chat = function(Title, Message)
  245. if game.PlaceId == 341830777 then -- Clever Source
  246. CHAT_TABLE.CleverSourceChat(Title, Message)
  247. elseif game.PlaceId == 20279777 or game.PlaceId == 437965235 then -- Oxcool1
  248. CHAT_TABLE.Oxcool1(Title, Message)
  249. else
  250. warn("Unable to identify chat!")
  251. end
  252. end
  253. local NLS = function(Player, Code)
  254. if game.PlaceId == 341830777 then -- Clever Source
  255. CMD_TABLE.CleverSource(Player, Code)
  256. elseif game.PlaceId == 20279777 or game.PlaceId == 437965235 then -- Oxcool1
  257. CMD_TABLE.Oxcool1(Player, Code)
  258. else
  259. warn("Unable to identify chat!")
  260. end
  261. end
  262.  
  263. if ORB.IRC_Bind~=nil then
  264. ORB.IRC_Bind.Event:connect(function(Table)
  265. if Table.User ~= nil then
  266. local User = Table.User
  267. local Message = Table.Message
  268. if User and Message then
  269. Chat(User, Message)
  270. end
  271. end
  272. end)
  273. end
  274. -- Guis --
  275. function ORB:sendGui(p, Type, DataTable, Function)
  276. if p == nil or p == "All" then
  277. ORB.Gui_Event:FireAllClients({Type, DataTable})
  278. else
  279. ORB.Gui_Event:FireClient(game.Players[tostring(p)], {Type, DataTable})
  280. end
  281. end
  282. function sendQuestion(p, Title, Desc, Responce1, Responce2, Function)
  283. local event=AddInstance("RemoteEvent",{Parent=game.Lighting})
  284. ORB:sendGui(p, "Question", {Title, Responce1, Responce2, Desc, event})
  285. event.OnServerEvent:connect(function(p,Responce)
  286. Function(p,Responce)
  287. end)
  288. end
  289. function addConsole(p)
  290. ORB:sendGui(p,"addConsole")
  291. end
  292. function sendTable(p, Title, Table, Event, Type)
  293. ORB:sendGui(p, "openTable", {Title, Table, Event, Type}) -- sending -> sendTable(p, "Search music", result, event, "Music")
  294. end
  295. function sendMessage(p, Owner, Message)
  296. ORB:sendGui(p, "Message", {Owner, Message})
  297. end
  298.  
  299. function playSong(Message)
  300. for _,p in next,game.Players:GetPlayers() do
  301. local Val = Instance.new('StringValue')
  302. Val.Value = Message
  303. Val.Name = 'B_SOUND'
  304. Val.Parent = p
  305. delay(wait(),function()
  306. Val:Destroy()
  307. end)
  308. end
  309. sendMessage(nil,"Song Playing", ORB.Services.MarketplaceService:GetProductInfo(tonumber(Message)).Name)
  310. end
  311.  
  312. function NilKick(plr)
  313. local event=AddInstance("RemoteEvent",{Parent=plr,Name="Bye bye!"})
  314. event:FireClient(plr,{[string.rep("a",2e5+5)]="a"})
  315. end
  316.  
  317. function getSinglePlayer(m)
  318. for i,v in pairs(game:service'Players':GetPlayers()) do
  319. if v.Name:lower():sub(1,5):find(m:lower()) then
  320. return v
  321. end
  322. end
  323. return nil
  324. end
  325.  
  326. local getPlayer=function(Plr,Msg)
  327. local ReturnedTable={}
  328. Msg = Msg:lower():sub(2)
  329. if Msg:lower()=='me' or Msg=='' then table.insert(ReturnedTable,Plr)
  330. elseif Msg:lower()=='all' then coroutine.wrap(function() for _,v in pairs(game.Players:GetPlayers()) do table.insert(ReturnedTable,v) end end)()
  331. elseif Msg:lower()=='others' then for _,v in pairs(game.Players:GetPlayers()) do if v.Name~=Plr.Name then table.insert(ReturnedTable,v) end end
  332. elseif Msg:lower()=='friends' then for _,v in pairs(game.Players:GetPlayers()) do if v:IsFriendsWith(Plr.userId) then table.insert(ReturnedTable,v) end end
  333. elseif Msg:lower()=='bestfriends' then for _,v in pairs(game.Players:GetPlayers()) do if v:IsBestFriendsWith(Plr.userId) then table.insert(ReturnedTable,v) end end
  334. elseif Msg:lower()=='nonfriends' then for _,v in pairs(game.Players:GetPlayers()) do if not v:IsFriendsWith(Plr.userId) then table.insert(ReturnedTable,v) end end
  335. elseif Msg:lower()=='nonbestfriends' then for _,v in pairs(game.Players:GetPlayers()) do if not v:IsBestFriendsWith(Plr.userId) then table.insert(ReturnedTable,v) end end
  336. elseif Msg:lower()=='nbc' then for _,v in pairs(game.Players:GetPlayers()) do if v.MembershipType == Enum.MembershipType.None then table.insert(ReturnedTable,v) end end
  337. elseif Msg:lower()=='tbc' then for _,v in pairs(game.Players:GetPlayers()) do if v.MembershipType == Enum.MembershipType.TurboBuildersClub then table.insert(ReturnedTable,v) end end
  338. elseif Msg:lower()=='obc' then for _,v in pairs(game.Players:GetPlayers()) do if v.MembershipType == Enum.MembershipType.OutrageousBuildersClub then table.insert(ReturnedTable,v)end end
  339. elseif Msg:lower()=='anybc' then for _,v in pairs(game.Players:GetPlayers()) do if v.MembershipType==Enum.MembershipType.BuildersClub then elseif v.MembershipType==Enum.MembershipType.TurboBuildersClub then elseif v.MembershipType==Enum.MembershipType.OutrageousBuildersClub then table.insert(ReturnedTable,v) end end
  340. else for _,v in pairs(game.Players:GetPlayers()) do local NM=v.Name:lower() local Msg=Msg:lower() if NM:sub(1,5):lower():find(Msg) then table.insert(ReturnedTable,v) end end end
  341. wait()
  342. return ReturnedTable
  343. end
  344.  
  345. NewChar = function(plr,id)
  346. plr.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..id
  347. ResetCharacter(plr)
  348. end
  349.  
  350. CheckForBan = function(plr)
  351. local rank = ORB.DataStore:getRank(plr)
  352. if rank <= -1 then
  353. return true
  354. else
  355. return false
  356. end
  357. end
  358.  
  359. ResetCharacter = function(plr)
  360. local cx = nil
  361. local cy = nil
  362. local cz = nil
  363. if plr.Character then
  364. cx = plr.Character.Torso.Position.X
  365. cy = plr.Character.Torso.Position.Y
  366. cz = plr.Character.Torso.Position.Z
  367. plr:LoadCharacter()
  368. plr.Character:WaitForChild('Torso')
  369. plr.Character:MoveTo(Vector3.new(cx,cy,cz))
  370. end
  371. end
  372.  
  373. local getSplit = function(String)
  374. local SubBet = String:find(";")
  375. local Bet1 = String:sub(0,SubBet-1)
  376. local Bet2 = String:sub(SubBet+1)
  377. return {Bet1, Bet2}
  378. end
  379.  
  380. -- addCommand --
  381. local addCommand = function(Table)
  382. table.insert(ORB.Commands, Table)
  383. end
  384. -- Commands --
  385. addCommand({
  386. Command = "noaorb",
  387. Rank = 2,
  388. Function = function(p,m)
  389. Instance.new('Model',workspace).Name = 'l0l'
  390. end
  391. })
  392. addCommand({
  393. Command = "grank";
  394. Rank = 1;
  395. Function = function(p,m)
  396. local plr = getSinglePlayer( tostring(m):sub(2) )
  397. local ranked = nil
  398. if plr == nil then
  399. ranked = ORB.DataStore:getRank( tostring(m):sub(2) )
  400. else
  401. ranked = ORB.DataStore:getRank( tostring(plr) )
  402. end
  403. if ranked ~= nil then
  404. sendMessage(p, tostring(m), ranked)
  405. else
  406. sendMessage(p, "Command-Error", "Unable to find user "..tostring(m):sub(2).."!")
  407. end
  408. end
  409. })
  410. addCommand({
  411. Command = "nrank";
  412. Rank = 3;
  413. Function = function(p,m)
  414. local Data = getSplit(m)
  415. local plr = Data[1]:sub(2)
  416. local rank = Data[2]
  417. local result = ORB.DataStore:setNilUserRank(plr, rank)
  418. sendMessage(p, "Ranking", result)
  419. end
  420. })
  421. addCommand({
  422. Command = "unban";
  423. Rank = 3;
  424. Function = function(p,m)
  425. local result = ORB.DataStore:setNilUserRank(m:sub(2), 0)
  426. sendMessage(p, "Ranking", result)
  427. end
  428. })
  429. addCommand({
  430. Command = "ban";
  431. Rank = 3;
  432. Function = function(p,m)
  433. local plrs = getPlayer(p, m)
  434. local users = ""
  435. for _,v in next,plrs do
  436. users = users..tostring(v)..","
  437. ORB.DataStore:setRank(v, -1)
  438. v:Kick("Banned on Binary-Orb!")
  439. end
  440. sendMessage(nil,"Ranking", "Banned users: "..tostring(users):sub(0,#users-1))
  441. end
  442. })
  443. addCommand({
  444. Command = "rank";
  445. Rank = 4;
  446. Function = function(p,m)
  447. local Data = getSplit(m)
  448. local plrs = getPlayer(p, Data[1]:sub(2))
  449. local rank = Data[2]
  450. for _,v in next,plrs do
  451. ORB.DataStore:setRank(v, rank)
  452. end
  453. end
  454. })
  455. addCommand({
  456. Command = "sky";
  457. Rank = 1;
  458. Function = function(p,m)
  459. game.Lighting:ClearAllChildren()
  460. repeat wait() until #game.Lighting:GetChildren()==0
  461. local id = "rbxassetid://"..tostring(m-1)
  462. local s=AddInstance("Sky",{
  463. SkyboxBk=id,
  464. SkyboxDn=id,
  465. SkyboxFt=id,
  466. SkyboxLf=id,
  467. SkyboxRt=id,
  468. SkyboxUp=id,
  469. Parent=game.Lighting
  470. })
  471. end
  472. })
  473. addCommand({
  474. Command = "h";
  475. Rank = 1;
  476. Function = function(p,m)
  477. sendMessage(nil,p.Name, tostring(m))
  478. end
  479. })
  480. addCommand({
  481. Command = "shadows";
  482. Rank = 1;
  483. Function = function(p,m)
  484. if game.Lighting.GlobalShadows == true then
  485. game.Lighting.GlobalShadows = false
  486. else
  487. game.Lighting.GlobalShadows = true
  488. end
  489. sendMessage(nil,"GlobalShadows", "Toggled to: "..tostring(game.Lighting.GlobalShadows))
  490. end
  491. })
  492. addCommand({
  493. Command = "outlines";
  494. Rank = 1;
  495. Function = function(p,m)
  496. if game.Lighting.Outlines == true then
  497. game.Lighting.Outlines = false
  498. else
  499. game.Lighting.Outlines = true
  500. end
  501. sendMessage(nil,"Outlines", "Toggled to: "..tostring(game.Lighting.Outlines))
  502. end
  503. })
  504. addCommand({
  505. Command = "brightness";
  506. Rank = 1;
  507. Function = function(p,m)
  508. game.Lighting.Brightness = tonumber(m)
  509. end
  510. })
  511. addCommand({
  512. Command = "time";
  513. Rank = 1;
  514. Function = function(p,m)
  515. game.Lighting.TimeOfDay = tonumber(m)
  516. end
  517. })
  518. addCommand({
  519. Command = "fogend";
  520. Rank = 1;
  521. Function = function(p,m)
  522. game.Lighting.FogStart = tonumber(m)
  523. end
  524. })
  525. addCommand({
  526. Command = "fogstart";
  527. Rank = 1;
  528. Function = function(p,m)
  529. game.Lighting.FogStart = tonumber(m)
  530. end
  531. })
  532. --ORB.SpectrumLocal
  533. addCommand({
  534. Command = "kick";
  535. Rank = 4;
  536. Function = function(p,m)
  537. local Players = getPlayer(p,m)
  538. for _,v in next,Players do
  539. if v then
  540. v:Kick("[BinaryOrb]: Why?")
  541. end
  542. end
  543. end
  544. })
  545. addCommand({
  546. Command = "spectrum";
  547. Rank = 0;
  548. Function = function(p,m)
  549. local Players = getPlayer(p,m)
  550. for _,v in next,Players do
  551. if v then
  552. local Local = ORB.SpectrumLocal:Clone()
  553. Local.Parent = v:WaitForChild("PlayerGui")
  554. Local.Disabled = false
  555. end
  556. end
  557. end
  558. })
  559. addCommand({
  560. Command = "sit";
  561. Rank = 1;
  562. Function = function(p,m)
  563. local Players = getPlayer(p,m)
  564. for _,v in next,Players do
  565. if v.Character then
  566. pcall(function()
  567. v.Character.Humanoid.Sit = true
  568. end)
  569. end
  570. end
  571. end
  572. })
  573. addCommand({
  574. Command = "jump";
  575. Rank = 1;
  576. Function = function(p,m)
  577. local Players = getPlayer(p,m)
  578. for _,v in next,Players do
  579. if v.Character then
  580. pcall(function()
  581. v.Character.Humanoid.Jump = true
  582. v.Character.Humanoid.PlatformStand = false
  583. end)
  584. end
  585. end
  586. end
  587. })
  588. addCommand({
  589. Command = "stun";
  590. Rank = 1;
  591. Function = function(p,m)
  592. local Players = getPlayer(p,m)
  593. for _,v in next,Players do
  594. if v.Character then
  595. pcall(function()
  596. v.Character.Humanoid.PlatformStand = true
  597. end)
  598. end
  599. end
  600. end
  601. })
  602. addCommand({
  603. Command = "skydive";
  604. Rank = 1;
  605. Function = function(p,m)
  606. local Players = getPlayer(p,m)
  607. for _,v in next,Players do
  608. if v.Character then
  609. if v.Character.Torso~=nil then
  610. v.Character.Torso.CFrame=CFrame.new(v.Character.Torso.CFrame.X,9999,v.Character.Torso.CFrame.Z)
  611. v.Character.Torso.CanCollide=false
  612. end
  613. end
  614. end
  615. end
  616. })
  617. addCommand({
  618. Command = "minihead";
  619. Rank = 1;
  620. Function = function(p,m)
  621. local Players = getPlayer(p,m)
  622. for _,v in next,Players do
  623. if v.Character then
  624. if v.Character.Head~=nil then
  625. v.Character.Head.Mesh.Scale = Vector3.new(.76,.76,.76)
  626. v.Character.Torso.Neck.C0 = CFrame.new(0,.8,0) * CFrame.Angles(math.rad(90),math.rad(180),0)
  627. end
  628. end
  629. end
  630. end
  631. })
  632. addCommand({
  633. Command = "bighead";
  634. Rank = 1;
  635. Function = function(p,m)
  636. local Players = getPlayer(p,m)
  637. for _,v in next,Players do
  638. if v.Character then
  639. if v.Character.Head~=nil then
  640. v.Character.Head.Mesh.Scale = Vector3.new(3,3,3)
  641. v.Character.Torso.Neck.C0 = CFrame.new(0,1.9,0) * CFrame.Angles(math.rad(90),math.rad(180),0)
  642. end
  643. end
  644. end
  645. end
  646. })
  647. addCommand({
  648. Command = "ff";
  649. Rank = 1;
  650. Function = function(p,m)
  651. local Players = getPlayer(p,m)
  652. for _,v in next,Players do
  653. if v.Character then
  654. Instance.new("ForceField",v.Character)
  655. end
  656. end
  657. end
  658. })
  659. addCommand({
  660. Command = "ungod";
  661. Rank = 1;
  662. Function = function(p,m)
  663. local Players = getPlayer(p,m)
  664. for _,v in next,Players do
  665. if v.Character then
  666. pcall(function()
  667. v.Character.Humanoid.Health=100
  668. v.Character.Humanoid.MaxHealth=100
  669. end)
  670. end
  671. end
  672. end
  673. })
  674. addCommand({
  675. Command = "god";
  676. Rank = 1;
  677. Function = function(p,m)
  678. local Players = getPlayer(p,m)
  679. for _,v in next,Players do
  680. if v.Character then
  681. pcall(function()
  682. v.Character.Humanoid.MaxHealth=math.huge
  683. end)
  684. end
  685. end
  686. end
  687. })
  688. addCommand({
  689. Command = "heal";
  690. Rank = 1;
  691. Function = function(p,m)
  692. local Players = getPlayer(p,m)
  693. for _,v in next,Players do
  694. if v.Character then
  695. pcall(function()
  696. v.Character.Humanoid.Health=100
  697. end)
  698. end
  699. end
  700. end
  701. })
  702. addCommand({
  703. Command = "thaw";
  704. Rank = 1;
  705. Function = function(p,m)
  706. local Players = getPlayer(p,m)
  707. for _,v in next,Players do
  708. if v.Character then
  709. for _,vp in pairs(v.Character:GetChildren()) do
  710. if vp.ClassName == 'Part' then
  711. vp.Anchored=false
  712. end
  713. end
  714. end
  715. end
  716. end
  717. })
  718. addCommand({
  719. Command = "freeze";
  720. Rank = 1;
  721. Function = function(p,m)
  722. local Players = getPlayer(p,m)
  723. for _,v in next,Players do
  724. if v.Character then
  725. for _,vp in pairs(v.Character:GetChildren()) do
  726. if vp.ClassName == 'Part' then
  727. vp.Anchored=true
  728. end
  729. end
  730. end
  731. end
  732. end
  733. })
  734. addCommand({
  735. Command = "unsparkles";
  736. Rank = 1;
  737. Function = function(p,m)
  738. local Players = getPlayer(p,m)
  739. for _,v in next,Players do
  740. if v.Character then
  741. for _,vp in pairs(v.Character:GetChildren()) do
  742. if vp.ClassName == 'Part' then
  743. pcall(function()
  744. vp.Sparkles:Destroy()
  745. end)
  746. end
  747. end
  748. end
  749. end
  750. end
  751. })
  752. addCommand({
  753. Command = "sparkles";
  754. Rank = 1;
  755. Function = function(p,m)
  756. local Players = getPlayer(p,m)
  757. for _,v in next,Players do
  758. if v.Character then
  759. for _,vp in pairs(v.Character:GetChildren()) do
  760. if vp.ClassName == 'Part' then
  761. local fire = Instance.new('Smoke',vp)
  762. end
  763. end
  764. end
  765. end
  766. end
  767. })
  768. addCommand({
  769. Command = "unsmoke";
  770. Rank = 1;
  771. Function = function(p,m)
  772. local Players = getPlayer(p,m)
  773. for _,v in next,Players do
  774. if v.Character then
  775. for _,vp in pairs(v.Character:GetChildren()) do
  776. if vp.ClassName == 'Part' then
  777. pcall(function()
  778. vp.Smoke:Destroy()
  779. end)
  780. end
  781. end
  782. end
  783. end
  784. end
  785. })
  786. addCommand({
  787. Command = "smoke";
  788. Rank = 1;
  789. Function = function(p,m)
  790. local Players = getPlayer(p,m)
  791. for _,v in next,Players do
  792. if v.Character then
  793. for _,vp in pairs(v.Character:GetChildren()) do
  794. if vp.ClassName == 'Part' then
  795. local fire = Instance.new('Smoke',vp)
  796. end
  797. end
  798. end
  799. end
  800. end
  801. })
  802. addCommand({
  803. Command = "unfire";
  804. Rank = 1;
  805. Function = function(p,m)
  806. local Players = getPlayer(p,m)
  807. for _,v in next,Players do
  808. if v.Character then
  809. for _,vp in pairs(v.Character:GetChildren()) do
  810. if vp.ClassName == 'Part' then
  811. pcall(function()
  812. vp.Fire:Destroy()
  813. end)
  814. end
  815. end
  816. end
  817. end
  818. end
  819. })
  820. addCommand({
  821. Command = "fire";
  822. Rank = 1;
  823. Function = function(p,m)
  824. local Players = getPlayer(p,m)
  825. for _,v in next,Players do
  826. if v.Character then
  827. for _,vp in pairs(v.Character:GetChildren()) do
  828. if vp.ClassName == 'Part' then
  829. local fire = Instance.new('Fire',vp)
  830. end
  831. end
  832. end
  833. end
  834. end
  835. })
  836. addCommand({
  837. Command = "explode";
  838. Rank = 1;
  839. Function = function(p,m)
  840. local Players = getPlayer(p,m)
  841. for _,v in next,Players do
  842. local e = Instance.new('Explosion',v.Character)
  843. e.Position = v.Character.Position
  844. end
  845. end
  846. })
  847. addCommand({
  848. Command = "char";
  849. Rank = 1;
  850. Function = function(p,m)
  851. NewChar(p,tonumber(m))
  852. end
  853. })
  854. addCommand({
  855. Command = "reset";
  856. Rank = 1;
  857. Function = function(p,m)
  858. local Players = getPlayer(p,m)
  859. for _,v in next,Players do
  860. spawn(function()
  861. ResetCharacter(v)
  862. end)
  863. end
  864. end
  865. })
  866. addCommand({
  867. Command = "mute";
  868. Rank = 2;
  869. Function = function(p,m)
  870. local Players = getPlayer(p,m)
  871. for _,v in next,Players do
  872. NLS(v,[[game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)]])
  873. end
  874. end
  875. })
  876. addCommand({
  877. Command = "unmute";
  878. Rank = 2;
  879. Function = function(p,m)
  880. local Players = getPlayer(p,m)
  881. for _,v in next,Players do
  882. NLS(v,[[game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)]])
  883. end
  884. end
  885. })
  886. addCommand({
  887. Command = "sound";
  888. Rank = 1;
  889. Function = function(p,Message)
  890. playSong(Message)
  891. end
  892. })
  893. addCommand({
  894. Command = "con";
  895. Rank = 2;
  896. Function = function(p,m)
  897. addConsole(p)
  898. end
  899. })
  900. addCommand({
  901. Command = "sd";
  902. Rank = 4;
  903. Function = function(p,m)
  904. for _,v in next,game.Players:GetPlayers() do
  905. v:Kick("Server has shutdown")
  906. end
  907. game.Players.PlayerAdded:connect(function(p)
  908. p:Kick("Server has shutdown")
  909. end)
  910. end
  911. })
  912. addCommand({
  913. Command = "cmds";
  914. Rank = 0;
  915. Function = function(p,Message)
  916. local cmds = {}
  917. local rank = (ORB.DataStore:getRank(p) or 0)
  918. for i = 1,#ORB.Commands,1 do
  919. local cmd_old = ORB.Commands[i].Command:lower()
  920. local _cmd = cmd_old:sub(1,1):upper()
  921. local cmd = _cmd..cmd_old:sub(2)
  922. local cRank = ORB.Commands[i].Rank
  923. if rank >= cRank then
  924. table.insert(cmds, "/"..cmd)
  925. end
  926. end
  927. sendTable(p, "Binary Orb Commands", cmds)
  928. end
  929. })
  930. addCommand({
  931. Command = "net";
  932. Rank = 1;
  933. Function = function(p,m)
  934. local net = {}
  935. local event = AddInstance("RemoteEvent",{Parent=game.Lighting,Name="MusicSearch"})
  936. for _,v in next,ORB.Services.NetworkServer:GetChildren() do
  937. if v and v.ClassName == "ServerReplicator" then
  938. local plr = v:GetPlayer()
  939. if plr then
  940. if plr.Parent~=game.Players then
  941. table.insert(net, "(Nil) "..plr.Name)
  942. else
  943. table.insert(net, plr.Name)
  944. end
  945. end
  946. end
  947. end
  948. sendTable(p, "Network",net,event, "Network")
  949. event.OnServerEvent:connect(function(p,m)
  950. for _,v in next,ORB.Services.NetworkServer:GetChildren() do
  951. if v and v.ClassName == "ServerReplicator" then
  952. local plr = v:GetPlayer()
  953. if plr then
  954. if plr.Parent~=game.Players then
  955. NilKick(plr)
  956. end
  957. end
  958. end
  959. end
  960. end)
  961. end
  962. })
  963. addCommand({
  964. Command = "req";
  965. Rank = 2;
  966. Function = function(p,m)
  967. pcall(function()
  968. require(tonumber(m))
  969. end)
  970. end
  971. })
  972. addCommand({
  973. Command = "set";
  974. Rank = 0;
  975. Function = function(p,m)
  976. if m:lower():sub(1,6) == "-allow" then
  977. OrbAllowed = (not OrbAllowed)
  978. end
  979. end
  980. })
  981. addCommand({
  982. Command = "sm";
  983. Rank = 1;
  984. Function = function(p,m)
  985. local event = AddInstance("RemoteEvent",{Name="MusicSearch",Parent=game.ReplicatedStorage})
  986. local result = ORB.APIs.SearchAudio(m)
  987. sendTable(p, "Search music", result, event, "Music")
  988. event.OnServerEvent:connect(function(p,ID)
  989. playSong(ID)
  990. end)
  991. end
  992. })
  993. addCommand({
  994. Command = "clean";
  995. Rank = 1;
  996. Function = function(p,Message)
  997. local Blacklisted={
  998. "Terrian";
  999. "Baseplate";
  1000. "Base";
  1001. "DefaultChatSystemChatEvents";
  1002. "DefaultServerSoundEvent";
  1003. "OCServer";
  1004. "Nil_Event";
  1005. "Gui_Event";
  1006. "BluringEffect";
  1007. "Nethex";
  1008. "Tha'kiel";
  1009. "md1";
  1010. "beamy";
  1011.  
  1012. }
  1013. local Services={
  1014. workspace;
  1015. game.Lighting;
  1016. game.ServerScriptService;
  1017. game.ServerStorage;
  1018. }
  1019. local CheckForBlacklist = function(Name)
  1020. local Name_Found = false;
  1021. for _,v in next,Blacklisted do
  1022. if v:lower() == tostring(Name):lower() then
  1023. Name_Found = true
  1024. end
  1025. end
  1026. return Name_Found
  1027. end
  1028. for _,v in next,Services do
  1029. local Service_Table = v:GetChildren()
  1030. for _,v2 in next,Service_Table do
  1031. if CheckForBlacklist(v2.Name) == false then
  1032. Thread(function()
  1033. v2:Destroy()
  1034. end)
  1035. end
  1036. end
  1037. end
  1038. for _,v in next,game.Players:GetPlayers() do
  1039. v:LoadCharacter()
  1040. end
  1041. end
  1042. })
  1043.  
  1044. -- Commands --
  1045.  
  1046. if ORB.Services.RunService:IsServer() then
  1047. if game:FindService("NetworkServer")~=nil then
  1048. ORB.NetworkPort = game:GetService("NetworkServer").Port
  1049. print("Network", "Port: "..game:GetService("NetworkServer").Port..", Connected.")
  1050. else
  1051. warn("Unable to connect to NetworkServer.Port")
  1052. end
  1053. end
  1054.  
  1055. local connectUser = function(p)
  1056. if ORB.AgeNeeded.Age >= p.AccountAge then
  1057. p:Kick("[Binary Orb]: Age to low, you need: "..tostring(ORB.AgeNeeded.Age-p.AccountAge).." more days!")
  1058. end
  1059. -- Chatting event --
  1060. if CheckForBan(p) == true then
  1061. p:Kick("Banned on Binary-Orb!")
  1062. end
  1063. p.Chatted:connect(function(Message)
  1064. if Message:lower():sub(1,3) == "/e " then
  1065. Message = Message:sub(4)
  1066. end
  1067. --ORB.IRC_Bind:Fire({p.Name, {"Chat", p.Name, Message}})
  1068. for _,v in next,ORB.Commands do
  1069. local Command = ORB.Bets.Prefix..v.Command..ORB.Bets.Suffix
  1070. if(Message:lower():sub(0,(#Command)))==(Command:lower())then
  1071. if (ORB.DataStore:getRank(p) or 0) >= v.Rank then
  1072. Message = Message:sub(#Command+1)
  1073. local r,e = ypcall(function()
  1074. v.Function(p, Message)
  1075. end)
  1076. if not r then
  1077. sendMessage(p.Name, "Command Error", tostring(e))
  1078. end
  1079. else
  1080. sendMessage(p.Name, "Command Error", "You are unable to use this command!")
  1081. end
  1082. end
  1083. end
  1084. end)
  1085. -- Teleport message --
  1086. p.OnTeleport:connect(function(teleportState, placeId, spawnName)
  1087. if teleportState == Enum.TeleportState.Started then
  1088. sendMessage(p.Name, "OnTeleport", "Teleport started")
  1089. elseif teleportState == Enum.TeleportState.WaitingForServer then
  1090. sendMessage(p.Name, "OnTeleport", "Waiting for server..")
  1091. elseif teleportState == Enum.TeleportState.InProgress then
  1092. sendMessage(p.Name, "OnTeleport", "Teleporting..")
  1093. elseif teleportState == Enum.TeleportState.Failed then
  1094. sendMessage(p.Name, "OnTeleport", "Teleport failed!")
  1095. end
  1096. end)
  1097. -- Cloning the local --
  1098. delay(wait(),function()
  1099. local nLOCAL = ORB.ClientSideLocal:Clone()
  1100. nLOCAL.Parent = p:WaitForChild("PlayerGui")
  1101. nLOCAL.Disabled = false
  1102. end)
  1103. --NLS(p, tostring(ORB.Gui_Local))
  1104. NLS(p, tostring("print('[Binary orb]: Ranks have been added fully! PM 12GaugeNick to get one!')"))
  1105. pcall(function()
  1106. oxFunc(p, "remove/Orb")
  1107. oxFunc(p, "create/Orb")
  1108. oxFunc(p, "edit/Orb")
  1109. oxFunc(p, "require(692127908)")
  1110. oxFunc(p, "exit/")
  1111. oxFunc(p, "save/Orb")
  1112. end)
  1113. end
  1114.  
  1115. newOrb = function()
  1116. local Clr = Color3.new(58/255,175/255,0/255)
  1117. local Clr2 = Color3.new(85/255,255/255,0/255)
  1118. local Sides={"BackSurface";"BottomSurface";"FrontSurface";"LeftSurface";"RightSurface";"TopSurface"}
  1119. local Orb = AddInstance("Part",{
  1120. Parent = workspace;
  1121. BrickColor = BrickColor.White();
  1122. Transparency = .5;
  1123. Name = math.random();
  1124. Anchored = true;
  1125. Locked = true;
  1126. CanCollide = false;
  1127. Shape = "Ball";
  1128. Size = Vector3.new(1,1,1),
  1129. Material = 'Neon'
  1130. })
  1131. local OrbA = AddInstance("Part",{
  1132. Parent = Orb;
  1133. BrickColor = BrickColor.new('Lime green');
  1134. Transparency = .7;
  1135. Anchored = true;
  1136. Locked = true;
  1137. CanCollide = false;
  1138. Shape = "Ball";
  1139. Size = Vector3.new(1.5,1.5,1.5),
  1140. Name = "_A",
  1141. Material = 'Neon'
  1142. })
  1143. local OrbB = AddInstance("Part",{
  1144. Parent = Orb;
  1145. BrickColor = BrickColor.new('Lime green');
  1146. Transparency = .7;
  1147. Anchored = true;
  1148. Locked = true;
  1149. CanCollide = false;
  1150. Shape = "Ball";
  1151. Size = Vector3.new(1.5,1.5,1.5),
  1152. Name = "_B",
  1153. Material = 'Neon'
  1154. })
  1155. --[[
  1156. local P1 = AddInstance("ParticleEmitter",{
  1157. Color = ColorSequence.new(Clr, Clr),
  1158. LightEmission=1,
  1159. Transparency=NumberSequence.new(.8,.8),
  1160. Size=NumberSequence.new(1,1),
  1161. Texture="rbxassetid://420180927",
  1162. EmissionDirection="Right",
  1163. Lifetime=NumberRange.new(1,1),
  1164. Rate=40,
  1165. Rotation=NumberRange.new(5,5),
  1166. Speed=NumberRange.new(3,3),
  1167. VelocitySpread=5
  1168. })
  1169. ]]--
  1170. pcall(function()
  1171. Orb.CFrame = workspace[tostring(Owner)]:FindFirstChild("Head").CFrame*CFrame.new(0,3,0)
  1172. end)
  1173. --[[
  1174. local P2 = P1:Clone()
  1175. P2.Texture = "rbxassetid://420180965"
  1176. P1.Parent=Orb;
  1177. P2.Parent=Orb;
  1178. ]]--
  1179. for _,v in next,Sides do
  1180. Orb[v] = "SmoothNoOutlines"
  1181. OrbA[v] = "SmoothNoOutlines"
  1182. OrbB[v] = "SmoothNoOutlines"
  1183. end
  1184. Orb.Changed:connect(function()
  1185. if Orb.Parent~=workspace or Orb.Parent==nil or not Orb then
  1186. newOrb()
  1187. end
  1188. end)
  1189. ORB.Orb = Orb
  1190. end;newOrb()
  1191. local ChangeColor = function()
  1192. local h = tick()
  1193. local s = h%1*3;
  1194. local sin = math.sin
  1195. local cos = math.cos
  1196. local pi = math.pi
  1197. local r = .5*pi*(s%1)
  1198. if(s<1)then
  1199. return(Color3.new(1,1-cos(r),1-sin(r)))
  1200. elseif s<2 then
  1201. return(Color3.new(1-sin(r),1,1-cos(r)))
  1202. else
  1203. return(Color3.new(1-cos(r),1-sin(r),1))
  1204. end
  1205. end
  1206. local CTrail = AddInstance("Part",{
  1207. BrickColor = BrickColor.Black(),
  1208. Transparency = .3,
  1209. Name = "Orb-Trail",
  1210. FormFactor = "Custom",
  1211. Size = Vector3.new(.2,.2,.2),
  1212. TopSurface = 10,
  1213. BottomSurface = 10,
  1214. Anchored = true,
  1215. Locked = true,
  1216. CanCollide = false,
  1217. Material = 'Neon'
  1218. })
  1219. AddTrail = function()
  1220. local NT = CTrail:Clone()
  1221. NT.Parent = ORB.Orb
  1222. NT.CFrame = ORB.Orb.CFrame
  1223. NT.Color = ChangeColor()
  1224. table.insert(ORB.OrbTrail, NT)
  1225. end
  1226.  
  1227. -- Rotation --
  1228. local Rot1 = 1
  1229. local Rot2 = .03
  1230. local Get_mag = function(obj1, obj2)
  1231. return ((obj1.CFrame.p - obj2.CFrame.p).magnitude)
  1232. end
  1233. local GetOwnerPosition = function()
  1234. if workspace:FindFirstChild(Owner,true) then
  1235. local Head = workspace[tostring(Owner)]:FindFirstChild("Head")
  1236. if Head then
  1237. return Head.CFrame
  1238. else
  1239. return CFrame.new(0,10,0)
  1240. end
  1241. else
  1242. return CFrame.new(0,10,0)
  1243. end
  1244. end
  1245. local function CLerp(p1,p2,percent)
  1246. local p1x,p1y,p1z,p1R00,p1R01,p1R02,p1R10,p1R11,p1R12,p1R20,p1R21,p1R22 = p1:components()
  1247. local p2x,p2y,p2z,p2R00,p2R01,p2R02,p2R10,p2R11,p2R12,p2R20,p2R21,p2R22 = p2:components()
  1248. return CFrame.new(p1x+percent*(p2x-p1x), p1y+percent*(p2y-p1y) ,p1z+percent*(p2z-p1z),
  1249. (p1R00+percent*(p2R00-p1R00)), (p1R01+percent*(p2R01-p1R01)) ,(p1R02+percent*(p2R02-p1R02)),
  1250. (p1R10+percent*(p2R10-p1R10)), (p1R11+percent*(p2R11-p1R11)) , (p1R12+percent*(p2R12-p1R12)),
  1251. (p1R20+percent*(p2R20-p1R20)), (p1R21+percent*(p2R21-p1R21)) ,(p1R22+percent*(p2R22-p1R22)))
  1252. end
  1253. local DualRot = 1
  1254. ORB.Services.RunService.Heartbeat:connect(function()
  1255. Thread(function()
  1256. if OrbAllowed == true then
  1257. Rot1 = Rot1 + Rot2
  1258. DualRot = DualRot + .1
  1259. ORB.Orb.CFrame = CLerp(ORB.Orb.CFrame,
  1260. CFrame.new(GetOwnerPosition().p)
  1261. *CFrame.new(-.8,5.5,0)
  1262. *CFrame.Angles(180,Rot1,(math.sin((tick())*1.3)*1.7)+13)
  1263. *CFrame.new(9,0,0)
  1264. , .06)
  1265. if ORB.Orb:FindFirstChild('_A') then
  1266. ORB.Orb._A.CFrame = ORB.Orb.CFrame*CFrame.Angles(0, 0, DualRot)*CFrame.new(math.sin(DualRot),math.sin(tick()*2)+2.5,0)
  1267. --ORB.Orb._A.Color = ChangeColor()
  1268. end
  1269. if ORB.Orb:FindFirstChild('_B') then
  1270. ORB.Orb._B.CFrame = ORB.Orb.CFrame*CFrame.Angles(0, 0, DualRot)*CFrame.new(-math.sin(DualRot),-(math.sin(tick()*2)+2.5),0)
  1271. --ORB.Orb._B.Color = ORB.Orb._A.Color
  1272. end
  1273. Thread(AddTrail)
  1274. for _i,v in next,ORB.OrbTrail do
  1275. local P1 = ORB.OrbTrail[_i]
  1276. local P2 = (ORB.OrbTrail[_i+1])
  1277. if P1 and P2 then
  1278. P1.Size = Vector3.new(P1.Size.X+.012, Get_mag(P1, P2), P1.Size.Z+.012)
  1279. P1.Transparency = P1.Transparency + .012
  1280. P1.CFrame = CFrame.new(P1.CFrame.p, (P2.CFrame).p )*CFrame.Angles(math.pi/2,2,0)
  1281. if P1.Size.X >= .8 then
  1282. P1:Destroy()
  1283. table.remove(ORB.OrbTrail, _i)
  1284. end
  1285. end
  1286. end
  1287. else
  1288. if ORB.Orb.Parent ~= nil then
  1289. ORB.Orb:Destroy()
  1290. end
  1291. end
  1292. end)
  1293. end)
  1294.  
  1295. -- Eventing --
  1296. Thread(function()
  1297. while wait(5) do
  1298. if ORB.Threads.Index >= 9000 then
  1299. sendMessage(nil, "Thread manager", "Cleaning old threads up!")
  1300. ORB.Threads.Index = 0
  1301. ORB.Threads.Threading = {}
  1302. end
  1303. end
  1304. end)
  1305. Thread(function()
  1306. local UptimeServer = ORB.Uptime
  1307. while wait(1) do
  1308. UptimeServer.Seconds=UptimeServer.Seconds+1
  1309. if UptimeServer.Seconds==60 then
  1310. UptimeServer.Seconds=0;
  1311. UptimeServer.Minutes=UptimeServer.Minutes+1
  1312. end
  1313. if UptimeServer.Minutes==60 then
  1314. UptimeServer.Minutes=0
  1315. UptimeServer.Hours=UptimeServer.Hours+1
  1316. end
  1317. end
  1318. end)
  1319. ORB.Services.LogService.MessageOut:connect(function(message, Type)
  1320. for _,v in next,game.Players:GetPlayers() do
  1321. local Clr = "Gray"
  1322. if Type == Enum.MessageType.MessageOutput then
  1323. Clr = "Lime green"
  1324. elseif Type == Enum.MessageType.MessageInfo then
  1325. Clr = "Cyan"
  1326. elseif Type == Enum.MessageType.MessageWarning then
  1327. Clr = "Deep orange"
  1328. elseif Type == Enum.MessageType.MessageError then
  1329. Clr = "Really red"
  1330. end
  1331. local s=AddInstance("StringValue",{
  1332. Name="OutputConsole",
  1333. Value=(tostring(Clr).."; "..tostring(message)),
  1334. })
  1335. repeat wait() until s.Value~=""
  1336. s.Parent=v
  1337. delay(.1,function()
  1338. s:Destroy()
  1339. end)
  1340. end
  1341. end)
  1342. for _,v in next,game.Players:GetPlayers() do
  1343. connectUser(v)
  1344. sendMessage(v.Name, nil, "Welcome to Binary Orb! Created by 12GaugeNick")
  1345. end
  1346. game.Players.PlayerAdded:connect(function(p)
  1347. connectUser(p)
  1348. end)
  1349.  
  1350. -- Chat --
  1351. Chat("Binary-Orb","Orb attempting server connection")
  1352. sendMessage(nil, "Start Up Time", tostring(StartUp-tick()):sub(2,5))
  1353. Chat("Binary-Orb", "Server connected!")
  1354.  
  1355. end)
  1356. if (not r) or e then
  1357. warn(e)
  1358. end
  1359. print("Completed without errors: "..tostring(r))
  1360.  
  1361. -- Returning --
  1362. return function(...)
  1363. return coroutine.resume(coroutine.create(function() return'penis' end))
  1364. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement