function onKeyPress(actionName, userInputState, inputObject)
if userInputState == Enum.UserInputState.Begin then
print("W was pressed")
end
end
game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.W)
im trying to get keyboard input from the player, I tried using some code from a wiki page. I switched it to a localscript because it threw an error running on a normal script. after that there were no errors but the script would not run. if I need to change it to be FE compatible how would I do it?
