|
| 26 Jun 2014 01:25 PM |
This makes a table of the billboard GUI's PlayerToHideFrom how would I show make the player to hide from the players in the table.
ptf = {}
while wait(30) do for i,v in pairs (game.Players:GetPlayers()) do for i, c in pairs (v:GetChildren()) do if c.Name == "Quest" and c.Value == false then table.insert(ptf, v.Name) script.Parent.PlayerToHideFrom = end end end wait()end |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2014 01:33 PM |
13:32:37.287 - Workspace..Head.BillboardGui.Script:11: bad argument #3 to 'PlayerToHideFrom' (Object expected, got string) 13:32:37.289 - Script 'Workspace..Head.BillboardGui.Script', Line 11 13:32:37.292 - Stack End
ptf = {}
while wait(0.1) do for i,v in pairs (game.Players:GetPlayers()) do for i, c in pairs (v:GetChildren()) do if c.Name == "Quest" and c.Value == false then table.insert(ptf, v.Name) script.Parent.PlayerToHideFrom = " "..table.concat(ptf).."" end end end wait(0.1)end |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jun 2014 03:49 PM |
wot're you even... You realize you're adding the players name to a table defined outside of the loop. when the if statement returns true it'll start spamming their name into the table. You then concatenate the table into one messy string and attempt to put it where a player object belongs. |
|
|
| Report Abuse |
|
|