My keydown event script doesnt work when i pres M, how do i fix it?
Iv done it before and have the same thing. All the sudden it doesnt work. i tried many things. but the two mains things were this code
1 | UIS = game:GetService( "UserInputService" ) |
3 | UIS.InputBegan:Connect( function (Input) |
4 | if Input.KeyCode = = Enum.KeyCode.M then |
and i tried it in a normal script and local script. both in workspace. also tried putting both in starterpack. it does not print hi when i press m in testing mode. please help