TextButton Activated doesnt fire

Hi there,
im tryna make a shop for my game, I made the code and all that, but once the “buy” button gets activated, nothing happens, and no errors are highlighted in the output.

so, try and debug this whole mess i set up a simple function in a local script in the text button, and it STILL DIDNT WORK

the debugging code looks somewhat like this:

script.Parent.Activated:Connect(function()

     print("button pressed")

end)

output: nothing

important properties:
active = true
interactable = true
visible = true

thanks in advance :slight_smile:

I FOUND THE SOLUTION MYSELF:

the z-Index of the button was lower than that of its parented invisble frame.
Button.AutoColor changed the things color and all that, but the button just didnt catch any clicks at all
moral of the story:

the button needs to have the highest z-index in its gui for it to work

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.