I move a brick on the X axis, it works perfectly fine, but when it hits another brick, it moves up so that it's on top of the brick. I want it to go through the brick, how do I fix this? This is my script:
while true do wait(0.001) script.Parent.Position = script.Parent.Position + Vector3.new(0.275, 0, 0) end
If you still don't know what I'm talking about, try this script yourself on a brick. Then put some parts in front of it. It will go on top of those parts once it hits them. I want the part to go through those other parts that it's running into.
local part = script.Parent part.CFrame = CFrame.new(part.CFrame.X + 0.275. part.CFrame.Y, part.CFrame.Z)
Idk if there's a more efficient way of writing this but that should work