How do I fit a Viewport Frame in a diamond

How do I add a Viewport Frame with a camera inside with a character model. I know the scripting however there is no shapes or anything that are in the shape of a diamond. I already have a diamond image I just need a the viewport frame to fit in it perfectly. I don’t know if this is a scripting type of thing or a art and design

This is what I’m looking for:

1 Like

Pretty sure the current UI elements in Roblox does not support such behavior. Since ClipDescendants does not work on rotated child elements.
Are you not satisfied with a circle image instead?

One thing you can do is rotate a square viewport frame by 45 degrees and then rotate any objects rendered in it by 45 degrees in the opposite direction.

Something like:

character:PivotTo(, 0, 0) * CFrame.Angles(0, 0, math.rad(-45)))

Simple rectangular and circular shapes are not to hard to work with, but as @TortenSkjold said, for anything more complex it gets a bit tricky because rotated objects can’t be clipped by ancestor objects. Maybe there’s a solution for that I’m currently not aware of.

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