|
| 01 Mar 2014 01:48 PM |
| local Ignore = game.Workspace:"Find all players models" |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 3893 |
|
|
| 01 Mar 2014 01:58 PM |
| table.insert(Ray_ignore, v.name) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
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
|
  |
| 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 |
|
|