Advertisement
Lucky-kung-Love-you

Sigma hub by me v1

Nov 30th, 2024
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.75 KB | Gaming | 0 0
  1. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  2.  
  3. local Window = Rayfield:CreateWindow({
  4.    Name = "SIGMA HUB",
  5.    Theme = "Default",
  6.    ConfigurationSaving = {
  7.       Enabled = true,
  8.       FileName = "Sigma Hub"
  9.    },
  10.    KeySystem = false
  11. })
  12.  
  13. local MainTab = Window:CreateTab("MAIN MENU")
  14.  
  15. local Section = MainTab:CreateSection("ALL Function")
  16.  
  17. -- ฟังก์ชันสร้าง GUI Blackscreen
  18. local function createBlackscreen()
  19.    local player = game.Players.LocalPlayer
  20.    local gui = player:FindFirstChild("PlayerGui")
  21.  
  22.    if gui then
  23.        -- สร้าง ScreenGui
  24.        local main = gui:FindFirstChild("Main") or Instance.new("ScreenGui", gui)
  25.        main.Name = "Main"
  26.        main.ResetOnSpawn = false -- GUI จะไม่รีเซ็ตเมื่อเกิดใหม่
  27.        main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling -- กำหนด ZIndex
  28.  
  29.        -- สร้าง Frame สำหรับ Blackscreen
  30.        local blackscreen = main:FindFirstChild("Blackscreen") or Instance.new("Frame", main)
  31.        blackscreen.Name = "Blackscreen"
  32.        blackscreen.BackgroundColor3 = Color3.new(0, 0, 0) -- สีดำ
  33.        blackscreen.Size = UDim2.new(1, 0, 1, 0) -- ขยายเต็มหน้าจอ
  34.        blackscreen.Visible = false -- เริ่มต้นปิดไว้
  35.        blackscreen.BorderSizePixel = 0 -- ไม่มีขอบ
  36.    end
  37. end
  38.  
  39. -- เรียกฟังก์ชันสร้าง Blackscreen
  40. createBlackscreen()
  41.  
  42. -- ปุ่มสำหรับเปิด-ปิด Black Screen
  43. local Toggle = MainTab:CreateToggle({
  44.    Name = "Black Screen",
  45.    CurrentValue = false,
  46.    Callback = function(Value)
  47.        local player = game.Players.LocalPlayer
  48.        local gui = player:FindFirstChild("PlayerGui")
  49.        if gui then
  50.            local main = gui:FindFirstChild("Main")
  51.            if main then
  52.                local blackscreen = main:FindFirstChild("Blackscreen")
  53.                if blackscreen then
  54.                    if Value then
  55.                        -- เปิด Black Screen
  56.                        blackscreen.Visible = true
  57.                        game:GetService("RunService"):Set3dRenderingEnabled(false)
  58.                    else
  59.                        -- ปิด Black Screen
  60.                        blackscreen.Visible = false
  61.                        game:GetService("RunService"):Set3dRenderingEnabled(true)
  62.                    end
  63.                end
  64.            end
  65.        end
  66.    end
  67. })
  68.  
  69. -- ปุ่มปิด UI
  70. local Button = MainTab:CreateButton({
  71.    Name = "Close UI",
  72.    Callback = function()
  73.        Rayfield:Destroy() -- ลบ UI ออกจากเกม
  74.    end
  75. })
  76.  
  77. Rayfield:LoadConfiguration()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement