Why my part is not touched?

Why my part is not touching? I am just touch it but this is not working i don’t know why. Script is on ServerScriptService ** MUST BE HERE ** and i wanna just touch the part to do something more.
This table is a folder. table = folder
Script

local part = game.Workspace:WaitForChild('table').tab
part.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") then
		print("a")
	end
end)

Make sure that CanTouch is enabled, and that the part variable is currently visible in the workspace?

local Part = workspace:WaitForChild("Table"):WaitForChild("Tab")

Part.Touched:Connect(function(Hit)
    print("TOUCHED!")
 
    local Hum = Hit.Parent:FindFirstChildOfClass("Humanoid")

    if Hum then
        print("A")
    end
end)
1 Like