Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I print the second CFrame inside a directory?

local CamDirectory = {
	["Flower1"] = CFrame.new(-203.79, 6.395, -96.96), CFrame.new(-232.4, 6.395, -96.96);
	["Part"] = CFrame.new(-203.79, 6.395, -51.57), CFrame.new(-232.4, 6.395, -96.96);	
}

How would I print the second CFrame that "flower1" has? I tried


print(CamDirectory.Flower1[2])

But it didn't work.

1 answer

✓ Accepted answer

Maybe this works:

local CamDirectory = {
    ["Flower1"] = {CFrame.new(-203.79, 6.395, -96.96), CFrame.new(-232.4, 6.395, -96.96)}
    ["Part"] = {CFrame.new(-203.79, 6.395, -51.57), CFrame.new(-232.4, 6.395, -96.96)} 
}

This is basiclly the same Code but the CFrames are in tables.

This discussion is preserved as it was. New answers, comments, and votes are closed.