Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my Robux Donation GUI Not Work in My Open/Close GUI? [closed]

Asked by
Potaaden -18
5 years ago
Edited 5 years ago

For My donation button

local id = 360542490 

script.Parent.Donate10.MouseButton1Click:Connect(function()
    game.MarketplaceService:PromptProductPurchase(script.Parent.Parent.Parent, id)
end)

--script for one of my donation buttons

For my open/close GUI

local MainFrame = script.Parent
local CloseDonations = MainFrame:WaitForChild("CloseDonations")
local OpenDonations = MainFrame.Parent:WaitForChild("OpenDonations")

OpenDonations.MouseButton1Click:connect(function()
    MainFrame.Visible = true
end)

CloseDonations.MouseButton1Click:connect(function()
    OpenDonations.Visible = true
    MainFrame.Visible = false
end)
--script for my open close gui
0
could you go into more detail. Is the problem that the donation button script just isn't working? zor_os 70 — 5y

Closed as Non-Descriptive by User#19524

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?