So when you click a certain button on the GUI, it is meant to team you to a certain team.
Visible
while true do
wait(10)
script.Parent.Visible = true
end
RGH
local groupid = "1142229"
function Click(Player)
if Player:IsInGroup(groupid) then
Player.TeamColor = BrickColor.new("Institutional white")
Player.Humanoid.Health = 0
else
end
end
script.Parent.MouseButton1Click:connect(Click)
PMC
local groupid = "2567972"
function Click(Player)
if Player:IsInGroup(groupid) then
Player.TeamColor = BrickColor.new("Lime green")
Player.Humanoid.Health = 0
else
end
end
script.Parent.MouseButton1Click:connect(Click)
TRGH
local groupid = "2580112"
function Click(Player)
if Player:IsInGroup(groupid) then
Player.TeamColor = BrickColor.new("Navy blue")
Player.Humanoid.Health = 0
else
end
end
script.Parent.MouseButton1Click:connect(Click)
SGH
local groupid = "2586305"
function Click(Player)
if Player:IsInGroup(groupid) then
Player.TeamColor = BrickColor.new("Earth green")
Player.Humanoid.Health = 0
else
end
end
script.Parent.MouseButton1Click:connect(Click)

2 comments
you have an infinite while loop at the beginning. nothing after it happens, ever. it should go at the end.
^ Btw, they're different scripts