Hello Developers!
This may be a confusing topic but I’ll try my best to explain it. So currently I am creating a module to attempt to shorten Roblox methods but I don’t know if it’s even possible. Here is what I have recently tried to get working but it’s not.
This is an example of shortening the PlayerJoined event to just pjEvent:
Server Script:
local LuaQuery = require(script.LuaQuery)
LuaQuery.pjEvent(function(Player)
print(Player.Name)
end)
Module Script:
local LuaQuery = {}
LuaQuery.pjEvent = function()
game.Players.PlayerAdded:Connect(function(Player)
return Player
end)
end
return LuaQuery