Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make it so that a certain team has a certain GUI?

Asked by
1JBird1 64
3 years ago

I’ve been trying to figure out how to to this, but I can’t find any solutions. How do you make it so that a certain team has GUI, and when they change teams the GUI disappears. Here’s a script that’s been working but won’t disable the GUI when I change teams

game.Players.PlayerAdded:Connect(function(plr)
 if plr.TeamColor == BrickColor.new(“Dark stone grey”) then
  local GUI = game.ReplicatedStorage.SpectateGUI
  GUI.Parent = plr.PlayerGui
 end
end)

Please help, my peanut of a brain is going to melt

Answer this question