Mobile users cant open the gui's why?

  1. i want mobile players to be able to open guis

  2. mobile players click the gui but nothing happens

  3. i tried looking solutions and tutorials but found none

hi pls tell anyone? its really hard to find solutions

tell ur answers i have to go sleep ill check rn as much as i can like 1 hour

If you used .MouseButton1Click for the click detection instead of .Activated, only people on PC will be able to interact with it.

then how do i do
ill send the script in a moment

/??can anyone tell a sample pls? bcuz my studio is updating

You tried this script and tell me if it work:

local frame = --Put the frame
local openbtn = --Put the button

frame.Visible = false

openbtn.MouseButton1Click:Connect(function()
if frame.Visible == false then
frame.Visible = true
else
frame.Visible = false
end
end)

can u send a like a script that tells me how to use it

like a sample one ??? @uhley360

That won’t work because it uses MouseButton1Click

yea u correct mose button is for only pc

Just something simple like this

GuiButton.Activated:Connect(OpenGui)

It works the same way as .MouseButton1Click so you’ll just need to switch it out.

btw can u send a sample script

wait ill try udating my studio

so @uhley360
this my script
function onButtonClicked()

script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0

end

script.Parent.MouseButton1Click:connect(onButtonClicked)

heres the one i edited like u said

function onButtonClicked()

script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0

end

script.Parent.Activated:connect(onButtonClicked)

is it k? tell plss hmmmmmmmmmmm

idh mobile to test my test dummy will test tmmrw bcuz so can u friend me on roblox ill ask u tmmrw

That should work

character minimum

idh mobile to test my test dummy will test tmmrw bcuz so can u friend me on roblox ill ask u tmmrw

is it k friend me

I don’t see why that script wouldn’t work and there isn’t a need for further testing on my part at least. Good luck