Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Json Encode problems while using Google Firebase, is there any solutions?

Asked by 7 years ago

Today i just started using Google Firebase, after finding out it could help my problem with quick data transfer between servers. I am trying to use Google Firebase to get data quickly from server to server, but ran into this problem when i tried using the module script for this. Apparently trying to call one of the functions to give data always led to an error.

I would very much appreciate it if someone with experience with Firebase could give their advice on how to solve this problem. And underneath this is both the script and module script i used.

Here is the Script that uses the module script:

1local Data = require(script.Firebase)
3 
4 
5Data.Init(Url)
6 
7Data:Patch("users/4402987",{level = 9000, name = "astrallife"})

And here is the Module script itself: https://www.roblox.com/catalog/297221345/Rukiryos-Firebase-Module

I will still show the rest of the script here, for your convenience.

001local module = {}
002 
003--Written by Rukiryo
004 
005--------------------------------------------------
006--------------------EXAMPLES----------------------
007--------------------------------------------------
008--[[
009 
010    Basic Initialization
011        local data = require(game.Workspace.Firebase)
012        local url = 'https://your-firebase-url.firebaseio.com/'
013        data.Init(url)
014        data.Authenticate("my secret token") -- Optional but recommended
015 
View all 144 lines...

Answer this question