Press E to enter in normal seat

like i just wanna the character to be on the side of the car not the top

and about the what how look at this

image
image
image

this happens

1 Like

I-

OKAY THAT IS ACTUALLY CURSED

Ok maybe try this?

local Prompt = script.Parent.ProximityPrompt
local Seat = script.Parent

Prompt.Triggered:Connect(function(Player)
	local Occupant = Seat.Occupant
	local Character = Player.Character
	
	print(Player.Name)
	
	if not Occupant then
		Seat:Sit(Character.Humanoid)
	else
		Character.Humanoid.Sit = false
		wait(2)
		Character.HumanoidRootPart.Position = -Seat.CFrame.RightVector * 5
	end
end)

LOL and i will try that to see if it works

I think that the player is welded to the seat even after the player has exited?

how can i delete the seatweld???

You could try set occupant to nil?

heres the code

local proximityPrompt = script.Parent
local seat = proximityPrompt.Parent

seat:GetPropertyChangedSignal("Occupant"):Connect(function()
	if seat.Occupant then
		proximityPrompt.Style = Enum.ProximityPromptStyle.Custom
	else
		proximityPrompt.Style = Enum.ProximityPromptStyle.Default
	end
end)

proximityPrompt.Triggered:Connect(function(player)
	if seat.Occupant == player.Character.Humanoid then
		player.Character.Humanoid.Sit = false
		wait()
		player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,0)
		print("hes sitting lol")
	elseif seat.Occupant == nil then
		seat:Sit(player.Character.Humanoid)
		print("YES BABY")
	end
end)

Does it work or does it make the car glitch out?

sadly it makes the car glitch out as above

Add seat.Occupant = nil above player.Character.Humanoid.Sit = false.

now i cant leave the car lol aaa

Oh? Let me test this in studio a minute.

Ah instead of that you can do seat.SeatWeld:Destroy(). It made my character automatically stand up and the player could exit also automatically sets occupant to nil.

i cant explain exactly what its happening but when i press to leave the character cant pass through the door and ends up sitting on the back seat, but the car stopped glitching out

That’s cause you’re just setting the cframe to the seat cframe.

Do player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-5)

i think its exactly what it is in the code

I think the front is the z axis so it would be Do player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(-5,0,0). Try that.

1 Like

Thanks man now its working!!!

Glad i could help :grinning_face_with_smiling_eyes: