I Cannot Think On How To Destroy A Part When Someone Dies, Plz Give Me Tips On How To Do IT i tried to script it but im only a beginning so i have no idea what im doing xD Plz HELP!
local Player = game.Players:GetPlayers()
local Humanoid = Player:WaitForChild("Humanoid")
if Humanoid.Health == 0 then
script.Parent:Destroy()
end
this is the error attempt to call method 'WaitForChild' (a nil value) i have no idea what to use instead?

2 comments
You have multiple problems with your code; 1. You are attempting to call 'WaitForChild' on a table. 2. 'GetPlayers' creates a table of the current Player's in the 'Players' Service, thus your problem. 3. The 'if' statement will only work once in the code, consider using the '.Died' event upon a Player's death?
so how to fix it?