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

How do I make this brick orientate?

So, I have been messing with tweening service a bit for the second time, and I ran into an issue. For some reason everything in this tween works except for the orientation and I am unable to find out why.

local tween3 = game.TweenService:Create(bridge, tweenInfo3, {Position = Vector3.new(11.855, 16.154, -61.916)}, {Size = Vector3.new(40.66, 1, 24.44)}, {Orientation = Vector3.new(-22, -90, 0)})

1 comment

0

Why do you have Position, Size, and Orientation in different tables?

1 answer

✓ Accepted answer

You are constructing multiple tables. The "Create" function only supports three args. You made the script think that there are 5 args. A better way to do it is:

local tween3 = game.TweenService:Create(bridge, tweenInfo3, {Position = Vector3.new(11.855, 16.154, -61.916), Size = Vector3.new(40.66, 1, 24.44), Orientation = Vector3.new(-22, -90, 0)})

1 comment

0

That worked, tysm.

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