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

0

You should not be using Lighting to store models ect, aslo why are you adding a tool to the player backpack with a localscript?

0
  1. I was only using lighting temporarily since I was having some problems with ServerStorage before, 2. Good question, but it was mostly since I wanted a simple script that wouldn't go more than say, 10-15 lines of code, like most team starterpack scripts do.
0

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

0

Anyone?