You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? To create an accurate port from pc buttondown hold to mobile
-
What is the issue? I have everything set up but the issue is even if i hold it if i move my thumb/mouse a little the script assumes buttondown = false
-
What solutions have you tried so far? i couldnt get my head around it
local function C(actionName, input, inputobject)
if input == Enum.UserInputState.Begin then
print("Holding.")
else
print("Released Input.")
end
end
CAS:BindAction("Hold", C, true)
You didn’t use the 4th argument inputTypes
for the function. If you want to connect to that function with the C
key, the fourth argument should be Enum.KeyCode.C
.
CAS:BindAction("Hold", C, true, Enum.KeyCode.C)
I didn’t want to connect the c function with Enum.KeyCode.C I wanted to find a solution to the problem I’m facing being the slightest movement cancelling out the function even on the button
That’s because you don’t have the 4th argument. Please send a video of your problem as well.
What difference would the 4th argument make? It works fine, the issue is whenever I hold the button down and move it slightly to the point where I’m still on the button and holding it down it cancels out
Nah I fixed it, ok Roblox mods I’m announcing I have fixed this and this is adding to the convo DONT strike me again pretty please
Do you remember how you fixed it?
sorry for responding a year late but no I didn’t, this was from a time where I wasn’t very experienced with coding and attempted to make the next street fighter 5 type game on roblox