Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make this brick orientate?

Asked by
Pejoume 11
4 years ago

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)})
0
Why do you have Position, Size, and Orientation in different tables? Despayr 505 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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)})
0
That worked, tysm. Pejoume 11 — 4y
Ad

Answer this question