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

Move Tool acts weird when rotated how can I fix it?

Asked by 4 years ago
Handles.MouseDrag:Connect(function(face, dist)
            if face then
                Handles.Faces = Faces.new(face)
            end
            Part.CFrame = CF+Vector3.FromNormalId(face)*(math.floor(dist/increment)*increment)
        end)

I'm using Handles and Vector3.FromNormalId() in order to make move tool that moves parts, but when I rotate part, it acts weird. It supposed to move part in part's direction but instead it moves it up if NormalId is Top or down if NormalId is Bottom. How can I fix it? I have absolutely no idea. (please stop ignoring this question)

0
fixed SuAkihiro 94 — 4y

Answer this question