Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local LocalPlayer = Players.LocalPlayer
- -- Создание GUI
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Parent = game.CoreGui
- local MainFrame = Instance.new("Frame")
- MainFrame.Size = UDim2.new(0, 300, 0, 400)
- MainFrame.Position = UDim2.new(0.5, -150, 0.5, -200)
- MainFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- MainFrame.Parent = ScreenGui
- MainFrame.ClipsDescendants = true
- MainFrame.Active = true -- Активируем взаимодействие с окном
- local ToggleButton = Instance.new("TextButton")
- ToggleButton.Size = UDim2.new(0, 300, 0, 30)
- ToggleButton.Position = UDim2.new(0, 0, 0, 0)
- ToggleButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
- ToggleButton.Text = "Свернуть"
- ToggleButton.Parent = MainFrame
- -- Логика перетаскивания окна
- local dragging = false
- local dragStart, startPos
- ToggleButton.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = MainFrame.Position
- end
- end)
- ToggleButton.InputChanged:Connect(function(input)
- if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
- local delta = input.Position - dragStart
- MainFrame.Position = UDim2.new(
- startPos.X.Scale,
- startPos.X.Offset + delta.X,
- startPos.Y.Scale,
- startPos.Y.Offset + delta.Y
- )
- end
- end)
- ToggleButton.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = false
- end
- end)
- -- Логика сворачивания окна
- local isCollapsed = false
- ToggleButton.MouseButton1Click:Connect(function()
- isCollapsed = not isCollapsed
- MainFrame.Size = isCollapsed and UDim2.new(0, 300, 0, 30) or UDim2.new(0, 300, 0, 400)
- ToggleButton.Text = isCollapsed and "Развернуть" or "Свернуть"
- end)
- -- Вкладки
- local Tabs = Instance.new("Frame")
- Tabs.Size = UDim2.new(1, 0, 0, 30)
- Tabs.Position = UDim2.new(0, 0, 0, 30)
- Tabs.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
- Tabs.Parent = MainFrame
- local TPButton = Instance.new("TextButton")
- TPButton.Size = UDim2.new(0, 100, 1, 0)
- TPButton.Text = "TP"
- TPButton.Parent = Tabs
- local PlayerButton = Instance.new("TextButton")
- PlayerButton.Size = UDim2.new(0, 100, 1, 0)
- PlayerButton.Position = UDim2.new(0, 100, 0, 0)
- PlayerButton.Text = "Player"
- PlayerButton.Parent = Tabs
- local UniversalButton = Instance.new("TextButton")
- UniversalButton.Size = UDim2.new(0, 100, 1, 0)
- UniversalButton.Position = UDim2.new(0, 200, 0, 0)
- UniversalButton.Text = "Universal"
- UniversalButton.Parent = Tabs
- -- Контейнер для содержимого вкладок
- local TabContent = Instance.new("Frame")
- TabContent.Size = UDim2.new(1, 0, 1, -60)
- TabContent.Position = UDim2.new(0, 0, 0, 60)
- TabContent.BackgroundTransparency = 1
- TabContent.Parent = MainFrame
- -- TP вкладка
- local TPFrame = Instance.new("ScrollingFrame")
- TPFrame.Size = UDim2.new(1, 0, 1, 0)
- TPFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- TPFrame.ScrollBarThickness = 10
- TPFrame.Visible = true
- TPFrame.Parent = TabContent
- local UIListLayoutTP = Instance.new("UIListLayout")
- UIListLayoutTP.Padding = UDim.new(0, 5)
- UIListLayoutTP.Parent = TPFrame
- local function UpdateTPList()
- for _, child in ipairs(TPFrame:GetChildren()) do
- if child:IsA("TextButton") then
- child:Destroy()
- end
- end
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= LocalPlayer then
- local TPButton = Instance.new("TextButton")
- TPButton.Size = UDim2.new(1, -20, 0, 30)
- TPButton.Text = player.Name
- TPButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
- TPButton.Parent = TPFrame
- TPButton.MouseButton1Click:Connect(function()
- if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- LocalPlayer.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame
- end
- end)
- end
- end
- TPFrame.CanvasSize = UDim2.new(0, 0, 0, UIListLayoutTP.AbsoluteContentSize.Y)
- end
- Players.PlayerAdded:Connect(UpdateTPList)
- Players.PlayerRemoving:Connect(UpdateTPList)
- UpdateTPList()
- -- Player вкладка
- local PlayerFrame = Instance.new("Frame")
- PlayerFrame.Size = UDim2.new(1, 0, 1, 0)
- PlayerFrame.Visible = false
- PlayerFrame.Parent = TabContent
- local SpeedInput = Instance.new("TextBox")
- SpeedInput.Size = UDim2.new(0, 200, 0, 30)
- SpeedInput.Position = UDim2.new(0, 50, 0, 50)
- SpeedInput.Text = "16"
- SpeedInput.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
- SpeedInput.TextColor3 = Color3.new(1, 1, 1)
- SpeedInput.ClearTextOnFocus = true
- SpeedInput.Parent = PlayerFrame
- local ApplySpeedButton = Instance.new("TextButton")
- ApplySpeedButton.Size = UDim2.new(0, 200, 0, 30)
- ApplySpeedButton.Position = UDim2.new(0, 50, 0, 90)
- ApplySpeedButton.Text = "Применить скорость"
- ApplySpeedButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
- ApplySpeedButton.Parent = PlayerFrame
- ApplySpeedButton.MouseButton1Click:Connect(function()
- local speed = tonumber(SpeedInput.Text)
- if speed then
- LocalPlayer.Character.Humanoid.WalkSpeed = speed
- end
- end)
- local NoclipButton = Instance.new("TextButton")
- NoclipButton.Size = UDim2.new(0, 200, 0, 30)
- NoclipButton.Position = UDim2.new(0, 50, 0, 130)
- NoclipButton.Text = "Ноклип: Выкл"
- NoclipButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
- NoclipButton.Parent = PlayerFrame
- local noclip = false
- RunService.Stepped:Connect(function()
- if noclip and LocalPlayer.Character then
- for _, part in ipairs(LocalPlayer.Character:GetDescendants()) do
- if part:IsA("BasePart") and part.CanCollide then
- part.CanCollide = false
- end
- end
- end
- end)
- NoclipButton.MouseButton1Click:Connect(function()
- noclip = not noclip
- NoclipButton.Text = "Ноклип: " .. (noclip and "Вкл" or "Выкл")
- end)
- local FlyButton = Instance.new("TextButton")
- FlyButton.Size = UDim2.new(0, 200, 0, 30)
- FlyButton.Position = UDim2.new(0, 50, 0, 170)
- FlyButton.Text = "Полёт: Выкл"
- FlyButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
- FlyButton.Parent = PlayerFrame
- local flying = false
- FlyButton.MouseButton1Click:Connect(function()
- flying = not flying
- FlyButton.Text = "Полёт: " .. (flying and "Вкл" or "Выкл")
- end)
- -- Universal вкладка
- local UniversalFrame = Instance.new("Frame")
- UniversalFrame.Size = UDim2.new(1, 0, 1, 0)
- UniversalFrame.Visible = false
- UniversalFrame.Parent = TabContent
- local ESPButton = Instance.new("TextButton")
- ESPButton.Size = UDim2.new(0, 200, 0, 30)
- ESPButton.Position = UDim2.new(0, 50, 0, 50)
- ESPButton.Text = "ESP: Выкл"
- ESPButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
- ESPButton.Parent = UniversalFrame
- ESPButton.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet("https://pastebin.com/raw/YSL3xKYU"))()
- end)
- local FlyGUIButton = Instance.new("TextButton")
- FlyGUIButton.Size = UDim2.new(0, 200, 0, 30)
- FlyGUIButton.Position = UDim2.new(0, 50, 0, 100)
- FlyGUIButton.Text = "Fly GUI"
- FlyGUIButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
- FlyGUIButton.Parent = UniversalFrame
- FlyGUIButton.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet("https://pastebin.com/raw/YSL3xKYU"))()
- end)
- local InfiniteYieldButton = Instance.new("TextButton")
- InfiniteYieldButton.Size = UDim2.new(0, 200, 0, 30)
- InfiniteYieldButton.Position = UDim2.new(0, 50, 0, 150)
- InfiniteYieldButton.Text = "Infinite Yield"
- InfiniteYieldButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
- InfiniteYieldButton.Parent = UniversalFrame
- InfiniteYieldButton.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet("https://raw.githubusercontent.com/MariyaFurmanova/Library/main/un_InfYield", true))()
- end)
- -- Логика переключения вкладок
- local function ShowTab(tab)
- TPFrame.Visible = false
- PlayerFrame.Visible = false
- UniversalFrame.Visible = false
- if tab == "TP" then
- TPFrame.Visible = true
- elseif tab == "Player" then
- PlayerFrame.Visible = true
- elseif tab == "Universal" then
- UniversalFrame.Visible = true
- end
- end
- TPButton.MouseButton1Click:Connect(function() ShowTab("TP") end)
- PlayerButton.MouseButton1Click:Connect(function() ShowTab("Player") end)
- UniversalButton.MouseButton1Click:Connect(function() ShowTab("Universal") end)
Add Comment
Please, Sign In to add comment