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

How do I offset a gui object relative to rotation?

Asked by
DollorLua 235 Moderation Voter
3 years ago
Edited 3 years ago

my primary most wanted way of this is to convert rotation to Udim2 (or Vector2) considering the method for offsetting 3D objects using CFrame.LookVector. I do believe that it is possible to replicate lookvector for cframes in gui I just don't know how, so i'm not looking for the answer "this isn't possible".

That is as far as I know, so any help would be appreciated!

1 answer

Log in to vote
0
Answered by 3 years ago

As I know you cannot just convert Rotation into Udim2 but you can convert Rotation into Vector3

Here is the coding that worked for me

local Rotation = script.Parent.Rotation
local RotationVector = Vector3.new(0,0,-Rotation)
Ad

Answer this question