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
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
| |
|
|
| 30 Sep 2015 08:21 PM |
| Well It depends on where you are running the module script from |
|
|
| Report Abuse |
|
|
IDKBlox
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 30 Sep 2015 08:23 PM |
| Where do you prefer i run it from? |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2015 08:26 PM |
| Local script lets you get the player gui pretty easily |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 30 Sep 2015 08:29 PM |
... Based on what you just responded whatever you are doing is not going to wrok |
|
|
| Report Abuse |
|
|
IDKBlox
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 30 Sep 2015 08:31 PM |
| Ah, alright, Thank you anyways |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2015 09:46 PM |
| You could put it in the playergui, and just say, local player = script.Parent.Parent ... |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 30 Sep 2015 10:20 PM |
@normal
NO WTF SHUT UP RIGHT NOW |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 1304 |
|
|
| 30 Sep 2015 10:23 PM |
| Ripe would you possibly know? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 01 Oct 2015 02:00 PM |
Use a server script, a local script and a remote event. Job done. |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2015 02:03 PM |
ur question makes no sense
i make u math.sqrt() |
|
|
| Report Abuse |
|
|
Elandorr
|
  |
| Joined: 25 Sep 2015 |
| Total Posts: 148 |
|
| |
|
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
|
  |
| 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 |
|
|