What do "upvr" and "upvw" mean in scripts

Hello developers, I recently discovered strange words in scripts called: “upvr” and “upvw”. What do they mean? Here’s an example:

local Example_upvr = require(game:GetService("ReplicatedStorage").Example)
local var15_upvw = true

return {}, function()
	return Example_upvr(var15_upvw);
end;

“Upvalue read” and “upvalue write” respectively. Upvalues are a quite complex topic, but in short, when you have a function that uses/references variables outside its own scope, those values are considered upvalues by the said function. The read/write at the end suggests that the upvalue will only be read or will be overwritten respectively.

The are typically found in decompiled scripts/sources, as compiled Lua/Luau scripts often don’t contain enough information to reconstruct actual variable names. Instead, variables are reconstructed based on their runtime semantics. In this case, upvalues and their read/write restrictions.

3 Likes

sounds like upvector but people usually name it pitch so i dont know.
Why does it lowkey looks like exploiter’s decompiled code?

because it is

||ignore thuis||

Thank you mate! This is very useful information! :grin: