**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)


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)