I have been trying to make a script where a player would insert a placeID and it would display the experience’s name, thumbnail, visits, and a button that would teleport other players into their experience.
Recently, I came across this post, which would be awfully similar to my code
Could I get banned for using roproxy this way?
My current unfinished code
local rs = game:GetService("ReplicatedStorage")
local boothSystemRS = rs:WaitForChild("BoothSystem")
local HttpService = game:GetService("HttpService")
local function getExperienceName(universeId)
local url = "https://games.roproxy.com/v1/games?universeIds=" .. universeId
local response = HttpService:GetAsync(url)
local data = HttpService:JSONDecode(response)
return data.data[1].name
end
local function getExperienceThumbnail(universeId)
local url = "https://thumbnails.roproxy.com/v1/games/icons?universeIds=" .. universeId .. "&size=512x512&format=Png&isCircular=false"
local response = HttpService:GetAsync(url)
local data = HttpService:JSONDecode(response)
return data.data[1].imageUrl
end
boothSystemRS:WaitForChild("UpdateExperienceSign").OnServerEvent:Connect(function(plr, experiences)
print("RECEIVED")
for i, v in pairs(experiences) do
local experienceName = getExperienceName(tostring(v))
local experienceThumbnail = getExperienceThumbnail(tostring(v))
print("Experience Name: " .. experienceName)
print("Thumbnail URL: " .. experienceThumbnail)
task.wait(5)
end
end)