Hi so I am trying to make a floating text over a players head saying there name. I am having trouble on the adjustments. Can you help me?
[CODE]
vec = LocalPlayer().GetAll():GetPos()
ang = LocalPlayer().GetAll():GetAngles()
cam.Start3D2D(vec,ang,.1)
draw.SimpleText(LocalPlayer():Nick(),'default',0,0,Color(255, 0, 0))
cam.End3D2D()
[/CODE]
You don't need .GetAll(). I assume you thought that from the function 'player.GetAll()', which returns a table of all players. You don't need to replace 'player' with the actual player, nor do you even need to use that function in this case.
[CODE]
local vec = LocalPlayer():GetPos()
local ang = LocalPlayer():GetAngles()
cam.Start3D2D(vec,ang,.1)
draw.SimpleText(LocalPlayer():Nick(),'default',0,0,Color(255, 0, 0))
cam.End3D2D()
[/CODE]
This will only display the current players name over their own head
He didn't specify if he wanted it to be over one player's head or all the player's heads. If you want it for all players, here's all the links you can possibly need:
[url]https://facepunch.com/showthread.php?t=1257245[/url]
[url]https://facepunch.com/showthread.php?t=1440586[/url]
[url]https://www.youtube.com/watch?v=fQDrOfvDG9U[/url]
idk what the point of having only your own name over your own head would be
Sorry, you need to Log In to post a reply to this thread.