i have a sword script and it will stop working and this will show up in the output 21:40:31.563 - Infinite yield possible on 'Workspace.:WaitForChild("Humanoid")' im not sure how to fix it but here is the script
local Obj = script.Parent
local Debounce = true
Obj.Touched:connect(function(Hit)
if Debounce == true then
Debounce = false
wait()
if Hit.Parent:findFirstChild("Humanoid") then
Hit.Parent.Humanoid:TakeDamage(15)
wait(1)
Debounce = true
end
end
end)

6 comments
this script is inside the handle of a sword.
is this script even related to the error
Which isn't an error, it just means that the rest of the script might not carry on until that "WaitForChild" finishes
Use GetPlayerFromCharacter().
Also, infinite yield is not an error. It's a warning.
I think you posted the wrong script.