local function onTouchedBall(hit)
print(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(script.Parent.VehicleSeat.CFrame.Position))
end
end
script.Parent.Touched:Connect(onTouchedBall)
I don't understand why it teleports me to the center of the map instead of the position I specified.

1 comment
I think you make it too complicated. HumanoidRootPart.CFrame = VehicleSeat.CFrame is enough (I reduce the code a little bit for readable, it is not full)