.Touched event not calling

Hello! I know this is very silly mistake. But I can’t think of solution.

What is happening?
I’m checking when Players’ feet touch something. So I scan through Character’s children, then check if it is either Left or Right foot and then I do v.Touched. But it doesn’t seem to register the touch.

Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(Character)
        for i, v in pairs(Character:GetChildren()) do
            if v.Name == "LeftFoot" or v.Name == "RightFoot" then
                print("Got after it")
                v.Touched:Connect(function(hit)
                    print("Listening")
                    if Players:GetPlayerFromCharacter(hit.Parent) then
                        if db[player] ~= true then
                            db[player] = true
                            local OtherPlayer = Players:GetPlayerFromCharacter(hit.Parent)
                            if OtherPlayer ~= player then
                                SizeModule:Shrink(OtherPlayer)
                            end
                            wait(2)
                            db[player] = false
                        end
                    end
                end)    
            end
        end
    end)
end)

‘Got After It’ prints, but ‘Listening’ never prints, even the feet obviously touch the ground.

Every help is appreciated. Thank you!

image

Not sure of the issue, since i’m getting the Touched print just fine,
try the following without detail on the Touched or Character changes :

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(Character)
        for i, v in pairs(Character:GetChildren()) do
            if v.Name == "LeftFoot" or v.Name == "RightFoot" then
                print("Got after it")
                v.Touched:Connect(function(hit)
                    print("Listening")
                end)    
            end
        end
    end)
end)

Very weird. As you can see the code is same but it is not working here.

https://gyazo.com/6a534ee3144527b6530c13862088e580

Let me test though.

No, the code did not work as well.

Looks like it’s problem with my character since it’s working for my friend. :thinking: