Button GUI On Part Not Working on Mobile

Hello,
I have a GUI that is adorneed to a part that allows you to purchase the building when you click it. Everything works just fine when I test it on computer, but when I switch to mobile to test it, the button does not activate the script when I press it. Any reason why?

Images:

Part with GUI

GUI Properties/Location including children

Thank you.

Did you use .Click() or .Activated ?

I used:

function Click(mouse)
-- code
end

script.Parent.MouseButton1Down:connect(Click)

Right, well this only works for Computer as Mobile doesn’t have a mouse to click with.

Try to make it the same but more like:

function Click(mouse)
--code for function
end

script.Parent.Activated:Connect(Click)

I can try that, but I am confused because I used MouseButton1Down for all of my ScreenGui’s as well, and they worked on mobile. Does it no longer work when you switch to SurfaceGui?

I’m not certain, but the main function for Mobile would have to be Activated, as it would work for every platform.

This does not work on Mobile nor computer.

Odd… Maybe you could try using different events for Mobile and PC? Or maybe make a game just for Mobile?

Are the different ways I can make the function for the click (that works on all devices)?