cross700
|
  |
| Joined: 20 Oct 2012 |
| Total Posts: 258 |
|
|
| 03 Jun 2015 08:52 PM |
Okay, for the last time, HOW DO YOU FIND A PLAYER FROM A GLOBAL SCRIPT!? I'm telling you what I'm going to do, so there's no confusion. I'm trying to do a function like this:
local q = Instance.new("ScreenGui",game.player.PlayerGui)
I just need to to have the "player" variable, and the script should work. HOW DO YOU DO THAT? I'VE CHECKED EVERYWHERE! Help? |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 03 Jun 2015 08:55 PM |
for i,v in pairs(game.Players:GetChildren()) do local gui = Instance.new("ScreenGui",v.PlayerGui) end |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 03 Jun 2015 08:55 PM |
| So, do you want to put the ScreenGui in ALL THE PLAYERS? Or just on player? Or who? |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 03 Jun 2015 08:56 PM |
| If you wanted all the players, you can looked at Time's script. |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
| |
|
cross700
|
  |
| Joined: 20 Oct 2012 |
| Total Posts: 258 |
|
| |
|
|
| 03 Jun 2015 08:57 PM |
| Which player are you trying to find? |
|
|
| Report Abuse |
|
|
cross700
|
  |
| Joined: 20 Oct 2012 |
| Total Posts: 258 |
|
|
| 03 Jun 2015 09:04 PM |
| Thank you SO much! It worked! I can't believe it actually worked! I'll look at this any other time I need something involving it. :D ^U^ |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2015 09:06 PM |
| You could have just said all players. Next time be more specific. |
|
|
| Report Abuse |
|
|