Player:WasKeyPressed(Player, number)

shared
Check if a key was pressed.

Arguments

Returns

  • boolean Whether the key was pressed.

Examples

Player:WasKeyPressed – Check if a key was pressed.