How to count lenght between 2 positions?



local Lenght = ent:GetPos() - self:GetPos()


ends to vector. How to make it a single float? something like local Lenght = vsize(ent:GetPos() - self:GetPos())


(User was banned for this post ("Wrong section" - mahalis))

Do this instead:
[lua]
local Length = ent:GetPos():Distance( self:GetPos() )
[/lua]

-snip