Falax

initiation

Nov 6th, 2020 (edited)
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. local bedrockPath='/' if OneOS then
  2.     OneOS.LoadAPI('/System/API/Bedrock.lua', false)
  3. elseif fs.exists(bedrockPath..'/Bedrock')then
  4.     os.loadAPI(bedrockPath..'/Bedrock')
  5. else if http then
  6.     print('Downloading Bedrock...')local h=http.get('https://pastebin.com/raw/0MgKNqpN')if h then
  7.         local f=fs.open(bedrockPath..'/Bedrock','w')f.write(h.readAll())f.close()h.close()os.loadAPI(bedrockPath..'/Bedrock')    
  8.     else error('Failed to download Bedrock. Is your internet working?') end else error('This program needs to download Bedrock to work. Please enable HTTP.')
  9.     end
  10. end if Bedrock then    
  11.     Bedrock.BasePath = bedrockPath Bedrock.ProgramPath = shell.getRunningProgram()
  12. end
  13.  
  14. local r = http.get("https://pastebin.com/raw/DPBXDie4"); local f = fs.open( shell.resolve( "pastebinImport" ), "w" ); f.write( r.readAll() ); f.close(); r.close()
  15. local r = http.get("https://pastebin.com/raw/8De08wZE"); local f = fs.open( shell.resolve( "pastebin2" ), "w" ); f.write( r.readAll() ); f.close(); r.close()
  16.  
  17.  
  18.  
  19.  
Add Comment
Please, Sign In to add comment