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

How to make a person be in a team when he/she joins?

Asked by 9 years ago

So I made a script and it turns out neat then i added a few lines then the player keeps on spawning in a team already.

01ct = script.Parent.ClassHolder.CounterTerrorists
02t = script.Parent.ClassHolder.Terrorists
03ClassHolder = script.Parent
04Teamjoined = false
05 
06function WaitTime()
07    Teamjoined = true
08    wait(600)
09    Teamjoined = false
10end
11 
12ct.MouseButton1Down:connect(function()
13    if Teamjoined == false then
14        game.Players.LocalPlayer.TeamColor = BrickColor.new('Really blue')
15        game.Players.LocalPlayer:LoadCharacter()
View all 32 lines...

Here's also my problem. I want a player to join a team THEN he will have to wait for a couple of seconds before he/she can switch teams.

0
Can you give us the output and elaborate your question? yumtaste 476 — 9y
0
You know if you set AutoAssign to true for both teams, players will automatically be evenly placed between the two teams, right? It sounds like that's what you're trying to do. EchoReaper 290 — 9y
0
Output was nothing like it didn't print the "Error Wait Time" when a player joined a team. So here's my problem, I joined a team by pressing the button called "team 1" Then the player spawns at "Team 2" Spawn hardhitsniper 30 — 9y

Answer this question