Vladislav829

Untitled

Jan 26th, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.80 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local RunService = game:GetService("RunService")
  3. local UserInputService = game:GetService("UserInputService")
  4. local LocalPlayer = Players.LocalPlayer
  5.  
  6. -- Создание главного GUI
  7. local ScreenGui = Instance.new("ScreenGui")
  8. ScreenGui.Parent = game.CoreGui
  9.  
  10. local MainFrame = Instance.new("Frame")
  11. MainFrame.Size = UDim2.new(0, 300, 0, 400)
  12. MainFrame.Position = UDim2.new(0, 50, 0, 50)
  13. MainFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  14. MainFrame.Parent = ScreenGui
  15. MainFrame.ClipsDescendants = true
  16.  
  17. local ToggleButton = Instance.new("TextButton")
  18. ToggleButton.Size = UDim2.new(0, 300, 0, 30)
  19. ToggleButton.Position = UDim2.new(0, 0, 0, 0)
  20. ToggleButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
  21. ToggleButton.Text = "Свернуть"
  22. ToggleButton.Parent = MainFrame
  23.  
  24. -- Вкладки
  25. local Tabs = Instance.new("Frame")
  26. Tabs.Size = UDim2.new(1, 0, 0, 30)
  27. Tabs.Position = UDim2.new(0, 0, 0, 30)
  28. Tabs.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
  29. Tabs.Parent = MainFrame
  30.  
  31. local TPButton = Instance.new("TextButton")
  32. TPButton.Size = UDim2.new(0, 100, 1, 0)
  33. TPButton.Position = UDim2.new(0, 0, 0, 0)
  34. TPButton.Text = "TP"
  35. TPButton.Parent = Tabs
  36.  
  37. local PlayerButton = Instance.new("TextButton")
  38. PlayerButton.Size = UDim2.new(0, 100, 1, 0)
  39. PlayerButton.Position = UDim2.new(0, 100, 0, 0)
  40. PlayerButton.Text = "Player"
  41. PlayerButton.Parent = Tabs
  42.  
  43. local UniversalButton = Instance.new("TextButton")
  44. UniversalButton.Size = UDim2.new(0, 100, 1, 0)
  45. UniversalButton.Position = UDim2.new(0, 200, 0, 0)
  46. UniversalButton.Text = "Universal"
  47. UniversalButton.Parent = Tabs
  48.  
  49. -- Контейнер для содержимого вкладок
  50. local TabContent = Instance.new("Frame")
  51. TabContent.Size = UDim2.new(1, 0, 1, -60)
  52. TabContent.Position = UDim2.new(0, 0, 0, 60)
  53. TabContent.BackgroundTransparency = 1
  54. TabContent.Parent = MainFrame
  55.  
  56. -- Содержимое вкладки Player
  57. local PlayerFrame = Instance.new("Frame")
  58. PlayerFrame.Size = UDim2.new(1, 0, 1, 0)
  59. PlayerFrame.Visible = false
  60. PlayerFrame.Parent = TabContent
  61.  
  62. local SpeedInput = Instance.new("TextBox")
  63. SpeedInput.Size = UDim2.new(0, 200, 0, 30)
  64. SpeedInput.Position = UDim2.new(0, 50, 0, 50)
  65. SpeedInput.Text = "16"
  66. SpeedInput.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  67. SpeedInput.TextColor3 = Color3.new(1, 1, 1)
  68. SpeedInput.ClearTextOnFocus = true
  69. SpeedInput.Parent = PlayerFrame
  70.  
  71. local ApplySpeedButton = Instance.new("TextButton")
  72. ApplySpeedButton.Size = UDim2.new(0, 200, 0, 30)
  73. ApplySpeedButton.Position = UDim2.new(0, 50, 0, 90)
  74. ApplySpeedButton.Text = "Применить скорость"
  75. ApplySpeedButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  76. ApplySpeedButton.Parent = PlayerFrame
  77.  
  78. ApplySpeedButton.MouseButton1Click:Connect(function()
  79.     local speed = tonumber(SpeedInput.Text)
  80.     if speed and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  81.         LocalPlayer.Character.Humanoid.WalkSpeed = speed
  82.     else
  83.         warn("Ошибка: Проверьте правильность ввода или наличие Humanoid!")
  84.     end
  85. end)
  86.  
  87. local NoclipButton = Instance.new("TextButton")
  88. NoclipButton.Size = UDim2.new(0, 200, 0, 30)
  89. NoclipButton.Position = UDim2.new(0, 50, 0, 130)
  90. NoclipButton.Text = "Ноклип: Выкл"
  91. NoclipButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  92. NoclipButton.Parent = PlayerFrame
  93.  
  94. local noclip = false
  95. RunService.Stepped:Connect(function()
  96.     if noclip and LocalPlayer.Character then
  97.         for _, part in ipairs(LocalPlayer.Character:GetDescendants()) do
  98.             if part:IsA("BasePart") and part.CanCollide then
  99.                 part.CanCollide = false
  100.             end
  101.         end
  102.     end
  103. end)
  104.  
  105. NoclipButton.MouseButton1Click:Connect(function()
  106.     noclip = not noclip
  107.     NoclipButton.Text = "Ноклип: " .. (noclip and "Вкл" or "Выкл")
  108. end)
  109.  
  110. -- Содержимое вкладки Universal
  111. local UniversalFrame = Instance.new("Frame")
  112. UniversalFrame.Size = UDim2.new(1, 0, 1, 0)
  113. UniversalFrame.Visible = false
  114. UniversalFrame.Parent = TabContent
  115.  
  116. local InfiniteYieldButton = Instance.new("TextButton")
  117. InfiniteYieldButton.Size = UDim2.new(0, 200, 0, 30)
  118. InfiniteYieldButton.Position = UDim2.new(0, 50, 0, 50)
  119. InfiniteYieldButton.Text = "Infinite Yield"
  120. InfiniteYieldButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  121. InfiniteYieldButton.Parent = UniversalFrame
  122.  
  123. InfiniteYieldButton.MouseButton1Click:Connect(function()
  124.     loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))()
  125. end)
  126.  
  127. local FlyGUIButton = Instance.new("TextButton")
  128. FlyGUIButton.Size = UDim2.new(0, 200, 0, 30)
  129. FlyGUIButton.Position = UDim2.new(0, 50, 0, 90)
  130. FlyGUIButton.Text = "Fly GUI V3"
  131. FlyGUIButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  132. FlyGUIButton.Parent = UniversalFrame
  133.  
  134. FlyGUIButton.MouseButton1Click:Connect(function()
  135.     loadstring(game:HttpGet("https://raw.githubusercontent.com/XNEOFF/FlyGuiV3/main/FlyGuiV3.txt"))()
  136. end)
  137.  
  138. -- Логика переключения вкладок
  139. local function ShowTab(tab)
  140.     PlayerFrame.Visible = false
  141.     UniversalFrame.Visible = false
  142.  
  143.     if tab == "Player" then
  144.         PlayerFrame.Visible = true
  145.     elseif tab == "Universal" then
  146.         UniversalFrame.Visible = true
  147.     end
  148. end
  149.  
  150. PlayerButton.MouseButton1Click:Connect(function() ShowTab("Player") end)
  151. UniversalButton.MouseButton1Click:Connect(function() ShowTab("Universal") end)
  152.  
  153. -- Логика перемещения окна
  154. local dragging = false
  155. local dragStart, startPos
  156.  
  157. MainFrame.InputBegan:Connect(function(input)
  158.     if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  159.         dragging = true
  160.         dragStart = input.Position
  161.         startPos = MainFrame.Position
  162.     end
  163. end)
  164.  
  165. MainFrame.InputChanged:Connect(function(input)
  166.     if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
  167.         local delta = input.Position - dragStart
  168.         MainFrame.Position = UDim2.new(
  169.             startPos.X.Scale,
  170.             startPos.X.Offset + delta.X,
  171.             startPos.Y.Scale,
  172.             startPos.Y.Offset + delta.Y
  173.         )
  174.     end
  175. end)
  176.  
  177. MainFrame.InputEnded:Connect(function(input)
  178.     if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
  179.         dragging = false
  180.     end
  181. end)
  182.  
  183. -- Логика сворачивания окна
  184. local isCollapsed = false
  185. ToggleButton.MouseButton1Click:Connect(function()
  186.     isCollapsed = not isCollapsed
  187.     MainFrame.Size = isCollapsed and UDim2.new(0, 300, 0, 30) or UDim2.new(0, 300, 0, 400)
  188.     ToggleButton.Text = isCollapsed and "Развернуть" or "Свернуть"
  189. end)
  190.  
Tags: Script
Add Comment
Please, Sign In to add comment