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

How do I make a Frame that appears when you buy a Product?

Asked by 4 years ago

Ok, yes, I did make the Developer Product, but I have NO IDEA how to find or code it! what I need is something that when they buy the Product, a Frame will come up to let them choose a certain function (I can do this part by myself). How do I do the part that the Frame shows up when the Product has been purchased? I will need a full script, seeing as I don't even know how to let them buy the item either! Thanks! -JBennettChief9

1 answer

Log in to vote
0
Answered by 4 years ago

If you're just trying to get a frame to show up when you buy something, it's quite easy. Just put the frame in a ScreenGUI in StarterGui and then use the following code:

-- Define all of your variables here

local button = -- "Wherever the button you want to press for the frame to show up"

local frame = "Where the frame is that you want to show up when you click the button"


-- Whenever "Button" is clicked the code inside of this function will run
button.MouseButton1Click:connect(function()
    frame.Visible = true -- Making the frame visible
    wait(3) -- However long you want the frame to be up for
    frame.Visisble = false -- Making the frame invisible
end

Hope this helped!

0
Hmmm... yea... one problem with this mate: You didn't make the Product Show up JB_SuperGamer 165 — 4y
Ad

Answer this question