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

Script that tries to move part doesn't function properly, anyone know why?

Asked by 4 years ago

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

0
You could use TweenService to move the part that extends from the piston eyeball001 7 — 4y
0
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 antaramize 15 — 4y

Answer this question