generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Tables

Previous Thread :: Next Thread 
GlaciesRex is not online. GlaciesRex
Joined: 22 Oct 2011
Total Posts: 1100
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
GlaciesRex is not online. GlaciesRex
Joined: 22 Oct 2011
Total Posts: 1100
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
GlaciesRex is not online. GlaciesRex
Joined: 22 Oct 2011
Total Posts: 1100
26 Jun 2014 03:44 PM
Bump
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image