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

Whats the best way to create and save a value without leaderstats?

Asked by 4 years ago

I don't have an issue, but just a general question. The way I've done this up until now is by just inserting a number value but not putting it into leaderstats. For example, a backpack in a simulator for how much it can hold do I just insert a number value? I just want to know if there is a better way to do this. Thanks.

1 answer

Log in to vote
1
Answered by
chasedig1 115
4 years ago

Create a folder in the player, call it Stats. This will be the folder for the things they have, backpack capacity, how much currently in their backpack, etc.

Also, don't use NumberValues for backpacks. Instead, use IntValues. NumberValues have floating point errors, and extra precision you don't need!

0
Great! Just what I was looking for. Thank You! CosmicIsGod 139 — 4y
Ad

Answer this question