Hello, I was wondering how to make a team/ gender selector... A game I'm making is based of a Japanese High School (Kinda like yandere simulator) So I was wondering, Can anyone help me?
How do you make charector Gender Selector/ Team selector?
1 answer
The answer is pretty simple. I will put it in steps so can easily do it:
1.
Create the Gui or whatever else you are doing (dialog etc.). You will program it later.
2.
Create some sort of in game folder (with DataStore if you want it to save), and make a smaller folder inside it. Call the overall folder something like "PlayerData", then name the smaller folder something like "PlayerFolder". Insert string/number/any-other-type value of what you want to show the gender and any other data you want to show. Insert another value for the player's team. Give them any names you like.
3.
Insert a script into the gui, etc. of what you, and add an event that fires when a player spawns. The function that gets fired would Clone() the folder "PlayerFolder" into the folder "PlayerData", changing it's name to the player's name. Make sure when the game is not running to set a default gender/team etc. for the values.
4.
Make an event that fires when a choice is selected, then it changes the property "Value" to whatever the value the choice represents. Repeat until done.
5.
Do everything else that comes with the selected options (e.g, boy's body, spawns in red team).
Example:
local p = game.Players.LocalPlayer
local gender = game.Workspace.PlayerData[p.Name].Gender
script.Parent.MouseButton1Down:connect(function()
gender.Value = "Boy"
end
Note: I will not program it, this is a question site, not a request site. I answered your question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
This is an example of a broad question, as you haven't suggested any methods of how you're doing this. But to give you something to start off with, you could prompt the user a GUI of teams to choose from or a lobby area with team teleporters.