How do you make a UI Slice Effect?

Hey there! I’ve noticed that nobody on the Developer Forum has ever mentioned this before, so whilst giving me a hand, you can give others a hand too!

I want to learn how to make a slice effect along with a clean code for it. I have the exact same image that you’ll see in the gyazo clip: https://gyazo.com/08cc92c779272c71d8c5ef31821e291a

The image in question uses 2 UI effects, one being the pre-slice and the actual slice.
Anyhow, if any of you have a piece of code for this, I’ll be sure to make it my answer so other people can see it too, and finally learn how to make a slice effect.

Thanks. :slight_smile:

im not sure how but i think you need the ui to be an image thats already sliced then you gotta tween it to get that effect

You will need to have 2 UI’s, One for each ‘piece’. Position both on how you want them, note those positions. For the effect you will have to use GuiObject:TweenPosition.

Drag both the UI’s away from each other and tween them to each other using the positions you just noted.

1 Like