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

Why are the welded parts of the car aren't turning?

I made an auto driving car that should turn when it hits a block but only the base turns and the other parts just stay where they were before, here is what i have:

local delayy = false
script.Parent.Parent.PrimaryPart = script.Parent
script.Parent.Touched:Connect(function(hit)
	
	if hit.Name == "RotationChange" and delayy == false then --RotatationChange is the part wich causes the car to turn
		
		delayy = true
		print("Change Rotation")	
		local orientation = hit.Orientation --the direction the car should turn

		script.Parent.Orientation = orientation --Setting the main part to the orientation

		wait(2)
		delayy = false
	end
end)

5 comments

0

Make sure they're well welded

0

If they're not I recommend using the weld plugin

0

i welded them with a weld constraint is that a problem?

0

still not working

0

well welds should lock the part into the brick they're welded to, try something like hinges

1 answer

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