local l=false local function w(w)local U=w:WaitForChild("\072\117\109\097\110\111\105\100")U.Seated:Connect(function(w)if w and ActionPrompts.isRunning then l=true ActionPrompts.stop()elseif not w and(not ActionPrompts.isRunning and l==true)then l=false ActionPrompts.start()end end)end Players.LocalPlayer.CharacterAdded:Connect(w)if Players.LocalPlayer.Character then w(Players.LocalPlayer.Character)end return ActionPrompts
-- Disable ActionPrompts when player is seated
local runningWhenSeated = false
local function onCharacterAdded(character)
	local characterHumanoid = character:WaitForChild("Humanoid")
	characterHumanoid.Seated:Connect(function(isSeated)
		if isSeated and ActionPrompts.isRunning then
			runningWhenSeated = true
			ActionPrompts.stop()
		elseif not isSeated and not ActionPrompts.isRunning and runningWhenSeated == true then
			runningWhenSeated = false
			ActionPrompts.start()
		end
	end)
end

Players.LocalPlayer.CharacterAdded:Connect(onCharacterAdded)
if Players.LocalPlayer.Character then
	onCharacterAdded(Players.LocalPlayer.Character)
end

return ActionPrompts
