i put in context action service argument4 Enum.UserInputType.MouseButton1 and it doesnt trigger, any clue why?
Do you mind showing us a piece of your code? Because we have absolutely no context on what you’re doing. I just created a piece of testing code myself and the bind action seems fine. Just to make sure your code is in a local script right?
Funny. One insult on you for being unhelpful and now you think I steal code? The forum is not even a place where you just provide free code. Sure here’s a piece of test code I wrote:
game:GetService("ContextActionService"):BindAction("Test", function(action, inputType, inputObject)
print("Works")
end, false, Enum.UserInputType.MouseButton1)
This works perfectly.
who asked you? lolgringo it had to be… bad, I mean that I provoked you into giving the answer, look, you already gave it
This is not even a solution. The OP still needs to provide me with his code so I could see his exact problem. All I did was show that ContextActionService:BindAction works.
its alright now, i switched to userinputservice for mousebutton1, i use contextaction for different keybinds and its working and triggering the function it leads to, but only the one with mousebutton1 does not work and not even printing the first line of the function it leads to
What’s the point of stealing any sort of Lua code if it’s easy to write yourself. It’s like someone posting print("Hello world!") and then someone copying it. Is that stealing?
![]()
this one, but when i press mousebutton1 the function it leads to (Attack) does not get triggered, it doesnt even print the first line i made
![]()
while this one works fine