I have a basic script here that when "W" is pressed something will happen, but what I need to happen I don't know the code for.. Does anyone know what the code is that will kill the player if touched?
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.W then
--What goes here?--
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)

1 comment
A reset button?