Intro to Firebase (External Database) Using Robase | Roblox Scripting Tutorial

Sdílet
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

Komentáře • 47

  • @Shirooo
    @Shirooo  Před 2 lety +4

    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

  • @yayafino
    @yayafino Před 2 lety +3

    very good video shiro i think i’ll start using this

    • @Shirooo
      @Shirooo  Před 2 lety

      Yay! Thank you yaya! :)

  • @x86_architecture10
    @x86_architecture10 Před 2 lety +7

    I wish there were more videos like this, thanks!

    • @Shirooo
      @Shirooo  Před 2 lety +2

      No problem! Hope it was helpful :)

  • @JustDoom
    @JustDoom Před 2 lety +1

    looks amazing!

  • @Vardra77
    @Vardra77 Před rokem +1

    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?

  • @CoreyPlays
    @CoreyPlays Před 2 lety +2

    How would you go about creating an application center with this?

  • @Spiffybub
    @Spiffybub Před rokem

    so if i were to make a clash royale games would it store the cards and pick the cards i have equipped?

  • @terminatedcreator5590
    @terminatedcreator5590 Před 2 lety +1

    never heard of firebase and u taught me how to use it thanks ;P😀

    • @Shirooo
      @Shirooo  Před 2 lety +1

      Glad to hear it! :) Let me know what you make with it!

    • @terminatedcreator5590
      @terminatedcreator5590 Před 2 lety

      @@Shirooo its gonna help me alot thanks for the info! (and for hearting my comment, really appreciate it).

    • @Shirooo
      @Shirooo  Před 2 lety +1

      @@terminatedcreator5590 Anytime! ^^

  • @DeveloperSimple
    @DeveloperSimple Před 2 lety

    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

  • @bigmancozmo
    @bigmancozmo Před rokem

    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

  • @catafest
    @catafest Před 10 měsíci

    Is this video tutorial current as of September 2023? or are there changes?

  • @NotSar
    @NotSar Před 5 měsíci

    how do i make a player whitelist with boolean with this?

  • @MrKirdid
    @MrKirdid Před 10 měsíci

    Very cool

  • @nolook_x3
    @nolook_x3 Před 2 lety

    Can you use this with roblox data?

  • @xzProGamerOfficalzx
    @xzProGamerOfficalzx Před rokem

    it says "cant parse json" pls help..

  • @silentfilm1746
    @silentfilm1746 Před 2 lety +2

    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.

    • @Symple_Wymple
      @Symple_Wymple Před 7 měsíci +1

      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

  • @platino0324
    @platino0324 Před 2 lety +1

    This can be used to save player stats and if so, would you know how much you could save?

    • @Shirooo
      @Shirooo  Před 2 lety +1

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

    • @platino0324
      @platino0324 Před 2 lety

      @@Shirooo Can you make a tutorial of reading and editing the roblox datastore on an external page? (using json)

  • @scop3030
    @scop3030 Před 2 lety +1

    Would this be a good way of storing and managing bans?

  • @nolook_x3
    @nolook_x3 Před 2 lety +1

    I follow this it didnt work :/

  • @PoppinCorn
    @PoppinCorn Před 2 lety +2

    weird question, is this possible without robase? if so, how?

    • @bigmancozmo
      @bigmancozmo Před rokem +1

      you can't do it in just raw roblox unless you want to literally code robase yourself

  • @lakerprime
    @lakerprime Před 2 lety

    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.

  • @user-dl9vu6nw9m
    @user-dl9vu6nw9m Před 2 lety

    thank you for this!!

  • @ZeroManYT
    @ZeroManYT Před 2 lety

    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

    • @Shirooo
      @Shirooo  Před 2 lety +1

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

    • @ZeroManYT
      @ZeroManYT Před 2 lety

      @@Shirooo big fan any chance u can finish the how to make mini game series?

    • @Shirooo
      @Shirooo  Před 2 lety +2

      @@ZeroManYT Aw thank you!! ^^ For sure, I was definitely planning on finishing that series!

  • @davianbarreto6187
    @davianbarreto6187 Před 2 lety

    i keep getting a script rejected in the output

    • @Shirooo
      @Shirooo  Před 2 lety

      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

  • @amukh1dev542
    @amukh1dev542 Před 2 lety

    I didnt know firebase was free

  • @liam2795
    @liam2795 Před 9 měsíci

    wow this is kinda advance

  • @tolyacool6473
    @tolyacool6473 Před 2 lety

    new is not a valid member of ModuleScript "ServerScriptService.RobaseService"