of     1   

LeikaZ
#183614728Sunday, February 14, 2016 9:23 PM GMT

So I made Gui which displays Value, and how do I make it so it updates every time it gets new value not when I die? Do I use changed function or something?
gum444
#183614832Sunday, February 14, 2016 9:24 PM GMT

you mean it stops getting Value when your dead?
LeikaZ
#183615110Sunday, February 14, 2016 9:28 PM GMT

No for example the value is 0 and I win a round and get some money so its 100 now, but it doesnt show it until I reset. Then the gui displays 100
gum444
#183615138Sunday, February 14, 2016 9:29 PM GMT

while true do wait(1) print(game.Workspace.Value) end
gum444
#183615188Sunday, February 14, 2016 9:30 PM GMT

that will print your value every second. you need to do the rest for the gui, but if you need help with that I will help
LeikaZ
#183615611Sunday, February 14, 2016 9:35 PM GMT

What about lag?
LeikaZ
#183616127Sunday, February 14, 2016 9:43 PM GMT

Would it work with .Changed?
solbrillan
#183616341Sunday, February 14, 2016 9:46 PM GMT

stats = game.Players.LocalPlayer.leaderstats while true do wait(.1) if stats.Points = stats.Points then stats = game.Platers.LocalPlayer.leaderstats -- Run GUI update code here here end -- Don't worry about lag, this doesn't update the gui unless it changes, checking a value barely takes any performance, and there is no way around it.
solbrillan
#183616461Sunday, February 14, 2016 9:47 PM GMT

You need two 'end' at the end, obviously. But you get the point.
LeikaZ
#183616700Sunday, February 14, 2016 9:51 PM GMT

Thanks man!

    of     1