-- Create a function for the cheat menu function cheatMenu() -- Create a table to store the cheats local cheats = { {name = "Infinite Health", func = function() game.Players.LocalPlayer.Character.Humanoid.Health = math.huge end}, {name = "Infinite Ammo", func = function() game.Players.LocalPlayer.Backpack.Ammo.Amount = math.huge end}, {name = "Fly", func = function() game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100 end}, -- Add more cheats here } -- Create a GUI for the cheat menu local gui = Instance.new("ScreenGui") gui.Parent = game.Players.LocalPlayer.PlayerGui local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 200, 0, 300) frame.Position = UDim2.new(0, 10, 0, 10) frame.BackgroundColor3 = Color3.new(0, 0, 0) frame.Parent = gui local list = Instance.new("UIListLayout") list.Parent = frame -- Create buttons for each cheat for i, cheat in pairs(cheats) do local button = Instance.new("TextButton") button.Text = cheat.name button.Size = UDim2.new(0, 200, 0, 30) button.BackgroundColor3 = Color3.new(1, 1, 1) button.Parent = frame -- Add a click event to the button button.MouseButton1Click:Connect(function() cheat.func() end) end end -- Call the cheat menu function cheatMenu()