uis.InputBegan:Connect(function(input, gameProcessedEvent)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.C then
--Anim(animations[1])
elseif input.KeyCode == Enum.KeyCode.LeftShift then
hum.WalkSpeed = 160
print("shift")
elseif input.KeyCode == Enum.KeyCode.One or Enum.KeyCode.Two or Enum.KeyCode.Three then
--Anim(animations[3])
end
print("gahhhhhhhhhhh")
end
end)
local debounce = false
uis.InputBegan:Connect(function(input, gameProcessedEvent)
if gameProcessedEvent then return end
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.C and debounce == false then
debounce = true
-- put whatever animation you had here
wait(2) -- to make it so people can't just spam C
debounce = false
the problem I saw was that there was no debounce just try and work a debounce in your script and it should work
uis.InputBegan:Connect(function(input, gameProcessedEvent)
if gameProcessedEvent then return end
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.C then
--Anim(animations[1])
print("c")
end
if input.KeyCode == Enum.KeyCode.LeftShift then --Will only work if shift lock is off, consider LeftControl
hum.WalkSpeed = 160
print("shift")
end
if input.KeyCode == Enum.KeyCode.One or input.KeyCode == Enum.KeyCode.Two or input.KeyCode == Enum.KeyCode.Three then
--Anim(animations[3])
print("onetwothree")
end
end
end)