-- // Services local Players = game:GetService("Players") local player = Players.LocalPlayer local mouse = player:GetMouse() -- // GUI local gui = Instance.new("ScreenGui") gui.Name = "VehicleSeatEditor" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 260, 0, 160) frame.Position = UDim2.new(0.5, -130, 0.5, -80) frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) frame.BorderSizePixel = 0 frame.Parent = gui frame.Active = true frame.Draggable = true -- ✅ Классика -- Красивое скругление local corner = Instance.new("UICorner", frame) corner.CornerRadius = UDim.new(0, 12) -- Заголовок local title = Instance.new("TextLabel", frame) title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundTransparency = 1 title.Text = "🚗 VehicleSeat Speed Editor" title.Font = Enum.Font.GothamBold title.TextSize = 16 title.TextColor3 = Color3.fromRGB(255, 255, 255) -- Кнопка выбора local selectBtn = Instance.new("TextButton", frame) selectBtn.Size = UDim2.new(0, 230, 0, 35) selectBtn.Position = UDim2.new(0, 15, 0, 40) selectBtn.Text = "🎯 Select VehicleSeat" selectBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40) selectBtn.TextColor3 = Color3.fromRGB(255, 255, 255) Instance.new("UICorner", selectBtn).CornerRadius = UDim.new(0, 8) -- Текст бокс local speedBox = Instance.new("TextBox", frame) speedBox.Size = UDim2.new(0, 230, 0, 35) speedBox.Position = UDim2.new(0, 15, 0, 80) speedBox.PlaceholderText = "Enter MaxSpeed..." speedBox.BackgroundColor3 = Color3.fromRGB(35, 35, 35) speedBox.TextColor3 = Color3.fromRGB(255, 255, 255) speedBox.ClearTextOnFocus = false Instance.new("UICorner", speedBox).CornerRadius = UDim.new(0, 8) -- Кнопка применить local applyBtn = Instance.new("TextButton", frame) applyBtn.Size = UDim2.new(0, 230, 0, 35) applyBtn.Position = UDim2.new(0, 15, 0, 120) applyBtn.Text = "⚡ Apply Speed" applyBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50) applyBtn.TextColor3 = Color3.fromRGB(255, 255, 255) Instance.new("UICorner", applyBtn).CornerRadius = UDim.new(0, 8) -- // Логика local selectedSeat selectBtn.MouseButton1Click:Connect(function() selectBtn.Text = "Click VehicleSeat..." local conn conn = mouse.Button1Down:Connect(function() if mouse.Target and mouse.Target:IsA("VehicleSeat") then selectedSeat = mouse.Target selectBtn.Text = "✅ Selected: " .. selectedSeat.Name conn:Disconnect() end end) end) applyBtn.MouseButton1Click:Connect(function() if selectedSeat and tonumber(speedBox.Text) then selectedSeat.MaxSpeed = tonumber(speedBox.Text) applyBtn.Text = "✅ Applied!" task.wait(1) applyBtn.Text = "⚡ Apply Speed" else applyBtn.Text = "❌ Error" task.wait(1) applyBtn.Text = "⚡ Apply Speed" end end)