script.Parent.Touched:Connect(function(car)
local vehicleseat = car:FindFirstChild('VehicleSeat') -- this will make sure its a car, if you use a seat then change this to seat
if vehicleseat then -- checks if vehicleseat is there
car:MoveTo(workspace.part2.Position) -- change this to the place of part2's position
end
end)
you don’t actually get the point, I want literally all the things which touches part 1 should be teleported to part 2 and vice versa, car was just an example
it might be a rocket, might be a falling debris
technically a portal in which everything goes thru and can come back
this is really hard especially since you could be getting the workspace so consider this example a grain of salt
script.Parent.Touched:Connect(function(part)
if part.Parent:IsA('Model') and part:IsA('BasePart') then
part.Parent:MoveTo(part2.Position)
else if part:IsA('BasePart') then
part.Position = part2.Position
end
end