#Value Help!!!!

113 messages · Page 1 of 1 (latest)

marsh ruin
#

Show dataStore and your click event I think

scarlet frigate
#

Make sure you are setting value correctly using .Value

craggy frigate
#

I did many times

craggy frigate
#

When irs back ill send it

gleaming wren
#

Is it in a script or local script

craggy frigate
#

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

craggy frigate
#

When im on ill provide more picture and info

craggy frigate
#

Ill be sending this in a couple hours

neat otterBOT
#

studio** You are now Level 1! **studio

scarlet frigate
#

Do it in script

neat otterBOT
#

studio** You are now Level 2! **studio

scarlet frigate
#

in a server script

craggy frigate
#

Hunger is the value

#

Set to 100

#

This is when played

#

But every other value is normal

marsh ruin
#

Script

craggy frigate
#

One moment

#

Its not letting me send

marsh ruin
#

what is config

craggy frigate
#

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

marsh ruin
#

There is a lot of nonsense in your script

craggy frigate
#

Thats how i was taught

#

Im not the most experienced

marsh ruin
#

first the MyDataStore variable which is supposed to do

craggy frigate
#

wdym which is?

marsh ruin
#

DataStoreService:GetDataStore("Data".. config:FindFirstChild("DataVersion").Value)

#

??

#

What does it mean to do all that?

#

Just with a name you already have a database

craggy frigate
#

The end part is for the version its the way to be able to reset it

#

Ah

#

Should i learn a diff way?

marsh ruin
#

What does the create table function do?

marsh ruin
craggy frigate
#

Alright ill try to rework it

neat otterBOT
#

studio** You are now Level 2! **studio

craggy frigate
#

Should i create the userstats through the script?

marsh ruin
marsh ruin
#

example

#

I would like to give you an example but at the moment I am on mobile

#

But still, give me a few minutes

craggy frigate
#

All good imma try to make my own one then show you it

marsh ruin
#

Ok

craggy frigate
#

Ill do it right after my stats menu js bouta finish and ill make it

#

If youu get to the example first pls send

marsh ruin
#

Yes but later

#

I'm a little busy

craggy frigate
#

Alright

craggy frigate
#

Ping me @marsh ruin when u can

marsh ruin
#

@craggy frigate

craggy frigate
#

Hey

marsh ruin
#

so exactly how can i help you

craggy frigate
#

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

marsh ruin
#

Do you want me to give you an example of the way I do it or the simplest way?@craggy frigate

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

marsh ruin
#

This is how I make my dataStore (it should be noted that this is from an obby that I am creating)

craggy frigate
#

Whats this CodesReedem?

marsh ruin
#

redeemed codes

craggy frigate
#

Oh like the twitter thing

#

i shouldnt worry bout that

#

Can i use ur code and change it to my needs?

marsh ruin
#

Yes, no problem

craggy frigate
#

May i send it hear and ask if it works?

neat otterBOT
#

studio** You are now Level 3! **studio

marsh ruin
#

even though this was created in a Module Script

marsh ruin
craggy frigate
#

Shall i create it in a module script?

#

@marsh ruin

marsh ruin
#

something like that

#

names don't matter

craggy frigate
#

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!!

marsh ruin
#

It would not be necessary, remember that this script is to save and load the player's data

craggy frigate
#

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

marsh ruin
#

Yep

#

So you would have an order

craggy frigate
#

Alright

#

Also uh @marsh ruin
Every how long does it save and does it save everytime person leaves?

#

Sorry for pings

marsh ruin
#

Saves it when the player leaves the game

#

Saving data frequently can cause errors

craggy frigate
#

isnt it usually per 300 seconds and or when player leaves

marsh ruin
craggy frigate
#

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

marsh ruin
marsh ruin
#

maybe you have some mistakes in the script, i made some mistakes with some names spanishkek

craggy frigate
#

@marsh ruin ill be home soon to show u it