Answered by
7 years ago Edited 7 years ago
Before Starting:
I am going to be telling you how to do this, guessing that you already have a ScreenGui
in StarterGui
, and inside the ScreenGui
, Insert a frame. Now, you should already have the right sizes and positions for this.
Let's Begin
Inside the frame, Insert an ImageButton
, do this and change the position of the different image buttons that you want. In this case, I am only going to do 2. Now for the Images you want the face to change to, put the decal id inside of the image label. Once all this is done, we will start scripting. Put a local script inside of your frame, and edit it accordingly.
Lets do some Variables:
1 | local player = script.Parent.Parent.Parent.Parent |
2 | local Face 1 = script.Parent.Face 1 |
3 | local Face 2 = script.Parent.Face 2 |
I think that will be it for the variables, but let's finish the script
01 | local player = script.Parent.Parent.Parent.Parent |
02 | local Face 1 = script.Parent.Face 1 |
03 | local Face 2 = script.Parent.Face 2 |
06 | player.face.Image = Face 1. Image |
10 | player.face.Image = Face 2. Image |
13 | Face 1. MouseButton 1 Click:Connect(face 1 ) |
14 | Face 2. MouseButton 1 Click:Connect(face 2 ) |