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: How do you find a player?

Previous Thread :: Next Thread 
cross700 is not online. cross700
Joined: 20 Oct 2012
Total Posts: 258
03 Jun 2015 04:11 PM
How do you find the player that YOU'RE playing as. Not a specific name, but the player in general; I tried using game.Players.Player; but that's not right, what's the RIGHT way to find a player?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Jun 2015 04:12 PM
game.Players.LocalPlayer
Report Abuse
Tokimonu is not online. Tokimonu
Joined: 18 Sep 2009
Total Posts: 643
03 Jun 2015 04:14 PM
what cnt said
but make it a localscript or it will error
Report Abuse
jackalreadytaken is not online. jackalreadytaken
Joined: 15 Jun 2014
Total Posts: 38
03 Jun 2015 04:14 PM
In a LocalScript, somewhere a LocalScript can run, "game.Players.LocalPlayer" works.
Report Abuse
Luminak is not online. Luminak
Joined: 27 May 2012
Total Posts: 2809
03 Jun 2015 04:14 PM
game.Workspace.cross700.Torso.Transparency = 1
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
03 Jun 2015 04:16 PM
No one help, he/she/it is dubble pustin'
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
03 Jun 2015 05:08 PM
workspace.Parent = nil

^ that should do it
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
03 Jun 2015 05:09 PM
that would error not, thats RobloxLocked
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
03 Jun 2015 05:13 PM
try this then:

function lol()
wait(1)
lol()
end

Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
03 Jun 2015 05:20 PM
@not

no its

local lol = function()
print("lol brah")
lol()
end
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
03 Jun 2015 05:28 PM
^ the wait(1) was there so that it didn't create the stack overflow immediately


nubcake
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
03 Jun 2015 05:29 PM
That was my whole point. lol.
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
03 Jun 2015 05:31 PM
^ if you don't leave it in it will do it immediately and he will notice.
If it breaks his game after a while it will drive him nuts.
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
03 Jun 2015 05:44 PM
lol
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
03 Jun 2015 05:50 PM
When you are dealing with PlayerGui or Mouse/Key input, you can use localscripts and use:
game.Players.LocalPlayer to get the player.

If you are using a global script, you have to know the player's name.

local Player = nil
repeat wait() Player = game.Players:FindFirstChild("PlayerName") until Player
Report Abuse
cross700 is not online. cross700
Joined: 20 Oct 2012
Total Posts: 258
03 Jun 2015 08:49 PM
None if this is working, my script's never going to work :(
Report Abuse
Luminak is not online. Luminak
Joined: 27 May 2012
Total Posts: 2809
04 Jun 2015 08:33 AM
cross that means your stupid
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
04 Jun 2015 01:22 PM
^ you're*
Report Abuse
LogicCaik is not online. LogicCaik
Joined: 21 Mar 2010
Total Posts: 263
04 Jun 2015 01:32 PM
game.Players.LocalPlayer if this is in a localscript
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