Being a noob scripter, I feel like I shouldn't have expected this to happen. I'm trying to code a minecraft piston that when clicked from the source block (the body) the part juts out. I'm using a click detector along with a script, but it doesn't seem to work. Anybody know why not?
function OnClick()
workspace.Arm.CFrame = workspace.Arm.CFrame + workspace.Arm.CFrame.LookVector * 1
end
Note: This is trying to manipulate another part. from a remote script in another part

2 comments
You could use TweenService to move the part that extends from the piston
Like I said, I'm kind of a noob scripter so I don't really know how to use TweenServices. Lua is still really new to me :P