You are browsing as a guest. Sign up (or log in) to start making projects!

4h 12m 44s logged

Reworked script system for better and easier scripting and added some basic part modification functions

Basically, before you would need to type something like find(“stud”):setVelocity({10, 10, 10}) or something like that, but with metatables

Metatables are kind of weird, but they basically let me return a special object from the find() function, and modify that object to override functions and add new ones. For example, you can override the metatable of custom Vector3 objects to handle addition, so you can do v1 + v2 instead of addVectors(v1, v2) and it’s a lot cleaner and straightforward.

This means injecting a bunch of Lua code to set these metatables, and exposing global functions from JS to handle the metatable calls.

I also added some event handling (very basic for now) but you can see in the video the part moving from me using WASD

You can also see a ton of errors, and I’m trying to fix those right now. I really don’t know why they are here

0
5

Comments 0

No comments yet. Be the first!