This is fine.
You could transform it in 1 query. But that basically means that you will have to split them up later with Lua.
SELECT
name,
'time' AS type,
time,
NULL AS kills
FROM general ORDER BY time DESC LIMIT 20
UNION ALL
SELECT
name,
'kills' AS type,
NULL AS time,
kills
FROM general ORDER BY kills DESC LIMIT 20
E aí, @AllissonDxyz — bem-vindo ao fórum!
Desculpe pelo atraso na resposta. Sobre o seu erro, você pode tentar resolver isso no client-side, trocando de:
local player = client
para:
local player = source
Aquele variável client não existe no client-side, ela existe apenas no server-side para fins de segurança, onde você pode confiar nela.