Skip to content
View BloxBlock's full-sized avatar

Block or report BloxBlock

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please donโ€™t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this userโ€™s behavior. Learn more about reporting abuse.

Report abuse
BloxBlock/README.md

BloxBlock

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


๐ŸŽฏ Purpose

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.


๐Ÿš€ Key Features

  • ๐Ÿงฉ 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)

๐ŸŽฌ How it works

  1. Open the editor
  2. Drag and connect logic blocks
  3. See Lua code generated in real time
  4. Copy the code into Roblox Studio
  5. Run your game instantly

Example flow:

Player joins โ†’ Give coins โ†’ Show message โ†’ Update stats


๐Ÿง  Core idea

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.


๐Ÿ›  Tech Stack

  • 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

๐Ÿงฑ System Overview

Block 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)

Templates

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)

Data System

  • Persistent saving using Firestore
  • Auto-save on change, tab close, and intervals
  • Project sharing with public links

๐Ÿงช Example

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)

Popular repositories Loading

  1. BloxBlock BloxBlock Public

    Visual scripting tool for Roblox that generates real Lua code and helps beginners transition from blocks to scripting.