Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My "E To Get In Vehicle" Proximity Prompt Wont Work With Driver Seats?

The Title Pretty Much Explains Everything. It Works Perfectly Fine With Normal Seats, But It Wont Work With Driver Seats And I Am Not Sure How To Fix It.

This Is The Script That Runs The Proximity Prompt

local proximityPrompt = script.Parent
local seat = proximityPrompt.Parent
seat:GetPropertyChangedSignal("Occupant"):Connect(function()
	if seat.Occupant then
		proximityPrompt.Enabled = false
	else
		proximityPrompt.Enabled = true
	end
end)

proximityPrompt.Triggered:Connect(function(player)
	seat:Sit(player.Character.Humanoid)
end)

2 comments

0

Is it a local script or a normal script, also are their any errors in the output?

0

It Is A Normal Script

1 answer

Here is my code that I used to make proximity prompt seat

local Seat = script.Parent.Parent
local ProxPrompt = Seat.ProximityPrompt

ProxPrompt.Triggered:Connect(function(plr)
	if Seat.Occupant then ProxPrompt.Enabled = false else ProxPrompt.Enabled = true end -- make sure seat isn't already taken

	local char = plr.Character
	local humanoid = char:FindFirstChild("Humanoid")

	Seat:Sit(humanoid)
end)

I don't think it still works though

1 comment

0

This Doesn't Work

This discussion is preserved as it was. New answers, comments, and votes are closed.