Answered by
7 years ago Edited 7 years ago
Ok so here's what you need to do.
First, create 3 decals instead of one inside the part. (For example)
Name them each D1, D2, D3.
Set each of the image id's in the decals's texture
Set the D2 and D3's transparency to 1.
Right click the part in Explorer > Insert Object > Click Detector.
Then do the same thing for the server script, (aka Script) and insert that too with this code:
TL;DR: Create three Decals, name them each D1, D2, D3. Set the D2 and D3's transparency to 1. Set the image id's into the texture value. Insert click detector, and insert normal script with this code.
01 | script.Parent.D 1. Transparency = 0 |
04 | script.Parent.D 1. Transparency = 0 |
05 | script.Parent.D 3. Transparency = 1 |
07 | script.Parent.D 2. Transparency = 0 |
08 | script.Parent.D 1. Transparency = 1 |
10 | script.Parent.D 3. Transparency = 0 |
11 | script.Parent.D 2. Transparency = 1 |
15 | script.Parent.ClickDetector.MouseClick:connect(click) |
Hopefully this code works for you! It should because I tested it.
PS: Please tell me if there is any other easier way if possible.
EDIT: Made minor mistakes but they should be fixed.