Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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 :)

This discussion is preserved as it was. New answers, comments, and votes are closed.