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

Tweenservice without exact positions?

Asked by 5 years ago

I've been wondering, after having stress and figured out after making a door which I used exact positions and it wont simply work if its moved, is there anyway to use TweenService where it moves to the left or right a bit, x y z without exact positions?

0
part.Position*Vector3.new(0,0,0) EmbeddedHorror 299 — 5y
0
Can you explain a bit more? TweenService allows you to create a goal, so you could use math.random or Random() for a randomized number...? SerpentineKing 3885 — 5y
0
The part should be able to move to left or right whatever's it's location. Like no exact point of where it should be with x y z. Worthfall 2 — 5y
0
Oh, well why dont you use its position when setting the goal? SerpentineKing 3885 — 5y
View all comments (2 more)
0
In the goal for tweenservice, make the Postition goal part.Position*Vector3.new(0,0,0) <--- this is the vector containing the amount you want to offset the parts position royaltoe 5144 — 5y
0
you don't need to multiply, you can simply add by a vector. multiplying by vector3 (0,0,0) will simply just make the vector 0,0,0. Fifkee 2017 — 5y

Answer this question