|
| 06 Jan 2015 07:35 PM |
| I can't manage to get any descendant of someone's PlayerGui with FE. And I need it to save their inventory. Is there anyway around this? |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 06 Jan 2015 07:37 PM |
| Server should be able to access client? |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 06 Jan 2015 07:37 PM |
| Yes use a local script and remote events |
|
|
| Report Abuse |
|
|
|
| 06 Jan 2015 07:38 PM |
| For some reason, FE doesn't allow the server to access clients' PlayerGui. I honestly think it's extremely stupid, as there is no reason to keep the PlayerGui from the server. |
|
|
| Report Abuse |
|
|
|
| 06 Jan 2015 07:38 PM |
| @128gb already did that. Used a remote function. I tried to return one whole screen gui, and it keeps giving me "nil", even when there's waits. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 06 Jan 2015 07:40 PM |
Thats because the gui does not exist to the server Return the values you need not the objects |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
| |
|
|
| 06 Jan 2015 07:44 PM |
| but I'm returning the gui from the client. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 06 Jan 2015 07:47 PM |
Its not that the server is not allowed to access that gui its that it DOES NOT EXIST to the server
To the server the memory that refers to the gui is nil
Its kinda like this (Example using functions and local variables because it was an easy way to show it in my mind)
local function client() local gui = Instance.new("ScreenGui", workspace) print(gui) end
local function server() print(gui) end
client() -->ScreenGui server() -->nil, because 'gui' did not exist to the 'server' |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 06 Jan 2015 07:48 PM |
| olala a local workspace >;o |
|
|
| Report Abuse |
|
|