function onKeyPress(inputObject,gameProcessed)
if inputObject.KeyCode == Enum.KeyCode.V then
--do stuff
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)-- an event for buttons on keyboard
using this event, along with a key event, only sends it once, when the inputObject is pressed. I am aiming for the user to hold down a button, but there is not options for it at all. I have tried while loops, ends up crashing, I also have tried using isKeyDown, which only tells me if the key is part of the keyboard...

6 comments
the concept sounds nice, but I just tried that code. And all I did was end up spamming bricks that were in the center. of the map. I tried pressing V to stop that did not work either.
My misstake let me fix it.
I see
Soo, What I did not know is that you can have more than two of the same types of Services, but in different actions. Though What I really did not know was the significance of Input Ended, since there was no example code on the Api
You can use a variable of userinputservice, local uis = game:GetService("UserInputService"). Then use it like this, uis.InputBegan, and for the InputEnded part there is a example code, http://wiki.roblox.com/index.php?title=API:Class/UserInputService/InputEnded
indent code plox