roblox-py v3.0.0
playground | discord
roblox-py is a project I started a while ago to be a compiler for Python to Luau, it was meant to be an experiment but gained a lot of traction, The previous versions were not Production Ready in any way, this version is supposed to change that.
This current version is not in #resources because it still needs to undergo some changes before I fully release it until then you can try out the playground listed above.
Changes
- Rewritten from the ground up
-
Yield Fromsupported -
delsupported - More operators
- Classes
- Typechecker
- A lot of bug fixes
- Faster compiler
-
try,catch,finally -
staticmethodsandclassmethods - Optimized code
- Playground
- New interface/CLI
- Match statements
- Indexs start at 0
- Set, List, and Dict comprehension
ex:squares = {x**2 for x in range(1, 11)} - Custom types
- f-strings
- Default arguments
- Connect to events using decorators
- Import services like
import game.Workspace as WKand automatically have:GetServiceused in generated code raise- Automatic generated exports and the end of the file
yield- All standard python functions implemented
await


