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 » Game Design
Home Search
 

Re: PlayerGUI

Previous Thread :: Next Thread 
yoshiegg6 is not online. yoshiegg6
Joined: 20 Jul 2012
Total Posts: 3191
11 Jan 2015 03:33 PM
How would I get to a persons playergui from their character?

script.parent.touched:Connect(function(stuff)
hit.parent(WHATDOI DO HERE?)
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
11 Jan 2015 03:40 PM
script.Parent.Touched:connect(function(hit)
local p = game.Players:GetPlayerFromCharacter(hit.Parent)
if p then
local gui = p:FindFirstChild("PlayerGui")
if gui then
-- there you go
end
end
end)
Report Abuse
Ruzakiff is not online. Ruzakiff
Joined: 19 Apr 2011
Total Posts: 155
11 Jan 2015 03:43 PM
function stuff(part)
local parent=part.Parent
if game.Players:GetPlayerFromCharacter(parent)then
local name=parent.Name
local derp=game.Players:findFirstChild(name)
derp.PlayerGui.GUI.Visible=false
end
end
script.Parent.Touched:connect(stuff)

SHOULD WORK, not sure, not tested, but gave it my best shot :P


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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