KOzero
|
  |
| Joined: 11 May 2010 |
| Total Posts: 1411 |
|
|
| 11 Sep 2014 08:00 AM |
How to get access to a client's startergui and it's content from another client. I can't do this from a client to a server via remote function because the server can only view the starterGui but not what's inside it.
|
|
|
| Report Abuse |
|
|
vlekje518
|
  |
| Joined: 10 Apr 2011 |
| Total Posts: 191 |
|
|
| 11 Sep 2014 08:04 AM |
| You'll have to get a remotefunction to the client, making the client return the chatgui, then returning that to the actual caller. |
|
|
| Report Abuse |
|
|
KOzero
|
  |
| Joined: 11 May 2010 |
| Total Posts: 1411 |
|
|
| 11 Sep 2014 08:06 AM |
I did do that here.
localScript:
local players = {}
function game.ReplicatedStorage.Remotes.PlayerAdded.OnClientInvoke(x) table.insert(players, x) end
function game.ReplicatedStorage.Remotes.PlayerRemoved.OnClientInvoke(x) table.remove(players, x) end
ServerScript:
game.Players.PlayerAdded:connect(function(plr) if plr then return plr end game.ReplicatedStorage.Remotes.PlayerAdded:InvokeClient(plr) end) ---------------------------------------------------------------- game.Players.PlayerAdded:connect(function(plr) if plr then return plr end game.ReplicatedStorage.Remotes.PlayerRemoved:InvokeClient(plr) end) |
|
|
| Report Abuse |
|
|
KOzero
|
  |
| Joined: 11 May 2010 |
| Total Posts: 1411 |
|
| |
|