So, I know this is really easy but I’m trying to make it so when a player presses the button Q or ctrl they gain a short boost of speed that goes away. I already have the key detecting part but I don’t know how to change the speed of the player. And I’m guessing that it needs to be in a local script. Here is the detecting of the key being pressed.
function onKeyPress(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.LeftControl then end end game:GetService("UserInputService").InputBegan:connect(onKeyPress)