Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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!

1 comment

0

Hmmm... yea... one problem with this mate: You didn't make the Product Show up

This discussion is preserved as it was. New answers, comments, and votes are closed.