Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a way to make gui display player's stats without using loops?

Asked by 4 years ago

I use while true do to check money value all times and it shows on gui but i have too much stats. I can not use loop while, it make my game is very lag. So, how can i fix it ?

1 answer

Log in to vote
0
Answered by 4 years ago

You can use the 'Changed' event rather than checking every single second for a change. You can do this by doing

(your stat).Changed:Connect(function()

end

In the function you can make the GUI display the new stat :)

Ad

Answer this question