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?
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.