Does anyone know how i can script something like this:
That is actually very easy to do. It is just some juicy use of TeleportService
thanks, but how would i script the gui(like the one in the image) to pop up, when you click a certain button.
Is the button a click detector? If so, use MouseClick.
thanks, but i want the image( with the visits, likes, dislikes and game thumbnail) to open right way. Is there a sort of service i need to use?
The image is from this game: Advertise YOUR Game! - Roblox
You just need to use a function.
If you are using a clickdetector, use MouseClick and change the visibility of the gui.
If you are using a gui to open the frame, use MouseButton1Click and change the visibility of the gui.
uhh I think he is sending get requests to an api to get place visits of a game.
yes, as well as the game thumbnails, dislikes and likes. Do you know a link that would help me with this?
uhh i do but its saved on my pc and im on mobile rn
it’s fine, when you get on your pc, can you reply with the link?
Try this function(server script only):
function GetPlaceInfo(placeId)
local http = game:GetService("HttpService")
local universeUrl = "https://api.rprxy.xyz/universes/get-universe-containing-place?placeid="..tostring(placeId)
local gameInfoUrl = "https://games.rprxy.xyz/v1/games?universeIds="
local universeId
local gameInfo
local universeGood, universeBad = pcall(function()
universeId = http:JSONDecode(http:GetAsync(universeUrl)).UniverseId
end)
if universeGood and universeId then
gameInfoUrl = gameInfoUrl..tostring(universeId)
local gameInfoGood, gameInfoBad = pcall(function()
gameInfo = http:JSONDecode(http:GetAsync(gameInfoUrl))
end)
if gameInfoGood and gameInfo.data[1] then
return gameInfo.data[1]
else
warn("Error fetching data for universeId: "..tostring(universeId).." and placeId: "..tostring(placeId))
warn(gameInfoBad)
return false
end
else
warn("Error fetching universeId for place: "..tostring(placeId))
warn(universeBad)
return false
end
end
In order to interface, you can do this:
GetPlaceInfo(12345678).visits to get the visits
You go to this website to see what fields you can access. Everything is case sensetive.
I’ve been looking for something like this but it doesn’t work for certain games. I tried for one of my games and it gives a blank table
https://games.rprxy.xyz/v1/games?universeIds=5112842651