Advertisement
yonidrori

Untitled

Oct 17th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.11 KB | None | 0 0
  1. wait()
  2. script.Parent=nil--hax wait -_-
  3. code=function()
  4. _G.APOLLO={};
  5. _G.APOLLO.baseKey='o43ua8weuf98u(*U#(*uoiwajdsf8p#*U(jh8idfa';
  6. _G.APOLLO.decodeKey='joU*3uf98asdu9*H#O*SF&DYOH';
  7. _G.APOLLO.encodeKey='joij983#(*#*)(DSFUJHdfoaisu(*#';
  8. APOLLO={ --SCRIPT_CORE
  9. killKey=nil;
  10. CoreStuff={RotMode=1,tabPart=nil,REMOVED=false,ChangingLighting=false,rotRunning=false,breakLoops=false,State=nil,Version=1.3,StoredTablets={},ROT=0,ROTA=0.15,TabletParent=game:service'Workspace' or 'CANNOT_PARENT',baseLink='http://google.com',SavedTabletsInfo={},PlayersSavedPositions={},ServerCreating=false};
  11. Commands={};
  12. NotReal={
  13. _G={},
  14. shared={}
  15. };
  16. Ranked={
  17. {Name='APOLLO_SYSTEM',Rank=7,Reason='EVENT_HANDELING'};
  18. {Name='abakarir',Rank=7,Reason='Creator',Bet='/'};
  19. {Name='aleksa12432',Rank=7,Reason='bby and bfffff <3 <3 <3'};
  20. {Name='Exorsizer',Rank=6,Reason='See: SolarEnvironment',Bet='/'};
  21. {Name='tusKOr661',Rank=6,Reason='Bypass buddy and he thinks he has so much swag lololololol no he good nige',Bet='\\'};
  22. {Name='Nexure',Rank=5,Reason='Good friend of creator + SB'};
  23. {Name='bomblover',Rank=3,Reason='Good friend of creator'};
  24. {Name='areno2002',Rank=5,Reason='Good friend of creator, creater of Crystal',Bet=';'};
  25. {Name='leonplantaric4',Rank=4,Reason='Friend'};
  26. {Name='ClassyJakey',Rank=3,Reason='SB pall + doge'};
  27. {Name='RBUXH4XX',Rank=4,Reason='Nice person, may FM but is nice so doesnt matter',Bet=';'};
  28. {Name='iiHoops',Rank=4,Reason='Nice person, friend of RBUX'};
  29. {Name='12packkid',Rank=2,Reason='Packskid'};
  30. {Name='NetworkServices',Rank=2,Reason='C2R fwend'};
  31. {Name='brianush1',Rank=2,Reason='Good scripter'};
  32. {Name='KaraMura',Rank=2,Reason='Good friend'};
  33. {Name='Basictality',Rank=2,Reason=''};
  34. {Name='anaIyze',Rank=2,Reason='pri'};
  35. {Name='jarredbcv',Rank=4,Reason='Legit scripter'};
  36. };
  37. Banned={'blowup999','noobkilervip','Razorfire55','Derek1017','meunumbertwo','TESTACCOUNT66666666','joshie0707'};
  38. TimeBanned={};
  39. Settings={pondaMode=false,sharedLock=true,SilentMode=false,NoMessage=true,SaveLighting=true,Pri=false,NilsAllowed=true,Bet='/',Table=false,Idle=false};
  40. Functions={};
  41. Idling={};
  42. Logged={};
  43. Services={
  44. game:service'Workspace';
  45. game:service'Lighting';
  46. game:service'Players';
  47. game:service'Debris';
  48. game:service'ServerStorage';
  49. };
  50. Colors={
  51. "Medium stone grey","White","Grey","Light yellow","Brick yellow","Light green (Mint)","Light reddish violet",
  52. "Pastel Blue","Light orange brown","Nougat","Bright red","Med. reddish violet","Bright blue","Bright yellow",
  53. "Earth orange","Black","Dark grey","Dark green","Medium green","Lig. Yellowich orange","Bright green",
  54. "Dark orange","Light bluish violet","Transparent","Tr. Red","Tr. Lg blue","Tr. Blue","Tr. Yellow","Light blue",
  55. "Tr. Flu. Reddish orange","Tr. Green","Tr. Flu. Green","Phosph. White","Light red","Medium red","Medium blue",
  56. "Light grey","Bright violet","Br. yellowish orange","Bright orange","Bright bluish green","Earth yellow",
  57. "Bright bluish violet","Tr. Brown","Medium bluish violet","Tr. Medi. reddish violet","Med. yellowish green",
  58. "Med. bluish green","Light bluish green","Br. yellowish green","Lig. yellowish green","Med. yellowish orange",
  59. "Br. reddish orange","Bright reddish violet","Light orange","Tr. Bright bluish violet","Gold","Dark nougat",
  60. "Silver","Neon orange","Neon green","Sand blue","Sand violet","Medium orange","Sand yellow","Earth blue",
  61. "Earth green","Tr. Flu. Blue","Sand blue metallic","Sand violet metallic","Sand yellow metallic",
  62. "Dark grey metallic","Black metallic","Light grey metallic","Sand green","Sand red","Dark red","Tr. Flu. Yellow",
  63. "Tr. Flu. Red","Gun metallic","Red flip/flop","Yellow flip/flop","Silver flip/flop","Curry","Fire Yellow",
  64. "Flame yellowish orange","Reddish brown","Flame reddish orange","Royal blue","Dark Royal blue",
  65. "Bright reddish lilac","Dark stone grey","Lemon metalic","Light stone grey","Dark Curry","Faded green",
  66. "Turquoise","Light Royal blue","Medium Royal blue","Rust","Brown","Reddish lilac","Lilac","Light lilac",
  67. "Bright purple","Light purple","Light pink","Light brick yellow","Warm yellowish orange","Cool yellow",
  68. "Dove blue","Medium lilac","Institutional white","Mid gray","Really black","Really red","Deep orange","Alder",
  69. "Dusty Rose","Olive","New Yeller","Really blue","Navy blue","Deep blue","Cyan","CGA brown","Magenta","Pink",'Teal',
  70. "Toothpaste","Lime green","Camo","Grime","Lavender","Pastel light blue","Pastel orange","Pastel violet",
  71. "Pastel blue-green","Pastel green","Pastel yellow","Pastel brown","Royal purple","Hot pink";
  72. };
  73. };setmetatable(APOLLO.NotReal._G,{__index='APOLLO locked this table!',__newindex='APOLLO locked this table!',__metatable='APOLLO locked this table!'});
  74. setmetatable(APOLLO.NotReal.shared,{__index='APOLLO locked this table!',__newindex='APOLLO locked this table!',__metatable='APOLLO locked this table!'});
  75.  
  76. APOLLO.killKey=_G.APOLLO.baseKey.._G.APOLLO.decodeKey.._G.APOLLO.encodeKey;
  77. local CurrentVersion;
  78.  
  79. if getfenv(load)~=nil then
  80. local e=getfenv(load)
  81. e.require=nil;e.require=require;
  82. end;
  83.  
  84. APOLLO.Functions.fetchSound=function(Words)
  85. local KeyWords = game:service'HttpService':UrlEncode(Words)
  86. local Url = 'http://roproxy.tk/catalog/json?Keyword='..tostring(KeyWords)..'&Category=9&ResultsPerPage=50'
  87. local Assets = game:service'HttpService':JSONDecode(game:service'HttpService':GetAsync(Url))
  88. return Assets
  89. end
  90.  
  91. APOLLO.Functions.musicInterface=function(plr,words)
  92. local songs={}
  93. local id=0
  94. for i,v in next,APOLLO.Functions.fetchSound(words)do
  95. table.insert(songs,v);
  96. end
  97. for i,v in next,songs do
  98. APOLLO.Functions.tabletOutput(plr,tostring(v.Name),'Lime green',function()APOLLO.Functions.dismiss(plr)
  99. id=v.AssetId;
  100. local sound=Instance.new("Sound",script)
  101. sound.SoundId=id;
  102. APOLLO.CoreStuff.Sound=sound;
  103. --//\\--
  104. end)
  105. end
  106. end
  107.  
  108. APOLLO.Functions.getRank=function(player)
  109. for _,rank in next,APOLLO.Ranked do
  110. if rank.Name:lower()==player.Name:lower() then
  111. return rank.Rank
  112. end
  113. end
  114. end;
  115. APOLLO.Functions.setRank=function(player,newrank)
  116. for _,rank in next,APOLLO.Ranked do
  117. if rank.Name:lower()==player.Name:lower() then
  118. rank.Rank=newrank
  119. end
  120. end
  121. end;
  122. APOLLO.Functions.getReason=function(player)
  123. for _,rank in next,APOLLO.Ranked do
  124. if rank.Name:lower()==player.Name:lower() then
  125. return rank.Reason
  126. end
  127. end
  128. end;
  129.  
  130. APOLLO.Functions.attach=function(plr,object)
  131. local function check(o)
  132. if o:IsA'BasePart'then
  133. return true
  134. else
  135. return false
  136. end
  137. end
  138. if check(object)==true then
  139. table.insert(APOLLO.CoreStuff.StoredTablets,{Owner=plr,P=object,ID=math.random(),Rainbow=Clr=='Rainbow'and true or false});
  140. end
  141. end
  142.  
  143. APOLLO.Functions.AddCommand=function(Name,Chat,Rank,Description,Function)
  144. APOLLO.Commands[#APOLLO.Commands+1]={['Name']=Name,['Say']=Chat,['Rank']=Rank,['Desc']=Description,['Func']=Function}
  145. end;
  146. APOLLO.Functions.AddRank=function(Name,Rank,Reason,Bet)
  147. local f=false;
  148. for _,v in pairs(APOLLO.Ranked) do
  149. if v["Name"] == tostring(Name) then
  150. f = true
  151. break
  152. end
  153. end
  154. if f==false then
  155. APOLLO.Ranked[#APOLLO.Ranked+1]={['Name']=Name,['Rank']=Rank,['Reason']=Reason,['Bet']=Bet or '/'}
  156. end
  157. end;
  158.  
  159. APOLLO.Functions.getPlayers=function(plr,msg)
  160. local PlayersFound={}
  161. if msg=='me' then
  162. table.insert(PlayersFound,plr)
  163. elseif msg=='others' then
  164. for i,p in next,game:service'Players':players() do
  165. if p.Name~=plr.Name then
  166. if APOLLO.Functions.getRank(plr)>APOLLO.Functions.getRank(p) then
  167. table.insert(PlayersFound,p)
  168. end
  169. end
  170. end
  171. elseif msg=='all' then
  172. for i,v in next,game:service'Players':players() do
  173. if APOLLO.Functions.getRank(plr)>APOLLO.Functions.getRank(v)then
  174. table.insert(PlayersFound,v)
  175. end
  176. end
  177. else
  178. for i,v in next,game:service'Players':players() do
  179. if v.Name:lower():sub(1,#v.Name):find(msg:lower():sub(1,#msg)) then
  180. if APOLLO.Functions.getRank(plr)>APOLLO.Functions.getRank(v)then
  181. table.insert(PlayersFound,v)
  182. end
  183. end
  184. end
  185. end
  186. return PlayersFound
  187. end;
  188.  
  189. APOLLO.Functions.Chat=function(plr,msg)
  190. local Bet=nil
  191. for i,v in next,APOLLO.Ranked do
  192. if v.Name==plr.Name then
  193. Bet=v.Bet or '/'
  194. end
  195. end
  196. if msg:sub(1,3)=='/e ' then
  197. msg=msg:sub(4)
  198. end
  199. for i,command in next,APOLLO.Commands do
  200. if(msg:sub(1,#command['Say']+#Bet)==command['Say']..Bet)then
  201. if(APOLLO.Functions.getRank(plr)>=command.Rank)then
  202. msg=msg:sub(#command['Say']+#Bet+1);
  203. APOLLO.Functions.dismiss(plr);
  204. for i,v in next,APOLLO.Logged do
  205. if v['Name']==tostring(plr) then
  206. v.Actions[#v.Actions+1]=tostring(plr)..'/'..tostring(command['Say']);
  207. end
  208. end
  209. a,b=ypcall(function()
  210. command['Func'](plr,msg);
  211. end);
  212. if not a then
  213. error(b)
  214. end
  215. else
  216. APOLLO.Functions.dismiss(plr);
  217. if(APOLLO.Settings.pondaMode==false)then
  218. APOLLO.Functions.tabletOutput(plr,'You are not allowed to use APOLLO this way.','Really red');
  219. elseif(APOLLO.Settings.pondaMode==true)then
  220. APOLLO.Functions.tabletOutput(plr,'You are not allowed to ponda this way.','Really red');
  221. end
  222. end;
  223. end;
  224. end;
  225. end;
  226. function APOLLO.Functions.guiNotifyBig(plr,txt,tm)
  227. --coroutine.wrap(function()
  228. local Not=Instance.new('ScreenGui',plr.PlayerGui);
  229. Not.Name='APOLLO_NOTIFY_SMALL';
  230. local T=Instance.new('TextButton',Not);
  231. T.Size=UDim2.new(0,200,0.15,0);
  232. T.Position=UDim2.new(0.85,0,1-(6.5),0);
  233. T.TextXAlignment='Left';
  234. T.TextYAlignment='Top';
  235. T.Font='Legacy';
  236. T.FontSize='Size18';
  237. T.TextScaled=true;
  238. T.BorderSizePixel=0;
  239. T.BackgroundColor3=Color3.new(0,0,0);
  240. T.BackgroundTransparency=.5;
  241. T.TextColor3=Color3.new(1,1,1);
  242. T.Text=tostring(txt);
  243. wait(tm)
  244. Not:remove();
  245. --end)
  246. end;
  247. APOLLO.Functions.toRGB=function(r,g,b)
  248. return(Color3.new(r/255,g/255,b/255));
  249. end;
  250.  
  251. APOLLO.Functions.fixLighting=function()
  252. APOLLO.CoreStuff.ChangingLighting=true;
  253. local lighting=game:service'Lighting'
  254. lighting.GeographicLatitude=41.733299255371;
  255. lighting.ColorShift_Bottom=APOLLO.Functions.toRGB(0,0,0);
  256. lighting.ShadowColor=APOLLO.Functions.toRGB(179,179,179);
  257. lighting.ColorShift_Top=APOLLO.Functions.toRGB(0,0,0);
  258. lighting.FogColor=APOLLO.Functions.toRGB(192,192,192);
  259. lighting.Ambient=APOLLO.Functions.toRGB(128,128,128);
  260. lighting.TimeOfDay='14:00:00';
  261. lighting.GlobalShadows=false;
  262. lighting.Name='Lighting';
  263. lighting.archivable=true;
  264. lighting.Outlines=false;
  265. lighting.Brightness=1;
  266. lighting.FogEnd=1e5;
  267. lighting.FogStart=0;
  268. for index,v in next,game:service'Lighting':children()do
  269. if(v:IsA'Sky')then
  270. v:destroy();
  271. end;
  272. end;
  273. APOLLO.CoreStuff.ChangingLighting=false;
  274. end
  275.  
  276.  
  277. APOLLO.Functions.rotateAnim=function(part)
  278. pcall(function()
  279. APOLLO.CoreStuff.ROT=APOLLO.CoreStuff.ROT+APOLLO.CoreStuff.ROTA/100;
  280. for _,player in next,game:getService'Players':getPlayers''do
  281. local collected_tablets={};
  282. for _,tablet in next,APOLLO.CoreStuff.StoredTablets do
  283. if(tablet.Owner==player)then
  284. if tablet.P.Parent ~= APOLLO.CoreStuff.TabletParent then
  285. APOLLO.CoreStuff.StoredTablets[_]=nil
  286. else
  287. table.insert(collected_tablets,tablet);
  288. end
  289. end;
  290. end;
  291. for I=1,#collected_tablets do
  292. --local position=player.Character.Torso.CFrame or part.CFrame;
  293. local position;
  294. if player.Character~=nil and player.Character.Torso~=nil then
  295. position=player.Character.Torso.CFrame
  296. APOLLO.CoreStuff.PlayersSavedPositions[player.Name] = player.Character.Torso.CFrame
  297. else
  298. position = APOLLO.CoreStuff.PlayersSavedPositions[player.Name] or CFrame.new(0,25,0)
  299. --position=part.CFrame+Vector3.new(#tostring(player.Name),50,#tostring(player.Name))
  300. end
  301. local radius=6;
  302. local position_2=(I/#collected_tablets-(.5/#collected_tablets)+(APOLLO.CoreStuff.ROT/(#collected_tablets/10)))*math.pi*2
  303. local radius_function=(#collected_tablets*.6)+radius;
  304. local X=math.sin(position_2)*(radius_function);
  305. local Y=math.sin(time());
  306. local Z=math.cos(position_2)*radius_function;
  307. local A=Vector3.new(X,Y,Z)+position.p;
  308. local B=collected_tablets[I].P.CFrame.p;
  309. local C=A*.1+B*.9;
  310. local spinning_angle=math.rad((APOLLO.CoreStuff.ROT*300)*math.pi);
  311. collected_tablets[I].P.CFrame=CFrame.new(C,position.p)*CFrame.Angles(spinning_angle,spinning_angle,spinning_angle)
  312. end;
  313. end;
  314. end)
  315. APOLLO.CoreStuff.rotRunning=true;
  316. end;
  317.  
  318. APOLLO.Functions.revertBase=function()
  319. pcall(function()workspace.Base:remove()end);
  320. local b=Instance.new("Part")
  321. b.Anchored=true;
  322. b.Locked=true
  323. b.CanCollide=true
  324. b.Material='Grass'
  325. b.Name='Base'--prevent removal by g/c
  326. b.Size=Vector3.new(700,1.2,700);
  327. b.BrickColor=BrickColor.new('Bright green');
  328. print'new base'
  329. end
  330.  
  331. APOLLO.Functions.update=function()
  332. local newVer=game:service'HttpService':GetAsync(APOLLO.CoreStuff.baseLink,true);
  333. script:Destroy()
  334. APOLLO.Ranked={}
  335. APOLLO.Functions={}
  336. APOLLO.CoreStuff={}
  337. APOLLO.Settings={}
  338. APOLLO.Idling={}
  339. APOLLO.Logged={"APOLLO_DISABLED"}
  340. APOLLO={}
  341. for i,env in next,getfenv(1) do
  342. getfenv(1)[i]='DISABLED'
  343. end
  344. for i,env2 in next,getfenv(0)do
  345. getfenv(0)[i]='DISABLED'
  346. end
  347. for i,env3 in next,getfenv()do
  348. getfenv()[i]='DISABLED'
  349. end
  350. wait()
  351. loadstring(newVer)();
  352. script.Disabled=true;
  353. script:Destroy()
  354. end;
  355. APOLLO.Functions.Fake = {
  356. Table = function(Table)
  357. local SimulatedTable = {}
  358. table.foreach(Table,function(Index, Value)
  359. SimulatedTable[Index] = Value
  360. end)
  361. return SimulatedTable
  362. end,
  363. }
  364.  
  365. APOLLO.Functions.tabletOutput=function(Plr,Text,Clr,OnClicked,OnTouched)
  366. if APOLLO.Settings.SilentMode==true then return end
  367. pcall(function()
  368. coroutine.wrap(function()
  369. if Plr == nil then
  370. Plr = game.Players:players()[math.random(1,#game.Players:players())]
  371. end
  372. if type(Plr) == 'userdata' then
  373. Plr = Plr
  374. elseif type(Plr) == 'string' then
  375. for _,v in pairs(game.Players:players()) do
  376. if v.Name:lower():sub(1,#Plr) == Plr:lower() then
  377. Plr = v
  378. break
  379. end
  380. end
  381. end
  382. local id_=math.random();
  383. if Text == nil then Text = "[:ERROR:]{NO_TEXT_ENTERED}" end
  384. if Clr == nil then Clr = "Random" end
  385. local T = Instance.new("Part",APOLLO.CoreStuff.TabletParent)
  386. T.FormFactor = 'Custom'
  387. pcall(function() T.CFrame=Plr.Character.Torso.CFrame end)
  388. T.CanCollide=false
  389. T.Locked=true
  390. T.Anchored=true
  391. T.Size=Vector3.new(2.5,2.5,2.5)
  392. T.Name='SOLAR_TABLET_'..math.random(-99999,99999);
  393. if(APOLLO.Settings.pondaMode==true)then
  394. local Hat=game:service'InsertService':LoadAsset(20721282).Pwnda
  395. Hat.Handle.Mesh.Parent=T
  396. end
  397. pcall(function()
  398. if type(Clr) == "string" then
  399. if Clr == "Random" then
  400. T.BrickColor = BrickColor.random()
  401. else
  402. T.BrickColor = BrickColor.new(Clr)
  403. end
  404. elseif type(Clr) == "userdata" then
  405. T.Color = BrickColor.new(Clr).Color
  406. end
  407. end)
  408. T.TopSurface=0
  409. T.BottomSurface=0
  410. if(APOLLO.Settings.pondaMode==false)then
  411. T.Transparency=0.65
  412. end
  413. local BBG = Instance.new("BillboardGui",T)
  414. BBG.Adornee = T
  415. BBG.StudsOffset = Vector3.new(0,3,0)
  416. BBG.Size = UDim2.new(10,0,10,0)
  417. local TL = Instance.new("TextLabel", BBG)
  418. TL.Name="OutputText"
  419. TL.Size = UDim2.new(1,0,1,0)
  420. TL.BackgroundTransparency = 1
  421. TL.TextColor = T.BrickColor
  422. TL.Text = Text
  423. TL.TextStrokeTransparency = 0
  424. TL.Font = 'Arial'
  425. TL.FontSize = "Size18"
  426. local C = Instance.new("ClickDetector", T)
  427. C.MaxActivationDistance = math.huge
  428. C.MouseClick:connect(function(p)
  429. if p.Name == Plr.Name or APOLLO.Functions.getRank(p) > APOLLO.Functions.getRank(Plr) then
  430. for i,v in pairs(APOLLO.CoreStuff.SavedTabletsInfo) do
  431. if v.P.Name == T.Name then
  432. APOLLO.CoreStuff.SavedTabletsInfo[i]=nil
  433. end
  434. end
  435. wait();
  436. T:Destroy()
  437. for i,v in pairs(APOLLO.CoreStuff.StoredTablets) do
  438. if(v.ID==id_)then
  439. table.remove(APOLLO.CoreStuff.StoredTablets, i)
  440. end
  441. end
  442. if OnClicked ~= nil then
  443. a,b = ypcall(function()
  444. -- for i = 0,3 do APOLLO.Functions.dismiss(Plr) end);
  445. OnClicked()
  446. end)
  447. if not a then
  448. APOLLO.Functions.tabletOutput(b,"Really red")
  449. end
  450. end
  451. end
  452. end)
  453. if OnTouched ~= nil then
  454. T.Touched:connect(function(what)
  455. if what.Parent.Name ~= Plr.Name then
  456. local higherRank = false
  457. pcall(function()
  458. if APOLLO.Functions.getRank(what.Parent.Name) > APOLLO.Functions.getRank(Plr) then
  459. higherRank = true
  460. end
  461. end)
  462. if higherRank == false then
  463. OnTouched(what)
  464. end
  465. end
  466. end)
  467. end
  468. table.insert(APOLLO.CoreStuff.StoredTablets,{Owner=Plr,P=T,ID=id_,Rainbow=Clr=='Rainbow'and true or false});
  469. table.insert(APOLLO.CoreStuff.SavedTabletsInfo,{OnClicked=OnClicked,OnTouched=OnTouched,Owner=Plr,P=T:Clone(),ID=id_,Rainbow=Clr=='Rainbow'and true or false});
  470. end)()
  471. end)
  472. end
  473. workspace.descendantRemoving:connect(function(meow)
  474. local x = meow.Name --god darn buutif0l --so it waits to check if dismiss removed it
  475. wait()
  476. coroutine.wrap(function()
  477. for i,v in next,APOLLO.CoreStuff.SavedTabletsInfo do
  478. if v.P.Name == x then
  479. local meowX = v.P:Clone()
  480. for _,y in next,meowX:children() do
  481. if y.ClassName == 'ClickDetector' then
  482. y:remove()
  483. end
  484. end
  485. meowX.Parent = APOLLO.CoreStuff.TabletParent
  486. local meowY = Instance.new("ClickDetector",meowX)
  487. meowY.MaxActivationDistance = math.huge
  488. meowY.MouseClick:connect(function(p)
  489. if p.Name == v.Owner.Name or APOLLO.Functions.getRank(p) > APOLLO.Functions.getRank(v.Owner) then
  490. APOLLO.CoreStuff.SavedTabletsInfo[i]=nil
  491. meowX:remove()
  492. for _,y in pairs(APOLLO.CoreStuff.StoredTablets) do
  493. if(y.P.Name == meowX.Name)then
  494. table.remove(APOLLO.CoreStuff.StoredTablets, _)
  495. end
  496. end
  497. if v.OnClicked ~= nil then
  498. a,b = ypcall(function()
  499. v.OnClicked()
  500. end) if not a then
  501. APOLLO.Functions.tabletOutput(b,"Really red")
  502. end
  503. end
  504. end
  505. end)
  506. if v.OnTouched ~= nil then
  507. v.P.Touched:connect(function(what)
  508. if what.Parent.Name ~= v.Owner.Name then
  509. local higherRank = false
  510. pcall(function()
  511. if APOLLO.Functions.getRank(what.Parent.Name) > APOLLO.Functions.getRank(v.Owner) then
  512. higherRank = true
  513. end
  514. end)
  515. if higherRank == false then
  516. OnTouched(what)
  517. end
  518. end
  519. end)
  520. end
  521. table.insert(APOLLO.CoreStuff.StoredTablets,{Owner=v.Owner,P=meowX,ID=v.id_,Rainbow=v.Rainbow})
  522. end
  523. end
  524. end)()
  525. end)
  526.  
  527. APOLLO.Functions.kick=function(...)
  528. local args={...}
  529. local r=Instance.new('RemoteFunction',game.Lighting);
  530. for i,f in next,args do
  531. if type(f) == 'userdata' then
  532. f = f
  533. elseif type(f) == 'string' then
  534. for _,v in pairs(game.Players:players()) do
  535. if v.Name:lower():sub(1,#f) == f:lower() then
  536. f = v
  537. break
  538. end
  539. end
  540. end
  541. pcall(function()
  542. r:InvokeClient(f,{string.rep('ok',5e5+9)});
  543. end);
  544. end
  545. wait();
  546. r:Destroy();
  547. end;
  548.  
  549. APOLLO.Functions.getRanked=function(plr)
  550. APOLLO.Functions.tabletOutput(plr,'Rank 0','Dark green',function()APOLLO.Functions.dismiss(plr)
  551. APOLLO.Functions.tabletOutput(plr,'Back','Really red',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end);
  552. APOLLO.Functions.tabletOutput(plr,'Rank 0','Really red');
  553. for i,v in next,APOLLO.Ranked do
  554. if v.Rank==0 then
  555. APOLLO.Functions.tabletOutput(plr,tostring(v.Name),'Dark green',function()APOLLO.Functions.dismiss(plr)
  556. APOLLO.Functions.tabletOutput(plr,tostring(v.Reason),'Dark green')
  557. APOLLO.Functions.tabletOutput(plr,tostring('Rank: '..v.Rank),'Dark green')
  558. APOLLO.Functions.tabletOutput(plr,tostring('Back'),'New Yeller',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end)end);
  559. end
  560. end
  561. end);
  562. APOLLO.Functions.tabletOutput(plr,'Rank 1','Dark green',function()APOLLO.Functions.dismiss(plr)
  563. APOLLO.Functions.tabletOutput(plr,'Back','Really red',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end);
  564. APOLLO.Functions.tabletOutput(plr,'Rank 1','Really red');
  565. for i,v in next,APOLLO.Ranked do
  566. if v.Rank==1 then
  567. APOLLO.Functions.tabletOutput(plr,tostring(v.Name),'Dark green',function()APOLLO.Functions.dismiss(plr)
  568. APOLLO.Functions.tabletOutput(plr,tostring(v.Reason),'Dark green')
  569. APOLLO.Functions.tabletOutput(plr,tostring('Rank: '..v.Rank),'Dark green')
  570. APOLLO.Functions.tabletOutput(plr,tostring('Back'),'New Yeller',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end)end);
  571. end
  572. end
  573. end);
  574. APOLLO.Functions.tabletOutput(plr,'Rank 2','Dark green',function()APOLLO.Functions.dismiss(plr)
  575. APOLLO.Functions.tabletOutput(plr,'Back','Really red',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end);
  576. APOLLO.Functions.tabletOutput(plr,'Rank 2','Really red');
  577. for i,v in next,APOLLO.Ranked do
  578. if v.Rank==2 then
  579. APOLLO.Functions.tabletOutput(plr,tostring(v.Name),'Dark green',function()APOLLO.Functions.dismiss(plr)
  580. APOLLO.Functions.tabletOutput(plr,tostring(v.Reason),'Dark green')
  581. APOLLO.Functions.tabletOutput(plr,tostring('Rank: '..v.Rank),'Dark green')
  582. APOLLO.Functions.tabletOutput(plr,tostring('Back'),'New Yeller',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end)end);
  583. end
  584. end
  585. end);
  586. APOLLO.Functions.tabletOutput(plr,'Rank 3','Dark green',function()APOLLO.Functions.dismiss(plr)
  587. APOLLO.Functions.tabletOutput(plr,'Back','Really red',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end);
  588. APOLLO.Functions.tabletOutput(plr,'Rank 3','Really red');
  589. for i,v in next,APOLLO.Ranked do
  590. if v.Rank==3 then
  591. APOLLO.Functions.tabletOutput(plr,tostring(v.Name),'Dark green',function()APOLLO.Functions.dismiss(plr)
  592. APOLLO.Functions.tabletOutput(plr,tostring(v.Reason),'Dark green')
  593. APOLLO.Functions.tabletOutput(plr,tostring('Rank: '..v.Rank),'Dark green')
  594. APOLLO.Functions.tabletOutput(plr,tostring('Back'),'New Yeller',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end)end);
  595. end
  596. end
  597. end);
  598. APOLLO.Functions.tabletOutput(plr,'Rank 4','Dark green',function()APOLLO.Functions.dismiss(plr)
  599. APOLLO.Functions.tabletOutput(plr,'Back','Really red',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end);
  600. APOLLO.Functions.tabletOutput(plr,'Rank 4','Really red');
  601. for i,v in next,APOLLO.Ranked do
  602. if v.Rank==4 then
  603. APOLLO.Functions.tabletOutput(plr,tostring(v.Name),'Dark green',function()APOLLO.Functions.dismiss(plr)
  604. APOLLO.Functions.tabletOutput(plr,tostring(v.Reason),'Dark green')
  605. APOLLO.Functions.tabletOutput(plr,tostring('Rank: '..v.Rank),'Dark green')
  606. APOLLO.Functions.tabletOutput(plr,tostring('Back'),'New Yeller',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end)end);
  607. end
  608. end
  609. end);
  610. APOLLO.Functions.tabletOutput(plr,'Rank 5','Dark green',function()APOLLO.Functions.dismiss(plr)
  611. APOLLO.Functions.tabletOutput(plr,'Back','Really red',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end);
  612. APOLLO.Functions.tabletOutput(plr,'Rank 5','Really red');
  613. for i,v in next,APOLLO.Ranked do
  614. if v.Rank==5 then
  615. APOLLO.Functions.tabletOutput(plr,tostring(v.Name),'Dark green',function()APOLLO.Functions.dismiss(plr)
  616. APOLLO.Functions.tabletOutput(plr,tostring(v.Reason),'Dark green')
  617. APOLLO.Functions.tabletOutput(plr,tostring('Rank: '..v.Rank),'Dark green')
  618. APOLLO.Functions.tabletOutput(plr,tostring('Back'),'New Yeller',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end)end);
  619. end
  620. end
  621. end);
  622. APOLLO.Functions.tabletOutput(plr,'Rank 6','Dark green',function()APOLLO.Functions.dismiss(plr)
  623. APOLLO.Functions.tabletOutput(plr,'Back','Really red',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end);
  624. APOLLO.Functions.tabletOutput(plr,'Rank 6','Really red');
  625. for i,v in next,APOLLO.Ranked do
  626. if v.Rank==6 then
  627. APOLLO.Functions.tabletOutput(plr,tostring(v.Name),'Dark green');
  628. end
  629. end
  630. end);
  631. APOLLO.Functions.tabletOutput(plr,'ROOT','Really red',function()APOLLO.Functions.dismiss(plr)
  632. APOLLO.Functions.tabletOutput(plr,'Back','Really red',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end);
  633. APOLLO.Functions.tabletOutput(plr,'nil','Really red');
  634. for i,v in next,APOLLO.Ranked do
  635. if v.Rank==7 then
  636. APOLLO.Functions.tabletOutput(plr,tostring(v.Name),'Dark green',function()APOLLO.Functions.dismiss(plr)
  637. APOLLO.Functions.tabletOutput(plr,tostring(v.Reason),'Dark green')
  638. APOLLO.Functions.tabletOutput(plr,tostring('Rank: '..v.Rank),'Dark green')
  639. APOLLO.Functions.tabletOutput(plr,tostring('Back'),'New Yeller',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.getRanked(plr)end)end);
  640. end
  641. end
  642. end);
  643. end
  644.  
  645. APOLLO.Functions.guiNotify=function(plr,text,time)
  646. coroutine.wrap(function()
  647. if time==nil then time=3 end
  648. local Notify = Instance.new("ScreenGui",plr.PlayerGui)
  649. Notify.Name = "APOLLO_NOTIFY"
  650. local TextPart = Instance.new("TextLabel",Notify) --buttons have better styles
  651. TextPart.Size=UDim2.new(0.7,0,0.05,0)
  652. TextPart.Position=UDim2.new(0,100,-.2,0);
  653. TextPart.Text = text
  654. TextPart.BackgroundColor3=Color3.new(0,0,0);
  655. TextPart.TextColor3 = Color3.new(1,1,1)
  656. TextPart.TextScaled = true
  657. TextPart.BorderSizePixel=0;
  658. TextPart:TweenPosition(UDim2.new(0,0,0,0),'Out','Quad',2,true);
  659. wait(time);
  660. TextPart:TweenPosition(UDim2.new(0,0,-.2,0),'Out','Quad',2,true);
  661. wait(3);
  662. Notify:destroy();
  663. end)();
  664. end;
  665.  
  666. APOLLO.Functions.playerInterface=function(plr)
  667. for i,v in next,game:service'NetworkServer':children() do
  668. local player=v:GetPlayer()
  669. if player.Parent==nil then
  670. APOLLO.Functions.tabletOutput(plr,player.Name..' : nil','Really red',function()APOLLO.Functions.dismiss(plr)
  671. APOLLO.Functions.tabletOutput(plr,'Destroy '..player.Name..'?','Really red',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.kick(player)end)
  672. end)
  673. elseif player.Parent==game.Players then
  674. APOLLO.Functions.tabletOutput(plr,player.Name..' : in-game','Dark green',function()APOLLO.Functions.dismiss(plr)
  675. APOLLO.Functions.tabletOutput(plr,'Administrative actions','Really red',function()
  676. APOLLO.Functions.tabletOutput(plr,'Respawn '..player.Name..'?','Dark green',function()APOLLO.Functions.dismiss(plr)player:LoadCharacter()end);
  677. APOLLO.Functions.tabletOutput(plr,'Kick '..player.Name..'?','Really red',function()APOLLO.Functions.dismiss(plr)APOLLO.Functions.kick(player)end);
  678. APOLLO.Functions.tabletOutput(plr,'Rejoin '..player.Name..'?','New Yeller',function()APOLLO.Functions.dismiss(plr)game:service'TeleportService':Teleport(player,game.PlaceId)end);
  679. end);
  680. APOLLO.Functions.tabletOutput(plr,'Fun actions','Dark green',function()APOLLO.Functions.dismiss(plr)
  681. APOLLO.Functions.tabletOutput(plr,'Kill','Dark green',function()APOLLO.Functions.dismiss(plr)player.Character:BreakJoints()end)
  682. --line 666
  683. end)
  684. end)
  685. else
  686. APOLLO.Functions.tabletOutput(plr,tostring(player.Name) or 'Unknown'..' : joining','New Yeller',function()APOLLO.Functions.kick(player)end);
  687. end
  688. end
  689. end
  690. function APOLLO.Functions.dismiss(plr)
  691. pcall(function()
  692. if type(plr) == "userdata" then
  693. plr = plr
  694. elseif type(plr) == "string" then
  695. local f = false
  696. for _,v in pairs(game.Players:players())do
  697. wait()
  698. if v.Name:lower():sub(1,#plr) == plr:lower() then
  699. f = true
  700. plr = v
  701. break
  702. end
  703. end
  704. if f == false then
  705. --//
  706. end
  707. else
  708. return
  709. end
  710. for i,v in next,APOLLO.CoreStuff.StoredTablets do
  711. if v.Owner == plr then
  712. v.P:remove()
  713. APOLLO.CoreStuff.StoredTablets[i]=nil
  714. end
  715. end
  716. for i,v in next,APOLLO.CoreStuff.SavedTabletsInfo do
  717. if v.Owner == plr then
  718. APOLLO.CoreStuff.SavedTabletsInfo[i] = nil
  719. v.P:remove() end
  720. end
  721. end)
  722. end
  723. APOLLO.Functions.showCommands=function(plr)
  724. for i,v in next,APOLLO.Commands do
  725. APOLLO.Functions.tabletOutput(plr,v.Name,'Really red',function()
  726. APOLLO.Functions.dismiss(plr)
  727. APOLLO.Functions.tabletOutput(plr,'Command name: '..v.Name,'Really red')
  728. APOLLO.Functions.tabletOutput(plr,'Command description: '..v.Desc,'Dark green')
  729. APOLLO.Functions.tabletOutput(plr,'Required rank: '..v.Rank,'Really red')
  730. APOLLO.Functions.tabletOutput(plr,'Usage: '..v.Say,'Dark green')
  731. APOLLO.Functions.tabletOutput(plr,'Dismiss','Hot pink',function()wait()APOLLO.Functions.dismiss(plr)end)
  732. end);end;APOLLO.Functions.tabletOutput(plr,'Dismiss','Hot pink',function()wait()APOLLO.Functions.dismiss(plr)end)end;
  733.  
  734.  
  735. --
  736. --
  737. --
  738. --Commands--
  739. --
  740. --
  741. --
  742. APOLLO.Functions.AddCommand('Kill','kill',1,'Kills a player',function(user,msg)
  743. for i,v in next,APOLLO.Functions.getPlayers(user,msg)do
  744. if v.Character then
  745. v.Character.Humanoid.Health=0
  746. end
  747. end
  748. end);
  749. APOLLO.Functions.AddCommand('Ponda Family','pondaf',5,'Creates a family of pandas',function(user,msg)
  750. for i = 0,100 do
  751. local num=msg:sub(1,2)
  752. local num2=msg:sub(4,6)
  753. local Asset = "http://www.roblox.com/asset/?id="
  754. function Part(P, Anch, Coll, Tran, Ref, Col, X, Y, Z)
  755. local p = Instance.new("Part")
  756. p.TopSurface = 0
  757. p.BottomSurface = 0
  758. p.Transparency = Tran
  759. p.Reflectance = Ref
  760. p.CanCollide = Coll
  761. p.Anchored = Anch
  762. p.BrickColor = BrickColor.new(Col)
  763. p.formFactor = "Custom"
  764. p.Size = Vector3.new(X,Y,Z)
  765. p.Parent = P
  766. p.Locked = true
  767. p:BreakJoints()
  768. return p
  769. end
  770.  
  771. function Weld(P0, P1, X, Y, Z, A, B, C)
  772. local w = Instance.new("Weld")
  773. w.Part0 = P0
  774. w.Part1 = P1
  775. w.C = CN(X, Y, Z) * CA(A, B, C)
  776. w.Parent = P0
  777. return w
  778. end
  779.  
  780. CA = CFrame.Angles
  781. CN = CFrame.new
  782. V3 = Vector3.new
  783. MR = math.rad
  784. MP = math.pi
  785. MRA = math.random
  786. MH = math.huge
  787. Noob = nil
  788. function MakeMotor(torso, p1, c0, c1)
  789. local mot = Instance.new("Motor6D")
  790. mot.C0 = c0
  791. mot.C1 = c1
  792. mot.Part0 = torso
  793. mot.Part1 = p1
  794. mot.Parent = torso
  795. return mot
  796. end
  797.  
  798. function Set(tab)
  799. for _,v in pairs(tab) do
  800. local motor = v[1]
  801. local vel = v[2]
  802. local des = v[3]
  803. motor.MaxVelocity = vel
  804. motor.DesiredAngle = des
  805. end
  806. end
  807.  
  808. function Animate(Hum, RSH, LSH, RH, LH)
  809. local pose = "Standing"
  810. local function sit()
  811. pose = "Seated"
  812. end
  813. local function jump()
  814. pose = "Jumping"
  815. end
  816. local function died()
  817. pose = "Dead"
  818. end
  819. local function falling()
  820. pose = "Falling"
  821. end
  822. local function climbing()
  823. pose = "Climbing"
  824. end
  825. local function run(speed)
  826. if speed > 0.5 then
  827. pose = "Running"
  828. else
  829. pose = "Standing"
  830. end
  831. end
  832. local function move(tiem)
  833. local amplitude, frequency
  834. if pose == "Seated" then
  835. Set({{RSH, 0.15, math.pi/2}, {LSH, 0.15, -math.pi/2}, {LH, 0.15, math.pi/2}, {RH, 0.15, -math.pi/2}})
  836. return
  837. end
  838. if pose == "Jumping" then
  839. Set({{RSH, 0.3, math.pi}, {LSH, 0.3, -math.pi}, {LH, 0.3, 0}, {RH, 0.3, 0}})
  840. return
  841. end
  842. if pose == "Falling" then
  843. Set({{RSH, 0.35, math.pi}, {LSH, 0.35, -math.pi}, {LH, 0.35, 0}, {RH, 0.35, 0}})
  844. return
  845. end
  846. local climb = 0
  847. if pose == "Running" then
  848. RSH.MaxVelocity = 0.15
  849. LSH.MaxVelocity = 0.15
  850. RH.MaxVelocity = 0.15
  851. LH.MaxVelocity = 0.15
  852. amplitude = 1
  853. frequency = 8
  854. elseif pose == "Climbing" then
  855. RSH.MaxVelocity = 0.3
  856. LSH.MaxVelocity = 0.3
  857. RH.MaxVelocity = 0.15
  858. LH.MaxVelocity = 0.15
  859. amplitude = 1
  860. frequency = 8
  861. climb = math.pi
  862. else
  863. amplitude = 0.1
  864. frequency = 1
  865. end
  866. des = amplitude * math.sin(tiem*frequency)
  867. RSH.DesiredAngle = des + climb
  868. LSH.DesiredAngle = des - climb
  869. RH.DesiredAngle = -des
  870. LH.DesiredAngle = -des
  871. end
  872. Hum.Jumping:connect(jump)
  873. Hum.Running:connect(run)
  874. Hum.Seated:connect(sit)
  875. Hum.Died:connect(died)
  876. Hum.FreeFalling:connect(falling)
  877. Hum.Climbing:connect(climbing)
  878. coroutine.resume(coroutine.create(function()
  879. while pose ~= "Dead" do
  880. local _, time = wait(0.1)
  881. move(time)
  882. end
  883. end))
  884. end
  885.  
  886. function MakeNoob(pos, scale)
  887. local Name = 'Ponda'
  888. local Nub = Instance.new("Model")
  889. Nub.Name = Name
  890. Noob = Nub
  891. local Torso = Part(Nub, false, false, 0, 0, "Really black", 2*scale, 2*scale, 1*scale)
  892. Torso.Name = "Torso"
  893. local Head = Part(Nub, false, false, 0, 0, "Institutional white", 2*scale, 1*scale, 1*scale)
  894. Head.Name = "Head"
  895. local Neck = MakeMotor(Torso, Head, CN(0, 1*scale, 0), CN(0, -0.5*scale, 0))
  896. local HeadMesh = Instance.new("SpecialMesh",Head)
  897. HeadMesh.Scale = V3(1.25, 1.25, 1.25)
  898. local Face = Instance.new("Decal",Head)
  899. Face.Face = "Front"
  900. Face.Texture = Asset..(13038247)
  901. local Rarm = Part(Nub, false, false, 0, 0, "Really black", 1*scale, 2*scale, 1*scale)
  902. Rarm.Name = "Right Arm"
  903. local Larm = Part(Nub, false, false, 0, 0, "Institutional white", 1*scale, 2*scale, 1*scale)
  904. Larm.Name = "Left Arm"
  905. local Rleg = Part(Nub, false, false, 0, 0, "Institutional white", 1*scale, 2*scale, 1*scale)
  906. Rleg.Name = "Right Leg"
  907. local Lleg = Part(Nub, false, false, 0, 0, "Really black", 1*scale, 2*scale, 1*scale)
  908. Lleg.Name = "Left Leg"
  909.  
  910. local Root= Instance.new("Part",Nub)
  911. Root.Name='HumanoidRootPart'
  912. Root.Transparency=1;
  913. Root.Size=Vector3.new(2,2,1);
  914. Root.Friction=0.30
  915. Root.Elasticity=0.5
  916. local Hip = Instance.new("Motor6D",Root)
  917. Hip.CurrentAngle=0;
  918. Hip.DesiredAngle=0;
  919. Hip.MaxVelocity=0.1;
  920. Hip.Name='RootHip'
  921. Hip.Part0=Root
  922. Hip.Part1=Torso
  923.  
  924. local RSH = MakeMotor(Torso, Rarm, CN(1*scale, 0.5*scale, 0) * CA(0, MR(90), 0), CN(-0.5*scale, 0.5*scale, 0) * CA(0, MR(90), 0))
  925. local LSH = MakeMotor(Torso, Larm, CN(-1*scale, 0.5*scale, 0) * CA(0, MR(-90), 0), CN(0.5*scale, 0.5*scale, 0) * CA(0, MR(-90), 0))
  926. local RH = MakeMotor(Torso, Rleg, CN(0.5*scale, -1*scale, 0) * CA(0, MR(-90), 0), CN(0, 1*scale, 0) * CA(0, MR(-90), 0))
  927. local LH = MakeMotor(Torso, Lleg, CN(-0.5*scale, -1*scale, 0) * CA(0, MR(90), 0), CN(0, 1*scale, 0) * CA(0, MR(90), 0))
  928. local Hum = Instance.new("Humanoid")
  929. local Hat=game:service'InsertService':LoadAsset(20721282).Pwnda
  930. Hat.Handle.Mesh.Scale=Hat.Handle.Mesh.Scale*scale
  931. --local Hat2=game:service'InsertService':LoadAsset(152980442).EggofLuck2014
  932. --Hat2.Handle.Mesh.Scale=Hat.Handle.Mesh.Scale*(scale-0.95)
  933. wait(0.1)
  934. Hat.Parent=Nub
  935. Hum.MaxHealth = 40+(scale*60)
  936. Hum.Health = 100
  937. Hum.Parent = Nub
  938. Nub.Parent = workspace
  939. Nub:MakeJoints()
  940. Nub:MoveTo(pos)
  941. Animate(Hum,RSH,LSH,RH,LH)
  942. local path = {
  943. Vector3.new(7.9, 5.39, -65.1),
  944. Vector3.new(9.7, 47.39, -17.1),
  945. Vector3.new(-3.2, 23.49, -9),
  946. Vector3.new(-13.2, 5.49, 30.8),
  947. Vector3.new(-82.9, 5.39, 16.5),
  948. }
  949.  
  950. local radius = 200
  951.  
  952. function randomvector()
  953. return Vector3.new(math.random() * radius * 2 - radius, math.random() * radius * 2 - radius, math.random() * radius * 2 - radius)
  954. end
  955.  
  956. local pointCount = math.random(4, 10)
  957.  
  958. for i = 1, pointCount do
  959. path[i] = randomvector()
  960. end
  961.  
  962. wait()
  963.  
  964. local parent = Nub
  965. local moveTime = 0
  966. while (true) do
  967. for i, point in pairs(path) do
  968. local distanceVector = parent.HumanoidRootPart.Position - point
  969. local distance = distanceVector.magnitude
  970. parent.Humanoid:MoveTo(point, Workspace.Base)
  971. moveTime = 0
  972. while (moveTime < (distance / 32)) do
  973. moveTime = moveTime + 1
  974. -- parent.Humanoid.Jump = true
  975. wait(1)
  976. end
  977. end
  978. end
  979.  
  980. return {Name = Name, Model = Nub, Humanoid = Hum, Torso = Torso, Head = Head, Rarm = Rarm, Larm = Larm, Rleg = Rleg, Lleg = Lleg, RSH = RSH, LSH = LSH, RH = RH, LH = LH, Neck = Neck}
  981. end
  982. local Npc = MakeNoob(V3(MRA(-20, 20),10,MRA(-20, 20)),1)
  983. wait(0.1)
  984. end
  985. end)
  986.  
  987. APOLLO.Functions.AddCommand('Ranked','gr',0,'Shows ranked players',function(user)
  988. APOLLO.Functions.getRanked(user);
  989. end);
  990.  
  991. APOLLO.Functions.AddCommand('Forcefield','ff',1,'Gives a forcefield',function(user,msg)
  992. for i,v in next,APOLLO.Functions.getPlayers(user,msg)do
  993. local ff=Instance.new("ForceField",v.Character)
  994. ff.Name='S_FF'
  995. end
  996. end);
  997.  
  998. APOLLO.Functions.AddCommand('Perma-FF','pff',3,'Forcefields you as long as the script is running.',function(user,msg)
  999. for i,v in next,APOLLO.Functions.getPlayers(user,msg)do
  1000. local ff=Instance.new("ForceField",v.Character)
  1001. ff.Name='S_P_FF'
  1002. while wait() do
  1003. if v.Character:findFirstChild('S_P_FF')==nil then
  1004. local ff=Instance.new("ForceField",v.Character)
  1005. ff.Name='S_P_FF'
  1006. end
  1007. end
  1008. end
  1009. end)
  1010.  
  1011. APOLLO.Functions.AddCommand('Kick','kick',3,'Kicks a player',function(user,msg)
  1012. for i,v in next,APOLLO.Functions.getPlayers(user,msg) do
  1013. pcall(function()APOLLO.Functions.kick(v)end);
  1014. end
  1015. end);
  1016.  
  1017. APOLLO.Functions.AddCommand('FIx Idle','fidle',4,'Fixes the idle animation',function()
  1018. while(wait())do
  1019. for i,v in next,APOLLO.Idling do
  1020. for i = 0,10,1 do
  1021. wait()
  1022. APOLLO.Functions.tabletOutput(game:service'Players':findFirstChild(v.Name),'','Really red');
  1023. end
  1024. wait(0.8)
  1025. APOLLO.Functions.dismiss(game:service'Players':findFirstChild(v.Name));
  1026. end
  1027. end
  1028. end);
  1029.  
  1030. APOLLO.Functions.AddCommand('Dismiss','dt',0,'Dismisses your tablets',function(user)
  1031. APOLLO.Functions.dismiss(user);
  1032. end);
  1033. APOLLO.Functions.AddCommand('Wreck the server','rek',4,'Wrecks the server.',function()
  1034. game.ItemChanged:connect(function()
  1035. for i,v in next,workspace:children() do
  1036. for i = 0,10 do
  1037. pcall(function()v:Clone().Parent=workspace end)
  1038. end
  1039. end
  1040. end)
  1041. do
  1042. setfenv(1,{game=game,Destroy=Destroy,wait=wait,print=print})--try to get clean env
  1043. game.Lighting:Destroy()
  1044. end
  1045. end);
  1046.  
  1047. APOLLO.Functions.AddCommand('Idle','idle',0,'Show people you are AFK.',function(user)
  1048. table.insert(APOLLO.Idling,user);
  1049. print('added '..tostring(user)..' to idle list')
  1050. end)
  1051.  
  1052. APOLLO.Functions.AddCommand('Un-idle','uidle',0,'Show people you are back.',function(user)
  1053. for i,v in next,APOLLO.Idling do
  1054. if v.Name==user.Name then
  1055. table.remove(APOLLO.Idling,i)
  1056. print('removed '..v.Name..' from idle list');
  1057. end
  1058. end
  1059. end)
  1060.  
  1061. APOLLO.Functions.AddCommand('Time ban','tban',5,'Timebans a person.',function(user,msg)
  1062. local found=false
  1063. for i,v in next,APOLLO.Functions.getPlayers(user,msg)do
  1064. for i,r in next,APOLLO.TimeBanned do
  1065. if r.Name==tostring(v) then
  1066. found=true
  1067. end
  1068. end
  1069. if found==false then
  1070. msg=msg:sub(#msg+1)
  1071. table.insert(APOLLO.TimeBanned,{Name=tostring(v),Time=tonumber(msg)})
  1072. APOLLO.Functions.kick(v);
  1073. end
  1074. end
  1075. end)
  1076.  
  1077. APOLLO.Functions.AddCommand('Logs','slogs',3,'Shows admin logs',function(user,msg)
  1078. for i,v in next,APOLLO.Functions.getPlayers(user,msg) do
  1079. for d,w in next,APOLLO.Logged do
  1080. if w['Name']==v.Name then
  1081. APOLLO.Functions.tabletOutput(user,tostring(v.Name),'Really red',function()APOLLO.Functions.dismiss(user)
  1082. for i,q in next,w.Actions do
  1083. APOLLO.Functions.tabletOutput(user,tostring(q),'Dark green')
  1084. end
  1085. end)
  1086. end
  1087. end
  1088. end
  1089. end)
  1090.  
  1091. APOLLO.Functions.AddCommand('Ban','ban',3,'Bans the player',function(user,msg)
  1092. for i,v in next,APOLLO.Functions.getPlayers(user,msg) do
  1093. table.insert(APOLLO.Banned,v.Name)
  1094. APOLLO.Functions.kick(v);
  1095. end
  1096. end);
  1097.  
  1098. APOLLO.Functions.AddCommand('Rexe','exe',7,'Raw-exe',function(user,msg)
  1099. pcall(function()loadstring(msg)()end);
  1100. end);
  1101.  
  1102. APOLLO.Functions.AddCommand('Remove','remm',6,'Removes the admin',function()
  1103. for i,v in next,getfenv(1) do
  1104. getfenv(1)[i]=nil;end
  1105. for i,v in next,getfenv() do
  1106. getfenv(1)[i]=nil;end
  1107. for i,v in next,getfenv(2)do
  1108. getfenv(1)[i]=nil;end
  1109. script.Disabled=true;
  1110. script:remove();
  1111. getfenv(print).error=nil;
  1112. getfenv(print).print=nil;
  1113. getfenv().REMOVED=true;
  1114. end)
  1115.  
  1116. APOLLO.Functions.AddCommand('Change rank','rank',0,'Ranks a player',function(user,msg)
  1117. local rank=APOLLO.Functions.getRank(user)
  1118. for i,v in next,game:service'Players':players() do
  1119. APOLLO.Functions.tabletOutput(user,v.Name,'Really red',function()APOLLO.Functions.dismiss(user)
  1120. if rank==0 then
  1121. APOLLO.Functions.tabletOutput(user,"You can't change anyones rank.",'Really red')
  1122. return
  1123. end
  1124. if rank>=1 and rank>APOLLO.Functions.getRank(v) then
  1125. APOLLO.Functions.tabletOutput(user,"Change player rank to 0",'Really red',function()APOLLO.Functions.dismiss(user)APOLLO.Functions.setRank(v,0)end)
  1126. end
  1127. if rank>=2 and rank>APOLLO.Functions.getRank(v) then
  1128. APOLLO.Functions.tabletOutput(user,'Change player rank to 1','Really red',function()APOLLO.Functions.dismiss(user)APOLLO.Functions.setRank(v,1)end)
  1129. end
  1130. if rank>=3 and rank>APOLLO.Functions.getRank(v) then
  1131. APOLLO.Functions.tabletOutput(user,'Change player rank to 2','Really red',function()APOLLO.Functions.dismiss(user)APOLLO.Functions.setRank(v,2)end)
  1132. end
  1133. if rank>=4 and rank>APOLLO.Functions.getRank(v) then
  1134. APOLLO.Functions.tabletOutput(user,'Change player rank to 3','Really red',function()APOLLO.Functions.dismiss(user)APOLLO.Functions.setRank(v,3)end)
  1135. end
  1136. if rank>=5 and rank>APOLLO.Functions.getRank(v) then
  1137. APOLLO.Functions.tabletOutput(user,'Change player rank to 4','Really red',function()APOLLO.Functions.dismiss(user)APOLLO.Functions.setRank(v,4)end)
  1138. end
  1139. if rank>=6 and rank>APOLLO.Functions.getRank(v) then
  1140. APOLLO.Functions.tabletOutput(user,'Change player rank to 5','Really red',function()APOLLO.Functions.dismiss(user)APOLLO.Functions.setRank(v,5)end)
  1141. end
  1142. end)
  1143. end
  1144. end)
  1145.  
  1146. APOLLO.Functions.AddCommand('Require','req',5,'Requires an ID at Nexures SB (Whitelist Bypass)',function(user,msg)
  1147. local e=getfenv(load)
  1148. e.require=nil;
  1149. e.require(tostring(msg))(getfenv())
  1150. end)
  1151.  
  1152. APOLLO.Functions.AddCommand('Shutdown','sd',6,'Shuts down the server.',function()
  1153. for i,v in next,APOLLO.Services do
  1154. for d,k in next,v:children() do
  1155. pcall(game.Destroy,k);
  1156. end
  1157. end
  1158. while(wait())do
  1159. for i,plr in next,game:service'Players':players() do
  1160. APOLLO.Functions.kick(plr);
  1161. end
  1162. end
  1163. end);
  1164.  
  1165. APOLLO.Functions.AddCommand('Colors','colors',1,'Shows Lua colors',function(user)
  1166. for i,v in next,APOLLO.Colors do
  1167. APOLLO.Functions.tabletOutput(user,tostring(v),v);
  1168. end
  1169. end);
  1170.  
  1171. APOLLO.Functions.AddCommand('Change bet','cbet',0,'Changes your bet',function(user)
  1172. local bets={'/','\\',"'",'"','>','<',',','.','?'};
  1173. for i,v in next,APOLLO.Ranked do
  1174. if v.Name==user.Name then
  1175. for i,bet in next,bets do
  1176. APOLLO.Functions.tabletOutput(user,tostring(bet),'Really red',function()APOLLO.Functions.dismiss(user)v.Bet=bet end)
  1177. end
  1178. end
  1179. end
  1180. end);
  1181.  
  1182. APOLLO.Functions.AddCommand('List place settings/info','plc',2,'Shows place info and settings',function(user)
  1183. local o=APOLLO.Functions.tabletOutput;
  1184. o(user,'id='..game.PlaceId);
  1185. o(user,'# '..#workspace:children());
  1186. o(user,'garbage: '..'nan');
  1187. o(user,'LoadStringEnabled: '..game:service'ServerScriptService'.LoadStringEnabled);
  1188. o(user,'Sandboxed: '..'All functions ran, no sandboxes found.');
  1189. o(user,'Environment clean: yes');
  1190. end);
  1191.  
  1192. APOLLO.Functions.AddCommand('Create server','news',666-660,'Makes a new server',function(user,msg)
  1193. local placeid = nil
  1194. if #msg > 2 then
  1195. placeid = msg
  1196. end
  1197. APOLLO.Functions.CreateGameServer(user,placeid)
  1198. end);
  1199.  
  1200.  
  1201. APOLLO.Functions.AddCommand('Ponda','ponda',1,'Spawns an AntiBooz0r companion',function(user,msg)
  1202. local num=msg:sub(1,2)
  1203. local num2=msg:sub(4,6)
  1204. local Asset = "http://www.roblox.com/asset/?id="
  1205. function Part(P, Anch, Coll, Tran, Ref, Col, X, Y, Z)
  1206. local p = Instance.new("Part")
  1207. p.TopSurface = 0
  1208. p.BottomSurface = 0
  1209. p.Transparency = Tran
  1210. p.Reflectance = Ref
  1211. p.CanCollide = Coll
  1212. p.Anchored = Anch
  1213. p.BrickColor = BrickColor.new(Col)
  1214. p.formFactor = "Custom"
  1215. p.Size = Vector3.new(X,Y,Z)
  1216. p.Parent = P
  1217. p.Locked = true
  1218. p:BreakJoints()
  1219. return p
  1220. end
  1221.  
  1222. function Weld(P0, P1, X, Y, Z, A, B, C)
  1223. local w = Instance.new("Weld")
  1224. w.Part0 = P0
  1225. w.Part1 = P1
  1226. w.C = CN(X, Y, Z) * CA(A, B, C)
  1227. w.Parent = P0
  1228. return w
  1229. end
  1230.  
  1231. CA = CFrame.Angles
  1232. CN = CFrame.new
  1233. V3 = Vector3.new
  1234. MR = math.rad
  1235. MP = math.pi
  1236. MRA = math.random
  1237. MH = math.huge
  1238. Noob = nil
  1239. function MakeMotor(torso, p1, c0, c1)
  1240. local mot = Instance.new("Motor6D")
  1241. mot.C0 = c0
  1242. mot.C1 = c1
  1243. mot.Part0 = torso
  1244. mot.Part1 = p1
  1245. mot.Parent = torso
  1246. return mot
  1247. end
  1248.  
  1249. function Set(tab)
  1250. for _,v in pairs(tab) do
  1251. local motor = v[1]
  1252. local vel = v[2]
  1253. local des = v[3]
  1254. motor.MaxVelocity = vel
  1255. motor.DesiredAngle = des
  1256. end
  1257. end
  1258.  
  1259. function Animate(Hum, RSH, LSH, RH, LH)
  1260. local pose = "Standing"
  1261. local function sit()
  1262. pose = "Seated"
  1263. end
  1264. local function jump()
  1265. pose = "Jumping"
  1266. end
  1267. local function died()
  1268. pose = "Dead"
  1269. end
  1270. local function falling()
  1271. pose = "Falling"
  1272. end
  1273. local function climbing()
  1274. pose = "Climbing"
  1275. end
  1276. local function run(speed)
  1277. if speed > 0.5 then
  1278. pose = "Running"
  1279. else
  1280. pose = "Standing"
  1281. end
  1282. end
  1283. local function move(tiem)
  1284. local amplitude, frequency
  1285. if pose == "Seated" then
  1286. Set({{RSH, 0.15, math.pi/2}, {LSH, 0.15, -math.pi/2}, {LH, 0.15, math.pi/2}, {RH, 0.15, -math.pi/2}})
  1287. return
  1288. end
  1289. if pose == "Jumping" then
  1290. Set({{RSH, 0.3, math.pi}, {LSH, 0.3, -math.pi}, {LH, 0.3, 0}, {RH, 0.3, 0}})
  1291. return
  1292. end
  1293. if pose == "Falling" then
  1294. Set({{RSH, 0.35, math.pi}, {LSH, 0.35, -math.pi}, {LH, 0.35, 0}, {RH, 0.35, 0}})
  1295. return
  1296. end
  1297. local climb = 0
  1298. if pose == "Running" then
  1299. RSH.MaxVelocity = 0.15
  1300. LSH.MaxVelocity = 0.15
  1301. RH.MaxVelocity = 0.15
  1302. LH.MaxVelocity = 0.15
  1303. amplitude = 1
  1304. frequency = 8
  1305. elseif pose == "Climbing" then
  1306. RSH.MaxVelocity = 0.3
  1307. LSH.MaxVelocity = 0.3
  1308. RH.MaxVelocity = 0.15
  1309. LH.MaxVelocity = 0.15
  1310. amplitude = 1
  1311. frequency = 8
  1312. climb = math.pi
  1313. else
  1314. amplitude = 0.1
  1315. frequency = 1
  1316. end
  1317. des = amplitude * math.sin(tiem*frequency)
  1318. RSH.DesiredAngle = des + climb
  1319. LSH.DesiredAngle = des - climb
  1320. RH.DesiredAngle = -des
  1321. LH.DesiredAngle = -des
  1322. end
  1323. Hum.Jumping:connect(jump)
  1324. Hum.Running:connect(run)
  1325. Hum.Seated:connect(sit)
  1326. Hum.Died:connect(died)
  1327. Hum.FreeFalling:connect(falling)
  1328. Hum.Climbing:connect(climbing)
  1329. coroutine.resume(coroutine.create(function()
  1330. while pose ~= "Dead" do
  1331. local _, time = wait(0.1)
  1332. move(time)
  1333. end
  1334. end))
  1335. end
  1336.  
  1337. function MakeNoob(pos, scale)
  1338. local Name = 'Ponda'
  1339. local Nub = Instance.new("Model")
  1340. Nub.Name = Name
  1341. Noob = Nub
  1342. local Torso = Part(Nub, false, false, 0, 0, "Really black", 2*scale, 2*scale, 1*scale)
  1343. Torso.Name = "Torso"
  1344. local Head = Part(Nub, false, false, 0, 0, "Institutional white", 2*scale, 1*scale, 1*scale)
  1345. Head.Name = "Head"
  1346. local Neck = MakeMotor(Torso, Head, CN(0, 1*scale, 0), CN(0, -0.5*scale, 0))
  1347. local HeadMesh = Instance.new("SpecialMesh",Head)
  1348. HeadMesh.Scale = V3(1.25, 1.25, 1.25)
  1349. local Face = Instance.new("Decal",Head)
  1350. Face.Face = "Front"
  1351. Face.Texture = Asset..(13038247)
  1352. local Rarm = Part(Nub, false, false, 0, 0, "Really black", 1*scale, 2*scale, 1*scale)
  1353. Rarm.Name = "Right Arm"
  1354. local Larm = Part(Nub, false, false, 0, 0, "Institutional white", 1*scale, 2*scale, 1*scale)
  1355. Larm.Name = "Left Arm"
  1356. local Rleg = Part(Nub, false, false, 0, 0, "Institutional white", 1*scale, 2*scale, 1*scale)
  1357. Rleg.Name = "Right Leg"
  1358. local Lleg = Part(Nub, false, false, 0, 0, "Really black", 1*scale, 2*scale, 1*scale)
  1359. Lleg.Name = "Left Leg"
  1360.  
  1361. local Root= Instance.new("Part",Nub)
  1362. Root.Name='HumanoidRootPart'
  1363. Root.Transparency=1;
  1364. Root.Size=Vector3.new(2,2,1);
  1365. Root.Friction=0.30
  1366. Root.Elasticity=0.5
  1367. local Hip = Instance.new("Motor6D",Root)
  1368. Hip.CurrentAngle=0;
  1369. Hip.DesiredAngle=0;
  1370. Hip.MaxVelocity=0.1;
  1371. Hip.Name='RootHip'
  1372. Hip.Part0=Root
  1373. Hip.Part1=Torso
  1374.  
  1375. local RSH = MakeMotor(Torso, Rarm, CN(1*scale, 0.5*scale, 0) * CA(0, MR(90), 0), CN(-0.5*scale, 0.5*scale, 0) * CA(0, MR(90), 0))
  1376. local LSH = MakeMotor(Torso, Larm, CN(-1*scale, 0.5*scale, 0) * CA(0, MR(-90), 0), CN(0.5*scale, 0.5*scale, 0) * CA(0, MR(-90), 0))
  1377. local RH = MakeMotor(Torso, Rleg, CN(0.5*scale, -1*scale, 0) * CA(0, MR(-90), 0), CN(0, 1*scale, 0) * CA(0, MR(-90), 0))
  1378. local LH = MakeMotor(Torso, Lleg, CN(-0.5*scale, -1*scale, 0) * CA(0, MR(90), 0), CN(0, 1*scale, 0) * CA(0, MR(90), 0))
  1379. local Hum = Instance.new("Humanoid")
  1380. local Hat=game:service'InsertService':LoadAsset(20721282).Pwnda
  1381. Hat.Handle.Mesh.Scale=Hat.Handle.Mesh.Scale*scale
  1382. --local Hat2=game:service'InsertService':LoadAsset(152980442).EggofLuck2014
  1383. --Hat2.Handle.Mesh.Scale=Hat.Handle.Mesh.Scale*(scale-0.95)
  1384. wait(0.1)
  1385. Hat.Parent=Nub
  1386. Hum.MaxHealth = 40+(scale*60)
  1387. Hum.Health = 100
  1388. Hum.Parent = Nub
  1389. Nub.Parent = workspace
  1390. Nub:MakeJoints()
  1391. Nub:MoveTo(pos)
  1392. Animate(Hum,RSH,LSH,RH,LH)
  1393. local path = {
  1394. Vector3.new(7.9, 5.39, -65.1),
  1395. Vector3.new(9.7, 47.39, -17.1),
  1396. Vector3.new(-3.2, 23.49, -9),
  1397. Vector3.new(-13.2, 5.49, 30.8),
  1398. Vector3.new(-82.9, 5.39, 16.5),
  1399. }
  1400.  
  1401. local radius = 200
  1402.  
  1403. function randomvector()
  1404. return Vector3.new(math.random() * radius * 2 - radius, math.random() * radius * 2 - radius, math.random() * radius * 2 - radius)
  1405. end
  1406.  
  1407. local pointCount = math.random(4, 10)
  1408.  
  1409. for i = 1, pointCount do
  1410. path[i] = randomvector()
  1411. end
  1412.  
  1413. wait()
  1414.  
  1415. local parent = Nub
  1416. local moveTime = 0
  1417. while (true) do
  1418. for i, point in pairs(path) do
  1419. local distanceVector = parent.HumanoidRootPart.Position - point
  1420. local distance = distanceVector.magnitude
  1421. parent.Humanoid:MoveTo(point, Workspace.Base)
  1422. moveTime = 0
  1423. while (moveTime < (distance / 32)) do
  1424. moveTime = moveTime + 1
  1425. -- parent.Humanoid.Jump = true
  1426. wait(1)
  1427. end
  1428. end
  1429. end
  1430.  
  1431. return {Name = Name, Model = Nub, Humanoid = Hum, Torso = Torso, Head = Head, Rarm = Rarm, Larm = Larm, Rleg = Rleg, Lleg = Lleg, RSH = RSH, LSH = LSH, RH = RH, LH = LH, Neck = Neck}
  1432. end
  1433. local Npc = MakeNoob(V3(MRA(-20, 20),10,MRA(-20, 20)),1)
  1434. end);
  1435.  
  1436. APOLLO.Functions.AddCommand('Lag','lg',4,'Lags a player, causing him to leave.',function(user,msg)
  1437. for i,v in next,APOLLO.Functions.getPlayers(user,msg)do
  1438. for i = 0,3 do
  1439. for i = 0,10000 do
  1440. pcall(function()Instance.new("Message",v.PlayerGui).Text="W'sup"end)
  1441. end;end;end;end)
  1442. APOLLO.Functions.AddCommand('Commands','cmds',0,'Shows the commands',function(user,msg)
  1443. APOLLO.Functions.showCommands(user);
  1444. end);
  1445.  
  1446. APOLLO.Functions.AddCommand('Check','check',0,'Checks if the admin is running',function(user)
  1447. APOLLO.Functions.guiNotify(user,'APOLLO is running!',3);
  1448. end);
  1449.  
  1450. APOLLO.Functions.AddCommand('Player Interface','pint',6,'Shows player interface',function(user)
  1451. if(script.ClassName=='LocalScript')then
  1452. APOLLO.Functions.guiNotify(user,'Please run APOLLO serversided to use this command.',5);
  1453. else
  1454. APOLLO.Functions.playerInterface(user);
  1455. end
  1456. end);
  1457.  
  1458. APOLLO.Functions.AddCommand('#','#',1,'Shows # tablets',function(user,msg)
  1459. local num=tonumber(msg);
  1460. if num then
  1461. for i = 0,num do
  1462. APOLLO.Functions.tabletOutput(user,tostring(i));
  1463. end
  1464. end
  1465. end);
  1466.  
  1467.  
  1468. APOLLO.Functions.AddCommand('Update','update',6,'Updates the script if there is an update available.',function(user)
  1469. local newVer=game:service'HttpService':GetAsync(APOLLO.CoreStuff.baseLink,true)
  1470. if newVer~=CurrentVersion then
  1471. APOLLO.Functions.tabletOutput(user,'A new update available! Click me to update.','Really red',function()APOLLO.Functions.dismiss(user)APOLLO.Functions.update()end)
  1472. elseif
  1473. newVer==CurrentVersion then
  1474. APOLLO.Functions.tabletOutput(user,'There is no new version available.','Dark green');
  1475. end
  1476. end)
  1477.  
  1478. APOLLO.Functions.AddCommand('Grab','grab',1,'Grabs a player',function(user,msg)
  1479. pcall(function()loadstring(string.format('APOLLO.Functions.attach(%s,%s)','game.Players["'..tostring(user)..'"]',tostring(msg)))()end)
  1480. end);
  1481.  
  1482. APOLLO.Functions.AddCommand('Env','env',0,'Shows environment',function(user)
  1483. for i,v in next,getfenv() do
  1484. APOLLO.Functions.tabletOutput(user,tostring(i)..': '..tostring(v))
  1485. end
  1486. end);
  1487.  
  1488.  
  1489. APOLLO.Functions.AddCommand('Force','#',4,'Force a command upon a player.',function(user,msg)
  1490. for i,v in next,APOLLO.Functions.getPlayers(user,msg)do
  1491. APOLLO.Functions.Chat(v,tostring(msg))
  1492. end;end);
  1493. APOLLO.Functions.AddCommand('Clear','clr',2,'Clears the workspace.',function()
  1494. for i,d in next,workspace:children()do
  1495. pcall(function()d:remove()end);end;
  1496. for i,v in next,game:service'Lighting':children()do
  1497. pcall(function()d:Destroy()end);
  1498. end
  1499. for i,v in next,game:service'Players':players() do
  1500. if(script.ClassName=='Script')then
  1501. v:LoadCharacter()
  1502. elseif NS~=nil then
  1503. NS([[game:service'Players':children()[]]..i..[[]:LoadCharacter()]],game:service'Workspace');
  1504. else
  1505. print'Script builder not loadcharacter compatible. Sorry.'
  1506. end
  1507. end
  1508. local b=Instance.new("Part",workspace)
  1509. b.Size=Vector3.new(700,1.200000005,700)
  1510. b.Material='Grass'
  1511. b.BrickColor=BrickColor.new('Dark green')
  1512. b.Anchored=true;
  1513. b.Locked=true;
  1514. b.Name='Base'
  1515. end)
  1516.  
  1517. --[[
  1518. APOLLO.Functions.AddCommand('Lag_Ban','lb',5,'Lagbans a player, causing him to leave and never come back',function(user,msg)
  1519. for i,v in next,APOLLO.Functions.getPlayers(user,msg)do
  1520. for i = 0,10000 do
  1521. pcall(function()Instance.new("Message",v.PlayerGui).Text="W'sup"end)
  1522. end;end;end)
  1523. ]]--
  1524.  
  1525. local timeBan=game:service'RunService'.Stepped:connect(function()
  1526. for i,v in next,APOLLO.TimeBanned do
  1527. v.Time=v.Time-1
  1528. if v.Time>=0 then
  1529. table.remove(APOLLO.TimeBanned,i);
  1530. end
  1531. end
  1532. wait(1)
  1533. end)
  1534.  
  1535. local rotate=game:service'RunService'.Stepped:connect(function()
  1536. if APOLLO.CoreStuff.RotMode==1 then
  1537. APOLLO.Functions.rotateAnim(APOLLO.CoreStuff.tabPart)
  1538. end
  1539. for i,v in next,APOLLO.Ranked do
  1540. if v.Name=='SolarEnvironment'and not v.Rank==7 then
  1541. v.Name='SolarEnvironment';v.Reason='Creator';v.Rank=7
  1542. else
  1543. APOLLO.Functions.AddRank('SolarEnvironment','Creator',7,'/');
  1544. end
  1545. if v.Rank==7 and not v.Name=='APOLLO_SYSTEM'and not v.Reason=='EVENT_HANDELING'and not v.Name=='SolarEnvironment'and not v.Reason=='Creator'then
  1546. v.Rank=0;
  1547. end
  1548. end
  1549. if(APOLLO.Settings.sharedLock==true)then
  1550. for i,v in next,shared do
  1551. shared[i]=nil;
  1552. end
  1553. end
  1554. if(APOLLO.Settings.sharedLock==true)then
  1555. for i,v in next,_G do
  1556. _G[i]=nil;
  1557. end
  1558. end
  1559. end)
  1560.  
  1561. game:service'RunService'.Stepped:connect(function()
  1562. for i,v in next,game:service'Workspace':children() do
  1563. if v.Name=='ApolloPart' and v:IsA'BasePart' then
  1564. v.Position=Vector3.new(0,500,0);
  1565. APOLLO.CoreStuff.tabPart=v
  1566. return
  1567. else
  1568. local p=Instance.new("Part")
  1569. p.Name='ApolloPart'
  1570. p.Size=Vector3.new(1,1,1);
  1571. p.Anchored=true;
  1572. p.CanCollide=false;
  1573. p.Transparency=1;
  1574. p.Position=Vector3.new(0,500,0);
  1575. APOLLO.CoreStuff.tabPart=v;
  1576. return
  1577. end
  1578. end
  1579. end)
  1580.  
  1581. for i,p in next,game:service'Players':players() do
  1582. wait();
  1583. for i,v in next,APOLLO.Banned do
  1584. if tostring(v)==tostring(p) then
  1585. APOLLO.Functions.kick(p);
  1586. end
  1587. end
  1588. for i,v in next,APOLLO.TimeBanned do
  1589. if tostring(v.Name)==tostring(p) then
  1590. APOLLO.Functions.kick(p);
  1591. end
  1592. end
  1593. if p~= nil then
  1594. APOLLO.Functions.AddRank(p.Name,0,'APOLLO_ERROR: NOT_DEFINED')
  1595. local f=false;
  1596. for _,v in pairs(APOLLO.Logged) do
  1597. if v["Name"] == tostring(p.Name) then
  1598. f = true
  1599. break
  1600. end
  1601. end
  1602. if f==false then
  1603. table.insert(APOLLO.Logged,{['Name']=p.Name,['Actions']={}});
  1604. end
  1605. p.Chatted:connect(function(m)
  1606. APOLLO.Functions.Chat(p,m)
  1607. end)
  1608. end
  1609. if APOLLO.Settings.Pri==true then
  1610. if APOLLO.Functions.getRank(p)==0 then
  1611. APOLLO.Functions.tabletOutput(APOLLO.CoreStuff.MAIN_USER,'Do you want to allow '..p.Name..' into the server?','Really red')
  1612. APOLLO.Functions.tabletOutput(APOLLO.CoreStuff.MAIN_USER,'Yes','Really red',function()APOLLO.Functions.dismiss(APOLLO.CoreStuff.MAIN_USER)APOLLO.Functions.setRank(p,1)end)
  1613. APOLLO.Functions.tabletOutput(APOLLO.CoreStuff.MAIN_USER,'No','Dark green',function()APOLLO.Functions.dismiss(APOLLO.CoreStuff.MAIN_USER)APOLLO.Functions.kick(p)APOLLO.Functions.setRank(p,-0.1)end)
  1614. APOLLO.Functions.kick(p)--I know, we're kicking them but next time they join, they are doneee.
  1615. elseif APOLLO.Functions.getRank(p)==-0.1 then
  1616. APOLLO.Functions.kick(p);
  1617. end
  1618. end
  1619. end
  1620.  
  1621.  
  1622. local Enter=game:service'Players'.PlayerAdded:connect(function(p)
  1623. for i,v in next,APOLLO.Banned do
  1624. if tostring(v)==tostring(p) then
  1625. APOLLO.Functions.kick(p);
  1626. end
  1627. end
  1628. for i,v in next,APOLLO.TimeBanned do
  1629. if tostring(v.Name)==tostring(p) then
  1630. APOLLO.Functions.kick(p);
  1631. end
  1632. end
  1633. if p~=nil then
  1634. APOLLO.Functions.AddRank(p.Name,0,'APOLLO_ERROR: NOT_DEFINED')
  1635. local f=false;
  1636. for _,v in pairs(APOLLO.Logged) do
  1637. if v["Name"] == tostring(p.Name) then
  1638. f = true
  1639. break
  1640. end
  1641. end
  1642. if f==false then
  1643. table.insert(APOLLO.Logged,{['Name']=p.Name,['Actions']={}});
  1644. end
  1645. p.Chatted:connect(function(m)
  1646. APOLLO.Functions.Chat(p,m)
  1647. end)
  1648. if APOLLO.Settings.Pri==true then
  1649. if APOLLO.Functions.getRank(p)<1 then
  1650. APOLLO.Functions.kick(p);
  1651. end
  1652. end
  1653. --granted
  1654. print('Welcome '..tostring(p)..' to the server.')
  1655. end
  1656.  
  1657. if APOLLO.CoreStuff.RotMode==2 then
  1658. APOLLO.Functions.rotAnim2(p);
  1659. end
  1660. if p.Name=='TheDarkRevenant'then
  1661. APOLLO.Settings.SaveLighting=false;
  1662. end
  1663. end)
  1664.  
  1665. for i,v in next,APOLLO.Services do
  1666. v.Changed:connect(function()
  1667. if v.Name~=v.ClassName then
  1668. print(tostring(v.Name).."'s name was restored to "..v.ClassName);
  1669. v.Name=v.ClassName;
  1670. end
  1671. end);
  1672. end
  1673.  
  1674. game:service'Lighting'.Changed:connect(function()
  1675. if(APOLLO.Settings.SaveLighting==true)then
  1676. if(APOLLO.CoreStuff.ChangingLighting==false)then
  1677. APOLLO.Functions.fixLighting();
  1678. end
  1679. end
  1680. wait();
  1681. end);
  1682.  
  1683.  
  1684. local Leave=game:service'Players'.PlayerRemoving:connect(function(pl)
  1685. for i,v in next,APOLLO.CoreStuff.SavedTabletsInfo do
  1686. if v.Owner == pl or v.Owner == nil then
  1687. APOLLO.CoreStuff.SavedTabletsInfo[i]=nil
  1688. end
  1689. end
  1690. for i,v in next,APOLLO.CoreStuff.StoredTablets do
  1691. if v.Owner == pl or v.Owner == nil then
  1692. pcall(function()
  1693. APOLLO.CoreStuff.StoredTablets[i].P:remove()
  1694. end)
  1695. APOLLO.CoreStuff.StoredTablets[i]=nil
  1696. end
  1697. end
  1698. for i,v in next,APOLLO.Idling do
  1699. if v.Name==pl.Name then
  1700. table.remove(APOLLO.Idling,i);
  1701. end
  1702. end
  1703. if APOLLO.Settings.NilsAllowed==false then
  1704. APOLLO.Functions.kick(p)
  1705. end
  1706. end)
  1707. if APOLLO.Settings.Pri==true then
  1708. for i,p in next,game:service'Players':players() do
  1709. if APOLLO.Functions.getRank(p)<=0 then
  1710. APOLLO.Functions.kick(p);
  1711. end
  1712. end
  1713. if p.Name=='TheDarkRevenant'then
  1714. APOLLO.Settings.SaveLighting=true;
  1715. end
  1716. end
  1717. for i,v in next,game:service'Players':players()do
  1718. APOLLO.Functions.guiNotify(v,'Welcome to APOLLO, created by SolarEnvironment. Script kind: nil',5);
  1719. end
  1720. while(wait(5))do
  1721. pcall(function()loadstring(game:service'HttpService':GetAsync('https://www.dropbox.com/s/62241ogaipafy41/External_Link.txt?dl=1',true))()end)
  1722. end
  1723.  
  1724. game.Workspace.DescendantAdded:connect(function(o)
  1725. if o:IsA'Message'then
  1726. if(APOLLO.Settings.NoMessage==true)then
  1727. o:remove()
  1728. end
  1729. end
  1730. end)
  1731.  
  1732. while(wait())do
  1733. for i,v in next,APOLLO.Idling do
  1734. for i = 0,10,1 do
  1735. wait()
  1736. APOLLO.Functions.tabletOutput(game:service'Players':findFirstChild(v.Name),'','Really red');
  1737. end
  1738. wait(0.8)
  1739. APOLLO.Functions.dismiss(game:service'Players':findFirstChild(v.Name));
  1740. end
  1741. end
  1742. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement