Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 05 Apr 2014 04:45 PM |
if v.TeamColor == player.TeamColor and v ~= player then
This is where I encounter problems. I am trying to create names above players on the local players team. Its a regular script. The whole script is below:
player = script.Parent.Parent.Parent.Parent.Parent.Parent print("1") for i,v in pairs(_G.players) do if v.TeamColor == player.TeamColor and v ~= player then print("2") local board = Instance.new("BillboardGui",player.PlayerGui) board.AlwaysOnTop = false board.Size = UDim2.new(1,0,1,0) board.StudsOffset = Vector3.new(0,2,0) board.Adornee = v.Character.Head print("3") local n = Instance.new("TextLabel",board) n.BackgroundTransparency = 1 n.Position = UDim2.new(0.5,-50,0.5,-15) n.Size = UDim2.new(0, 100,0, 30) n.Font = "SourceSansBold" n.FontSize = "Size14" n.TextColor3 = Color3.new(0,1,0) n.Text = ""..v.Name.."" print("4") local board = Instance.new("BillboardGui",v.PlayerGui) board.AlwaysOnTop = false board.Size = UDim2.new(1,0,1,0) board.StudsOffset = Vector3.new(0,2,0) board.Adornee = player.Character.Head print("5") local n = Instance.new("TextLabel",board) n.BackgroundTransparency = 1 n.Position = UDim2.new(0.5,-50,0.5,-15) n.Size = UDim2.new(0, 100,0, 30) n.Font = "SourceSansBold" n.FontSize = "Size14" n.TextColor3 = Color3.new(0,1,0) n.Text = ""..player.Name.."" print("6") end end script.Disabled = false |
|
|
| Report Abuse |
|
|
| 05 Apr 2014 05:13 PM |
| if (v.TeamColor == player.TeamColor) and (v.Name ~= player.Name) then |
|
|
| Report Abuse |
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 05 Apr 2014 05:27 PM |
| Nope, still not getting past that line |
|
|
| Report Abuse |
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
| |
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
| |
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
| |
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
| |
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
| |