-- Fly GUI Script local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") -- Create ScreenGui local screenGui = Instance.new("ScreenGui") screenGui.Parent = PlayerGui -- Create Button local flyButton = Instance.new("TextButton") flyButton.Size = UDim2.new(0, 200, 0, 50) flyButton.Position = UDim2.new(0.5, -100, 0.8, 0) flyButton.Text = "Fly!" flyButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255) flyButton.TextScaled = true flyButton.Parent = screenGui -- Fly function local flying = false local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local humanoidRootPart = character:WaitForChild("HumanoidRootPart") flyButton.MouseButton1Click:Connect(function() flying = not flying if flying then flyButton.Text = "Stop Flying" -- Simple flying loop while flying do humanoidRootPart.Velocity = Vector3.new(0, 50, 0) -- fly upward wait(0.1) end else flyButton.Text = "Fly!" humanoidRootPart.Velocity = Vector3.new(0, 0, 0) -- stop flying end end)