Error:

Config is not a valid member of Part

The script itself:

local UserInputService = game:GetService("UserInputService")
local PlayerService = game:GetService('Players')
local Player = PlayerService.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:wait()
local PressE = game.Workspace.ModelDoor.Door.PressE.BillboardGui
Center = game.Workspace.ModelDoor.Door.Center
Config = game.Workspace.ModelDoor.Door.Config
local Config = game.Workspace.ModelDoor.Door:WaitForChild("Config")
Mouse = game.Players.LocalPlayer:GetMouse()
local Open = false
Medium = game.Workspace.Medium
local Activ = false
local Obj = nil
UserInputService.InputBegan:Connect(function(Input)
    if Activ and Input.UserInputType == Enum.UserInputType.Keyboard and Input.KeyCode == Enum.KeyCode.E then
        Obj.Config.DetectEvent:FireServer() ---------------------Error here
    end
end)
while wait() do
    Obj = nil
    Activ = false
    for _, ModelDoor in pairs(workspace.ModelDoor.Door:GetChildren()) do
        local mag = (Character.HumanoidRootPart.Position - Center.Position).magnitude
        if mag <= Config.Range.Value then
            Activ = true
            Obj = ModelDoor
            PressE.Enabled = true

        end
        end
end