I am making a training center for my game. There will be 3 teams, Trainee (white) Staff (Medium blue) and host (black). I want the host to have a button that nobody else can access. Here is my script:
local Players = game:GetService("Players").LocalPlayer
if Players.Teams.TeamColor == (Players.Teams.TeamColor == "Black") then
game.StarterGui.ScreenGui.TextButton.Visible = true
else
game.StarterGui.ScreenGui.TextButton.Visible = false
end
