Advertisement
PC55654

shushss

Jan 1st, 2025 (edited)
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.72 KB | Source Code | 0 0
  1. if not cloneref then
  2.     return '[Nurysium] -> Security issue!'
  3. end
  4.  
  5. local LocalPlayer = cloneref(game:GetService('Players')).LocalPlayer
  6. local HttpService = cloneref(game:GetService('HttpService'))
  7.  
  8. local loader = setmetatable({
  9.     _load_function = loadstring or load,
  10.     _games = {
  11.         [6894451805] = {
  12.             name = 'BladeLeague',
  13.             file = '17b6c17981b8149e53c72f5a28183323.lua'
  14.         },
  15.  
  16.         [5750914919] = {
  17.             name = 'Fisch',
  18.             file = '8660176bbaa74f31f2118c61bb3a726d.lua'
  19.         },
  20.     },
  21.  
  22.     __init__ = function(self)
  23.         local success, response = pcall(function()
  24.             return game:HttpGet('https://api.luarmor.net/files/v3/loaders/' .. self._games[game.GameId].file)
  25.         end)
  26.  
  27.         if not success then
  28.             print("Error: " .. tostring(response))  -- Improved error reporting
  29.             local crashlogs_path = 'Nurysium/crashlogs'
  30.  
  31.             if not isfolder('Nurysium') then
  32.                 makefolder('Nurysium')
  33.             end
  34.  
  35.             if not isfolder(crashlogs_path) then
  36.                 makefolder(crashlogs_path)
  37.             end
  38.  
  39.             local date = os.date('%Y-%m-%d_%H-%M-%S')
  40.             local file_path = crashlogs_path .. '/' .. date .. '.txt'
  41.             writefile(file_path, 'Error: ' .. tostring(response))
  42.  
  43.             print(file_path, '@ [Something went wrong, an error log was created]')
  44.         else
  45.             -- If successful, load and execute the file content
  46.             local func, loadError = pcall(self._load_function(response))
  47.             if not func then
  48.                 print("Error executing code: " .. loadError)
  49.             end
  50.         end
  51.     end
  52. }, loader)
  53.  
  54. loader:__init__()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement