#progress saving
1 messages · Page 1 of 1 (latest)
** You are now Level 1! **
datastores
How do I implement it tho ?
🙂
That erm.dosent help much
sorry, when did you get the notion that my name was Google?
Buddy YOU replied to the HELP ticket
right, because google would just suddenly reply to the help ticket?
Weird how we're still having this conversation instead of going our separate ways, and for you, a Google search
do some fucking research you fat prick
lazy ass bum
whats hard about explaining a solution, you're calling him a fat prick only because he didn't google something, chill out
I'd call him a fat prick any time tbf
I hate people who refuse to use resources
so incessant about demanding something from people
@round venture are you saving tools in your inventory, and how are "structures" built?
I didn't demand fuck all I asked a simple question if U didn't wanna answer fuck off 😭😭 so desperate to start a fucking argument when it's a forum literally fucking full of questions and Ur getting pissed off cuz I asked one are you slow ? 😭
They are meshparts that just get coppied and attached to eachother
Because apparently this doesn't insinuate a demand for a response tailored to spoon-feeding?
roblox is best used with data oriented designs
you can't save objects nor its reference but an id to identify what it is
You told me that U weren't Google after you responded to the ticket I was just stating the point
by the way, have you used Google yet
I'm going to assume that you haven't
You still going 😭
How bored are you 😭😭
As far as the structure goes, you can consider buffers
Trust me when I say that in my hatred there is love; love enough to hate that you refuse to learn and grow for yourself, in this particular case through doing research
comt is not wrong with being self sufficient but his way of saying it is out of line
yea there's no point in being rude
Just unnecessary
sure there is, otherwise why would I
it makes me feel better about talking to him, so I think it's worth it
Your self worth that low you gotta insult ppl to make it worth talking to them ? 😭
self worth? This isn't about me, it's about you
You made it about yourself 😭
** You are now Level 2! **
Yeah, I gotta take ownership of some of it 🙂
all U had to do was j ignore the ticket bro didn't mean to offend you by asking 😭
nah I go through some of these to give written solutions, just not to become a whole ass dictionary
if you want to know something, please take initiative
yo so if u need the server side script i can give it from one of my old games
Yea that would be great
i will it in parts since the full script is to long
Okay Ty
local ds = game:GetService("DataStoreService")
local dms = ds:GetDataStore("dms")
-- get the values that u want to save
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = plr
--make the values u want to save in the leaderstats
local value = Instance.new("IntValue") -- smth like this
value.Name = "Value"
value.Parent = leaderstats
local plrUserId1 = tostring(plr.UserId)-- get the player's user id
local data = dms:GetAsync(plrUserId1)--get the player's data
if data then
else
print("data was not found")
end
end)
this is the first part
it is highly recommendable to pcall API methods
game.Players.PlayerRemoving:Connect(function(plr)
local plrUserId2 = tostring(plr.UserId)-- get the userid
local dataToSave = { -- put the plr's data that u want to save
}
if dataToSave == true then
dms:SetAsync(plrUserId2, dataToSave)
else
print("data did not save")
end
end)
** You are now Level 1! **
i know this was a old script that i used
but it still works pretty well with out it
the second part of the script
if dataToSave == true will always be false in your code
this script is a mess
i know
data loss will happen in that script
and the last player will never get their data saved
I also want to point out that saving players in a FIFO order on bindtoclose is sufficient to ensure activation of setasync