I just now started using FilterEnabled and an important script no longer works. When a player chooses a morph, a window will pop up that allows the player to animate their character. For example: the character might change poses or facial expressions. It was a key part of my game, but it no longer works.
The GUI that would cause the menu to show up containing buttons for character animations:
local sp = script.Parent local db = true local Animations = script.Parent.Animations sp.Touched:connect(function(hit) if hit and hit.Parent:findFirstChild("Humanoid") and db then db = false local player = game.Players:GetPlayerFromCharacter(hit.Parent) if not player.PlayerGui:findFirstChild("Animations") then Animations:Clone().Parent = player.PlayerGui end wait() db = true end end)
Here's an example of a script that would alter the morph when the player chooses an animation:
playerman = script.Parent.Parent.Parent.Parent.Parent.Character function expression() playerman.Chest.Smile.Transparency=1 playerman.Chest.Frown.Transparency=0 wait() script.Parent.t.Disabled = false script.Disabled = true end script.Parent.MouseButton1Click:connect(expression)
And the script that makes the morph go back to its default expression:
playerman = script.Parent.Parent.Parent.Parent.Parent.Character function expression() playerman.Chest.Smile.Transparency=0 playerman.Chest.Frown.Transparency=1 wait() script.Parent.e.Disabled = false script.Disabled = true end script.Parent.MouseButton1Click:connect(expression)
When I play my game, the menu shows up when I pick a morph, but none of the buttons on it work. And if I restart the player, then the menu doesn't show up at all when I choose a morph. I just need to know how to convert these to work with FilterEnabled. If you could help I'd be extremely grateful.