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 » Scripters
Home Search
 

Re: Show value on Text GUI?

Previous Thread :: Next Thread 
RoyMer is not online. RoyMer
Joined: 06 Jan 2010
Total Posts: 1922
18 Jul 2015 05:06 PM
while true do
local player = game.Players.LocalPlayer
script.Parent.Text = player.ds:FindFirstChild("Cash").Value
end

What is wrong with this script?
Report Abuse
ShungTzu is not online. ShungTzu
Joined: 14 Jun 2014
Total Posts: 959
18 Jul 2015 05:09 PM
It's a while loop.

In addition to that problem, it doesn't have a wait.
Report Abuse
TheNickmaster21 is not online. TheNickmaster21
Joined: 04 Oct 2008
Total Posts: 9490
18 Jul 2015 05:10 PM
There is no wait and it will crash!

Try using the .Changed event!

player.ds.Cash.Changed:connect(function()
script.Parent.Text = player.ds.Cash.Value
end)
Report Abuse
RoyMer is not online. RoyMer
Joined: 06 Jan 2010
Total Posts: 1922
18 Jul 2015 05:17 PM
Still cannot get it to work, it is a Local Script in a Text Label, should that be correct?
Report Abuse
TheNickmaster21 is not online. TheNickmaster21
Joined: 04 Oct 2008
Total Posts: 9490
18 Jul 2015 05:18 PM
What is the output in Studio telling you when you test it?
Report Abuse
RoyMer is not online. RoyMer
Joined: 06 Jan 2010
Total Posts: 1922
18 Jul 2015 05:20 PM
Nothing, everything seems correct :/
Report Abuse
XtremeTemper is not online. XtremeTemper
Joined: 02 Mar 2012
Total Posts: 1774
18 Jul 2015 05:21 PM
Try this

script.Parent.Text = ""..player.ds.Cash.Value..""
player.ds.Cash.Changed:connect(function()
script.Parent.Text = ""..player.ds.Cash.Value..""
end)
Report Abuse
TheNickmaster21 is not online. TheNickmaster21
Joined: 04 Oct 2008
Total Posts: 9490
18 Jul 2015 05:21 PM
No errors and it's not changing when you start the game and change the value? Is the script disabled?
Report Abuse
RoyMer is not online. RoyMer
Joined: 06 Jan 2010
Total Posts: 1922
18 Jul 2015 05:23 PM
Nothing is working, no the script is not disabled.
Report Abuse
ShungTzu is not online. ShungTzu
Joined: 14 Jun 2014
Total Posts: 959
18 Jul 2015 05:25 PM
What and where is it?
Report Abuse
RoyMer is not online. RoyMer
Joined: 06 Jan 2010
Total Posts: 1922
18 Jul 2015 05:26 PM
Thanks for the help, but have found a working version
Report Abuse
TheNickmaster21 is not online. TheNickmaster21
Joined: 04 Oct 2008
Total Posts: 9490
18 Jul 2015 05:27 PM
Do you mind telling me how you fixed it?
Report Abuse
ShungTzu is not online. ShungTzu
Joined: 14 Jun 2014
Total Posts: 959
18 Jul 2015 05:27 PM
It wouldn't hurt to find out what was going wrong, so you can know.
Report Abuse
RoyMer is not online. RoyMer
Joined: 06 Jan 2010
Total Posts: 1922
18 Jul 2015 05:57 PM
Didn't fix it, just found a working version
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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