#Im trying to make an character saving system, however, it doesnt work.
1 messages · Page 1 of 1 (latest)
must be the wind
wdym
Do you have any errors
okay
lets fix this
oh i get it
u have to paste this
While true do
instance.new("Part")
end
tell me what it prints
its gonna be help ful
ty, i tried in studio said: "Not Responding"
So helpful!
no worries
try this instead
for i, x in game:GetDescendants do
Part = Instance.new("Part", workspace)
end
no no actually
@wary leaf try this instead
Game.Workspace.Baseplate:Destroy()
local Characters
local Base
local Datastore = game:GetService("DataStoreService")
local DS = Datastore:GetDataStore("CharacterSave")
game.Players.PlayerAdded:Connect(function(player)
local Name = player.Name
end)
Nvm this is a troll post
u dum
😭
wdym troll post
youre obviously trollingt
cus if you can use datastore, theres no way you cant handle indentation and closing functions
???
wdym bro
theres barely any troll posts here
plu
plus
its my first time using datastore
I swear to god if youre wasting my time and i finish this script for you
im going to crash out
ok bro
all i did
is ask just for help
not crashouts
local Characters
local Base
local Datastore = game:GetService("DataStoreService")
local DS = Datastore:GetDataStore("CharacterSave")
game.Players.PlayerAdded:Connect(function(player)
local Name = player.Name
for i, v in workspace.Bases:GetChildren() do
if v.Owner.Value == Name then
Characters = v.Characters
Base = v
end
end
DS:SetAsync(player.UserId, Characters)
Base.ChildAdded:Connect(function(Char) -- this is also useless
DS:SetAsync(player.UserId, Characters -- this is useless
end)
end)
game.Players.PlayerRemoving:Connect(function(player)
DS:SetAsync(player.UserId, Characters)
end)
if this doesnt work, then its your fault
it does work!
when i close my eyes, it does.
u should learn datastoring
cuz ure script is not correct
of using datastore
u just set the data
but never override the data with GetAsync
it would be useful when you show the explorer too
since we dont know what "workspace.Base" is
bases*
@wary leaf
oh right
like
workspace.base is AN folder.
so when a player joins
and external script adds an pre-made base for the player
that spawns in a random position
so, when you buy an character.
it stays as an collection
so when you join next time, it appears on its slot.
workspace
and the last one
the loadcharacter is the script to load the characters that you bought
ignore brain
its js some brian griffin model
in ur for loop
theres Owner
but ur folder is empty
is there another script that adds the "Owner" since u mentioned u can buy characters
because, when a player joins
the base gets cloned THEN transfered to the folder
ahh that inside replicatestorage
so it becomes their base
yea so basically
ur issue is with the saving
I think ure new with datstore?
I can show u an video that goes 10mins for datastore
and it actually explains when u listen carefully
so ure only issue is just to understand the datastore usage
i am
yea okay let me send the video
after that u might understand
no its fine
oh
Datastore can be tricky to learn in Roblox Studio, but hopefully this video helps you to finally understand this topic.
As as always, keep leveling up, be safe, and I'll see you when I see you, peace.
Discord Community :https://discord.gg/7ZyCPE5tjX
Download Place: https://www.mediafire.com/file/42agszqyh0oxbnh/DataStorePractice.rbxl/file
if u want a advanced one heres this
PATREON🎁
Get Access to My Scripts + More Perks by Becoming a Patreon Member!
https://www.patreon.com/BrawlDev
DISCORD 📜
Join my Discord Community if you want scripting help, participate in events/challenges, and make friends!
https://discord.gg/WC6kPu5W5P
ADVANCED ROBLOX SCRIPTING SERIES 🔴
https://www.youtube.com/playlist?list=PLQ1Qd...
its 40 min
but hard to understand
but its about values
never heard of that
im not even familiar with datastore that much
well if u wanna store instances
look it up
cuz I never tried to store instances before
ok
In this tutorial, I show and explain how you can save objects to a datastore in Roblox Studio. This is not a datastore tutorial in itself, so it assumes you have at minimum, a basic understanding of datastores and how to use them. This tutorial is meant to instead explain the process of basic serialization and how it can be used by saving a set ...