Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Проверка наличия GUI
- local function checkAndCreateGUI()
- if not game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("YourGUIName") then
- local gui = Instance.new("ScreenGui")
- gui.Name = "YourGUIName"
- gui.Parent = game:GetService("Players").LocalPlayer.PlayerGui
- -- Создание простого меню
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 200, 0, 100)
- frame.Position = UDim2.new(0, 10, 0, 10)
- frame.BackgroundColor3 = Color3.new(1, 1, 1)
- frame.BackgroundTransparency = 0.5
- frame.Parent = gui
- local textLabel = Instance.new("TextLabel")
- textLabel.Size = UDim2.new(1, 0, 1, 0)
- textLabel.Text = "Your Menu"
- textLabel.TextColor3 = Color3.new(0, 0, 0)
- textLabel.BackgroundTransparency = 1
- textLabel.Parent = frame
- end
- end
- checkAndCreateGUI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement