The BEST way to save player game data in 2024: Roblox studio ADVANCED Scripting tutorial

preview_player
Показать описание
In this roblox studio advanced scripting tutorial, I create a fully functional roblox studio player class that saves the players roblox studio game data into a roblox database using the roblox studio datastore service. Using roblox studio scripting using roblox lua, we first create a roblox studio script that sets up the player saving and loading. We then use roblox studio module scripts to and roblox functional programming to save the player data in roblox studio and create a player class using roblox studio OOP. This allows for you to store all of the players roblox game data in 1 roblox studio script. Hopefully this roblox studio scripting tutorial helped you create better roblox studio games and if it did leave a like and subscribe for more advanced roblox scripting tutorials.

The roblox studio scripts used in todays advanced roblox scripting tutorial:

The RBXL file that holds the scripts to today's video:

Roblox advanced scripting tutorial episode 2 timestamps:
0:00 Introduction.
0:22 The final roblox scripts.
0:50 Roblox game scripts structure.
1:20 The server script.
1:27 The server script: Services.
2:10 The server script: Variables.
3:49 The server script: Events.
8:10 Saving the player data in roblox studio.
11:10 Using Functional programming to save player data.
12:43 Roblox studio player class using OOP.
22:10 Debugging our roblox scripts.
22:50 Final roblox studio test.
23:23 In the next roblox scripting video...
23:38 Conclusion.

Hopefully you enjoyed this roblox scripting tutorial: The BEST Way To SAVE Player Data In Roblox Studio. Roblox Studio ADVANCED Scripting Tutorial 2.
Рекомендации по теме
Комментарии
Автор

surely im not the only one, that thinks he sounds very similar to AlvinBlox

Noon
Автор

I'm so glad I stumbled upon your channel, this is actually pretty informative and your way of explaining is clear and direct to the point. Keep it up, spread the word and my man, you are going places.

vierdant
Автор

Thank you Thank you Thank you!!
This is my first exposure to class creation and multi-file script management in Roblox, I learned so much from this one video

kaleoscreations
Автор

This is the cleanest way to save data i have seen so far. You saved me so much time. Thanks

abdulrahman-zfnn
Автор

Thanks for the tutorial! It was really helpful and I was surprised when it actually worked.

Erolsaurus
Автор

watched this video while barely knowing tables, now im here learning about metatables 🔥

Karpizzzzzz
Автор

Great video along with the explanation

Gattostrano
Автор

I like this, but i think calling it a player class is slightly confusing, so I call it a profile instead. Really good video

seadrown
Автор

very underrated youtuber. Keep up the good work

VeryProPlayerYesSir
Автор

Can you show how this would be implemented if you wanted to do a 3 Slot Save system, where for each slot you can either Create a New Game or Load Game.

Jaypiasco
Автор

Oh my lord, you are so clever! I learned plenty of things from this, I especially like the graphics you put up to make the subjects much easier to digest

goose
Автор

great video, if I had seen the code I might have been scared, but in half an hour I learned something very useful, thanks

gigione
Автор

Dang bro you are so good at explaining this without using 500 steps for accessing the workspace or talking in traditional mongolese.

Asbreukie
Автор

Hey AshRBX can I use this script to save leaderstats? If so how do I?

The_Kitty_Games
Автор

very in-depth tut and good video - fyi anyone watching this in 2024, make sure you download the script in the description there are a few lines of code that have been added that weren't in the video, not sure what they're for but it makes it work lol

though i am trying to see if this can be used to save checkpoints in an obby type game so when the player returns they show up on the same checkpoint, if anyone else is trying to do the same let me know if you figure it out before me lol

Jscodin
Автор

Thanks so much for this! Just a question though how can I connect to the PlayerClass from another script to set and update values and have those also save and load. For example I have a money spawner and when I walk over it the touched event should give me money but that script is in a completely different area

JDAWG
Автор

the data script is GREAT!! Just 1 question, is it better than datastore v2? The one that uses ordered data store, promises etc.

notdimrb
Автор

I loved your video and your tutorial thanks for everything but my output says "cant parse json" and cant load data please help me i am subscribed

thegamepea
Автор

Great video! But I think that at the part of building the constructor function, it would be better to name the second parameter not with self, cause it could confuse people about the second self there. Also, you forgot to mention that it could be necessary to use Session Locking to prevent some scenarios ( and update async is better for this )

moravi
Автор

I really like this OOP way of handling player data. How would one implement this in a game with stats when you cant see the data and structures when testing? Would you write a loop to create player folder data or just do logging until you ironed out the code so no players see the data on the client side?

randallmason
visit shbcf.ru