|
| 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 |
|
|
| |
|
|
| 19 May 2016 12:11 AM |
It's working now, I just need to sort out the target thing.
Loading. . . . . |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 19 May 2016 01:43 AM |
Bump and a pothole.
Loading. . . . . |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 19 May 2016 02:10 AM |
Thanks, everything is fixed now :)
Loading. . . . . |
|
|
| Report Abuse |
|
|