Hello
So basically the script is like this:
workspace.MyPart.PrimaryPart = workspace.MyPart.MovingPlatform
script.Parent.MouseClick:connect(function()
workspace.MyPart:SetPrimaryPartCFrame(CFrame.new(workspace.MyPart.PrimaryPart.Position - Vector3.new(10,0,0)) )
end)
When I click the trigger the part/model moves a bit to the side. That works well.
The problem I'm trying to solve is:
If I just keep on clicking - the part doesn't get blocked by the wall, it just goes through it.
So, is there a way to "block" off the part from going through wall or maybe another way to move the brick?
As you probably can tell, I'm new to this ;) Appreciate anyone trying to help sort this out!

3 comments
You can detect if the part is touched then the part stop moving
Good suggestion, but I did actually try that. I had a brick that would "touch" the wall before the main object, but when I move the part(s) like I do in the script - it doesn't seem to register that something gets touched.
Still need help on this