What do you want to achieve? I want to print launched when the player taps on the GuiButton
What is the issue? it doesn’t work on mobile studio nor mobile client
What solutions have you tried so far? Trying to see if InputBegan but that doesn’t work either, my friend tried the same code, and it worked for him, but for me it doesn’t. I tried puplishing the game again under a diffrent place but that didn’t work either.
My friend:
Button.TouchTap:Connect(function()
print("Launched")
end)
Button.InputBegan:Connect(function(Input)
print("KeyCode: " .. tostring(Input.KeyCode))
print("UserInputType: " .. tostring(Input.UserInputType))
end)
-- Both don't work on mobile for me
Used ButtonDown so you don’t accdiently click while scrolling
As you can see in the code sample section of the developer hub page for TouchTap, the button must have the Active property enabled for it to be able to pick up events.
If Active already is enabled, I’m afraid there’s not much I can do. .MouseButton1Click does also function on mobile devices, although it might not be what you’re looking for.