Help me with buttons

If you know can you help me fix the buttons


I Tried doing somthing but it dosent work out.

local mps = game:GetService(“MarketplaceService”)

mps:PromptGamePassPurchase(game.Players.LocalPlayer, script.Parent:WaitForChild(“GamepassID”).Value)


avec you sure it is an ImageButton and not an ImageLabel?

How do i change this to developer product

I’m confused. Are you trying to prompt a gamepass purchase when the image button is clicked?

Promote Developer product dose it work like that?

I am highly confused. If I understood correctly you want to prompt a Developer product. That simply works using :PromptProductPurchase(). So if that’s your problem don’t use :PromptGamePassPurchase().

But can you then tell me why the value in your hierachy is called GamepassID?
There’s a big difference between Gamepass and developer product and if you want to use a value to represent the developer products ID, I advise you not to have “gamepass” in it.

1 Like

Guys i heed help Look


Change script.Parent:WaitForChild(“Smallpack”) to script.Parent

The script that searches for “Smallpack” is already it’s child so simply say:

local button = script.Parent

It is already like that on 1st

Nope, it’s:

local button = script.Parent:WaitForChild("Smallpack")

in the second line of your script.

It should just be:

local button = script.Parent
1 Like

Alr It’s just i am (new)(bad) at scripting

All good but I would recommend you to first learn the basics on how to locate objects in-experience and script simple algorithms before copy pasting scripts off of youtube as that does not bring you further. There are tons of good tutorials.


Alr thanks man i will try Learning

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