local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local rootPart = character:WaitForChild("HumanoidRootPart") local settings = { color = Color3.fromRGB(30, 30, 50), bindKey = Enum.KeyCode.F1 } local guiVisible = true local flying = false local flySpeed = 50 local bodyVelocity = nil local selectedPlayer = nil local function showNotification(text, isOn) local gui = player.PlayerGui:FindFirstChild("FlyGUI") if not gui then return end local notif = Instance.new("TextLabel") notif.Size = UDim2.new(0, 250, 0, 40) notif.Position = UDim2.new(1, -260, 0, 10) notif.BackgroundColor3 = isOn and Color3.fromRGB(0, 180, 0) or Color3.fromRGB(180, 0, 0) notif.BackgroundTransparency = 0.2 notif.TextColor3 = Color3.fromRGB(255,255,255) notif.Text = text notif.Font = Enum.Font.SourceSansBold notif.TextScaled = true notif.BorderSizePixel = 0 notif.ClipsDescendants = true notif.Parent = gui local tween = game:GetService("TweenService"):Create(notif, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(1, -260, 0, 10)} ) tween:Play() tween.Completed:Wait() wait(2.5) local tweenOut = game:GetService("TweenService"):Create(notif, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {Position = UDim2.new(1, 10, 0, 10)} ) tweenOut:Play() tweenOut.Completed:Connect(function() notif:Destroy() end) end local function updatePlayerList(dropdown) for i = #dropdown:GetChildren(), 1, -1 do local child = dropdown:GetChildren()[i] if child:IsA("TextButton") or child:IsA("TextLabel") then child:Destroy() end end local players = game.Players:GetPlayers() local yPos = 0 for _, plr in ipairs(players) do if plr ~= player then local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, 0, 0, 20) btn.Position = UDim2.new(0, 0, 0, yPos) btn.Text = plr.Name btn.TextColor3 = Color3.fromRGB(255,255,255) btn.BackgroundColor3 = Color3.fromRGB(50,50,70) btn.BorderSizePixel = 0 btn.Font = Enum.Font.SourceSans btn.TextScaled = true btn.Parent = dropdown btn.MouseButton1Click:Connect(function() selectedPlayer = plr local parentFrame = dropdown.Parent local selectBtn = parentFrame:FindFirstChild("SelectButton") if selectBtn then selectBtn.Text = "Selected: " .. plr.Name end dropdown.Visible = false end) yPos = yPos + 20 end end if yPos == 0 then local lbl = Instance.new("TextLabel") lbl.Size = UDim2.new(1, 0, 0, 20) lbl.Position = UDim2.new(0, 0, 0, 0) lbl.Text = "No other players" lbl.TextColor3 = Color3.fromRGB(200,200,200) lbl.BackgroundTransparency = 1 lbl.Font = Enum.Font.SourceSans lbl.TextScaled = true lbl.Parent = dropdown end dropdown.CanvasSize = UDim2.new(0, 0, 0, yPos + 20) end local function teleportToPlayer(target) if not target then showNotification("No player selected", false) return end local targetChar = target.Character if not targetChar then showNotification("Target has no character", false) return end local targetRoot = targetChar:FindFirstChild("HumanoidRootPart") if not targetRoot then showNotification("Target root part missing", false) return end local targetCF = targetRoot.CFrame local newCF = targetCF + targetCF.LookVector * 2 + Vector3.new(0, 1, 0) rootPart.CFrame = newCF showNotification("Teleported to " .. target.Name, true) end local function applyColorToGUI(gui, color) local mainFrame = gui:FindFirstChild("MainFrame") if mainFrame then mainFrame.BackgroundColor3 = color end local leftPanel = mainFrame and mainFrame:FindFirstChild("LeftPanel") if leftPanel then leftPanel.BackgroundColor3 = color end for _, btn in ipairs(gui:GetDescendants()) do if btn:IsA("TextButton") and btn.Name ~= "SelectButton" and btn.Name ~= "ApplyButton" and not btn:FindFirstAncestor("ColorGrid") then local trans = btn.BackgroundTransparency btn.BackgroundColor3 = color btn.BackgroundTransparency = trans end end local selectBtn = gui:FindFirstChild("SelectButton", true) if selectBtn then selectBtn.BackgroundColor3 = color end local applyBtn = gui:FindFirstChild("ApplyButton", true) if applyBtn then applyBtn.BackgroundColor3 = color end end local function createGUI() local screenGui = Instance.new("ScreenGui") screenGui.Name = "FlyGUI" screenGui.Parent = player.PlayerGui local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 360, 0, 320) mainFrame.Position = UDim2.new(0.5, -180, 0.5, -160) mainFrame.BackgroundColor3 = settings.color mainFrame.BackgroundTransparency = 0.2 mainFrame.BorderSizePixel = 0 mainFrame.ClipsDescendants = true mainFrame.Active = true mainFrame.Draggable = true mainFrame.Parent = screenGui local mainCorner = Instance.new("UICorner") mainCorner.CornerRadius = UDim.new(0, 12) mainCorner.Parent = mainFrame local leftPanel = Instance.new("Frame") leftPanel.Name = "LeftPanel" leftPanel.Size = UDim2.new(0, 60, 1, 0) leftPanel.BackgroundColor3 = settings.color leftPanel.BackgroundTransparency = 0.3 leftPanel.BorderSizePixel = 0 leftPanel.Parent = mainFrame local leftCorner = Instance.new("UICorner") leftCorner.CornerRadius = UDim.new(0, 8) leftCorner.Parent = leftPanel local mainBtn = Instance.new("TextButton") mainBtn.Name = "MainBtn" mainBtn.Size = UDim2.new(0.8, 0, 0, 50) mainBtn.Position = UDim2.new(0.1, 0, 0.05, 0) mainBtn.Text = "✈" mainBtn.TextColor3 = Color3.fromRGB(255,255,255) mainBtn.BackgroundColor3 = settings.color mainBtn.BackgroundTransparency = 0.5 mainBtn.BorderSizePixel = 0 mainBtn.Font = Enum.Font.GothamBold mainBtn.TextScaled = true mainBtn.Parent = leftPanel local mbCorner = Instance.new("UICorner") mbCorner.CornerRadius = UDim.new(0, 8) mbCorner.Parent = mainBtn local settingsBtn = Instance.new("TextButton") settingsBtn.Name = "SettingsBtn" settingsBtn.Size = UDim2.new(0.8, 0, 0, 50) settingsBtn.Position = UDim2.new(0.1, 0, 0.9, -55) settingsBtn.Text = "⚙" settingsBtn.TextColor3 = Color3.fromRGB(255,255,255) settingsBtn.BackgroundColor3 = settings.color settingsBtn.BackgroundTransparency = 0.5 settingsBtn.BorderSizePixel = 0 settingsBtn.Font = Enum.Font.GothamBold settingsBtn.TextScaled = true settingsBtn.Parent = leftPanel local sbCorner = Instance.new("UICorner") sbCorner.CornerRadius = UDim.new(0, 8) sbCorner.Parent = settingsBtn local contentFrame = Instance.new("Frame") contentFrame.Name = "ContentFrame" contentFrame.Size = UDim2.new(1, -70, 1, -10) contentFrame.Position = UDim2.new(0, 70, 0, 5) contentFrame.BackgroundTransparency = 1 contentFrame.Parent = mainFrame local tabMain = Instance.new("Frame") tabMain.Name = "TabMain" tabMain.Size = UDim2.new(1, 0, 1, 0) tabMain.BackgroundTransparency = 1 tabMain.Visible = true tabMain.Parent = contentFrame local tabSettings = Instance.new("Frame") tabSettings.Name = "TabSettings" tabSettings.Size = UDim2.new(1, 0, 1, 0) tabSettings.BackgroundTransparency = 1 tabSettings.Visible = false tabSettings.Parent = contentFrame -- Main tab local titleMain = Instance.new("TextLabel") titleMain.Size = UDim2.new(1, 0, 0, 30) titleMain.Position = UDim2.new(0, 0, 0, 0) titleMain.Text = "FLY & TELEPORT" titleMain.TextColor3 = Color3.fromRGB(255,255,255) titleMain.BackgroundTransparency = 1 titleMain.Font = Enum.Font.GothamBold titleMain.TextScaled = true titleMain.Parent = tabMain local flyBtn = Instance.new("TextButton") flyBtn.Name = "FlyBtn" flyBtn.Size = UDim2.new(0.7, 0, 0, 35) flyBtn.Position = UDim2.new(0.15, 0, 0.12, 0) flyBtn.Text = "FLY (OFF)" flyBtn.TextColor3 = Color3.fromRGB(255,255,255) flyBtn.BackgroundColor3 = settings.color flyBtn.BackgroundTransparency = 0.4 flyBtn.BorderSizePixel = 0 flyBtn.Font = Enum.Font.SourceSansBold flyBtn.TextScaled = true flyBtn.Parent = tabMain local fbCorner = Instance.new("UICorner") fbCorner.CornerRadius = UDim.new(0, 8) fbCorner.Parent = flyBtn local speedLabel = Instance.new("TextLabel") speedLabel.Size = UDim2.new(0.35, 0, 0, 20) speedLabel.Position = UDim2.new(0.05, 0, 0.25, 0) speedLabel.Text = "Speed: 50" speedLabel.TextColor3 = Color3.fromRGB(200,200,200) speedLabel.BackgroundTransparency = 1 speedLabel.Font = Enum.Font.SourceSans speedLabel.TextScaled = true speedLabel.Parent = tabMain local speedSlider = Instance.new("TextBox") speedSlider.Size = UDim2.new(0.35, 0, 0, 20) speedSlider.Position = UDim2.new(0.5, 0, 0.25, 0) speedSlider.Text = "50" speedSlider.TextColor3 = Color3.fromRGB(255,255,255) speedSlider.BackgroundColor3 = Color3.fromRGB(50,50,70) speedSlider.BorderSizePixel = 0 speedSlider.Font = Enum.Font.SourceSans speedSlider.TextScaled = true speedSlider.Parent = tabMain local slCorner = Instance.new("UICorner") slCorner.CornerRadius = UDim.new(0, 6) slCorner.Parent = speedSlider speedSlider.FocusLost:Connect(function(enterPressed) if enterPressed then local val = tonumber(speedSlider.Text) if val and val > 0 then flySpeed = val speedLabel.Text = "Speed: " .. flySpeed if bodyVelocity then local mv = bodyVelocity.Velocity if mv.Magnitude > 0 then bodyVelocity.Velocity = mv.Unit * flySpeed end end else speedSlider.Text = tostring(flySpeed) end end end) local selectFrame = Instance.new("Frame") selectFrame.Size = UDim2.new(0.9, 0, 0, 70) selectFrame.Position = UDim2.new(0.05, 0, 0.4, 0) selectFrame.BackgroundTransparency = 1 selectFrame.Parent = tabMain local selectBtn = Instance.new("TextButton") selectBtn.Name = "SelectButton" selectBtn.Size = UDim2.new(0.7, 0, 0, 30) selectBtn.Position = UDim2.new(0, 0, 0, 0) selectBtn.Text = "Select Player" selectBtn.TextColor3 = Color3.fromRGB(255,255,255) selectBtn.BackgroundColor3 = settings.color selectBtn.BackgroundTransparency = 0.4 selectBtn.BorderSizePixel = 0 selectBtn.Font = Enum.Font.SourceSans selectBtn.TextScaled = true selectBtn.Parent = selectFrame local sCorner = Instance.new("UICorner") sCorner.CornerRadius = UDim.new(0, 6) sCorner.Parent = selectBtn local teleportBtn = Instance.new("TextButton") teleportBtn.Name = "TeleportBtn" teleportBtn.Size = UDim2.new(0.25, 0, 0, 30) teleportBtn.Position = UDim2.new(0.75, 0, 0, 0) teleportBtn.Text = "TELEPORT" -- уже английский teleportBtn.TextColor3 = Color3.fromRGB(255,255,255) teleportBtn.BackgroundColor3 = Color3.fromRGB(40, 100, 40) teleportBtn.BorderSizePixel = 0 teleportBtn.Font = Enum.Font.SourceSansBold teleportBtn.TextScaled = true teleportBtn.Parent = selectFrame local tCorner = Instance.new("UICorner") tCorner.CornerRadius = UDim.new(0, 6) tCorner.Parent = teleportBtn teleportBtn.MouseButton1Click:Connect(function() teleportToPlayer(selectedPlayer) end) local dropdown = Instance.new("ScrollingFrame") dropdown.Size = UDim2.new(0.7, 0, 0, 80) dropdown.Position = UDim2.new(0, 0, 0, 32) dropdown.BackgroundColor3 = Color3.fromRGB(30,30,40) dropdown.BorderSizePixel = 0 dropdown.ScrollBarThickness = 6 dropdown.Visible = false dropdown.Parent = selectFrame local dCorner = Instance.new("UICorner") dCorner.CornerRadius = UDim.new(0, 6) dCorner.Parent = dropdown selectBtn.MouseButton1Click:Connect(function() dropdown.Visible = not dropdown.Visible if dropdown.Visible then updatePlayerList(dropdown) end end) -- Статус внизу local status = Instance.new("TextLabel") status.Name = "StatusLabel" status.Size = UDim2.new(1, 0, 0, 20) status.Position = UDim2.new(0, 0, 1, -25) status.Text = "Status: grounded" status.TextColor3 = Color3.fromRGB(150,150,150) status.BackgroundTransparency = 1 status.Font = Enum.Font.SourceSans status.TextScaled = true status.Parent = tabMain -- Settings tab local setTitle = Instance.new("TextLabel") setTitle.Size = UDim2.new(1, 0, 0, 30) setTitle.Position = UDim2.new(0, 0, 0, 0) setTitle.Text = "SETTINGS" setTitle.TextColor3 = Color3.fromRGB(255,255,255) setTitle.BackgroundTransparency = 1 setTitle.Font = Enum.Font.GothamBold setTitle.TextScaled = true setTitle.Parent = tabSettings local colorLabel = Instance.new("TextLabel") colorLabel.Size = UDim2.new(0.3, 0, 0, 20) colorLabel.Position = UDim2.new(0.05, 0, 0.12, 0) colorLabel.Text = "Color (hex):" colorLabel.TextColor3 = Color3.fromRGB(200,200,200) colorLabel.BackgroundTransparency = 1 colorLabel.Font = Enum.Font.SourceSans colorLabel.TextScaled = true colorLabel.Parent = tabSettings local colorBox = Instance.new("TextBox") colorBox.Name = "ColorBox" colorBox.Size = UDim2.new(0.4, 0, 0, 25) colorBox.Position = UDim2.new(0.4, 0, 0.11, 0) colorBox.Text = "#1E1E32" colorBox.TextColor3 = Color3.fromRGB(255,255,255) colorBox.BackgroundColor3 = Color3.fromRGB(50,50,70) colorBox.BorderSizePixel = 0 colorBox.Font = Enum.Font.SourceSans colorBox.TextScaled = true colorBox.Parent = tabSettings local cbCorner = Instance.new("UICorner") cbCorner.CornerRadius = UDim.new(0, 6) cbCorner.Parent = colorBox -- Сетка цветов (3x3) local colorGrid = Instance.new("Frame") colorGrid.Name = "ColorGrid" colorGrid.Size = UDim2.new(0.9, 0, 0, 75) colorGrid.Position = UDim2.new(0.05, 0, 0.25, 0) colorGrid.BackgroundTransparency = 1 colorGrid.Parent = tabSettings local presetColors = { "#FF0000", "#00FF00", "#0000FF", "#FFFF00", "#800080", "#FFA500", "#FFFFFF", "#000000", "#808080" } local cols = 3 local btnSizeX = 0.3 local btnSizeY = 0.4 local spacingX = 0.035 local spacingY = 0.05 for i, hex in ipairs(presetColors) do local row = math.floor((i-1) / cols) local col = (i-1) % cols local x = col * (btnSizeX + spacingX) + 0.02 local y = row * (btnSizeY + spacingY) + 0.02 local btn = Instance.new("TextButton") btn.Size = UDim2.new(btnSizeX, 0, btnSizeY, 0) btn.Position = UDim2.new(x, 0, y, 0) btn.Text = "" btn.BackgroundColor3 = Color3.fromHex(hex) btn.BorderSizePixel = 1 btn.BorderColor3 = Color3.fromRGB(200,200,200) btn.Parent = colorGrid local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 4) corner.Parent = btn btn.MouseButton1Click:Connect(function() colorBox.Text = hex local r, g, b = Color3.fromHex(hex).r, Color3.fromHex(hex).g, Color3.fromHex(hex).b settings.color = Color3.fromRGB(r255, g255, b*255) applyColorToGUI(screenGui, settings.color) showNotification("Color changed to " .. hex, true) end) end -- Бинд - перемещён ниже, чтобы не пересекаться с сеткой цветов local bindLabel = Instance.new("TextLabel") bindLabel.Size = UDim2.new(0.3, 0, 0, 20) bindLabel.Position = UDim2.new(0.05, 0, 0.55, 0) -- было 0.5, сдвинули вниз bindLabel.Text = "Toggle key:" bindLabel.TextColor3 = Color3.fromRGB(200,200,200) bindLabel.BackgroundTransparency = 1 bindLabel.Font = Enum.Font.SourceSans bindLabel.TextScaled = true bindLabel.Parent = tabSettings local bindBox = Instance.new("TextBox") bindBox.Name = "BindBox" bindBox.Size = UDim2.new(0.4, 0, 0, 25) bindBox.Position = UDim2.new(0.4, 0, 0.54, 0) -- было 0.49, сдвинули bindBox.Text = "F1" bindBox.TextColor3 = Color3.fromRGB(255,255,255) bindBox.BackgroundColor3 = Color3.fromRGB(50,50,70) bindBox.BorderSizePixel = 0 bindBox.Font = Enum.Font.SourceSans bindBox.TextScaled = true bindBox.Parent = tabSettings local bbCorner = Instance.new("UICorner") bbCorner.CornerRadius = UDim.new(0, 6) bbCorner.Parent = bindBox -- Кнопка Apply тоже сдвинута ниже local applyBtn = Instance.new("TextButton") applyBtn.Name = "ApplyButton" applyBtn.Size = UDim2.new(0.5, 0, 0, 35) applyBtn.Position = UDim2.new(0.25, 0, 0.7, 0) -- было 0.65 applyBtn.Text = "APPLY" applyBtn.TextColor3 = Color3.fromRGB(255,255,255) applyBtn.BackgroundColor3 = settings.color applyBtn.BackgroundTransparency = 0.4 applyBtn.BorderSizePixel = 0 applyBtn.Font = Enum.Font.SourceSansBold applyBtn.TextScaled = true applyBtn.Parent = tabSettings local apCorner = Instance.new("UICorner") apCorner.CornerRadius = UDim.new(0, 8) apCorner.Parent = applyBtn -- Обработчики вкладок mainBtn.MouseButton1Click:Connect(function() tabMain.Visible = true tabSettings.Visible = false mainBtn.BackgroundTransparency = 0.3 settingsBtn.BackgroundTransparency = 0.5 end) settingsBtn.MouseButton1Click:Connect(function() tabMain.Visible = false tabSettings.Visible = true settingsBtn.BackgroundTransparency = 0.3 mainBtn.BackgroundTransparency = 0.5 end) mainBtn.BackgroundTransparency = 0.3 settingsBtn.BackgroundTransparency = 0.5 -- Fly flyBtn.MouseButton1Click:Connect(function() flying = not flying if flying then bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.MaxForce = Vector3.new(1e9, 1e9, 1e9) bodyVelocity.Velocity = Vector3.new(0,0,0) bodyVelocity.Parent = rootPart spawn(function() while flying do local moveDirection = Vector3.new(0,0,0) local camera = workspace.CurrentCamera if not camera then break end local forward = camera.CFrame.LookVector local right = camera.CFrame.RightVector if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.W) then moveDirection = moveDirection + forward end if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.S) then moveDirection = moveDirection - forward end if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.A) then moveDirection = moveDirection - right end if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.D) then moveDirection = moveDirection + right end if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.Space) then moveDirection = moveDirection + Vector3.new(0,1,0) end if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftShift) then moveDirection = moveDirection - Vector3.new(0,1,0) end if moveDirection.Magnitude > 0 then moveDirection = moveDirection.Unit * flySpeed end bodyVelocity.Velocity = moveDirection game:GetService("RunService").Heartbeat:Wait() end if bodyVelocity then bodyVelocity:Destroy() bodyVelocity = nil end end) flyBtn.Text = "FLY (ON)" flyBtn.BackgroundColor3 = Color3.fromRGB(100, 40, 40) showNotification("Fly enabled", true) else if bodyVelocity then bodyVelocity:Destroy() bodyVelocity = nil end flyBtn.Text = "FLY (OFF)" flyBtn.BackgroundColor3 = settings.color showNotification("Fly disabled", false) end end) -- Статус обновление spawn(function() while true do local statusLabel = tabMain:FindFirstChild("StatusLabel") if statusLabel then statusLabel.Text = flying and "Status: flying" or "Status: grounded" end wait(0.3) end end) -- Apply applyBtn.MouseButton1Click:Connect(function() local hex = colorBox.Text:gsub("#", "") if #hex == 6 then local r = tonumber(hex:sub(1,2), 16) or 30 local g = tonumber(hex:sub(3,4), 16) or 30 local b = tonumber(hex:sub(5,6), 16) or 50 settings.color = Color3.fromRGB(r, g, b) applyColorToGUI(screenGui, settings.color) else showNotification("Invalid hex, use #RRGGBB", false) end local keyName = bindBox.Text:upper() local key = Enum.KeyCode[keyName] if key then settings.bindKey = key showNotification("Bind set to " .. keyName, true) else showNotification("Invalid key name", false) end end) -- Бинд game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == settings.bindKey then guiVisible = not guiVisible mainFrame.Visible = guiVisible end end) game.Players.PlayerAdded:Connect(function() if dropdown.Visible then updatePlayerList(dropdown) end end) game.Players.PlayerRemoving:Connect(function() if dropdown.Visible then updatePlayerList(dropdown) end end) return screenGui end local gui = createGUI() player.CharacterAdded:Connect(function(newChar) character = newChar rootPart = character:WaitForChild("HumanoidRootPart") humanoid = character:WaitForChild("Humanoid") flying = false if bodyVelocity then bodyVelocity:Destroy() bodyVelocity = nil end local flyBtn = gui:FindFirstChild("MainFrame", true) and gui:FindFirstChild("MainFrame", true):FindFirstChild("ContentFrame", true):FindFirstChild("TabMain", true):FindFirstChild("FlyBtn") if flyBtn then flyBtn.Text = "FLY (OFF)" flyBtn.BackgroundColor3 = settings.color end end)