How do I play face/texture changes?

I have an animation that plays in my game, I use Moon Animator for animations, which allows texture changes in the animation, the thing is these are not exported. I have decided to make a BoolValue so when the animation plays, the value is set to true. How do I make the rig’s face texture change in the If statement? Also how do I add formatted code in here?

1 Like

In a server script you can put

local Face = script.Parent.Parent.Head:FindFirstChild('face') if Face then Face.Texture = 'rbxassetid://(ID GOES HERE)' end

And that should change the face

2 Likes

Code can be formatted by wrapping it in ``` !

It works, but my laptop does not support the characters mentioned.

That is strange, for most keyboards should have ` located in the upper left area.

Wait, I was confused, I thought you were talking about french mode, I do have the ` key.

You use triple ` on either side of a code block to format it. Glad you have it, as formatting code is very important.

1 Like

ok thanks

print("tysm")

1 Like