Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Can I Sense if Player Is NOT Tapping on the Joystick?

Asked by 6 years ago

In my game, I've added some mobile support. The issue, however, is once the player interacts with an NPC, they're thrown in an infinite loop of chatting with that NPC. This is because when they go to tap the joystick, it registers as a regular tap. I tried using gameProcess, but that didn't work.

local function onInputBegan(input,gameProcessed)
    if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then

That's what I have for the input.

0
`if not gameProcessed then` you mean? TheeDeathCaster 2368 — 6y
0
Yes. BouncingBrenda 44 — 6y

1 answer

Log in to vote
0
Answered by
Kblow1 53
6 years ago

Instead try creating a whole new button for the player! You can read more on this here

http://wiki.roblox.com/index.php?title=ContextActionService_–_Creating_Mobile_Buttons

Ad

Answer this question