local Player = script.Parent.Parent.Parent
if script.Parent.Parent.Name == "PlayerGui" then
if Player.Team.TeamColor == BrickColor.new("Dark stone grey") then -- Checks if the team is a prisoner
print("Prisoner")
script.Parent:Destroy() -- removes it if your team is a prisoner
end
if Player.Team.TeamColor == BrickColor.new("White") then -- checks if your team is a civilian
print("Civilian")
end
end
How it works: it sees if you're a prisoner then deletes the GUI so you cant change and get unjailed and prints "Prisoner"
If you're a civilian then it just prints "civilian"...

1 comment
Could you please accept my answer if I helped you?