Not sure how to fix this lua error please help

Pretty obvious what I am trying to do, I’m not sure how I can get the player out of the table to get the player’s position.
[LUA]function GM:HUDDrawTargetID()
Target = LocalPlayer():GetEyeTrace().Entity
if Target:IsPlayer() then
if Trace.Entity:GetPos() - LocalPlayer():GetPos() > 50 then return false
else return true
end
end
end[/LUA]

[ERROR] gamemodes/islanddm/gamemode/cl_init.lua:13: attempt to compare number with userdata

If you know how I can fix this then please let me know, thanks in advance.

Vector - Vector = Vector

I assume you want to get the distance between the two? Trace:GetPos():Distance( LocalPlayer():GetPos() )

LOL damn I feel stupid, thanks