:GetChildern error

need help im making a hitbox script and GetCHildern isnt working im getting the error GetChildern is not a valid member of Folder “Workspace.Attackable”

local module = {}

return function(char,range)
    local root = char.HumanoidRootPart
    local Targets = {}
    for i,v in pairs(workspace.Attackable:GetChildern()) do
        if v ~= char and v:FindFirstChild("HumanoidRootPart") then
            local inrange = ((root.CFrame * CFrame.new(0,2-range).p)- v.HumannoidRootPart.Position).magnitude
            if inrange <= 5 then
                table.insert(Targets,v)
            end
            
            end
        
    end
return Targets    
end
```lua
1 Like

You mistyped the function. It is GetChildren.

for i,v in pairs(workspace.Attackable:GetChildren()) do
1 Like

thanks its working now a mistype it was lol

1 Like