How to Make a GUI Follow an Object

I want to make a custom crosshair for my game and I want to add the capabillity for it to lock onto and follow targets.

Something like this:

I’m also using a ScreenGui for my crosshair.

1 Like

I assume that you are trying to convert a Vector3 to a Vector2 And your ScreenGui Does Ignore The GuiInset

You can use a method Called Camera:WorldToViewportPoint()

This Method gets a Vector3 Object and returns a Vector2 and a boolean indicating if the point is on the screen.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.