#Value Help!!!!
113 messages · Page 1 of 1 (latest)
Make sure you are setting value correctly using .Value
I did many times
i currently dont have elctricity
When irs back ill send it
Is it in a script or local script
Intvalue isnt in a script
its in a folder inside my datastore script and i clone the folder into the player
Ive ser the value of the IntValue to 100
When im on ill provide more picture and info
Ill be sending this in a couple hours
** You are now Level 1! **
Do it in script
** You are now Level 2! **
in a server script
Hunger is the value
Set to 100
This is when played
But every other value is normal
Script
what is config
Its a model inside the script
For saving, AutoSaving, and version
For auto saving value is 5 so every 300 seconds it autosaves
Autosaving is bool value
Version is to reset datastore
There is a lot of nonsense in your script
first the MyDataStore variable which is supposed to do
wdym which is?
DataStoreService:GetDataStore("Data".. config:FindFirstChild("DataVersion").Value)
??
What does it mean to do all that?
Just with a name you already have a database
The end part is for the version its the way to be able to reset it
Ah
Should i learn a diff way?
What does the create table function do?
Yes, something that is easier and more functional. Even though you have the idea of how to do it, you just need to organize your ideas to make an organized dataStore
Alright ill try to rework it
** You are now Level 2! **
Should i create the userstats through the script?
I think it would be better if you create each value, with instance.new()
Yep
example
I would like to give you an example but at the moment I am on mobile
But still, give me a few minutes
All good imma try to make my own one then show you it
Ok
Ill do it right after my stats menu js bouta finish and ill make it
If youu get to the example first pls send
Alright
Ping me @marsh ruin when u can
@craggy frigate
Hey
so exactly how can i help you
Hey so uh i need help with the datastore
what i tried hadnt worked
and i had to go off for a qhilw
while
and im gona be on in 20 misn if u can showme a way to do it?
@marsh ruin
Do you want me to give you an example of the way I do it or the simplest way?@craggy frigate
Give me an example of your way
@marsh ruin
also btw i managed to fix the Hunger issue
just its now bugging and not saving sometimes
This is how I make my dataStore (it should be noted that this is from an obby that I am creating)
Whats this CodesReedem?
redeemed codes
Oh like the twitter thing
i shouldnt worry bout that
Can i use ur code and change it to my needs?
Yes, no problem
May i send it hear and ask if it works?
** You are now Level 3! **
even though this was created in a Module Script
yep
Alright imma try to work it out
Thank you
@marsh ruin Ive got a question
If i wanna have a userstats for such as XP Level etc etc and for stats should i make a seperate one ?
By stats i meant Like statupgrades!!
It would not be necessary, remember that this script is to save and load the player's data
Yeah i know but i meant like should i make a userstats for Gold, Level, Xp for example then a folder called upgrade for Statpoints, VitalityUp etc
Alright
Also uh @marsh ruin
Every how long does it save and does it save everytime person leaves?
Sorry for pings
isnt it usually per 300 seconds and or when player leaves
It is better to let it not save the data frequently
Alright
Can i send the code for u to check?
Had to hop off for school
ill get back to this when im@ home
thanks
Yep
Better write to me in DM, so it didn't take me long to respond
maybe you have some mistakes in the script, i made some mistakes with some names 
@marsh ruin ill be home soon to show u it