How to use gui touch tap?

How would I be able to use a frame from my startergui screengui? I haven’t been able to use this and it’s been a struggle as the last time I’ve used it this has worked

1 Like

Can you explain better on what you’re trying to do? What do you mean by “use?”

1 Like

For example, touch a gui button with touch tap event. Prints out (“tapped”)

Based on what you said I think you want a gui and whenever you click it or tap it, it will print tapped correct?

Correct, and to make sure the button is referenced via screengui child

Well we need at least a base script or a screenshot of the explorer where the gui stuff is.

Startergui > Screengui >> local script and frame

Script:
local frame = script.Parent.Frame

*frame.touch tap:Connect(function()

end) accurate representation

1 Like

So like this? Also if yes put a text button.

local Button = script.Parent.TextButton

script.Parent.MouseButton1Click:Connect(function()
print("Tapped")
end)
2 Likes

Well it isnt really a screenshot of the explorer but its good enough for me.

1 Like

You forgot to put end quotes :grinning_face_with_smiling_eyes:

Oh I forgot thanks lol.______________________

1 Like

Yes but with the touchtap event, I want to port this to mobile

That should work on mobile I believe.

Maybe use the Activated event to be compatible with all platforms?

A button is what I want to use for this mobile script, pc I have a button for

1 Like

I found this on google " Actually MouseButton1Click works on mobile"

You could use UserInputService to detect a mobile tap
And yeah look above at what @SilentSuprion said.

But wouldn’t that be on the whole screen area including the frame?

1 Like

No it wouldnt work that way. It would be like mousebutton1click.

1 Like

look at the solution.