I made an API (In Python) that gets all the pixels on my screen and puts it in-game.
The problem is it only works in studio not in game, I heard you need to host it on a server, or something like that.
I don’t know how to do that.
Here is some of the code:
@app.route("/Stream/", methods=["GET"])
def Stream():
ScreenShot = pyautogui.screenshot()
ScreenShot = ScreenShot.resize((288, 180))
Pixels = ScreenShot.getdata()
Message = {
"MousePos" : pyautogui.position(),
"ScreenPixels" : list(Pixels),
"ScreenColor" : AverageColor(Pixels),
"Result" : "Success",
}
Json = json.dumps(Message)
return Json
if __name__ == "__main__":
app.run(host="0.0.0.0", port=1010)
Note: I am not too sure if putting your screen in Roblox is allowed or not, But I am only making this for learning purposes, I don’t think I will publish this. (I also saw other people making this.)