Surface gui facing your camera?

How do I make it so that the surface gui’s text label is facing your camera no matter what? For example I want the textlabel to be facing me so that I can read the text here:
Screenshot 2022-04-02 at 1.03.26 PM
( I want the text to be facing at me no matter what angle I’m looking at it )
Thanks!

1 Like

probably use CFrame.lookAt(), it uses to make object look at your camera.

1 Like

Oh ok, do you know if it is possible to do this by changing some properties of the gui?

just make sure if the surface gui is on surface Front
also you trying to use it on client or server

also it is not possible
you can just use billboard gui

Oh my god I’m actually dumb, billboard gui is what I want. Thanks!

1 Like

Consider using a BillboardGui instead of a surface. It would, instead, always make the GUI face the player’s camera and there is not scripting needed to do it.

sorry one more question, do you know how to make it so that the size of the text will be auto scaled down when my camera is far away? Ty.
Screenshot 2022-04-02 at 1.13.20 PM

If you are planning to make your own billboard system without using BillboardGui, I made a place that is uncopylocked, feel free to take or test.

Game Place: billboard gui but based parts

Make TextWrapped false cause that would be a problem.

  1. Double check that the size is by scale and not offset on the BillboardGui. Ex. (4, 0, 1, 0) not (0, 400, 0, 100)

  2. Set the TextScaled property inside of the TextLabel to true

1 Like

bumping this im using your resources to make my name tag but i encounter when welding it to player’s character

here my dedicated thread to this problem: