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

is it possible to make everyone a certain team?

is it possible to make a script that teams everyone a certain team? I found nothing on the wiki and etc

1 comment

0

Yes it's possible.

1 answer

✓ Accepted answer

Yes, here's a script:

local certainTeam = -- team object hierachy

for _,v in pairs(game.Players:GetPlayers()) do
       v.Team = certainTeam
end

13 comments

0

Don't spoon feed code.

0

and was there a need to downvote?

0

Yes there is. This is scripting HELPERS, he won't learn like this.

0

4 lines were provided. Said 4 lines were self-documenting enough to say everything you'd need to say about the matter. It's not even like this is a totally workable solution for anything. Put this in a script and all you'd get is it running immediately at server start and not doing anything.

0

He asked a simple question that requires a simple answer, not code.

0

Could you please explain how writing "game.Players:GetPlayers() retrieves a list of the players in the server" is in any way more descriptive than what was posted?

0

oh yeah I figured it out on my own but thanks <3

0

He got a simple answer, just in the form of code. It's literally more concise and descriptive than writing the equivalent in English could be.

0

Right. But giving code is more than enough. Why wouldn't chexyalani just give OP links, or a description of how without code?

0

Because that is literally more effort than providing the code, and less useful. If you disagree, please provide a sample answer which is as descriptive, but shorter.

0

. But OP asked a simple "Is it possible to ____?" question, which requires a yes or no. It was just a yes or no question and chexy just spoon feeds code. OP will never learn like that.

0

Why are you being intentionally obtuse, rather than just admitting the fact you're wrong? Obviously the implication of "is it possible to..." is "how do I...". Let's not pretend you couldn't figure that out.  The code Chex provided wouldn't even interpret as is.

0

Also given the fact that incapaz asked "Is there any other way to make a player unable to reset?" a few days ago. Was he also expecting a yes or no answer? Hm...

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