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 » Scripters
Home Search
 

Re: Global Scripts-Players

Previous Thread :: Next Thread 
cross700 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Darkenus
Joined: 17 Jul 2014
Total Posts: 1997
03 Jun 2015 08:56 PM
*look
Report Abuse
cross700 is not online. cross700
Joined: 20 Oct 2012
Total Posts: 258
03 Jun 2015 08:57 PM
Okay, thanks
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
03 Jun 2015 08:57 PM
Which player are you trying to find?
Report Abuse
cross700 is not online. 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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
03 Jun 2015 09:06 PM
You could have just said all players. Next time be more specific.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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