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

how do you Make a certain player be on a certain team?

Ive been struggling on this for some time now i am pretty new to scripting so any help?~~~~~~~~~~~~~~~~~local tp = game.Teams.Official game.Players.PlayerAdded:Connect(function(player)

player.CharacterAdded:Connect(function(character)
	
	if player.Name == "WillBe_Stoped" then
		local person = game.Players:GetPlayerFromCharacter(player.Name)
		person.tp=true
	end
end)

end)~~~~~~~~~~~~~~~~~

1 answer

✓ Accepted answer
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
 if player.Name == "WillBe_Stoped" then
        local person = player
        person.Team = tp
    end
    end)
end)

9 comments

0

doesnt work it doesnt know what "player" is

0

Is this a local script or a script?

0

Also what line is the error occuring on?

0

it is a script

0

Try the edited version i just edited up their ^

0

add me on discord and figure this out cause i dont get it (ItzWill#8788)

0

It says incorrect discord

0

Zeno#8788

0

try that

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