I understand what you mean, and you are correct, i thought u meant another thing
If you ever wish to make a string with quotes, just do [[]]
I understand what you mean, and you are correct, i thought u meant another thing
If you ever wish to make a string with quotes, just do [[]]
ive heard of that, i’m still confused tho. i followed this tutorial as im not to advanced with scripting yet: Saving Player Data with Data Stores! Roblox Studio Simulator Guide Episode 2 - YouTube
Because it will make your code much more readable and will do things that you are already trying to do, like autosaving.
I highly suggest you to do so not because your script can be fixed but because in my personal experience I used to waste a lot of time in datastores scripts until i found profileservice
I will send you through dm an example
its fine, but ide rather stick to the tutorial as im trying to improve
Hi!
I see that you have trouble with saving/loading data. I would recommend looking at this thread, where I give a direct solution to your problem.
what script tho and at what part?
ChangeValue function, localscript
and the old error is back again
don’t bother anymore, i give up
Hi!
Please take a closer look at the thread I sent you. It is almost a plug-and-play reply.
i have looked, however its not loading or saving data, its the fact that the leaderstats have been quote on quote “Deleted”.
im also trying to keep the same code and not use any others like datastore2 or profile
If you give up, in 3 months you will have the same scripting knowledge as right now, and maybe you would have wished not to give up
Try:
Printing before the error, what is leaderstats? What is …?
Rewrite your code?
Try things, but don’t give up, you will sooner or later find the error
i mean on datastores not scripting as a hole
ill try again later, just not motivated rn
Did they even get created? Are you indexing them before they even exist? Do they get created at all or your code just yields? Etc…
local leaderstats = Instance.new(“Folder”, player)
leaderstats.Name = “leaderstats”
local Food = Instance.new("IntValue", leaderstats)
Food.Value = 0
local Coins = Instance.new("IntValue", leaderstats)
Coins.Value = 0
same server script, at the top
I will go now, but if you still don’t find the issue, i will help you in some hours cause no pc right now
Try debugging as much as you can in the meantime