Button inside a SurfaceGui in Tool not working

**I have a tool, with the surface adorned in it and with a button inside. I want the other players to click this button and trigger the promptpurchase. But that button isn’t working. **
WHY?

I put the same surface, scrollingFrame, I put inside a part in the workspace and the button works normally, but inside the tool, no!

this is the script in local

local button = script.Parent
local MarketplaceService = game:GetService("MarketplaceService")
local ITEM_ID = script.Parent.AssetID.Value
local player = game.Players.LocalPlayer

local function onButtonActivated()
	print("Button activated!")
	MarketplaceService:PromptPurchase(player,ITEM_ID)

end

button.Activated:Connect(onButtonActivated)

Screenshot_13

Screenshot_14

Everything is working, the button is being cloned in the tool, with the script inside it, but it is not possible to click (and if you click, it does nothing)

I don’t think you use Button.Activated, try using Button.MouseButton1Click. Could be because youre using a LocalScript as well.

Does it print anything???

MouseButton1Click does not work as well.

i was using it and changed to actived

nope. Does not print.

It is like not working. Its like a textlabel, no Hovering