local player = game.Workspace:WaitForChild("Humanoid")
local BP = game.Workspace.Baseplate
player.Touched:connect(function(hit)
if hit.Parent ~= player or BP then
hit.Parent:Destroy()
end
end)
keeps saying infinite yield possible on 'Workspace:WaitforChild("Humanoid")
and if I try to wait for the player it self it still doesnt work

2 comments
Instead of WaitForChild try using FindFirstChild
says player is a nil value