When I teleport into a car it glitches out

https://i.gyazo.com/8ec3dc206cf3b4c8f00701752aefc32a.gif

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
			game:GetService("PhysicsService"):SetPartCollisionGroup(v,"anticollide")
		end
	end
	doorSeat:Sit(plr.Character.Humanoid)
	plr.Character.Humanoid.JumpHeight = 0
	clientEvents.UpdateInteraction:FireClient(plr)
end

^ 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?

Seat:Sit(humanoid)

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