As the title said, when filtering enabled is on, it seems to break most tools that require local scripts, however, it seems to also break my team giver script, It seems to give tools, however, the tools don't work(They do when placed in the starterpack, at least most of them.) Ontop of this, I'm not exactly sure which functions to put in a server script to make the tools work with filtering enabled. I'd appreciate your help, I'm new to the whole filtering enabled process.
--Local Script
local plr=game.Players.LocalPlayer
if plr.Team==game.Teams.Dreck then
game.Lighting.DreckOnion:Clone().Parent=plr.Backpack
print("It's working")
end

4 comments
You should not be using Lighting to store models ect, aslo why are you adding a tool to the player backpack with a localscript?
Specifically, I was getting the error:'ServerStorage is a not a part of DataModel' or something along the lines of that, so I had to use Lighting instead
Anyone?