Cutting ViewportFrames

Hi all, I want to replicate this in my game. Does anyone have any idea how they did it? I know it has to be 2 viewport frames and a frame with a scale of 1

oh wow that seems like a lot, what part are you looking for

How he cuts the model in half is what I am looking for

1 Like

i guess you could use two rotated viewportframes and then rotate the models in the opposite direction to get the cut effect

I’ve tried and the camera has an offset that doesn’t match the realworlds model

set the viewportframe’s camera’s cframe to the player camera’s cframe
as for the rotation, you can try something like:

viewportframeCamera:PivotTo(
  playerCamera:GetPivot():ToWorldSpace(
    CFrame.Angles(
      0, 0, [INSERT VIEWPORTFRAME'S ANGLE HERE]
    )
  )
)

it might need a little changing and iirc you need to convert from degrees to radians, youll need to look up the documentation for these functions if its not working


Yeah but when the frame is changed( the size of it) everything in the little world shrinks too, I don’t want that happening in this case

You don’t have to do anything fancy. Make two viewport frames, whole screen, using the workspace camera. Put the object in both of them. Add a UIGradient in each. Set the gradient transparency so that one viewport shows only the left side and one shows only the right side. Set the gradient offset and rotation to match the slice angle and the object position. Then just slide the viewports apart and fade them out.

1 Like

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