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: How do I make a GUI that displays text from a int value?

Previous Thread :: Next Thread 
Arkitek is online. Arkitek
Joined: 09 May 2015
Total Posts: 13095
18 Jan 2017 07:52 PM
Kind of like a GUI that displays how much money you have, but doesn't show to other players.
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
18 Jan 2017 07:55 PM
local player = game.Players.LocalPlayer
local stats = player:FindFirstChild("leaderstats")
local money = stats:FindFirstChild("Money")

script.Parent.Text = money.Value

money.Value.Changed:connect(function()
if script.Parent.Text ~= money.Value then
script.Parent.Text = money.Value
end
end
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
18 Jan 2017 07:55 PM
assuming your game has FE you can use a remote to pull the value from the server in case the client is trying to change it

Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
18 Jan 2017 07:56 PM
@goml
the problem with that is if the client is trying to exploit it'll show the false value (if FE is on)

Report Abuse
Arkitek is online. Arkitek
Joined: 09 May 2015
Total Posts: 13095
18 Jan 2017 07:59 PM
That's the exploiters problem if they try to change the value
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
18 Jan 2017 08:00 PM
if FE is off then they'll most likely be successful lol

Report Abuse
Arkitek is online. Arkitek
Joined: 09 May 2015
Total Posts: 13095
18 Jan 2017 08:01 PM
not if the value is in serverstorage
Report Abuse
Arkitek is online. Arkitek
Joined: 09 May 2015
Total Posts: 13095
18 Jan 2017 08:19 PM
so um ur script displays how much money u had at the beginning, but it doesn't update when you get more
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