local Handle = script.Parent:WaitForChild("Handle")
Handle.Touched:Connect(function(plr)
local Player = game.Players:GetPlayerFromCharacter(plr.Parent)
if Player.Character.Humanoid then
if Player.Character ~= game.Players.LocalPlayer then
Player.Character.Humanoid.Health = 0
for _,i in pairs(Player.Character:GetChildren()) do
if i.BrickColor then
i.BrickColor = BrickColor.Random()
end
end
end
end
end)
Getting the error "Players.NAME.Backpack.Taser.LocalScript:5: attempt to index local 'Player' (a nil value)" error. I don't get why

2 comments
tool.Equipped instead
no