Exactly as it is here this code works, but if I take out the color property in the matrix (line 23) or reverse the orientation and color lines, the orientation fails to set and resets to default.
Why?!
local TweenService = game:GetService("TweenService")
local wallgroup = script.Parent
local tweeningInformation = TweenInfo.new(
3,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
local centrepoint = 0
local wallsize = 20
local wallnumber = 1
xposition = centrepoint +(wallsize*wallnumber)
wallgroup.Position = Vector3.new(xposition,yposition,zposition)
while true do
for i=1,6,1 do
xposition = xposition + wallsize
local wallgroupfinish = {
CFrame = CFrame.new(xposition,0,0);
Color = Color3.fromRGB(255,0,0);
Orientation = Vector3.new(90,90,90)
}
local tweenmove = TweenService:Create(wallgroup,tweeningInformation,wallgroupfinish)
tweenmove:Play()
wait (4)
end
xposition = centrepoint +(wallsize*wallnumber)
wallgroup.Position = Vector3.new(xposition,yposition,zposition)
end

3 comments
Okay I'm sorta confused, please explain with more detail, like what do you mean by orientation, and the matrix and taking the out color property? Thanks, TheOnlySmarts.
In the future give more description on what the problem is, what you've tried, and what you're expecting.
I was trying to apply a tween that changes both the location and orientation of a part. However, the orientation would only set when there was an extra line (the colour property) between the position CFrame and orientation Vector3.