of     1   

iRealizm
#183108810Saturday, February 06, 2016 8:15 PM GMT

local speed = 0.4 local active = false local block = script.Parent.Parent.Part function activate() if active == false then for i=1,(block.Size.z/speed) + 1 do wait() block.CFrame = block.CFrame - (block.CFrame.lookVector * speed) active = true end else for i=1,(block.Size.z/speed) + 1 do wait() block.CFrame = block.CFrame + (block.CFrame.lookVector * speed) active = false end end end script.Parent.ClickDetector.MouseClick:connect(activate) Right now it is sliding to the lookVector, I was wondering if it is possible to change its direction to upwards. I've tried various methods but have gotten errors.
C_Sharper
#183109545Saturday, February 06, 2016 8:29 PM GMT

I'd try.. local speed = 0.4 local active = false local block = script.Parent.Parent.Part function activate() if active == false then for i=1,(block.Size.z/speed) + 1 do wait() block.CFrame = block.CFrame - (block.CFrame.lookVector + Vector3.new(0,5,0) * speed) active = true end else for i=1,(block.Size.z/speed) + 1 do wait() block.CFrame = block.CFrame + (block.CFrame.lookVector + Vector3.new(0,5,0) * speed) active = false end end end script.Parent.ClickDetector.MouseClick:connect(activate)
iRealizm
#183111632Saturday, February 06, 2016 9:07 PM GMT

That causes the block to move upward diagonally.
C_Sharper
#183111735Saturday, February 06, 2016 9:09 PM GMT

Try this? local speed = 0.4 local active = false local block = script.Parent.Parent.Part function activate() if active == false then for i=1,(block.Size.z/speed) + 1 do wait() block.CFrame = block.CFrame - (block.CFrame.lookVector * speed) + Vector3.new(0,5,0) active = true end else for i=1,(block.Size.z/speed) + 1 do wait() block.CFrame = block.CFrame + (block.CFrame.lookVector * speed) + Vector3.new(0,5,0) active = false end end end script.Parent.ClickDetector.MouseClick:connect(activate)
iRealizm
#183111870Saturday, February 06, 2016 9:12 PM GMT

That makes it zig zag upward, if you have anything else I'm glad to listen. I'm going to be fiddling around with it.
C_Sharper
#183111982Saturday, February 06, 2016 9:14 PM GMT

Bahhh Here's another one local speed = 0.4 local active = false local block = script.Parent.Parent.Part function activate() if active == false then for i=1,(block.Size.z/speed) + 1 do wait() block.CFrame = block.CFrame + Vector3.new(0,5,0) - (block.CFrame.lookVector * speed) + Vector3.new(0,5,0) active = true end else for i=1,(block.Size.z/speed) + 1 do wait() block.CFrame = block.CFrame + Vector3.new(0,5,0) + (block.CFrame.lookVector * speed) + Vector3.new(0,5,0) active = false end end end script.Parent.ClickDetector.MouseClick:connect(activate)
iRealizm
#183112123Saturday, February 06, 2016 9:17 PM GMT

nope
iRealizm
#183112824Saturday, February 06, 2016 9:28 PM GMT

I'm going to try to rewrite using BodyVelocity

    of     1