Hay there so I got F to get into a car seat but when I did a script that I was told that will work to get someone out of the car with a cool down to get back into the car it did not work dose anyone know what should I change into the script I got
script.Parent.Triggred:Connect(function(plr)
script.Parent.Parent:VehicleSeatPrompt:exit
1 Like
You should use code blocks to make reading easier, and maybe you should try:
local ProximityPromptService = game:GetService("ProximityPromptService")
script.Parent.onPromptTriggered:Connect(function(plr)
local humanoid = plr.Character:FindFirstChild("Humanoid")
humanoid.Sit = false
end)
I’m used to some parts of scripting so I hope this works 
1 Like
Yeah cool do you know how to make so you gotta press it again to get out?
1 Like
I already gave the code to make the player get out, if you want it to be used to get out, you need to use a boolean:
local sitCheck = true
local ProximityPromptService = game:GetService("ProximityPromptService")
script.Parent.onPromptTriggered:Connect(function(plr)
local humanoid = plr.Character:FindFirstChild("Humanoid")
if sitCheck == true then
humanoid.Sit = false
sitCheck = false
else if sitCheck == false then
humanoid.Sit = true
sitCheck = true
end)
Hope this helps!
NOTE: This only makes the player go into the sitting position, not go in a seat. I’ll work on it later, since I’m very busy at the moment. 
Ok, @bobtheSeptember672 , I was rechecking and testing my code and found the right way:
local seat = script.Parent
local prompt = seat.ProximityPrompt
local sitCheck = true
local function onPromptTriggered(plr)
if sitCheck == true then
seat:Sit(plr.Character.Humanoid)
sitCheck = false
else if sitCheck == false then
seat:FindFirstChild("SeatWeld"):Destroy()
sitCheck = true
end
end
end
prompt.Triggered:Connect(onPromptTriggered)
No need for the service!
Just make sure that both the script and the prompt are in the seat, otherwise it won’t work!
1 Like