What’s “HTML to Roblox”?
HTML to Roblox is an up and coming module that allows you to place HTML code into the module, and have it convert the contents of that HTML into a Roblox Gui.
( new ) Where can I learn more, and install this?
Documentation’s over here at: Installation | HTML to Roblox
Go head to this link if you want to install this module.
If you want the source code, it’s also here on Github: GitHub - Denied-ID/HTMLToRoblox: HTML to Roblox is a Roblox module that allows you to place HTML code into the module, and have it convert the contents of that HTML into a Roblox Gui.
Why do I need this?
Well if you’re planning to recreate a website (I know a lot of games like LegacyVerse do this), or maybe you’re just trying to find something easy to setup and use, then this might be useful for you. All you have to do is copy the website’s HTML code (if you have permission to), and the CSS if needed, and then you can see it on your Gui.
Demo
HTML:
<div style="background-color:#eeeeee;">
<p style="color:#333333; font-size:16;">Hello, Roblox!</p>
<div>
<p style="color:#000000; font-size:12;">This is a demo of the HTML to Roblox module.</p>
</div>
</div>
Result:
What about the other solutions out there?
I have noticed this question a bit in some older forum posts attempting to do the same thing I am, and I have seen “Roblox-TS” quite a bit. That might be useful for some people, but that’s appears to be a little hard to set up, and not as beginner friendly as this one aims to be. Plus it uses something called TypeScript, which is something that isn’t too easy for someone to learn right away. That’s why I made this module specifically for HTML because it’s easiest for you.
Does this include things like JavaScript support?
Absolutely. In fact it also supports other supported features on Html buttons like onclick="console.log('Button pressed!')
. And that’s not all. You can even take a <script>
delimiter, and add an atribute called type
(<script type="">
). Now what’s cool about this type
attribute is you can change the script from JS to LuaU, and it will work the same except it’s a different language. Now the JS variant is literally just converted from its JS counterpart, to a Roblox supported variant so it can work in the Roblox engine.
Conclusion
I hope to get this out potentially soon so you all can test this out for yourselves and maybe run your own experiments on it like I am. I’m just making sure it’s stable and accurate before anything else. Thanks for taking a look. If you have any questions, feel free to let me know.