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 » Scripting Helpers
Home Search
 

Re: Need help With Text

Previous Thread :: Next Thread 
CYNICALCHRIS is not online. CYNICALCHRIS
Joined: 19 Jan 2010
Total Posts: 121
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 is not online. 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
CYNICALCHRIS is not online. CYNICALCHRIS
Joined: 19 Jan 2010
Total Posts: 121
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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