I made a script it only works in a local script but my game is Filtering Enabled so i need my script FE Compatible
Heres my script:
UIS = game:GetService("UserInputService")
plr = script.Parent.Parent
UIS.InputBegan:connect(function(input)
if input.KeyCode == Enum.KeyCode.Z then
Anim = plr.Character.Humanoid:LoadAnimation(script.Animation)
Anim:Play()
store = Instance.new("Folder")
store.Parent = game.Lighting
store.Name = plr.Name
for i,v in pairs(plr.Character:GetChildren()) do
wait()
if v:IsA("Accessory") then
print("Accessory")
v.Parent = store
end
end
Mask = game.Lighting.Mask:Clone()
Mask.Anchored = false
we = Instance.new("Weld")
we.Part0 = Mask
we.Part1 = plr.Character.Head
we.Parent = Mask
Mask.Parent = plr.Character
end
end)
It's in starterpack and its a local script

4 comments
That doesn't make it FE compatible though because it makes changes in the workspace that will not get replicated to the server.
OHHH
THATS EASY
i tried what both of you said to do and saSlol2436 ur changes just ended up the results of how it was at the beginning and asceylos yours makes it not work at all