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: Gui help

Previous Thread :: Next Thread 
Gahdzilla is online. Gahdzilla
Joined: 09 Jun 2016
Total Posts: 351
01 Nov 2016 03:46 PM
Ok so i have a script in a brick. It has a touched event. I have a line where i checked for humanoid. But im not sure how to make the gui visible for the player after he touches it. You cant use LocalPlayer because it is not a local script. Please help me figure this out
Report Abuse
GameDesignSubForum is not online. GameDesignSubForum
Joined: 04 Jan 2016
Total Posts: 111
01 Nov 2016 03:48 PM
local player = game.Players:GetPlayerFromCharacter(character)

You can do that, as in a touched event you DO have access to the character.
Report Abuse
Gahdzilla is online. Gahdzilla
Joined: 09 Jun 2016
Total Posts: 351
01 Nov 2016 03:50 PM
With 'local player' can i then access localplayer and playergui from there or am i missing something?
Report Abuse
Lordux is not online. Lordux
Joined: 10 Jun 2010
Total Posts: 610
01 Nov 2016 03:51 PM
If ReplicationFiltering(AKA FilteringEnabled) is on then you would have to use a local script to manipulate the PayerGui(and possibly the character since that's linked to the client).

Otherwise a server script can manipulate PlayerGui
Report Abuse
GameDesignSubForum is not online. GameDesignSubForum
Joined: 04 Jan 2016
Total Posts: 111
01 Nov 2016 03:54 PM
Yes, with the :GetPlayerFromCharacter you can access the playerGui and everything else you'd be able to with the LocalPlayer in a local script.
Report Abuse
Gahdzilla is online. Gahdzilla
Joined: 09 Jun 2016
Total Posts: 351
01 Nov 2016 03:54 PM
So i should put a script in serverscript service and do it from there?
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