Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Filtering Enabled breaks team giver/some tools?

Asked by 8 years ago
Edited 8 years ago

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
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? User#5423 17 — 8y
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. patrick199999 5 — 8y
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 patrick199999 5 — 8y
0
Anyone? patrick199999 5 — 8y

Answer this question