When I teleport into a car it glitches out


As you can see in the above gif, when I get into a car it sorts of glitches into the ground and moves away from its original position. All I am trying to do is fix this problem.

local doorSeat = requestObj.Parent.Parent:FindFirstChild(requestObj.Name)
if doorSeat then
	for _,v in pairs(plr.Character:GetDescendants()) do
		if v:IsA("BasePart") then
	plr.Character.Humanoid.JumpHeight = 0

^ this is pretty much all the code involved

How are you getting into the car? A regular roblox seat? Attaching the player to the car?


thirtyerer characters

Well then that’s the extent of my knowledge, sorry I couldn’t help, I don’t know how seats and vehicleseats behave in roblox.

Problem solved… I realized that the local script (fires a remote to get player out of car bla bla), isn’t deleted when the player exits the car and since the button to get in/out of the car is the same, when the player enters the car they are also teleported out of the car… so it breaks the car.

1 Like