Roblox gui that shows computer screen in realtime

I didn’t know Roblox could interact with localhost, cool! But I’m curious about something, since the py script is posting something to localhost, wouldn’t this work with NodeJS?



Haven’t changed any of the code and I keep getting this error, where did I go wrong.

You may not be hosting the server correctly, that’s probably my only guess. google the error if you need to

Already fixed it, only issue was I forgot the template folder and index.html


I optimized the code to allow me to reuse the last pixels. I started getting about 3-5 fps on 200X100. Using lazy loading and lazy clearing for when I join and leave to prevent crashing.

Trying to learn python so I can compress the data when sending it over and uncompressed it on roblox’s side.

WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (
 * Running on
 * Running on
Press CTRL+C to quit
[2022-11-07 19:02:46,987] ERROR in app: Exception on /test [POST]
Traceback (most recent call last):
  File "C:\Users\Creepdasheep\AppData\Roaming\Python\Python310\site-packages\flask\", line 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\Creepdasheep\AppData\Roaming\Python\Python310\site-packages\flask\", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\Creepdasheep\AppData\Roaming\Python\Python310\site-packages\flask\", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\Creepdasheep\AppData\Roaming\Python\Python310\site-packages\flask\", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "C:\Users\Creepdasheep\Documents\Screen\", line 18, in test
    return render_template('index.html')
  File "C:\Users\Creepdasheep\AppData\Roaming\Python\Python310\site-packages\flask\", line 146, in render_template
    template = app.jinja_env.get_or_select_template(template_name_or_list)
  File "C:\Users\Creepdasheep\AppData\Roaming\Python\Python310\site-packages\jinja2\", line 1081, in get_or_select_template
    return self.get_template(template_name_or_list, parent, globals)
  File "C:\Users\Creepdasheep\AppData\Roaming\Python\Python310\site-packages\jinja2\", line 1010, in get_template
    return self._load_template(name, globals)
  File "C:\Users\Creepdasheep\AppData\Roaming\Python\Python310\site-packages\jinja2\", line 969, in _load_template
    template = self.loader.load(self, name, self.make_globals(globals))
  File "C:\Users\Creepdasheep\AppData\Roaming\Python\Python310\site-packages\jinja2\", line 126, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "C:\Users\Creepdasheep\AppData\Roaming\Python\Python310\site-packages\flask\", line 62, in get_source
    return self._get_source_fast(environment, template)
  File "C:\Users\Creepdasheep\AppData\Roaming\Python\Python310\site-packages\flask\", line 98, in _get_source_fast
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: index.html - - [07/Nov/2022 19:02:46] "POST /test HTTP/1.1" 500 -



Any idea?

I got the same! But if I go on the website manually it displays the correct thing.

Try creating a folder named “templates” in the place where your python script is located and put a file called “index.html” in there

Im pretty sure roblox doesnt allow this. Might be wrong.

is there way to customize it like if a key pressed ???

didnt work output HTTP 500 (INTERNAL SERVER ERROR)
even tho i added the folder and file what address running on all addresses (

PermissionError: [Errno 13] Permission denied: ‘ss.png’

Is there a way to fix this?

Cool, this looks great! I’ve made stuff like this before that played videos and high res images, but ones that worked in-game using some webserver stuff.

Making a frame for each pixel has some issues performance, though, because of how laggy it is. I think you’d need something like CanvasDraw to render it performantly.

Write ‘sudo’ before the command where you run the program and then enter your password. It will run the code as root and you should not get Access Denied errors.

1 Like

i dont really understand by sudo with what

My bad, I meant in the terminal run “sudo python3” or if that doesn’t work try “sudo python” in the terminal. You can do this by right clicking on the folder that the python file is in and clicking Open in command line, or open in terminal, something along those lines and then run the comman from there.

sudo is for macos and Linux

But if you are on windows try:

Right click → Run as administrator

1 Like

I don’t think you can do 320p because there is a hard limit where the gui would stop rendering(Am I the first to discover this limit of 80k something frames)

No, I tried with frames too at first but it was too good to be true. I have also done the same project and achieved around 40 fps on 256x144 display. You could also take a look at this project. From what I see they have achieved HD resolution but very low fps of course. Screen sharing in Roblox

Edit: I use the CanvasDraw module by @Ethanthegrand14: CanvasDraw - A powerful pixel-based graphics engine (Draw pixels, lines, triangles, read PNG image data, and much more!)

I do have a idea though to actually have a refreshing screen
the parts get premade
then the screen can loop through folders and change the color of the part
to something else

This is not working for me, Roblox & Python are giving me a bunch of errors.