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 » Roblox » Suggestions & Ideas
Home Search
 

game.Players:GetLocalPlayer()

Previous Thread :: Next Thread 
Chrapnel is not online. Chrapnel
Joined: 01 Feb 2014
Total Posts: 951
16 Oct 2016 12:45 AM
I suggest a method that will yield until LocalPlayer is fully loaded, and then return the LocalPlayer. It will look like this:

local Player = game.Players:GetLocalPlayer()

support to never have to write 'repeat wait() until localblah' ever again
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
16 Oct 2016 12:51 AM
Pointless.
Report Abuse
pullman45 is not online. pullman45
Joined: 09 Jul 2012
Total Posts: 2891
16 Oct 2016 12:52 AM
repeat wait() until game.Players.LocalPlayer only adds one line and isn't really an issue.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
16 Oct 2016 02:45 AM
and also you dont need it ever and you never did
you're getting it confused with waiting for the character

obv the player exists if the localscript runs because the localscript is in playergui which is in the player silly
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • 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