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: how to find player from gui?

Previous Thread :: Next Thread 
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
28 Apr 2014 07:47 PM
I tried

local p =script.Parent.Parent.Parent -- plr character
local plr=game.Players:GetPlayerFromCharacter(p)
print(plr.Name)

But says plr is a nil value. How do I find the player, not character from a gui?
Report Abuse
ReCoVeRyFlAsH is not online. ReCoVeRyFlAsH
Joined: 21 Nov 2010
Total Posts: 107
28 Apr 2014 07:49 PM
something wrong with p
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
28 Apr 2014 08:22 PM
Well, I have no idea why you would even have a GUI in the character, but the code looks good.
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
28 Apr 2014 08:24 PM
Halp
Report Abuse
ReCoVeRyFlAsH is not online. ReCoVeRyFlAsH
Joined: 21 Nov 2010
Total Posts: 107
28 Apr 2014 08:25 PM
theres nothing we can do
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
28 Apr 2014 08:26 PM
:/
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
28 Apr 2014 08:32 PM
Ebump
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
28 Apr 2014 08:55 PM
Bump i just need to find a player from playergui
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
28 Apr 2014 08:55 PM
I mean screengui
Report Abuse
ReCoVeRyFlAsH is not online. ReCoVeRyFlAsH
Joined: 21 Nov 2010
Total Posts: 107
28 Apr 2014 08:56 PM
Alright I'll try to make a function for this give me like 5 minutes.
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
28 Apr 2014 08:56 PM
Ok others help too
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
28 Apr 2014 09:01 PM
Bump
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
28 Apr 2014 09:01 PM
Stop bumping this every 5 minutes.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
28 Apr 2014 09:01 PM
game.Players.LocalPlayer


The script has to be a LocalScript.
Report Abuse
ReCoVeRyFlAsH is not online. ReCoVeRyFlAsH
Joined: 21 Nov 2010
Total Posts: 107
28 Apr 2014 09:02 PM
function findDatPlayer(object)
repeat
until object.Parent:IsA("Player")
return object.Parent
end

was going to do something like this but g2g to sleep pce
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
28 Apr 2014 09:02 PM
No other way?
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
28 Apr 2014 09:05 PM
lets say your explorer is this
-StarterGui
--ScreenGui
---Frame
----Script

script :
p = script.Parent.Parent.Parent.Parent -- player
c = p.Character

print('yw')

ˢᶦᵈᵉ ᵉᶠᶠᵉᶜᵗˢ ᵐᵃʸ ᶦᶰᶜᶫᵘᵈᵉ﹕ ᶫᵃᶜᵗᵃᵗᶦᶰᵍ, ʰᵉᵃᵈ ᵉˣᵖᶫᵒᵈᶦᶰᵍ ˢʸᶰᵈʳᵒᵐᵉ, ᵃᶰᵈ ᶫᵒˢˢ ᵒᶠ ᵍᵉᶰiᵗᵃᶫˢ
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
28 Apr 2014 09:40 PM
Eh
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