diff --git a/StdLib/game.lua b/StdLib/game.lua index 77552732..e108610e 100644 --- a/StdLib/game.lua +++ b/StdLib/game.lua @@ -58,6 +58,14 @@ function Game.get_player(mixed) end elseif mixed then local player = game.players[mixed] + if type(mixed) == "string" and tonumber(mixed) then + for _, p in pairs(game.players) do + if p.name == mixed then + player = p + break + end + end + end return player and player.valid and player end end diff --git a/control.lua b/control.lua index 71954015..deee6a0f 100644 --- a/control.lua +++ b/control.lua @@ -8,6 +8,9 @@ Discord: https://discord.gg/r6dC2uK ]] --Please Only Edit Below This Line----------------------------------------------------------- +-- a base for functions to keep things clean +_G._ = {} + -- replaces the base error function _error = error error = function(err)