local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local UserInputService = game:GetService("UserInputService") local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "MiniGUI" ScreenGui.ResetOnSpawn = false ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 240, 0, 220) MainFrame.Position = UDim2.new(0.05, 0, 0.35, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Parent = ScreenGui local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 40) Title.BackgroundColor3 = Color3.fromRGB(30, 30, 30) Title.Text = "Mini GUI" Title.TextColor3 = Color3.fromRGB(255, 100, 100) Title.TextScaled = true Title.Font = Enum.Font.SourceSansBold Title.Parent = MainFrame local TPSpawn = Instance.new("TextButton") TPSpawn.Size = UDim2.new(0.9, 0, 0, 45) TPSpawn.Position = UDim2.new(0.05, 0, 0, 55) TPSpawn.BackgroundColor3 = Color3.fromRGB(0, 170, 0) TPSpawn.Text = "TP на Spawn" TPSpawn.TextColor3 = Color3.new(1, 1, 1) TPSpawn.TextScaled = true TPSpawn.Font = Enum.Font.SourceSansBold TPSpawn.Parent = MainFrame local TPBestZone = Instance.new("TextButton") TPBestZone.Size = UDim2.new(0.9, 0, 0, 45) TPBestZone.Position = UDim2.new(0.05, 0, 0, 110) TPBestZone.BackgroundColor3 = Color3.fromRGB(0, 120, 255) TPBestZone.Text = "TP в Best Zone" TPBestZone.TextColor3 = Color3.new(1, 1, 1) TPBestZone.TextScaled = true TPBestZone.Font = Enum.Font.SourceSansBold TPBestZone.Parent = MainFrame local dragging = false local dragInput local dragStart local startPos local function updateInput(input) 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 Title.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = MainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) Title.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then updateInput(input) end end) TPSpawn.MouseButton1Click:Connect(function() local char = LocalPlayer.Character if char and char:FindFirstChild("HumanoidRootPart") then char.HumanoidRootPart.CFrame = CFrame.new(578.804077, 39.9980164, -668.190796, -0.410391331, 2.8501157e-08, -0.911909521, -2.0830733e-11, 1, 3.12637454e-08, 0.911909521, 1.28493651e-08, -0.410391331) end end) TPBestZone.MouseButton1Click:Connect(function() local char = LocalPlayer.Character if char and char:FindFirstChild("HumanoidRootPart") then char.HumanoidRootPart.CFrame = CFrame.new(2901.99756, 60.5291939, -662.098083, -0.910286903, 0.0714682266, -0.407762259, -1.20248602e-08, 0.984985352, 0.172637776, 0.413977981, 0.157149911, -0.89661926) end end)