Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

2 comments

0

if not gameProcessed then you mean?

0

Yes.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.