You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
Find a workaround and prevent this stacking issue for extra context I’m trying to recreate Double tapping W For Running with context action service. -
What is the issue? Include screenshots / videos if possible!
Basically, whenever if you were to bind an Input to one of the base keybinds (w,a,s,d) it would override its base functionality to move the character is the issue.
video: vvura - Roblox Studio (gyazo.com)
Function = function(actionName, inputState, inputObject)
local player = game.Players.LocalPlayer
local char = player.Character
if not char then return end
local humanoid = char:FindFirstChild("Humanoid")
if not humanoid then return end
local animator = humanoid:FindFirstChildOfClass("Animator")
if not animator then return end
if inputState == Enum.UserInputState.Begin and tick() - LastWClick <= 0.50 then
end
end,
CancreateTouchButton = true,
Keybind = { Enum.KeyCode.W }
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I know using userinput service could prevent my issue but, I prefer using contextaction service and would like to counteract for this issue