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

0

So.. what's the problem with this script? Sorry but I don't understand. Isn't it working?

0

Please, elaborate.

0

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.