Is there any better way to make this?
local Origin =script.Parent
local XYZ = {
[1] = Vector3.new(1,0,0), -- X
[2] = Vector3.new(0,1,0), -- Y
[3] = Vector3.new(0,0,1), -- Z
[4] = Vector3.new(-1,0,0), -- -X
[5] = Vector3.new(0,-1,0), -- -Y
[6] = Vector3.new(0,0,-1), -- -Z
}
for i = 1,6 do
local XYZPart = Instance.new("Part")
XYZPart.Position = Origin.Position + XYZ[i] * 12
XYZPart.Anchored = true
XYZPart.Parent = workspace
XYZPart.Size = Vector3.new(12,12,12)
XYZPart.CanCollide =false
end
I want the Blocks to be positioned in X Y Z Direction I’m curious if there is any better way to do this