Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 3 years ago
Edited 3 years ago

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

Log in to vote
1
Answered by
Qariter 110
3 years ago

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)

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! FunctionalMetatable 490 — 3y
0
Yeah, newproxy() wasn't really useful. Qariter 110 — 3y
0
Object wrappers could be used. FunctionalMetatable 490 — 3y
0
Agreeable, actually. Qariter 110 — 3y
Ad

Answer this question