Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I am trying to connect bricks with a script, for my self parking car?

I mean like this. http://prntscr.com/inbj7c The red in this represents a parking spot, and a car. The system automatically come up with a position for the blocks that are yellow and green.

I need a script that checks around for objects (I already have) and then determines a path that the car can follow in order to park near perfectly.

1 comment

0

You mean welding?

1 answer

If you're talking welding, try this:

function Weld(p1, p2)
	local w = Instance.new("Weld", game.JointsService)
	w.C1 = p1.CFrame:toObjectSpace(p2.CFrame)
	w.part0 = p1
	w.part1 = p2
end
Weld(script.Parent, script.Parent.Parent.Part2)

This discussion is preserved as it was. New answers, comments, and votes are closed.