Infinite Yield's Core Functions - EdgeIY/infiniteyield GitHub Wiki
Infinite Yield's core functions can be used in your commands. Keep in mind that these are not all of the core functions and you can find more by looking inside Infinite Yield's source code. A lot of the core functions are documented in a section of this Wiki.
Example:
--Note: This is just a snippet
--Command: printname [plr]
["Function"] = function(args,speaker)
for k,v in pairs(getPlayer(args[1], speaker)) do
print(Players[v].Name)
end
end
In the above example, a function is used called getPlayers
which means you can use IY player arguments with it (example: using %team
).