Difficult question about scripts and local scripts

This is a Roblox forum, of which is centerd around a subsidiary of Lua, of which is still typically referenced as “Lua”, not “Luau.” Any mention of Lua should be thought of as “Luau” unless specified as “native lua” or “Luau.”

Please don’t be a pedant, my guy. :confused:

Before you start throwing words around like that, listen to me. The statement clearly did not say “functions aren’t serilizable in luaU”.

Doesn’t matter if it’s a roblox forum we still talk about vanilla lua here to.

Please don’t try to encode it either. Doing a low-quality encryption can easily be decoded by a confident and knowledgeable exploiter, and would also take time to decrypt. Doing a multi-layer encryption or generally any form of stronger encryption would take even more time to decrypt. Please don’t sacrifice execution time for obscurity. Just write what you need on the client and on the server. If an effect needs to be done on the client, just store the effects in a LocalScript’s dictionary and have the server call a remoteevent.


In regards for:

Please refer to this quote:

Please note he did not say native, nor vanilla lua. We’re talking on a Roblox centered forum, having a Roblox-centered topic of discussion. I think it’s reasonable to say any mention of Lua would allude to being Luau, not native Lua.

This will be my last response. I’m muting this topic; I’m not interested in any further response. If the topic creator needs help, then please DM me.

2 Likes

Anyways exploiters can see code and wtihout loadstring.

I don’t think you get it i’m not really trying to argue, I’m just trying to help people and explaining to them how functions are serilizable, if you think this as an offense that’s on you.

Ok, So? Fine from now on ill always think lua means luaU. I was just stating functions are serilizable to help anyone who didn’t know that. I really didn’t know that Im not good at assuming context.

Even if you use this somewhat hacky solution, will upvalues be passed in the function from the server to the client? Not sure it’s in your best interest to do this every time you want to make an effect.

Lets talk about optimization. What would be better?
Using already prepared functions in local script or parse them trough server to local

An already prepared function? I don’t think enabling loadstring for something that can be done much easier and have virtually the same effect with more room for customization is a good idea.

So uhhh… Using one script with effects and run them by remote event would be better?
Instead of loadstring()

Refer back to my previous post where I’d just send the client the effect information (tween values, etc.) and have them run it themselves.