-- 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
