kamilaman
|
  |
| Joined: 05 Jul 2011 |
| Total Posts: 105 |
|
|
| 01 Nov 2012 06:20 AM |
| I need someone to give me a script which will locate the players touching a brick and group those players in a seperate model in workspace. |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2012 06:28 AM |
you don't 'need' the script. you want the script. the only things you need are oxygen, food, water, movement and sleep.
however, here it comes
x = Instance.new("Model", workspace)
script.Parent.Touched:connect(function(h) if not h or not h.Parent then return end hum = h.Parent:findFirstChild("Humanoid") if not hum then return end hum.Parent.Parent = x end) |
|
|
| Report Abuse |
|
|
kamilaman
|
  |
| Joined: 05 Jul 2011 |
| Total Posts: 105 |
|
|
| 01 Nov 2012 06:54 AM |
| Your script worked like a charm.But i was wondering what is the "if not h or not h.Parent then return end " used for??? |
|
|
| Report Abuse |
|
|
kamilaman
|
  |
| Joined: 05 Jul 2011 |
| Total Posts: 105 |
|
|
| 01 Nov 2012 07:06 AM |
| And one more thing ... i want to ungroup that model after a while. |
|
|
| Report Abuse |
|
|