DataStore (Saving Player Data, pcall(), Scopes) - Roblox Advanced Scripting #17 (2024)

preview_player
Показать описание
PATREON🎁
Get Access to My Scripts + More Perks by Becoming a Patreon Member!

DISCORD 📜
Join my Discord Community if you want scripting help, participate in events/challenges, and make friends!

ADVANCED ROBLOX SCRIPTING SERIES 🔴

ROBLOX GUI TUTORIAL SERIES 🎨

BEGINNER ROBLOX SCRIPTING SERIES 🟢

TWITTER / X 🐦

In this 2023-2024 Guide to Roblox Scripting for Advanced Developers, I will go through everything you need to know to continue scripting on Roblox!
My new mission is to have fun teaching everything I know from developing games on Roblox since 2016. We will dive into scripting concepts as basic as printing to as complicated as raycasting. For every episode of this series, I encourage you to do everything I do to gain experience and let it stick with you so that you can create the games you're passionate about on your own. Enjoy this series and remember: being a competent scripter takes time and effort so don't get discouraged if things get too tricky. Remember where your inspirations came from; if you can be a Roblox scripter, then anyone can!

Timestamps:
0:00 Intro
1:57 CONCEPTION
6:07 Enabling Studio Access
7:53 Accessing Data Stores
10:38 SetAsync()
11:23 GetAsync()
13:18 IncrementAsync()
15:14 RemoveAsync()
17:09 pcall
25:50 SetAsync() vs UpdateAsync()
31:28 Scopes
35:25 Saving Player Data
42:44 Optimization Tips/Limitations

Tags:
#roblox #robloxstudio #robloxscript #robloxscripting #robloxadvancedscripting #robloxdev #robloxdevelopment #robloxdeveloper #robloxprogramming #scripting #programming #gamedev #gamedevelopment #gamedeveloper #robloxtutorial #robloxscriptingtutorial

DOWNLOAD ROBLOX STUDIO HERE:
(On the left side under "Quick Links", click on "Studio" and download)

More Resources:
Рекомендации по теме
Комментарии
Автор

🎁Get Access to my Scripts + More Perks by Becoming a Channel Member! 👇

BrawlDevRBLX
Автор

Thank You soo much.
Finding such detailed explanation is really hard to find, all the resources on YouTube are either too old or not so detailed.
It is really a shame that this video still does not have the views it deserves

AdityaPlays.lolpanti
Автор

I now understand STUPID data stores after 3 years

ElipsMakesGames
Автор

You're amazing. I'm from Brazil, english is not my first language but your teaching skills are fenomenal. I can understand pretty much everythin without needing to go back in the video, your oratory it's just too good! Thanks for the video and keep up with the hard work!

cauasales
Автор

Thanks man your so underrated, you deserve more subs, keep up the good work!

Draco_Dev
Автор

for anyone confused about how he has 2 variables connected to the function wrapped in the pcall:

the pcall will have a boolean value (either true or false) when the code is executed and this is assigned to the first variable, which in this example is "success". The function returns its own value upon being run (the dictionary result in this example) and is thus assigned to the second variable.

This doesnt just apply to datastores as you could have something like:
local curr, suc = pcall(function()
return "Hello"
end)

print(curr) -- Output: true (success status)
print(suc) -- Output: "Hello" (the result)


as you can see, the same logic still applies

gullyy
Автор

this was literally the only datastore tutorial that i fully understood and wasnt way too convoluted
thank you soo much, this will bring my games to the next level

snblitz
Автор

Was literally looking for one of these videos and have been following your tutorial. Youre awesome for that

vlogsquad
Автор

Finally a tutorial on Data saving that ACTUALLY WORKS. I cannot tell you how many tutorials i've seen with the same not working code and no explaining done. You honestly deserve A whole lot more views and subscribers than you have.

ScriptFedora
Автор

Thank you for making these videos! They're easy to follow and extremely helpful! I've watched dozens of other videos but the way you explained the content made it feel very approachable. Thank you!

nolanhairr
Автор

i love your videos so much man, they have helped me to understand lua so much better and make me able to code things that i wouldn’t even have understood before watching your videos. you deserve so many more subs and you should definitely keep up the fantastic work!!!

thattarch
Автор

literally the best datastore video I've seen, you explained it so well. Surprised to see you only have 5k subs

DevDucksey
Автор

ive watched 7+ vids on data saves and this was the only vid that helped me this much. ily bro

quickstir
Автор

OMG I've done like 5 different tutorials and yours is the first that worked, and it also makes a lot of sense! Thank you so much for this video, it did a really good job of explaining how datastores work :D

becausewhynot
Автор

man, thank you. No other youtuber has gone through this in detail. Watched the entire video and now I get it, ty

Xelous
Автор

love the way you explain everything keep it up!

spike
Автор

W tutorial, you lowkey helping me keep up that content 💯

ZeroCrypher
Автор

this channel & video needs wayyy more hype!

elorapadilla
Автор

compared to other videos, this video cleared up any mud I had about data stores and now data stores seem pretty simple. thank you! :)

hobis_wife
Автор

You and Jacob and Tweety Gaming (from roblox studio community) are helped me very many :D Thank you so much.

GF-musc