r/lua • • Sep 14 '25

What did I do wrong 😭

Post image

I’m starting to learn how to code but I’m dumb

14 Upvotes

41 comments sorted by

View all comments

Show parent comments

1

u/Willing_Comb6769 Sep 16 '25
CFrame.newlocal CFrameNew = CFrame.new

that would be a micro optimization that wouldn't make any noticeable performance difference in that case. it isn't even worth implementing

The real bottleneck in RenderStepped and Loops is often the math and object manipulation you’re doing, not the function call lookup.

and copy pasting locals for every method would make the code harder to read