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