So here’s what this code is SUPPOSED to do in my head, when the RoundEnd function starts, it’s supposed to find everything in the sphere located in that position and if the variable it finds is a player, then it kills them. After that, it starts another function to notify players the round has ended… I know this code is probably horribly wrong, but I’m new into programming so whoever can answer this, please leave a detailed description of what I did wrong (It might be lengthy!)
function RoundEnd()
for k, v in pairs(ents.FindInSphere( Vector(444.428680, -1874.961670, -79.968750), 224 )) do
if v:IsPlayer() then
v:Kill()
RoundNotifyEnd(v)
end
end
end