Advertisement
daplayzx

R3TH LOADER

Aug 2nd, 2024
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.45 KB | None | 0 0
  1. --[[
  2.     R3TH PRIV LOADER SOURCE
  3.  
  4.     .gg/pethicial
  5.  
  6.     Credits:
  7.         pethicial
  8. ]]
  9.  
  10. --------------------------------------------------------------------------------------R3THPRIV----------------------------------------------------------------------------------------
  11. repeat wait() until game:IsLoaded()
  12.  
  13. if Key == nil then
  14.     getgenv().Key = "R3TH PRIV"
  15. end
  16.  
  17. local NotificationHolder = loadstring(game:HttpGet("https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Module.Lua"))()
  18. local Notification = loadstring(game:HttpGet("https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Client.Lua"))()
  19.  
  20. function sendnotification(message, type)
  21.     if type == false or type == nil then
  22.         print("[ " .. Key .. " ]: " .. message)
  23.     end
  24.     if type == true or type == nil then
  25.         Notification:Notify(
  26.             {Title = Key, Description = message},
  27.             {OutlineColor = Color3.fromRGB(80, 80, 80),Time = 7, Type = "default"}
  28.         )
  29.     end
  30. end
  31.  
  32. if getgenv().r3thexecuted then sendnotification("Script already executed, if you're having any problems join discord.gg/pethicial for support.", nil) return end
  33. getgenv().r3thexecuted = true
  34.  
  35. sendnotification("Loader executed.", false)
  36.  
  37. --------------------------------------------------------------------------------------DEFINE----------------------------------------------------------------------------------------
  38. local UIS = game:GetService("UserInputService")
  39. local Touchscreen = UIS.TouchEnabled
  40. local Players = game:GetService("Players")
  41.  
  42. --------------------------------------------------------------------------------------LISTS----------------------------------------------------------------------------------------
  43. local games = {
  44.     [142823291] = 'Murder%20Mystery%202',
  45.     [335132309] = 'Murder%20Mystery%202',
  46.     [636649648] = 'Murder%20Mystery%202',
  47.     [7863262550] = 'FOBLOX',
  48.     [5244411056] = 'Bloxy%20Bingo',
  49.     [8908228901] = 'SharkBite%202',
  50.     [6847090259] = 'Bulked%20Up',
  51.     [12151453277] = 'Abyss%20World',
  52.     [2693739238] = 'THIEF%20LIFE%20Simulator',
  53.     [16281300371] = 'Blade%20Ball',
  54.     [13772394625] = 'Blade%20Ball',
  55.     [14732610803] = 'Blade%20Ball',
  56.     [4889315193] = 'Total%20Roblox%20Drama',
  57.     [4939362930] = 'Total%20Roblox%20Drama',
  58.     [4939362610] = 'Total%20Roblox%20Drama',
  59.     [7172152072] = 'Total%20Roblox%20Drama',
  60.     [15365802831] = 'Total%20Roblox%20Drama',
  61.     [1962086868] = 'Tower%20of%20Hell',
  62.     [3582763398] = 'Tower%20of%20Hell',
  63.     [5253186791] = 'Tower%20of%20Hell',
  64. }
  65.  
  66. local UserIds = {
  67.     4395539224,
  68.     4395558570,
  69.     4383123554,
  70.     4388471465,
  71.     4385548043,
  72.     4388464464,
  73.     4388460549,
  74.     4395547247,
  75.     4395542413,
  76.     4386584832,
  77.     4385549429,
  78.     4386587913,
  79.     4395553797,
  80.     4388455062,
  81.     4388456980,
  82.     4386593321,
  83.     4383124873,
  84.     4386596394,
  85.     4386581560,
  86.     5025025056,
  87.     4385546463,
  88.     4381780232,
  89.     4381789436,
  90.     4381783100,
  91.     4381785992,
  92.     4401330552,
  93.     4401332514,
  94.     4406464584,
  95.     4406459346,
  96.     4401356153,
  97.     4401336096,
  98.     4406479654,
  99.     4406461330,
  100.     4401344195,
  101.     4406468786,
  102.     4406466727,
  103.     4406475738,
  104.     4406454273,
  105.     4401346447,
  106.     4406477330,
  107.     4401341231,
  108.     4381791929,
  109.     4383120960,
  110.     4383116307,
  111.     4383117488,
  112.     5025041589,
  113.     5025465374,
  114.     5025046418,
  115.     4401337786,
  116.     4401325092,
  117.     5025037655,
  118.     5025459922,
  119.     4383114532,
  120.     4383122330,
  121.     5025099676,
  122.     5025367069,
  123.     5025401829,
  124.     5025406785,
  125.     4422118934,
  126.     5025252742,
  127.     5025385732,
  128.     5025221418,
  129.     5025452495,
  130.     5025185886,
  131.     5025231054,
  132.     5025163459,
  133.     5025348534,
  134.     5025329932,
  135.     5025105289,
  136.     5025171331,
  137.     5025395881,
  138.     5025196142,
  139.     5025245476,
  140.     5025213323,
  141.     5025272402,
  142.     5025028636,
  143.     5025096436,
  144.     5025322541,
  145.     5025202029,
  146.     5025209358,
  147.     403528605,
  148.     5025224034,
  149.     5025102483,
  150.     5025292258,
  151.     5025389882,
  152.     5025415474,
  153.     5025085767,
  154.     5025092149,
  155.     5025449393,
  156.     5025411594,
  157.     5025241342,
  158.     5025178293,
  159.     5025089141,
  160.     5025316909,
  161.     5025340430,
  162.     5025261429,
  163.     5025357248,
  164.     5025440102,
  165.     5025374820,
  166.     5025281125,
  167.     5025287866,
  168.     4406473673,
  169.     4401327886,
  170. }
  171.  
  172. --------------------------------------------------------------------------------------FUNCTIONS----------------------------------------------------------------------------------------
  173. local function getGlobal(path)
  174.     local value = getfenv(0)
  175.  
  176.     while value ~= nil and path ~= "" do
  177.         local name, nextValue = string.match(path, "^([^.]+)%.?(.*)$")
  178.         value = value[name]
  179.         path = nextValue
  180.     end
  181.  
  182.     return value
  183. end
  184.  
  185. local function SetSupport(name, support)
  186.     local target = (support == "Supported") and "Supported" or "Unsupported"
  187.    
  188.     if name == "hookfunction" then
  189.         getgenv().R3TH_hookfunction = target
  190.     elseif name == "getnamecallmethod" then
  191.         getgenv().R3TH_getnamecallmethod = target
  192.     elseif name == "Drawing.new" then
  193.         getgenv().R3TH_Drawingnew = target
  194.     end
  195. end
  196.  
  197. local function test(name, aliases, callback)
  198.     task.spawn(function()
  199.         if not callback then
  200.             SetSupport(name, "Supported")
  201.             sendnotification("⏺️ " .. name, false)
  202.         elseif not getGlobal(name) then
  203.             SetSupport(name, "Unsupported")
  204.             sendnotification("⛔ " .. name, false)
  205.         else
  206.             local success, message = pcall(callback)
  207.    
  208.             if success then
  209.                 SetSupport(name, "Supported")
  210.                 sendnotification("✅ " .. name .. (message and " • " .. message or ""), false)
  211.             else
  212.                 SetSupport(name, "Unsupported")
  213.                 sendnotification("⛔ " .. name .. " failed: " .. message, false)
  214.             end
  215.         end
  216.    
  217.         local undefinedAliases = {}
  218.    
  219.         for _, alias in ipairs(aliases) do
  220.             if getGlobal(alias) == false then
  221.                 table.insert(undefinedAliases, alias)
  222.             end
  223.         end
  224.    
  225.         if #undefinedAliases > 0 then
  226.             SetSupport(name, "Unsupported")
  227.             sendnotification("⚠️ " .. table.concat(undefinedAliases, ", "), false)
  228.         end
  229.  
  230.     end)
  231. end
  232.  
  233. function isInUserIdList(UserId)
  234.     for i, v in ipairs(UserIds) do
  235.         if UserId == v then
  236.             return true
  237.         end
  238.     end
  239.     return false
  240. end
  241.  
  242. function AddParticles(player)
  243.     local character = player.Character or player.CharacterAdded:Wait()
  244.     task.wait(5)
  245.     for i,v in pairs (character:GetChildren()) do
  246.         if v:IsA("Part") then
  247.             local particle = Instance.new("ParticleEmitter")
  248.             particle.Texture = "http://www.roblox.com/asset/?id=11839269455"
  249.             particle.Parent = v
  250.             particle.Rate = 50
  251.             particle.Size = NumberSequence.new(0.5)
  252.         end
  253.     end
  254. end
  255.  
  256. function AddNameTag(player)
  257.     local character = player.Character or player.CharacterAdded:Wait()
  258.    
  259.     local texts = {"R", "R3", "R3T", "R3TH", "R3TH ", "R3TH O", "R3TH Ow", "R3TH Own", "R3TH Owne", "R3TH Owner", "R3TH Owner 👑"}
  260.     local textsremove = {"R3TH Owner 👑", "R3TH Owner", "R3TH Owne", "R3TH Own", "R3TH Ow", "R3TH O", "R3TH ", "R3TH", "R3T", "R3", "R", ""}
  261.     local currentIndex = 1
  262.  
  263.     local billboard = Instance.new("BillboardGui")
  264.     billboard.Size = UDim2.new(0, 100, 0, 25)
  265.     billboard.Adornee = character:WaitForChild("Head")
  266.     billboard.Parent = character.Head
  267.     billboard.StudsOffset = Vector3.new(0, 1.5, 0)
  268.     billboard.MaxDistance = 50
  269.  
  270.     local nameLabel = Instance.new("TextLabel")
  271.     nameLabel.Size = UDim2.new(1, 0, 1, 0)
  272.     nameLabel.Position = UDim2.new(0, 0, 0, 0)
  273.     nameLabel.TextScaled = true
  274.     nameLabel.TextColor3 = Color3.fromRGB(255, 215, 0)
  275.     nameLabel.BackgroundTransparency = 1
  276.     nameLabel.Font = Enum.Font.GothamSemibold
  277.     nameLabel.TextXAlignment = Enum.TextXAlignment.Center
  278.     nameLabel.TextYAlignment = Enum.TextYAlignment.Center
  279.     nameLabel.TextStrokeTransparency = 0
  280.     nameLabel.Text = texts[currentIndex]
  281.    
  282.     nameLabel.Parent = billboard
  283.  
  284.     local updateText = coroutine.wrap(function()
  285.         while true do
  286.             for i = 1, #texts do
  287.                 nameLabel.Text = texts[currentIndex]
  288.                 currentIndex = (currentIndex % #texts) + 1
  289.                 task.wait(0.2)
  290.             end
  291.             task.wait(5)
  292.             for i = 1, #textsremove do
  293.                 nameLabel.Text = textsremove[currentIndex]
  294.                 currentIndex = (currentIndex % #textsremove) + 1
  295.                 task.wait(0.1)
  296.             end
  297.             task.wait(1)
  298.         end
  299.     end)
  300.  
  301.     updateText()
  302. end
  303.  
  304. local function AddListener(player)
  305.     if player ~= Players.LocalPlayer then
  306.         AddParticles(player)
  307.         AddNameTag(player)
  308.         player.CharacterAdded:Connect(function(character)
  309.             AddParticles(player)
  310.             AddNameTag(player)
  311.         end)
  312.     end
  313. end
  314.  
  315. local function Check(player)
  316.     if isInUserIdList(player.UserId) then
  317.         AddListener(player)
  318.     end
  319. end
  320.  
  321. --------------------------------------------------------------------------------------CONNECTIONS----------------------------------------------------------------------------------------
  322. for i,v in pairs(Players:GetPlayers()) do
  323.     Check(v)
  324. end
  325.  
  326. Players.PlayerAdded:Connect(function(player)
  327.     Check(player)
  328. end)
  329.  
  330. --------------------------------------------------------------------------------------SUPPORT CHECK----------------------------------------------------------------------------------------
  331. if games[game.PlaceId] ~= "Total%20Roblox%20Drama" then
  332.     test("hookfunction", {"replaceclosure"}, function()
  333.         local function test()
  334.             return true
  335.         end
  336.         local ref = hookfunction(test, function()
  337.             return false
  338.         end)
  339.         assert(test() == false, "Function should return false")
  340.         assert(ref() == true, "Original function should return true")
  341.         assert(test ~= ref, "Original function should not be same as the reference")
  342.     end)
  343.    
  344.     test("getnamecallmethod", {}, function()
  345.         local method
  346.         local ref
  347.         ref = hookmetamethod(game, "__namecall", function(...)
  348.             if not method then
  349.                 method = getnamecallmethod()
  350.             end
  351.             return ref(...)
  352.         end)
  353.         game:GetService("Lighting")
  354.         assert(method == "GetService", "Did not get the correct method (GetService)")
  355.     end)
  356. end
  357.  
  358. test("Drawing.new", {}, function()
  359.     local drawing = Drawing.new("Square")
  360.     drawing.Visible = false
  361.     local canDestroy = pcall(function()
  362.         drawing:Destroy()
  363.     end)
  364.     assert(canDestroy, "Drawing:Destroy() should not throw an error")
  365. end)
  366.  
  367. --------------------------------------------------------------------------------------LOADER----------------------------------------------------------------------------------------
  368. getgenv().R3TH_Device = Touchscreen and "Mobile" or "PC"
  369. sendnotification(R3TH_Device .. " detected.", false)
  370.  
  371. sendnotification("Script loading, this may take a while depending on your device.", nil)
  372.  
  373. if games[game.PlaceId] then
  374.     sendnotification("Game Supported!", false)
  375.     loadstring(game:HttpGet('https://raw.githubusercontent.com/R3TH-PRIV/R3THPRIV-old/main/Games/' .. games[game.PlaceId] .. '.lua'))()
  376. else
  377.     sendnotification("Game not Supported.", false)
  378.     loadstring(game:HttpGet('https://raw.githubusercontent.com/R3TH-PRIV/R3THPRIV-old/main/Games/Universal.lua'))()
  379. end
  380.  
  381. getgenv().gui = false
  382. loadstring(game:HttpGet("https://raw.githubusercontent.com/Tqvinoxzc/OrionLibrary/main/ScriptLoader"))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement