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

Adding current Udim value + another Udim value?

Asked by 5 years ago
Edited 5 years ago

Alright so take this as a example:

script.Parent.Position = script.Parent.Position + Vector3.new(100, 100, 100)

But what if I wanted to do the same thing with UDim2 values? But with tween position?

I've tried this but it hasn't really, worked out for me xD

script.Parent:TweenPosition(UDim2 + UDim2.new(-1, 0, 0, 0))

1 answer

Log in to vote
0
Answered by 5 years ago

Never mind! This can be done by doing this

script.Parent:TweenPosition(v.Position + UDim2.new(-1, 0, 0, 0))
Ad

Answer this question