So the humanoid is named blue. And i wan't a Barrack's where you can recruit with gold. But will only spawn in a certain Gui Kinda like this. game.Players.PlayerAdded:connect(function(plr)
if plr.TeamColor == BrickColor.new("Bright blue") then
local gui = game.ReplicatedStorage.Blue
gui.Parent = plr.PlayerGui;
end
end) game.Players.PlayerAdded:connect(function(plr)
if plr.TeamColor == BrickColor.new("Bright red") then
local gui = game.ReplicatedStorage.Red
gui.Parent = plr.PlayerGui;
end
end) But will work for a Humanoid that is named Blue or Humanoid named Red.

4 comments
So.. what's the problem with this script? Sorry but I don't understand. Isn't it working?
Please, elaborate.
Sorry i was busy. so pretty much i want to remove the humanoid name changer and make it so The npc follows the string value owner but i change no clue how to do so.
Maybe you can have a look around or try to modify (https://scriptinghelpers.org/questions/60986/how-do-i-create-a-follow-script-for-an-enemy-npc-that-choose-the-users-around) for example?