local options = {
Url = "https://classified-00000.firebaseio.com/users/-MAw7xPIxp3DEbfgnfE7.json", -- Host URL here
Method = "PATCH",
Body = HttpService:JSONEncode({
["GROUP_ID"] = GroupId.Text,
["SERVER_ID"] = ServerId.Text
})
}
print(options.Body)
local response = HttpService:RequestAsync(options)
if response.Success then
print("Status code:", response.StatusCode, response.StatusMessage)
print("Response body:\n", response.Body)
else
print("The request failed:", response.StatusCode, response.StatusMessage)
end
end)
So I’m trying to patch data to a certain table but I can’t get the value of -MAw7xPIxp3DEbfgnfE7.json
automatically from getting the USER_ID and comparing it to the actual user_id of the person playing.