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: Help!

Previous Thread :: Next Thread 
KOzero is not online. 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 is not online. 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 is not online. 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 is not online. KOzero
Joined: 11 May 2010
Total Posts: 1411
11 Sep 2014 10:50 AM
Oh I did half of that.
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