Run it
Copy the script and paste it into your executor.
-- รายชื่อทีมที่สามารถเปลี่ยนได้
local teams = {
["Red"] = "Red Team",
["Blue"] = "Blue Team",
["Green"] = "Green Team",
["Yellow"] = "Yellow Team"
}
-- ฟังก์ชันเปลี่ยนทีม
local function changeTeam(player, teamName)
local team = game.Teams:FindFirstChild(teamName)
if team then
player.Team = team
player:LoadCharacter() -- รีเซ็ตตัวละครเพื่อเปลี่ยนทีมทันที
player:FindFirstChildOfClass("PlayerGui"):SetCore("ChatMakeSystemMessage", {
Text = "You have been switched to " .. teamName;
Color = Color3.new(0, 1, );
})
player:():(, {
Text = ;
Color = .(, , );
})
(player, message)
args = .(message, )
args[] == args[]
teamName = teams[args[]]
teamName
(player, teamName)
player:():(, {
Text = ;
Color = .(, , );
})
.Players.PlayerAdded:((player)
player.Chatted:((message)
(player, message)
)
)The script for changing teams is as follows: 1 Enter the game team name to match the team name and run the script I don't know if it really works, you guys have to try it

Universal