How to Replicate Cash Data to Client Using Profile Service on Roblox?

I’m working on a Roblox game, and I need to replicate the player’s cash data from the server to the client using Profile Service. The goal is to display the cash amount on the client side. However, I’m uncertain about the best approach to achieve this, especially since the cash updates frequently.

My main concern is whether it would be inefficient to keep calling remotes to fetch the cash data from the server every time it updates. I’m looking for a method to keep the client updated without causing performance issues.

For context, I’m not using leaderstats or a leaderboard I just need to get the cash value from the player’s profile and display it on the client.

Any advice or suggestions on how to efficiently replicate and display this data would be greatly appreciated. Thanks!

2 Likes

you could make an attribute on the script called “Cash” and update it on the server everytime it changes and on the client listen for when its changing and display it

3 Likes

Like the person above me said, I would consider using attributes in this case.

However, for all my stats that I use profile service for, I usually keep them on some sort of leaderboard whether named “leaderstats” or not, just to make it very simple to access all of my stats from some place. It also makes it easy to do checks from the server.

1 Like