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: How do you find all Players in Workspace?Reward:500 Tix

Previous Thread :: Next Thread 
FiveStar10 is not online. FiveStar10
Joined: 13 Sep 2008
Total Posts: 134
01 Mar 2014 01:48 PM
local Ignore = game.Workspace:"Find all players models"
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
01 Mar 2014 01:51 PM
for i,v in pairs(workspace:GetChildren()) do
if v.Name == game.Players:findFirstChild(v.Name) then
-- it prob won't work
end
end
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
01 Mar 2014 01:53 PM
for I,v in pairs (Workspace:GetChildren()) do
if game.Players:findFirstChild(v.Name) then
--ignore
else
--do whatever
end
end
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
01 Mar 2014 01:54 PM
island if ours both work u can have the prize money since I'm nbc lol
Report Abuse
FiveStar10 is not online. FiveStar10
Joined: 13 Sep 2008
Total Posts: 134
01 Mar 2014 01:57 PM
how do I add the players name to this list?
local Ray_Ignore = {Camera, Ignore_Model}
It is a list for my raycast to ignore the items in the table so the raycast will go through it.
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
01 Mar 2014 01:58 PM
table.insert(Ray_ignore, v.name)
Report Abuse
MarioKartAddict is not online. MarioKartAddict
Joined: 11 Nov 2009
Total Posts: 42774
01 Mar 2014 01:59 PM
local Ray_Ignore = {Camera, Ignore_Model}

for i,v in pairs (Workspace:GetChildren()) do
if game.Players:findFirstChild(v.Name) then
table.insert(Ray_Ignore, v.Name
end
end
Report Abuse
MarioKartAddict is not online. MarioKartAddict
Joined: 11 Nov 2009
Total Posts: 42774
01 Mar 2014 01:59 PM
--hah forgot a parenthesis


local Ray_Ignore = {Camera, Ignore_Model}

for i,v in pairs (Workspace:GetChildren()) do
if game.Players:findFirstChild(v.Name) then
table.insert(Ray_Ignore, v.Name)
end
end
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
01 Mar 2014 02:01 PM
o ic

give 259 tix to island and the other 250 to mario
Report Abuse
FiveStar10 is not online. FiveStar10
Joined: 13 Sep 2008
Total Posts: 134
01 Mar 2014 02:25 PM
its not working...wth the raycast isn't going through the players tools if they players name is on the list then all of their body parts or tool parts should be ignored
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
01 Mar 2014 02:29 PM
Your question was how do you find all players in workspace. It was answered. You should be paying them now or it can be considered a scam.
Report Abuse
jggames223 is not online. jggames223
Joined: 22 Sep 2012
Total Posts: 50
01 Mar 2014 02:31 PM
--i am on a tablet so bear with me

Players = game.Workspace:GetChildren()

for I = 1, #Players do
wait()
if game.Players:FindFirstChild(Players[I] ~= nil)
then
Player[I]:FindFirstChild("Humanoid"):TakeDamage(70)-- damages all players 70%
end
end
Report Abuse
jggames223 is not online. jggames223
Joined: 22 Sep 2012
Total Posts: 50
01 Mar 2014 02:32 PM
You're welcome
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
01 Mar 2014 02:41 PM
give them their money now, they did what you said now stop adding topics
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
01 Mar 2014 02:45 PM
reported for scamming.
Report Abuse
MarioKartAddict is not online. MarioKartAddict
Joined: 11 Nov 2009
Total Posts: 42774
01 Mar 2014 02:47 PM
you should also check to see if the parent of the block the ray is hitting is on that list
Report Abuse
FiveStar10 is not online. FiveStar10
Joined: 13 Sep 2008
Total Posts: 134
01 Mar 2014 02:59 PM
the reward is only if it works jeez "reporting for scam" really? I'm still trying to work it out
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
01 Mar 2014 03:05 PM
Your question was 'How to get player names.' People have answered it, and now you're asking them further questions. If you don't pay, it is a scam.
Report Abuse
FiveStar10 is not online. FiveStar10
Joined: 13 Sep 2008
Total Posts: 134
01 Mar 2014 03:11 PM
yeah but it doesn't work so how do i pay for something that didn't work in my script?
Report Abuse
MarioKartAddict is not online. MarioKartAddict
Joined: 11 Nov 2009
Total Posts: 42774
01 Mar 2014 03:43 PM
script.Parent.Parent.Humanoid.Died:connect(function()
repeat wait() until script.Parent.Parent.Character
script.Parent.Parent.Character.Parent = Ignore_Model
end)
Report Abuse
FiveStar10 is not online. FiveStar10
Joined: 13 Sep 2008
Total Posts: 134
01 Mar 2014 03:58 PM
payed him 500 tickets :D
Report Abuse
GOLDC3PO is not online. GOLDC3PO
Joined: 31 May 2011
Total Posts: 509
01 Mar 2014 11:39 PM
plrs = {}
for i,v in pairs (game.Players:GetChildren()) do
table.insert(plrs,v.Name)
end
Report Abuse
GOLDC3PO is not online. GOLDC3PO
Joined: 31 May 2011
Total Posts: 509
01 Mar 2014 11:40 PM
plrs = {}
for i,v in pairs (game.Players:GetChildren()) do
table.insert(plrs,v.Character)
end
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