The script has a BillboardGui inside that I want placed onto a player's head if they are on a certain team in-game, but it doesn't work even when I'm on the right team.
local title = script.BillboardGui local red1 = 0 local green1 = 0 local blue1 = 0 game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) if player.Team == "Security Department" then local newGUI = title:Clone() newGUI.TextLabel.TextColor3 = Color3.fromRGB(red1,green1,blue1) newGUI.TextLabel.Text = "Security Department" newGUI.TextLabel.Parent = character.Head end end) end)
if player.Team == "Security Department" then
a team is not a name, it's a team instance. You'd have to do player.Team == game.Teams["Security Department"]