Mr_3242

Admin panel ! The glass bridge

Apr 19th, 2026 (edited)
268
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.08 KB | Gaming | 0 0
  1. -- ─── Admin Panel for the glass bridge only https://www.roblox.com/games/8032701413/The-Glass-Bridge ───────────────────────
  2.  
  3. -- Also i couldn’t figure out how to disable the glass toggle when you unload but don’t worry it resets when the game resets the map
  4.  
  5.  
  6.  
  7. --// SAFE RE-EXECUTE
  8. if getgenv().GlassAdminUnload then
  9.     pcall(getgenv().GlassAdminUnload)
  10. end
  11.  
  12. --// SERVICES
  13. local Players = game:GetService("Players")
  14. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  15.  
  16. local player = Players.LocalPlayer
  17.  
  18. --// LOAD RAYFIELD
  19. local Rayfield
  20.  
  21. task.spawn(function()
  22.     while not Rayfield do
  23.         local success, result = pcall(function()
  24.             return loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
  25.         end)
  26.  
  27.         if success and result then
  28.             Rayfield = result
  29.             print("[Rayfield] Loaded successfully")
  30.         else
  31.             warn("[Rayfield] Failed to load, retrying...")
  32.             task.wait(0.2)
  33.         end
  34.     end
  35. end)
  36.  
  37. repeat task.wait() until Rayfield
  38.  
  39. --// FILTER NOTIFICATIONS
  40. local oldNotify = Rayfield.Notify
  41. Rayfield.Notify = function(self, data)
  42.     if data and data.Title then
  43.         local t = tostring(data.Title)
  44.         if t:find("Rayfield") or t:find("Interface") then return end
  45.     end
  46.     return oldNotify(self, data)
  47. end
  48.  
  49. --// WINDOW
  50. local Window = Rayfield:CreateWindow({
  51.     Name = "The Glass Bridge",
  52.     LoadingTitle = "Admin Panel",
  53.     LoadingSubtitle = "follow me on TikTok Mr_3242",
  54.     ConfigurationSaving = {Enabled = false},
  55.     KeySystem = false
  56. })
  57.  
  58. --// TABS
  59. local CheatsTab = Window:CreateTab("Cheats", 4483362458)
  60. local CreditsTab = Window:CreateTab("Credits", 4483362458)
  61. local UnloadTab = Window:CreateTab("Unload", 4483362458)
  62.  
  63. --// REMOTES
  64. local RemoteEvents = ReplicatedStorage:WaitForChild("RemoteEvents", 10)
  65. local AdminOverrideEvent = RemoteEvents and RemoteEvents:WaitForChild("AdminOverrideEvent", 5)
  66.  
  67. --// STATE
  68. local glassVisible = false
  69.  
  70. local States = {
  71.     Immune = false,
  72.     Barrier = false,
  73.     BridgeLight = false,
  74.     GameLight = false
  75. }
  76.  
  77. --// REMOTE FUNCTION
  78. local function fireOverride(arg)
  79.     if AdminOverrideEvent then
  80.         pcall(function()
  81.             AdminOverrideEvent:FireServer(arg)
  82.         end)
  83.     end
  84. end
  85.  
  86. --// GLASS
  87. local function toggleGlass()
  88.     local gs = workspace:FindFirstChild("GameRunningService")
  89.     local gb = gs and gs:FindFirstChild("GlassBridges")
  90.     local cg = gb and gb:FindFirstChild("CorrectGlass")
  91.     if not cg then return end
  92.  
  93.     for _, p in pairs(cg:GetChildren()) do
  94.         if p:IsA("BasePart") then
  95.             p.Transparency = glassVisible and 1 or 0.8
  96.         end
  97.     end
  98.  
  99.     glassVisible = not glassVisible
  100. end
  101.  
  102. --// CHEATS
  103. CheatsTab:CreateToggle({
  104.     Name = "toggle Glass on/off",
  105.     CurrentValue = false,
  106.     Callback = function()
  107.         toggleGlass()
  108.     end
  109. })
  110.  
  111. CheatsTab:CreateToggle({
  112.     Name = "become Immune",
  113.     CurrentValue = false,
  114.     Callback = function()
  115.         States.Immune = not States.Immune
  116.         fireOverride("Immunity")
  117.     end
  118. })
  119.  
  120. CheatsTab:CreateButton({
  121.     Name = "toggle Barrier on/off",
  122.     Callback = function()
  123.         States.Barrier = not States.Barrier
  124.         fireOverride("Barrier")
  125.     end
  126. })
  127.  
  128. CheatsTab:CreateToggle({
  129.     Name = "toggle Bridge Light on/off",
  130.     CurrentValue = false,
  131.     Callback = function()
  132.         States.BridgeLight = not States.BridgeLight
  133.         fireOverride("BridgeLight")
  134.     end
  135. })
  136.  
  137. CheatsTab:CreateToggle({
  138.     Name = "toggle Game Light on/off",
  139.     CurrentValue = false,
  140.     Callback = function()
  141.         States.GameLight = not States.GameLight
  142.         fireOverride("GameLight")
  143.     end
  144. })
  145.  
  146. CheatsTab:CreateButton({
  147.     Name = "Stop Game",
  148.     Callback = function()
  149.         fireOverride("StopGame")
  150.     end
  151. })
  152.  
  153. --// CREDITS
  154. CreditsTab:CreateParagraph({
  155.     Title = "Credits",
  156.     Content = "Script created by Mr_3242\nThanks for using the script!"
  157. })
  158.  
  159. CreditsTab:CreateButton({
  160.     Name = "Copy TikTok",
  161.     Callback = function()
  162.         setclipboard("https://www.tiktok.com/@Mr_3242")
  163.     end
  164. })
  165.  
  166. CreditsTab:CreateButton({
  167.     Name = "Copy YouTube",
  168.     Callback = function()
  169.         setclipboard("https://www.youtube.com/@Mr_3242.")
  170.     end
  171. })
  172.  
  173. CreditsTab:CreateButton({
  174.     Name = "Copy Twitch",
  175.     Callback = function()
  176.         setclipboard("https://m.twitch.tv/quantumx_42/home")
  177.     end
  178. })
  179.  
  180. --// UNLOAD
  181. getgenv().GlassAdminUnload = function()
  182.  
  183.     pcall(function()
  184.         if glassVisible then
  185.             local gs = workspace:FindFirstChild("GameRunningService")
  186.             local gb = gs and gs:FindFirstChild("GlassBridges")
  187.             local cg = gb and gb:FindFirstChild("CorrectGlass")
  188.  
  189.             if cg then
  190.                 for _, p in pairs(cg:GetChildren()) do
  191.                     if p:IsA("BasePart") then
  192.                         p.Transparency = 0.8
  193.                     end
  194.                 end
  195.             end
  196.  
  197.             glassVisible = false
  198.         end
  199.     end)
  200.  
  201.     pcall(function()
  202.         if States.Immune then fireOverride("Immunity") end
  203.         if States.Barrier then fireOverride("Barrier") end
  204.         if States.BridgeLight then fireOverride("BridgeLight") end
  205.         if States.GameLight then fireOverride("GameLight") end
  206.     end)
  207.  
  208.     pcall(function()
  209.         if Rayfield then
  210.             Rayfield:Destroy()
  211.         end
  212.     end)
  213.  
  214.     getgenv().GlassAdminUnload = nil
  215. end
  216.  
  217. UnloadTab:CreateButton({
  218.     Name = "Unload Script",
  219.     Callback = function()
  220.         if getgenv().GlassAdminUnload then
  221.             getgenv().GlassAdminUnload()
  222.         end
  223.     end
  224. })
Tags: delta
Advertisement
Comments
  • User was banned
  • Mr_3242
    95 days
    Comment was deleted
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment