of     1   

AdmiralPeckett
#141215708Tuesday, July 22, 2014 11:59 PM GMT

I am trying to make a game with a spectating team. I only want one team to have the spectate button but, I can't figure out how to make it so the spectate option is only for one team. Can anyone help?
connor954
#141215924Wednesday, July 23, 2014 12:01 AM GMT

Are you trying with a local script?
AdmiralPeckett
#141215966Wednesday, July 23, 2014 12:01 AM GMT

No, it is a GUI.
connor954
#141215975Wednesday, July 23, 2014 12:01 AM GMT

Oh wait, sorry. Didn't read your whole post.
Tynexx
#141215980Wednesday, July 23, 2014 12:01 AM GMT

for i,v in pairs(game.Players:GetPlayer()) do if v.TeamColor == BrickColor.new("Colorhere") then local gui = game.ServerStorage.Spectate:Clone() gui.Parent = v.PlayerGui end end Might work ~Tynexx
AdmiralPeckett
#141216582Wednesday, July 23, 2014 12:08 AM GMT

Script didn't work Tynexx. I'm trying to make it so the spectate button only works for one team.
128GB
#141216658Wednesday, July 23, 2014 12:09 AM GMT

Put the gui inside this script and name it "Spec" function newPlayer(Player) Player.CharacterAdded:connect(function(_) if Player.TeamColor == BrickColor.new("Bright blue") then script.Spec:Clone() = Player:WaitForChild("PlayerGui") end end) end Game.Players.PlayerAdded:connect(newPlayer)
AdmiralPeckett
#141217044Wednesday, July 23, 2014 12:13 AM GMT

@128GB that script didn't work. Here is the GUI i'm using. http://www.roblox.com/spectate-GUI-item?id=107703223
128GB
#141217609Wednesday, July 23, 2014 12:19 AM GMT

Where did you put the script and did you change the .TeamColor == BrickColor.new("Bright blue") part to the color of your team?
AdmiralPeckett
#141267973Wednesday, July 23, 2014 12:49 PM GMT

Yes I re-changed the color name. I put it in this GUI: http://www.roblox.com/spectate-GUI-item?id=132497677
AdmiralPeckett
#141268369Wednesday, July 23, 2014 12:58 PM GMT

Okay, so I am trying to make it so the spectate button only appears for one team. I just can't figure this out.
128GB
#141287101Wednesday, July 23, 2014 5:16 PM GMT

Just check what team they are on before running the specate code

    of     1