Teleporting anything that falls

consider there is two parts, part1, part2.

when any modal/part/player touches it, it should be teleported to the other part.
and vice versa,

for example, a player is driving a car, they run over part 1, they (both car and the player ) instantly get teleported to part 2

okk put this in part 1

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)
1 Like

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

Not working… to make things easier, how about teleporting anything that is inside a folder called “objects” to the part 2?

and ofc including the players too