Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 19 Aug 2011 11:28 AM |
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then p = game.Players:FindFirstChild(hit.Parent.Name) StarterGui = p.StarterGui end end)
I don't use anonymous functions much so please excuse me if i went wrong. |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2011 12:45 PM |
| The answer is, you can't. Because there is no StarterGui in a player. |
|
|
| Report Abuse |
|
|
Jason1289
|
  |
| Joined: 20 Mar 2009 |
| Total Posts: 446 |
|
|
| 19 Aug 2011 12:47 PM |
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then p = game.Players:FindFirstChild(hit.Parent.Name) gui = p.PlayerGui end end |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2011 12:49 PM |
| Above is the PlayerGui, things in there don't last for the entire game. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
bloob827
|
  |
| Joined: 01 Aug 2010 |
| Total Posts: 6867 |
|
|
| 19 Aug 2011 12:50 PM |
script.Parent.Touched:connect(function(prsn) gooey = game.Players:playerFromCharacter(prsn).PlayerGui
--add some more end) |
|
|
| Report Abuse |
|
|