I am trying to bind my ContextActionService to my function while holding down my left mouse-button. (Making the function continue running while I am holding Button1 down)
Currently I have this: (The coding is in a ModuleScript, which I use for other stuff - it has to be in a modulescript in order for my game to work)
local function inputPlace(_, userInputState, inputObject)
if (userInputState == Enum.UserInputState.End) then
print("Running while holding down Button1")
end
end
local function bindInputs()
if (not OVERRIDE_CONTROLS) then
game:GetService("ContextActionService"):BindActionAtPriority("TryingThisNewStuff", inputPlace, false, 9 Enum.UserInputType.MouseButton1)
end
end
Now, this only runs when I quit holding down my Button1.
I want the function to continue running while I am holding down the Button1, but I do not know how to make this happen. I have searched the wiki, and I can not find any solutions.
Any help is greatly appreciated!
