Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is newproxy() and how do i use it?

I found this function in the Script Editor and there is no documentation. I know it is a userdata, but how can you use it in scripts in a real way? Any ideas would be appreciated!

1 answer

✓ Accepted answer

Quoting from a devforum post...

..you can use it to make custom object behaviour. using newproxy(true) will create a empty userdata which you can set the metatable to customize it's behaviour.

(original devpost: https://devforum.roblox.com/t/what-is-newproxy-and-what-is-it-good-for/184454/2)

4 comments

0

I know that already, but I will accept this as an answer because this is the only way everyone knows. Thanks for answering my question still!

0

Yeah, newproxy() wasn't really useful.

0

Object wrappers could be used.

0

Agreeable, actually.

This discussion is preserved as it was. New answers, comments, and votes are closed.