[HELP] Draw Velocity
Hey, I wrote this script a few days ago to help show my velocity but its not working. I have no idea why its not.
I tried fixing it but it never worked. Can you please help me?
Code:
local velocity = false
hook.Add("Think", "velocity", function()
if velocity then
draw.DrawText( self.Entity:GetVelocity(), "ScoreboardText", ScrW() / 2 - 70, ScrH() - 63, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER)
end)
concommand.Add("velocity_toggle", function()
if velocity then
velocity = !velocity
LocalPlayer():ChatPrint("Velocity turned OFF")
else
velocity = !velocity
LocalPlayer():ChatPrint("Velocity turned ON")
end
end)