Right so, I made this part with a surfaceGUI on it, and the button that says “50R$ - BUY”, has a local script inside, which wont work for some reason. The said part:
The explorer view:
The LocalScript inside of the TextButton
local GamepassID = 136732149 -- the gamepass ID im trying to use
script.Parent.MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer, GamepassID)
end)
It works for other people, ive tried with normal ScreenGUIs too, and its not working in studio or in-game. Even though I already own the gamepass, it should still come up with a prompt saying that I already own it?