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: Can a Player's PlayerGui be accessed?

Previous Thread :: Next Thread 
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
30 Sep 2015 08:13 PM
from a ModuleScript? if so can someone please help me?

and before you asked, yes i have looked on the wiki and cant find anything about it
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
30 Sep 2015 08:20 PM
Anyone?
Report Abuse
VineyardVine is not online. VineyardVine
Joined: 20 Nov 2010
Total Posts: 904
30 Sep 2015 08:21 PM
Well It depends on where you are running the module script from
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
30 Sep 2015 08:23 PM
Where do you prefer i run it from?
Report Abuse
VineyardVine is not online. VineyardVine
Joined: 20 Nov 2010
Total Posts: 904
30 Sep 2015 08:26 PM
Local script lets you get the player gui pretty easily
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
30 Sep 2015 08:28 PM
yeah, but what if im trying to access 2 player's PlayerGuis?
Report Abuse
VineyardVine is not online. VineyardVine
Joined: 20 Nov 2010
Total Posts: 904
30 Sep 2015 08:29 PM
...
Based on what you just responded whatever you are doing is not going to wrok
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
30 Sep 2015 08:31 PM
Ah, alright, Thank you anyways
Report Abuse
NormaINorm is not online. NormaINorm
Joined: 11 Dec 2012
Total Posts: 315
30 Sep 2015 09:46 PM
You could put it in the playergui, and just say, local player = script.Parent.Parent ...
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
30 Sep 2015 10:14 PM
hmm you may be right, I sure hope so,ill go try that, Thanks!
Report Abuse
Ripepperoni is not online. Ripepperoni
Joined: 04 Jul 2010
Total Posts: 5715
30 Sep 2015 10:20 PM
@normal

NO WTF
SHUT UP RIGHT NOW
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
30 Sep 2015 10:23 PM
yeah, i didnt think it would work, Thanks for the help though :)

Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
30 Sep 2015 10:23 PM
Ripe would you possibly know?
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
30 Sep 2015 10:25 PM
or anyone, if its possible? ive been trying all day
Report Abuse
Aexura is not online. Aexura
Joined: 06 Aug 2015
Total Posts: 265
30 Sep 2015 10:33 PM
I think it can be accessed and be accessed from the PlayerGui. Try it out and do some prints.
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
30 Sep 2015 10:38 PM
Thanks, But i have been trying, i have PlayerGui is not a valid memeber of Player

like locked in my brain lol
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
30 Sep 2015 10:39 PM
Ae if you can make it for me, ill pay you, i need to get some bed. and Well talk to :)
Report Abuse
Aexura is not online. Aexura
Joined: 06 Aug 2015
Total Posts: 265
30 Sep 2015 10:43 PM
ModuleScript named AccessGui inside ServerScriptService:

local AccessGui = {}

AccessGui.Access = function(PlayerName) -- I put PlayerName instead of the actual player so you can see what I'm doing
if game.Players:FindFirstChild(PlayerName) ~= nil then
local Player = game.Players[PlayerName]
if Player:FindFirstChild("PlayerGui") ~= nil then
print("PlayerGui is accessable")
else
print("PlayerGui cannot be accessable")
end
end
end)

return AccessGui

Script named anything inside Workspace:

local AccessGui = require(game.ServerScriptService.AccessGui)

game.Players.PlayerAdded:connect(function(Player)
wait(1)
AccessGui.Access(Player.Name)
end)

If anything goes wrong, remember that I wrote this in the message box, not in studio :P
Report Abuse
Aexura is not online. Aexura
Joined: 06 Aug 2015
Total Posts: 265
30 Sep 2015 10:44 PM
Message me if you need further information. I gotta go.
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
01 Oct 2015 01:15 PM
Thanks man, I never thought of that! I really appreciate I'll try it out when I get home
Report Abuse
IanSplodge is not online. IanSplodge
Joined: 13 Aug 2012
Total Posts: 2686
01 Oct 2015 02:00 PM
Use a server script, a local script and a remote event.
Job done.
Report Abuse
IllegallyBlind is not online. IllegallyBlind
Joined: 07 Nov 2010
Total Posts: 1691
01 Oct 2015 02:03 PM
ur question makes no sense


i make u math.sqrt()
Report Abuse
Elandorr is not online. Elandorr
Joined: 25 Sep 2015
Total Posts: 148
01 Oct 2015 02:30 PM
@Ian, yup!
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
01 Oct 2015 04:21 PM
Does anyone not mind showing me an example of what i would do with the server script, a local script and a remote event. It would be greatly appreciated.
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
01 Oct 2015 04:33 PM
ill pay you if you send the example to me in a message, and explain it :)
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