I've tried this script and many more, attempting to make a boombox that only goes into MY backpack as a player when i join my own game. I honestly don't see how this one wouldn't work. It doesn't even work in studio, so obviously it's not a filteringenabled problem. And all the paths are correct. Help?
local players = {"Quibblish"}
local gear = game.ServerStorage.BoomBox
game.Players.PlayerAdded.connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
for i = 1, #players do
if players[i] == plr.Name then
gear:Clone().Parent = plr:WaitForChild("Backpack")
end
end
end)
end)

3 comments
What's the chr for? The script only has the chr in one place.
Did you just combine many scripts to get that; because on the line 4, you have done a mistake :/
If you change line 4 to PlayerAdded:Connect(function(plr) then it works fine