I currently have this code that if you press a key, it’ll make your character faster. However, I want to make it that as long the button is held, the function will run. How can I achieve this?
UIS.InputBegan:Connect(function(input, isTyping)
if isTyping then return end
if input.KeyCode == RunButton then
Run()
end
end)