I need to know how to make these two scripts FilteringEnabled, but I am new to FilteringEnabled and i don't know how to do that.
Here's the scripts im using:
In a model (Regular Script):
part = script.Parent
function configure(player)
if player.Team.Name == part.Parent.Parent.Name then
player.PlayerGui.ScreenGui.EditObject.Object.Value = part
end
end
part.ClickDetector.MouseClick:connect(configure)
in a TextLabel in a Descendent of ScreenGUI (LocalScript):
while true do
function updateText()
if script.Parent.Parent.Object.Value then
script.Parent.Text = script.Parent.Parent.Object.Value.Name
end
end
wait()
updateText()
end

1 comment
Please do not duplicate your question, you can try edit your question post.