How would i make a frame face a part

I am attempting to make a surfacegui frame face a part, how would i do this?
image
help would be appreciated, thanks

PartToLookAt.CFrame = CFrame.lookAt(PartToLookAt.Position, WhereToLookAt.Position)

CFrame | Documentation - Roblox Creator Hub

this wouldnt work since frames use udim2, not cframe.

It’s a surfacegui? Why not rotate the part it’s on?

no, im trying to rotate the frame, since there are multiple other frames

Try making a separate part then use the lookAt thingy to get the Y orientation (set that for the rotation)

i fixed it by using math.rad(number) and adding the angle with that number

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