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

How to gender script?

Im making a game and i need a gender script. Like a script that will find the user's gender and place them in the right gender group.

5 comments

0

Try making team only scripts the teams are boy girl or if they have a certain hat something like that.

0

I don't think it's possible, it might be but not sure.

0

It is

0

They should make that though

0

Don't automatically assign gender.

2 answers

✓ Accepted answer

There is no way to determine a player's gender by just what they logged in through. This is because on the privacy terms, the only use for it would be to determine how the character would look when they first made their account.

##But we can be smarter, can't we?

We know some things. Firstly, there are some hats directed to the female side of roblox, and some hats directed to the male side. But let's start with the beginner hat. You know what I'm talking about. The Pal hair and that girl hair that no one can think of the name of...

If we use PlayerHasAsset and check all the male hats and female hats, if the player has more male hats, assume male, vice versa.

3 comments

0

I SAID THAT ABOUT THE HATS DONT STEAL MEH IDEAS

0

What is PlayerHasAsset?

0

PlayerHasAsset is a method which checks if a player owns a certain asset. In this case; a hat.

In my opinion, you should probably just add a gui that asks for the person's gender and they either pick male or female.

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