When the key is released the function remains binded and the player can easily jump—But I don’t like the interruption. Same interruption happens with WASD with my movement BindAction. How do I fix that?
switch to UserInputService.InputBegan and UserInputService.InputEnded for better control over jumping and movement. for example
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.Space then
end
end)
UserInputService.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.Space then
end
end)