How can I go about doing a Target:Function()

If the title doesn’t make sense I’m basically asking how I can throw together a function like player:Health()

Still fairly new to lua so sorry f this is extremely simple

You can see how Garry’s Mod does it with the ‘IsAdmin’ function here;

A lot of functions, like ‘Health’ are from the game engine, and so are written in C++ as opposed to Lua

Thanks a bunch, I knew that functions like health and sethealth were from the engine so I wasn’t entirely sure if it was possible through lua.

I was scanning Garry’s github and it didn’t even cross my mind to look through the user group functions!

Thank you