So right now my part moves up and down when i press the GUI for it but when i collide or touch with the moving part, it will move aside and bug out. I just want that it wont get interruped. is there a better way to move a part?
local GUI = script.Parent
local Pic = GUI.Pic
local text = Pic.Text
GUI.Adornee = workspace.Pillar1
hack = false
function HACK()
if hack == false then
local hackobj = game.workspace.Pillar1.HackObj
for i = 1,17 do
hackobj.Position = hackobj.Position + Vector3.new(0,-0.25,0)
wait(0.03)
end
hack = true
else
local hackobj = game.workspace.Pillar1.HackObj
for i = 1,17 do
hackobj.Position = hackobj.Position + Vector3.new(0,0.25,0)
wait(0.03)
end
hack = false
end
end
Pic.MouseButton1Down:connect(HACK)

2 comments
you can use collision groups or use cframe instead of position
try cframe