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
Can you explain better on what you’re trying to do? What do you mean by “use?”
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
So like this? Also if yes put a text button.
local Button = script.Parent.TextButton
script.Parent.MouseButton1Click:Connect(function()
print("Tapped")
end)
Well it isnt really a screenshot of the explorer but its good enough for me.
You forgot to put end quotes
Oh I forgot thanks lol.______________________
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
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?
No it wouldnt work that way. It would be like mousebutton1click.
look at the solution.