My game relies heavily on character morphs. When a player selects a morph, a GUI shows up that lets them change the morph's expression/pose/whatever. I refer to them as Animations. Once I started using FilteringEnabled, the character animations are only seen by the client. I was wondering why this was happening and how I can change it. Here's an example of the scripts I've been using (both are in local scripts):
playerman = script.Parent.Parent.Parent.Parent.Parent.Character
function change()
playerman.Chest.Smile.Transparency=0
playerman.Chest.Frown.Transparency=1
wait()
script.Parent.t.Disabled = false
script.Disabled = true
end
script.Parent.MouseButton1Click:connect(change)
If the button is pressed again, it will put the morph back to its neutral state.
playerman = script.Parent.Parent.Parent.Parent.Parent.Character
function change()
playerman.Chest.Smile.Transparency=1
playerman.Chest.Frown.Transparency=0
wait()
script.Parent.e.Disabled = false
script.Disabled = true
end
script.Parent.MouseButton1Click:connect(change)
I've been trying to fix this for so long, but I can't come up with a solution.

9 comments
Thank you so much for answering! However, the script only partly works. Perhaps I'm doing something wrong... I'm able to change the morph to make it smile, but I can't make it go back to its frown expression (which is its neutral face)
To help clarify something for me, if I click the Smile Button to make my character smile, is this scripted in a way where I have to click the same button again to change the expression back to its neutral state. Or do I have to make a separate button for that?
Can you show me the scripts called: t and e?
Those are the ones posted in the question I asked. The first one is e, second is t.
Mmmm, they shouldn't disable each other. Because they can't enable themselves.
Oh! I've figured out the problem! On line 16 of the second script you showed me it should be [Ply.Character.Chest:] but you put a period instead of a colon. It works now!
Alright so I managed to make it work when I'm in develop mode, but when I actually play my game it doesn't work at all. Any idea why that's happening?
FilteringEnabled isn't Enabled in Develop.
So how do I make this work in my game when I'm not using Develop?