#How to remove/edit data from DataStore from a Local Script

1 messages · Page 1 of 1 (latest)

sonic agate
#

Because when I try to do getDataStore("datafolder") it makes an error because clients can't access DataStore

frank sleet
#

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

sonic agate
#

how do I do this tho

summer minnow
#

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

▶ Play video
#

(No problem)

sonic agate
#

oo

#

ty ill watch it

summer minnow
#

😉

#

Ping me if you have any questions

sonic agate
hollow grailBOT
#

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

summer minnow
#

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 ?

sonic agate
#

like for exemple if i want to discard an item, i want to remove the item data from the server data storage

summer minnow
#

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

sonic agate
torn meadow
#

Please Google your question

sonic agate
frank sleet
sonic agate
#

is it RemoveAsync ? Because if it is, i tried using it but it doesnt work

sonic agate
summer minnow
#

What’s the datatype of your data ?

sonic agate
summer minnow
#

No

#

"String", "Number", "Boolean"

torn meadow
#

Try using it like they use in the documentation

sonic agate