How do I make a moving crosshair?

Hello everyone, I have seen in a lot of games that crosshairs in weapons change size. For example, when you run it gets bigger.

How could I make something like that?

1 Like

you can do when the crosshair spots a humanoid, tween the color of the crosshair

I want to change the size, not the color

you can tween that as well im pretty sure

I want the 4 different lines of the crosshair to be further away from eachother basically.

you can tween the four different lines position by doing 4 of them manually

1 Like

I’m not really sure with this but I have read it somewhere.
I believe what some people do is create a ‘fake crosshair’ using GUI’s.
My guess on how to do this is track the 2D mouse position using plr:GetMouse() or something else which gets the mouse position and forward that to the GUI’s position using a loop. From there I believe you should be able to change the size of the UI, which will seem as the crosshair is changing size.

Best of luck and sorry if this was not the correct solution.

2 Likes

The best thing to do is to not use a decal for your crosshair, manual create 4 lines for the crosshair, then tween the four lines position once the crosshair is on a player

1 Like

Create a big invisible frame, parent the four crosshairs to it(use scale for position) and then just tween the size of the invis frame.