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
