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

How to get universeId from the Roblox Api?

Asked by 4 years ago
Edited 4 years ago

I have a problem to get the universeId from that jsontable i get from the API.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local getgamesevent = game.ReplicatedStorage.Databases.SetGame
local HttpService = game:GetService("HttpService")

local function ongetgameFired(player, gamename)
    local getgameurl = "https://games.rprxy.xyz/v1/games/list?StartRows=1&MaxRows=1&IsUserLoggedIn=true&NumberOfColumns=5&IsInHorizontalScrollMode=false&DeviceTypeId=1&Keyword=",gamename,"&AdSpan=0&AdAlignment=0&v=2&IsSecure=&UseFakeResults=False&SuggestedCorrection=none&SuggestionKeyword=&SuggestionReplacedKeyword=&QueryType=Bucketboost"
    local response = HttpService:GetAsync(getgameurl)
    local data = HttpService:JSONDecode(response)
    local data2 = data.games.universeId

    --incomplete
end
getgamesevent.OnServerEvent:Connect(ongetgameFired)
0
player.UserId RedstonecraftHD 25 — 4y
0
You didn't understand correctly. I want to get universeId of gamename through roblox games API. arkadiusz54 2 — 4y
0
Idk, but i managed to do it by going trough the browser, not the Roblox API. dannelbunker5 0 — 1y

Answer this question