|
| 08 Jul 2014 07:02 PM |
(Info: To get from the script to StarterGui, it's script.Parent.Parent.Parent.Parent)
I'm trying to access a NumberValue I put into the player's humanoid. I believe I have the parent's lined up correctly to reach the player's character, but nothing appears in the GUI for text. Any thoughts?
Code:
while wait() do local t = script.Parent local p = script.Parent.Parent.Parent.Parent.Parent t.Text = p.Humanoid.Bricks.Value end
(Also, is there something I can use to check if a value has changed and print said value)? |
|
|
| Report Abuse |
|
|
domorox17
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 1710 |
|
|
| 08 Jul 2014 07:03 PM |
| You can use the Changed event for the after request. Also, why not use a localscript, and do game.Players.LocalPlayer.Character.Humanoid.Bricks |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 07:03 PM |
| The code segment is actually "t.Text = p.Character.Humanoid.Bricks.Value" but the text still won't show up |
|
|
| Report Abuse |
|
|