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 » Scripting Helpers
Home Search
 

Re: Local player

Previous Thread :: Next Thread 
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
05 Apr 2013 09:58 PM
Is there a way to refer to the LocalPlayer in the workspace?

Workspace.LocalPlayer doesn't work

(I know I can just use Game.Players.LocalPlayer.Character but Im just wondering)
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
05 Apr 2013 09:59 PM
Not really, but you can get the character from the player. Use a localscript:

game.Players.LocalPlayer.Character

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]-
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
05 Apr 2013 09:59 PM
Please read the bottom of my post lol but thanks
Report Abuse
btft is not online. btft
Joined: 19 Feb 2011
Total Posts: 1512
05 Apr 2013 10:08 PM
local player = game.Players.LocalPlayer

I think you can use Workspace:findFirstChild(player.Name)
Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
05 Apr 2013 10:09 PM
Or player.Character
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
05 Apr 2013 10:10 PM
Is it really that much more work to read the whole post -.-
Report Abuse
Awsomisticguy537 is not online. Awsomisticguy537
Joined: 03 Dec 2010
Total Posts: 507
05 Apr 2013 11:11 PM
I don't see why you need to do that, really...

I guess you could just search for models, then if it has a Humanoid it is probually a character but again, thats a huge waste of time...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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