title: I want to code it so that when I open chat in roblox and press something that has the letter "r" in the word, i don't reset
body: <p>can someone help me with that? I already got the code for resetting but when i open chat and say rrrrrrr, i keep dying.</p>
  <p>here it is:</p>
  <pre><code>    local player = game:GetService(&quot;Players&quot;).LocalPlayer  
  
  
  
     local character = player.Character  
     local enabled = true  
     local userinputservice = game:GetService(&quot;UserInputService&quot;)
     userinputservice.InputBegan:connect(function(input)  
          if input.KeyCode == Enum.KeyCode.R and enabled then   
              character.Head:Remove()  
              enabled = false  
              wait(6)  
              enabled = true  
          end  
      end)
  </code></pre>