local e=game.Players.LocalPlayer local V=(e:WaitForChild("\080\108\097\121\101\114\071\117\105")):WaitForChild("\083\099\114\101\101\110\071\117\105")local l=(V:WaitForChild("\070\114\097\109\101")):WaitForChild("\116\101\109\112\108\097\116\101")l.Visible=false for e,V in pairs(game.Teams:GetChildren())do local t=l:Clone()t.Name=V.Name t.Parent=l.Parent t.Visible=true t.Text=V.Name t.MouseButton1Click:Connect(function()game.ReplicatedStorage.RemoteEvent:FireServer(V.Name)end)end
local localPlayer = game.Players.LocalPlayer
local ScreenGui = localPlayer:WaitForChild("PlayerGui"):WaitForChild("ScreenGui")
local template = ScreenGui:WaitForChild("Frame"):WaitForChild("template")
template.Visible = false

for i, v in pairs(game.Teams:GetChildren()) do
	local clone = template:Clone()
	clone.Name = v.Name
	clone.Parent = template.Parent
	clone.Visible = true
	clone.Text = v.Name

	clone.MouseButton1Click:Connect(function()
		game.ReplicatedStorage.RemoteEvent:FireServer(v.Name)
	end)
end
