Tria-Studio / Tria-Issues

Public Repo for suggestions and bugs.
6 stars 3 forks source link

[SUGGESTION] MapLib:Rotate() method #168

Closed coderheck closed 1 year ago

coderheck commented 1 year ago

Always been using TweenService or CFrame operations to rotate a part/model in a map and it may cause some unwanted errors especially for unexperienced scripters who will mess something with the CFrame math operations or forgetting the :Play() function after a tween.

A solution to make our lives easier, I think, is to create a MapLib method specifically to rotate PVInstances.

Method syntax:

MapLib:Rotate(target: PVInstance, rotate: CFrame)
grif-0 commented 1 year ago

the arguments of this function would essentially be identical to that of that to create a tween so I cant really see the point of this.

If you really wanted this, you could make it a custom function in a forked maplib, since 0.11 will support custom maplibs