I have a error in my code that keeps saying it can find the backpack and i dont know why maybe someone on here can help, thanks!
wait(1)
local Citizen_Color = "Deep orange"
local Citizen_Tools = game.ReplicatedStorage.Citizen_Tools
local Sheriff_Color = "Cork"
local Sheriff_Tools = game.ReplicatedStorage.Sheriff_Tools
game.Players.PlayerAdded:connect(function(Player)
Player.TeamColor = BrickColor.new("Deep orange")
local Player_TeamColorV = Instance.new("BrickColorValue",game.ReplicatedStorage)
Player_TeamColorV.Name = ''..Player.Name..'_TeamColor'
-[[Player_TeamColorV.Changed:connect(function()
print'TeamColor for player was changed'
if Player_TeamColorV.Value == BrickColor.new(Citizen_Color) then
for _,Tools in pairs(Citizen_Tools:GetChildren()) do
local Plr = game.Players:FindFirstChild(Player.Name)
if Plr then
print'Player was found!'
local Tools_Clone = Tools:Clone()
Tools_Clone.Parent = Plr.Character
end
end
end
end)--]]
while wait() do
Player_TeamColorV.Value = Player.TeamColor
end
end)

1 comment
Where are you trying to access the player's backpack here?