Hey,
The title kind of explains the entire topic, but I am having troubles with this in my code. I have looked throughout the devforum, but no luck.
Code:
local function CharacterBaseParts()
for _, BaseParts in ipairs(Character:GetChildren()) do
if BaseParts:IsA("BasePart") then
return BaseParts
end
end
end
local BaseParts = CharacterBaseParts()
It only returns one base part, but I need it to return all of them. How would I go about doing this?