I’m trying to make a player info script that shows a player’s name, health, weapon and so on (regardless of if a player is being looked at or not).
I made this code for testing, but it wont print anything (no errors)
Targ is set to the player i last looked at (tested working, so that’s not it)
function DrawName()
if Targ:IsValid() then
SPos = {}
SPos = Targ:GetPos():ToScreen()
draw.WordBox(8, SPos.x, SPos.y, "Player","Default",Color(50,50,75,100),Color(255,255,255,255))
else
LocalPlayer():ChatPrint("Invalid")
end
end