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

How would i base a Models position off of a current baseplate position rather than worldPosition?

Asked by
I_Nev 200 Moderation Voter
4 years ago

Can't really find anything on this;

How would i base a models position on a base, rather than world space? Like lets say i have a 250x250 baseplate, and i place a model at 50x50 from the baseplate coordinates rather than workspace coordinates, but i move the baseplate, when i reload the game and place at 50x50 again it will be based off world coordinates rather than on the baseplate.

Is there any simple way to do this?

When i load my game, all of my items will place on base1, even if i am on base2, 3, and 4; rather than loading on the current base i am on.

0
Are you asking about relative positioning? There's CFrame:ToObjectSpace. Just detect the base you're on and use CFrame to offset parts from your base. radiant_Light203 1166 — 4y

Answer this question