Intro to Firebase (External Database) Using Robase | Roblox Scripting Tutorial
Vložit
- čas přidán 29. 07. 2024
- Hey guys, I was super excited to make a video on Firebase! I've used it for a couple non-Roblox related projects (Node.js, React, etc.) and found it extremely easy to use! I admit to having tried using... Trello.. as a database on Roblox in the past, and that wasn't great haha.
Hope this little demo and tutorial helps you guys get started with using Firebase on the platform! We use ShaneSloth's Luau wrapper, Robase! Feel free to reach out in the comments if you have any trouble whatsoever. :)
-- Video Chapters:
0:00 Why Firebase?
0:16 PART 1: Quick Demo
0:46 PART 2: Place Setup
Place File Template (Uncopylocked) - www.roblox.com/games/76968482...
1:01 PART 3: Getting Robase
GitHub Release (Download RobaseService.rbxm) -github.com/Arvoria/RobaseServ...
Robase DevForum Post - devforum.roblox.com/t/robase-...
Robase Guide - info.arvorian.com/RobaseServi...
1:28 PART 4: Intro to Firebase
Firebase Website - firebase.google.com/
What is a NoSQL database? - www.mongodb.com/nosql-explained
What is JSON? - www.w3schools.com/whatis/what...
2:19 PART 5: Firebase Project Creation
Firebase Console - console.firebase.google.com/u/0/
2:34 PART 6: Realtime Database Setup
2:58 PART 7: Firebase Pricing (Free to a point!)
3:41 PART 8: Getting the Database URL
4:05 PART 8.5: Getting the Authentication Key
4:29 PART 9: Saving Database URL and AUTH to DataStore
local DataStore = game:GetService("DataStoreService"):GetDataStore("Secret")
DataStore:SetAsync("URL", "")
DataStore:SetAsync("AUTH", "")
5:26 PART 10: Script Overview
5:54 PART 11: Variables
8:39 PART 12: applySettings()
9:44 PART 13: initializeSettings()
11:11 PART 14: keepUpdating()
12:18 PART 15: Calling Our Functions
12:29 All Done! (additional thoughts)
12:51 Outro + Dolphin Dance
Thanks for watching! :) If you enjoyed this video or were able to learn something from it, I'd really a appreciate a thumbs up. Please subscribe for more content! Always open to feedback, so feel free to reach out!
-- About
A bit about me, I'm a college student studying computer science! I got my first exposure to programing through Roblox in 2012 while I tried to help a friend make a GUI in this game: www.roblox.com/games/62337892.... I'm really thankful to have gotten the exposure as I really enjoy working with software, and my mission is to give back and help give other kids the same exposure! As a female programmer, I also help to get rid of the notion that female programmers don't exist or aren't equally capable, especially in the Roblox space.
-- Social Links
Discord Server: / discord
Twitter: / kavi_viv
Twitch: / kv_viv - Zábava
Thanks for watching! :)
In the spirit of relentless improvement, here's some code improvement suggestions by the community:
@Zero Man - Use the improved version of wait(), task.wait(), to prevent errors and possible charges
See more on the task library here: devforum.roblox.com/t/task-library-now-available/1387845
very good video shiro i think i’ll start using this
Yay! Thank you yaya! :)
I wish there were more videos like this, thanks!
No problem! Hope it was helpful :)
looks amazing!
Thanks JustDoom! :)
Hi Shirooo, I was wondering how to use this for merch codes in my game. When I create a merch code inside of the game it adds it to the data table and inserts into the data base but never saves it apon re-joining the game again can u help me with this issue please?
How would you go about creating an application center with this?
so if i were to make a clash royale games would it store the cards and pick the cards i have equipped?
never heard of firebase and u taught me how to use it thanks ;P😀
Glad to hear it! :) Let me know what you make with it!
@@Shirooo its gonna help me alot thanks for the info! (and for hearting my comment, really appreciate it).
@@terminatedcreator5590 Anytime! ^^
Hi! So I'm getting an erorr from the console that's telling me I'm exceeding the 50 character limit for the URL and I think that's it's giving me this error because I have a firebase URL that has more than 50 characters. How can I fix this? Help is appreciated!
From,
DeveloperSimple
thx i needed a way to make it so i can see recordings to look for hackers, so when the server shuts down i can save the recording to firestore in json format and i wrote a script in another game to replay the recordings
Is this video tutorial current as of September 2023? or are there changes?
how do i make a player whitelist with boolean with this?
Very cool
Can you use this with roblox data?
it says "cant parse json" pls help..
Crazy thing. A lot of devs use external databases to go avoid roblox database system which isn't responsing fairly well and sometimes can freeze your game (even if you store your data with ProfileService manager).
Im not sure is it good practice to use default roblox data store in this scenario for these purposes. lets imagine if DS:GetAsync() function won't work properly as it expected.
Pretty sure they use it for a global database where they can easily acess data across a number of games such as trading plaza and the main game
This can be used to save player stats and if so, would you know how much you could save?
I personally wouldn't use it to save player stats if DataStore is an option (because data is unlimited through DataStore). But, if you really wanted to use Firebase for it, you can! Best way to find out how much is really okay is by doing a demo with the number of players you expect to have per server and checking your "Usage" tab inside of the Realtime Database screen. By monitoring usage, you can get a better idea of how much you can do on the free plan (keeping in mind the 10 GB transfer quota is monthly).
@@Shirooo Can you make a tutorial of reading and editing the roblox datastore on an external page? (using json)
Would this be a good way of storing and managing bans?
You can use roblox datastores for that
I follow this it didnt work :/
weird question, is this possible without robase? if so, how?
you can't do it in just raw roblox unless you want to literally code robase yourself
Hi, the script doesn't seem to be working for me. The problem seems to be that it is not being called in at all; I put a print() function at the start and there is no output.
it only happens to me when i put it inside of a function
@@dev_blakee9601 dw I fixed the problem lol
@@lakerprime oh ok
thank you for this!!
No problem :)
I found a problem with your code your while wait(10) loop would be very bad as wait() can return an error so if its constantly accessing the data store from Google returning a error could lead to charges to the owner of the data store instead you should use task.wait(10) to ensure that no error will be returned
Thanks for catching that! I've never had wait throttle on me, but it's not a bad idea to use the improved version of wait, task.wait() for an important task such as this. :)
@@Shirooo big fan any chance u can finish the how to make mini game series?
@@ZeroManYT Aw thank you!! ^^ For sure, I was definitely planning on finishing that series!
i keep getting a script rejected in the output
Hmmm I've never had that happen before. If you still need help, I'm happy to do so in the Discord server! discord.com/invite/bCQ6z9z
I didnt know firebase was free
wow this is kinda advance
new is not a valid member of ModuleScript "ServerScriptService.RobaseService"
you have to require the module