So I’m to make a button that gives the player cash, but I don’t want to use a remote event to change the leaderstats, is there any other way to do that?
In local script you can’t change the leaderstats value you must fire with remote event
1 Like
A local script can change any value, but the value will not get replicated to the server, that means the stat value gets only changed locally.
Solution
Instead of using a localscript you could use a script , scripts can also react to buttons but with a short delay.
Tip
If your localscript tweens anything, then keep it, but remove the lines where the stat values get changed, and make sure the scripts runcontext is set on legacy.
5 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.