#trying to index number with Position error?
1 messages · Page 1 of 1 (latest)
Pairs and ipairs is deprecated now
For I, v in … do
Also this is the fix btw:
for i,v in workspace.CWMap.ballinAnim.Vines:GetChildren() do
for _, child in v:GetChildren() do
child.Position = child.Position - Vector3.new(0,8,0)
end
end```
ty bro, does not using pairs in a for changed anything at the way it works?
not really
pairs just loop through tables
ipairs is for indexing
and nothing at all just loops through
why is it deprecated btw?
someone told me that I dont need to use both, why?
its easier and more readable to not use ipairs or pairs
and both isnt needed
does it work tho?