i'm Making A Ship That If Player Is Seated And Is Pressing Key "Something" So It Moves
You should use UserInputService as KeyDown event is deprecated.
1 | local uis = game:GetService:( "UserInputService" ) |
2 | uis.InputBegan:Connect( function (input) |
3 | if input.KeyCode = = Enum.input.KeyCode.F then -- replace F with whatever key you'd like |
4 | print ( "hi" ) |
5 | end ) |
UserInputService is recommended for client input because of it's wide range of uses across multiple platforms.