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

Can I move a part backwards?

Asked by 4 years ago

I have a module that handles buttons being clicked, all of these buttons handled by the module are in different scattered places. I want to move the button in the direction of the back face half a stud so the button would actually look clicked, how could I do this?

0
LOL greatneil80 2647 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

If you're trying to rotate the part just press ctrl+r

Ad
Log in to vote
0
Answered by 4 years ago

local button = game.Workspace.Button local cd = button.ClickDetector cd.MouseClick:Connect(function() button.CFrame = button.CFrameCFrame.new(-1, 0, 0) wait(1) button.CFrame = button.CFrameCFrame.new(1, 0, 0) end)

Play around with what I said here and I'm sure you'll get it, this is just an example of what you might be doing.

0
No, I'm trying to move the part backwards relative to it's faces using one modulescript. Andy_Wirus 72 — 4y

Answer this question