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

How do I make a developer product that allows the player to pick the next map?

Asked by
xoquez -11
3 years ago

this is what I have so far

local MarketPlaceService = game:GetService("MarketplaceService")
local players = game:GetService("Players")

local productid = 1153629584
local player = game.Players.LocalPlayer

MarketPlaceService:PromptProductPurchase(player, productid)

basically, when the round starts a random map is chosen. I want it so if the player buys the map chooser product they get to pick the next map and when the current round is finished that map will be next. I was also thinking if multiple people bought it at once there could be a bug so Is it possible to add a queue and let the player know that their chosen map will play in x rounds. all my maps are in serverstorage in a folder called Maps. I also want this to be a gui instead of a clickdetector. I added this script in the textbuttonn but im not sure if thats where its supposed to go. and do I need to add another script in service. I am new to scripting so if anybody can figure out code to run this I will definetly comprehend it and use it again if needed. I also think that when they press the button (the script is in the button to run it) wouldn't another gui have to pop up after buying it so they can select the map? and that gui would have to say the names of the maps right? and does each button in that gui have to be a button and where would I put this gui and how would I correlate it to the rest of the script. as you can see I am learning and striving for answers. I am just a little anxious cause I was stupid to spend most of my robux 7k on ads when I realized I should add more to the game., also in the gui where they select the map I am fine with just text (name of the map) and no pictures or icons. Also in my game the game randomly selects a map and displays the name of the map in gui on top like for ex "Citrus map! chosen! then it starts. So maybe the GUI that they select the map, each button can have the name of the map because in folders each map is named. I know the fundementals on what has to be done I just don't know how to script it lol.

0
This is too much to ask from a bug-assist forum. If you contact the Discord in my Bio, I can whip this up for you at a price. Ziffixture 6913 — 3y
0
Omg, the guy trying to profit lol genilsonotavio 132 — 3y
1
;) Ziffixture 6913 — 3y

Answer this question