Visual scripting tool for Roblox that generates real Lua code
BloxBlock is a browser-based visual scripting platform that helps users build Roblox game logic using blocks (similar to Scratch), while generating real Lua code that can be used directly in Roblox Studio.
๐ https://bloxblock-app.web.app
Many beginners struggle with learning Roblox scripting due to:
- Lua syntax complexity
- Lack of understanding of game logic structure
- Over-reliance on copy-pasted scripts
BloxBlock aims to solve this by making logic visual, while still exposing the real Lua code behind it.
- ๐งฉ Visual scripting system powered by Blockly
- โก Real-time Lua code generation
- ๐ Bidirectional highlight (blocks โ generated code)
- ๐ฎ Pre-built game templates (Obby, Tycoon, Combat, Clicker)
- ๐พ Cloud saving with Firebase
- ๐ค User authentication system
- ๐งฉ Custom block creation system
- ๐ Multi-language support (English / Spanish)
- Open the editor
- Drag and connect logic blocks
- See Lua code generated in real time
- Copy the code into Roblox Studio
- Run your game instantly
Example flow:
Player joins โ Give coins โ Show message โ Update stats
BloxBlock is not meant to replace coding.
It is designed to:
Help users understand how visual logic maps to real Lua scripting, making the transition to code easier and more intuitive.
- Frontend: HTML, CSS, JavaScript (Vanilla)
- Block engine: Blockly 10.4.3
- Code generation: Lua generator system
- Backend: Firebase Authentication
- Database: Firestore
- Hosting: Firebase Hosting
- Internationalization: Custom i18n system
- Event-based logic (PlayerAdded, Touched, ClickDetector, etc.)
- Variables with optional global scope (_G support for cross-event logic)
- Game mechanics modules (combat, economy, UI, world manipulation)
Includes working pre-built systems:
- ๐ฏ Obby (checkpoints, lava, platforms)
- ๐ฐ Clicker (currency + multipliers)
- โ๏ธ Combat Arena (weapons, damage zones, respawn system)
- ๐ญ Tycoon (income, upgrades, rebirth system, saving/loading)
- Persistent saving using Firestore
- Auto-save on change, tab close, and intervals
- Project sharing with public links
lua -- Generated Lua example
game.Players.PlayerAdded:Connect(function(player) local coins = Instance.new("IntValue") coins.Name = "Coins" coins.Value = 0 coins.Parent = player coins.Value = coins.Value + 10 end) ๐ฆ Project Structure /editor โ Blockly editor logic /blocks โ Custom block definitions /generator โ Lua code generator /templates โ Prebuilt game templates /firebase โ Auth + database logic /public โ Web frontend ๐ Roadmap Better Lua debugging tools AI-assisted block suggestions Multiplayer collaborative editing Mobile optimization More advanced Roblox systems templates ๐ฌ Feedback
This project is still evolving, and feedback is highly appreciated.
If you're a developer or Roblox creator:
What would make this useful in your workflow? What is missing for you to actually use this in real projects? ๐ Links Live app: https://bloxblock-app.web.app GitHub: (https://github.com/BloxBlock/BloxBlock/blob/main/README.md)