[ProfileService Question] Can I access a players data in a local script without using remotes?

I am trying to display the players cash on a label on their screen, and they get cash pretty fast so I wouldn’t want to use remotes so often to get the players data from the server.

  1. What do you want to achieve? Keep it simple and clear!
    I want to display the local players Cash on a TextLabel.

  2. What is the issue? Include screenshots / videos if possible!
    The label will be updating about 15 times per second. I think that is pushing the limits of remote firing for me.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I could not find anything when I searched through posts here.

I was thinking of storing the values in a place that both server and client can view, like a module script under StarterPlayerScripts and updating the label based on those values, but someone told me this wouldn’t work.

Unless you apply the Data on a ValueBase (which are stuff like StringValue, NumberValue, etc), Attribute, in places the Client can access, then no, only the Server will have access to the Data, thats how it normally is in general

If you have Values, or Attributes, check if the Value has changed using .Changed, or :GetAttributeChangedSignal, much more efficient (Assuming that is what you are using)

1 Like