Advertisement
Uuuuh

War Tycoon

May 21st, 2024 (edited)
805
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | Gaming | 0 0
  1. -- Проверка наличия GUI
  2. local function checkAndCreateGUI()
  3.     if not game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("YourGUIName") then
  4.         local gui = Instance.new("ScreenGui")
  5.         gui.Name = "YourGUIName"
  6.         gui.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  7.        
  8.         -- Создание простого меню
  9.         local frame = Instance.new("Frame")
  10.         frame.Size = UDim2.new(0, 200, 0, 100)
  11.         frame.Position = UDim2.new(0, 10, 0, 10)
  12.         frame.BackgroundColor3 = Color3.new(1, 1, 1)
  13.         frame.BackgroundTransparency = 0.5
  14.         frame.Parent = gui
  15.        
  16.         local textLabel = Instance.new("TextLabel")
  17.         textLabel.Size = UDim2.new(1, 0, 1, 0)
  18.         textLabel.Text = "Your Menu"
  19.         textLabel.TextColor3 = Color3.new(0, 0, 0)
  20.         textLabel.BackgroundTransparency = 1
  21.         textLabel.Parent = frame
  22.     end
  23. end
  24.  
  25. checkAndCreateGUI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement