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

How can I save weapon unlocks on my game?

Asked by
SIayec 7
3 years ago

I have Buttons that give you weapons. The Buttons cost money to unlock. How can I make it so that when you unlock the weapons they save and stay unlocked if you leave and rejoin?

thank you!

0
use datastoreservice Pupppy44 671 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

You can use a datastore in a way that has a weapon unlocked value, either 1 or 0

Once the player joins, if the data store value is 1, they own the item. If not the value is 0 the player does not have it.

0
Thank you so much This Works!!! SIayec 7 — 3y
0
You are welcome NathanBlox_Studios 212 — 3y
Ad

Answer this question