Skip to content

Commit 551935c

Browse files
Migration to general iteration
1 parent eaddbfe commit 551935c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

content/en-us/projects/transferring-animations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If your animations are stored as Animation instances under pre-prepared Characte
2626
```lua
2727
local ANIMSTRING = ""
2828

29-
for _, character in pairs(workspace:GetChildren()) do
29+
for _, character in workspace:GetChildren() do
3030
if not character:IsA("Model") then
3131
continue
3232
end
@@ -36,7 +36,7 @@ for _, character in pairs(workspace:GetChildren()) do
3636
continue
3737
end
3838

39-
for _, animation in pairs(animations:GetChildren()) do
39+
for _, animation in animations:GetChildren() do
4040
local animationId = string.match(animation.AnimationId, "%d+")
4141
if animationId then
4242
ANIMSTRING ..= (animationId .. " " .. character.Name .. "_" .. string.gsub(animation.Name, " ", "_") .. "\n")
@@ -119,7 +119,7 @@ local function convertFileToAnimationMap(animFileText: string)
119119
local NEW_ANIMATION_MAP = ""
120120

121121
local lines = string.split(animFileText, "\n")
122-
for _, line in pairs(lines) do
122+
for _, line in lines do
123123
local components = string.split(line, " ")
124124
if #components ~= 2 then
125125
continue

content/en-us/resources/feature-packages/bundles.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ end
122122

123123
local function initializePurchaseHandlers()
124124
local bundles = Bundles.getBundles()
125-
for bundleId, bundle in pairs(bundles) do
125+
for bundleId, bundle in bundles do
126126
-- Bundle is not associated with a developer product if it does not have marketplace price type
127127
if not bundle or bundle.pricing.priceType ~= "Marketplace" then
128128
continue
@@ -133,7 +133,7 @@ local function initializePurchaseHandlers()
133133
end
134134

135135
-- If you have any in-experience currencies that you are using for bundles, set the handler here
136-
for currencyId, _ in pairs(Currencies) do
136+
for currencyId, _ in Currencies do
137137
Bundles.setInExperiencePurchaseHandler(currencyId, awardInExperiencePurchase)
138138
end
139139
end
@@ -286,7 +286,7 @@ You mainly need to hook up four things once dragging the **Bundles** feature pac
286286

287287
local function initializePurchaseHandlers()
288288
local bundles = Bundles.getBundles()
289-
for bundleId, bundle in pairs(bundles) do
289+
for bundleId, bundle in bundles do
290290
-- Bundle is not associated with a developer product if it does not have marketplace price type
291291
if not bundle or bundle.pricing.priceType ~= "Marketplace" then
292292
continue
@@ -297,7 +297,7 @@ You mainly need to hook up four things once dragging the **Bundles** feature pac
297297
end
298298

299299
-- If you have any in-experience currencies that you are using for bundles, set the handler here
300-
for currencyId, _ in pairs(Currencies) do
300+
for currencyId, _ in Currencies do
301301
Bundles.setInExperiencePurchaseHandler(currencyId, awardInExperiencePurchase)
302302
end
303303
end

0 commit comments

Comments
 (0)