How could I rotate a GUI frame to face the middle of the screen?

Basically I was gonna create a speed line effect, but I ran into a problem. I have no idea on how to exactly position any of the lines to face the center of the screen, I’d love if someone would suggest me how. I’m guessing it has something to do with math.

1 Like

There may be an easier way to do this exact effect: How would I go about making a dash/speed screen effect?

I’m not good with GUI, so I don’t know what any of that means. I’m guessing you split the gif into frames, then you animate it by constantly changing the image texture?

No - you stitch together the frames of the gif into one big image, then use ImageRectOffset and ImageRectSize to select the portion of the image with the frame in it.

Untitled Diagram (1)

You might want to see the code example in ImageLabel.ImageRectOffset.

1 Like