#How to remove/edit data from DataStore from a Local Script
1 messages · Page 1 of 1 (latest)
you don't, you send remote events with the data you want to change
or update
just don't send the actual data through the remote
like amount of coins
do sanity checks through the server
and then insert to the player
how do I do this tho
Use a remote event
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...
(No problem)
So I might have difficulties but I think I could solve it myself if I could see the the server's DataStoreService, is there a way to do that?
** You are now Level 1! **
You conmect the OnServerEvent in your datastore script
Wait hold up
Why do you need to have access to the data in the client?
To modify the data or to just have it ?
i need to modify / remove the data
like for exemple if i want to discard an item, i want to remove the item data from the server data storage
You could use a single event
And make at least 3 arguments
The first one would be the value affected, then the 2nd would be a datatype like a number (1 or 2) and if it’s 1 you destroy the value, but if its 2 you edit it by using a 3rd argument that would be the value you would set your data to
alr thx now i know how to edit but how do I remove the data, when i do data:Destroy(datapath)
it says the Parent is locked or smthing like that
Thats also why I want to see by myself how the data is stored from DataStoreService
What is the data ?
You don't use :Destroy to remove data from a datastore
Please Google your question
so i made datastore = game:GetService("DataStoreService")
then data = datastore:GetDataStore("item_folder")
oh okay
"Data:Destroy()" 💀
is it RemoveAsync ? Because if it is, i tried using it but it doesnt work
no i put the path to the data i wanted but didnt work too
What’s the datatype of your data ?
u mean, part,model etc ?
Yes it is
Try using it like they use in the documentation
i want to remove a key from a table
kk