local debounce = true
script.Parent.Touched:Connect(function(hit)
print("Touched")
if hit.Parent:FindFirstChild("Humanoid") then
if debounce then
debounce = false
while script.Parent.Transparency <= 1 do
script.Parent.Transparency = script.Parent.Transparency + 0.004
wait(0.01)
end
script.Parent.CanCollide = false
wait(3)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
debounce = true
end
end
end)
It checks if the object hitting it is a humanoid, so why is it still activating? Same goes with my kill brick, it keeps printing.

2 comments
The thing is: He added NPCs to the game, and I told him to add Players:GetPlayerFromCharacter().
Oh ok.