I have a punch script inside my game yet when I type in the roblox chat it plays the animations and punches, how do I stop that?
Here's the keycode script I'm using:
UserInputService.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.R and not Punching then
-- Code that would happen when R is pushed AKA animations and damage
end
end)

1 comment
Mm any example, I'm not really familiar with UserInputService and the wiki doesnt help me