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: Why wont this work?

Previous Thread :: Next Thread 
LetterSlayer is online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
19 May 2016 12:03 AM
I have checked, and "Main" is indeed in PlayerGui. Don't worry about the player. thing, that's all sorted.

player.PlayerGui.Main.MineGui.Display.Text = target.Name

"Main is not a valid member of PlayerGui"


Loading. . . . .
Report Abuse
Brick_Wizard is not online. Brick_Wizard
Joined: 15 Mar 2016
Total Posts: 2072
19 May 2016 12:05 AM
Use WaitForChild maybe?


Report Abuse
LetterSlayer is online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
19 May 2016 12:11 AM
It's working now, I just need to sort out the target thing.


Loading. . . . .
Report Abuse
LetterSlayer is online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
19 May 2016 12:26 AM
Okay, I'm stuck again... this time, it gives no error.

if (target and target.Parent == workspace.Blocks and target.Locked == false) then
player.PlayerGui.Main.MineGui.Display.Text = ("Selected "..(target.Name))
end


Loading. . . . .
Report Abuse
LetterSlayer is online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
19 May 2016 01:43 AM
Bump and a pothole.


Loading. . . . .
Report Abuse
Brick_Wizard is not online. Brick_Wizard
Joined: 15 Mar 2016
Total Posts: 2072
19 May 2016 01:46 AM
Try this

if (target and target.Parent == workspace.Blocks) then
if (target.Locked == false) then
player.PlayerGui.Main.MineGui.Display.Text = ("Selected "..(target.Name))
end
end


Report Abuse
LetterSlayer is online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
19 May 2016 02:10 AM
Thanks, everything is fixed now :)


Loading. . . . .
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