Hello! I am Glassphyte, and I seem to be in some trouble and wish for help. I've watched a certain ROBLOX video and what happened in it peaked my interest. I see the user has made a small.. script which allows him to buy a catalog item from his game, by just entering the ID and pressing enter! I attempted to make something like that myself.. but it didn't succeed. I made the screengui somewhat like his, but added a textbox and textbutton. So instead of pressing enter, I press the 'Confirm' button, that's to the side of the textbox. Like I said though, I had no luck.
Can anyone try to help me out with this? Thank you.
Here is the link to his video.
https://www.youtube.com/watch?v=zaB1iEDrWAU
Here is what I've made so far of the script.
-- Script for In-Game Selling
local box = script.Parent.Parent:WaitForChild("TextBox")
local button = script.Parent
local ItemID = ("TextBox")
script.Parent.ClickDetector.MouseClick:connect(function(player)
Game:GetService("MarketplaceService"):PromptPurchase(player, ItemID)
end)
-- Made by Glassphyte
