Hello, I have a DC and I'm removing and re-creating the scripts, and the team thing doesn't work. Can anyone help me? (There is more of the script and this is a snipet, I think this is what caused the problem because everything else works.)
if game.Players.LocalPlayer:IsInGroup(1181092) then
script.Parent.Parent.Parent.TeamService.Americans.Visible = true
end
if game.Player.LocalPlayer:IsInGroup(1214465) then
script.Parent.Parent.Parent.TeamService.SS.Visible = true
end
if game.Players.Localplayer:IsInGroup(1214432) then
script.Parent.Parent.Parent.TeamService.StateDept.Visible = true
end
if game.Players.LocalPlayer:IsInGroup(1214694) then
script.Parent.Parent.Parent.TeamService.Congress.Visible = true
end
if game.Players.LocalPlayer:IsInGroup(1215144) then
script.Parent.Parent.Parent.TeamService.DefenseDept.Visible = true
end
if game.Players.LocalPlayer:IsInGroup(1215148) then
script.Parent.Parent.Parent.TeamService.SWAT.Visible = true
end
if game.Players.LocalPlayer:IsInGroup(1215145) then
script.Parent.Parent.Parent.TeamService.USCP.Visible = true
end
if game.Players.LocalPlayer:IsInGroup(1215003) then
script.Parent.Parent.Parent.TeamService.DOJ.Visible = true
end
if game.Players.LocalPlayer:IsInGroup(1218846) then
script.Parent.Parent.Parent.TeamService.HLS.Visible = true
end
if game.Players.LocalPlayer:IsInGroup(1213695) then
script.Parent.Parent.Parent.TeamService.MService.Visible = true
end

1 comment
There are pre-made buttons that are all invisible and have team scripts, so I wouldn't do that.